/* 
  =========================================
  PREMIUM CONSTRUCTION COMPANY WEBSITE
  CONSULTATION PAGE STYLESHEET (consult.css)
  =========================================
*/

/* --- 1. GENERAL & UTILITIES (Consultation Page Specific) --- */
.text-gold-gradient {
    background: linear-gradient(135deg, #d4af37 0%, #aa7c11 100%);
    /* -webkit-background-clip: text; */
    -webkit-text-fill-color: transparent;
    display: inline-block;
    /* Ensure gradient applies properly */
}

.gold-divider.mx-auto-left {
    margin-left: 0 !important;
    margin-right: auto !important;
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #d4af37 0%, #aa7c11 100%);
    border-radius: 2px;
}

/* Reusable card styling */
.rounded-card {
    border-radius: 12px;
    overflow: hidden;
}

/* Image hover zoom effect */
.image-hover-zoom {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.image-hover-zoom img {
    transition: transform var(--transition-slow);
}

.image-hover-zoom:hover {
    border-color: var(--color-gold);
}

.image-hover-zoom:hover img {
    transform: scale(1.08);
}

/* --- 2. CONSULTATION HERO BANNER (Image Gallery & Form) --- */
.consult-hero-banner {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 80px;
    background-color: #090909;
    /* Deep black background */
    color: var(--color-text-white);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.consult-hero-container {
    position: relative;
    z-index: 1;
}

/* Left Column: Image Gallery */
.consult-image-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.main-image-wrapper {
    height: 450px;
    /* Adjust height for larger image */
}

.main-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sub-images-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.sub-images-grid>div {
    height: 150px;
    /* Fixed height for consistency */
}

.sub-images-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Right Column: Consultation Form */
.consult-form-card {
    background-color: rgba(18, 18, 18, 0.4);
    /* Darker background with transparency */
    border: 1px solid rgba(212, 175, 55, 0.2);
    /* Gold border */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.form-main-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    text-align: left;
    /* Align to left as per reference */
}

.form-sub-title {
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left;
    /* Align to left */
}

.consultation-form .form-group {
    margin-bottom: 20px;
}

.consultation-form .form-label {
    color: var(--color-text-gray);
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.consultation-form .form-control,
.consultation-form .form-select {
    background-color: #0c0c0c;
    /* Slightly lighter black for inputs */
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-white);
    padding: 12px 18px;
    border-radius: 8px;
    /* Rounded corners */
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    font-family: var(--font-primary);
}

.consultation-form .form-control:focus,
.consultation-form .form-select:focus {
    border-color: var(--color-gold);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
    background-color: #0c0c0c;
    color: var(--color-text-white);
}

.consultation-form .form-control::placeholder {
    color: var(--color-text-muted);
}

.consultation-form .form-select {
    appearance: none;
    /* Remove default arrow */
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 16 16\'%3e%3cpath fill=\'none\' stroke=\'%23d4af37\' stroke-linecap=\'round\' stroke-linejoin=\'round\' stroke-width=\'2\' d=\'M2 5l6 6 6-6\'%3e%3c/path%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 16px 12px;
}

.consultation-form .invalid-feedback {
    color: #dc3545;
    /* Bootstrap danger color for error */
    font-size: 0.875rem;
    margin-top: 5px;
}

.btn-gold {
    background: linear-gradient(135deg, #d4af37 0%, #aa7c11 100%);
    color: #000;
    /* Black text on gold button */
    border: none;
    border-radius: 8px;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-normal);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
    background: linear-gradient(135deg, #aa7c11 0%, #d4af37 100%);
    /* Darker gold on hover */
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
}

.btn-gold .spinner-border {
    vertical-align: middle;
}

.alert-success {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--color-gold);
    border-color: rgba(212, 175, 55, 0.3);
    border-radius: 8px;
}

/* --- Responsive Adjustments for consult.html --- */
@media (max-width: 992px) {
    .consult-hero-banner {
        padding-top: calc(var(--header-height) + 30px);
        padding-bottom: 50px;
    }

    .consult-image-gallery {
        grid-template-columns: 1fr;
        /* Stack images on small screens */
        gap: 15px;
    }

    .main-image-wrapper {
        height: 350px;
    }

    .sub-images-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .sub-images-grid>div {
        height: 100px;
    }

    .consult-form-card {
        padding: 30px;
    }

    .form-main-title {
        font-size: 2rem;
    }

    .form-sub-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .consult-hero-banner {
        padding-top: calc(var(--header-height) + 20px);
        padding-bottom: 40px;
    }

    .main-image-wrapper {
        height: 300px;
    }

    .sub-images-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .sub-images-grid>div {
        height: 80px;
    }

    .consult-form-card {
        padding: 25px;
    }

    .form-main-title {
        font-size: 1.8rem;
    }

    .form-sub-title {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .consult-hero-banner {
        min-height: auto;
        padding-top: calc(var(--header-height) + 15px);
        padding-bottom: 30px;
    }

    .consult-image-gallery {
        gap: 10px;
        margin-bottom: 40px;
    }

    .main-image-wrapper {
        height: 250px;
    }

    .sub-images-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
    }

    .sub-images-grid>div {
        height: 70px;
    }

    .consult-form-card {
        padding: 20px;
    }

    .form-main-title {
        font-size: 1.5rem;
    }

    .form-sub-title {
        font-size: 0.9rem;
    }

    .consultation-form .btn-gold {
        padding: 12px 20px;
        font-size: 1rem;
    }
}

/* =====================================================
   FOOTER - KHỐI LIÊN HỆ NẰM CỐ ĐỊNH BÊN PHẢI
   ===================================================== */

.lvt-footer-top {
    position: relative;
    display: flex !important;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

/* Phần thương hiệu bên trái */
.lvt-footer-brand {
    width: 45%;
    flex: 0 0 45%;
}

/* KHỐI LIÊN HỆ BÊN PHẢI */
.lvt-footer-contact {
    position: absolute !important;
    top: 0;
    right: 0;

    width: 40%;
    max-width: 480px;

    margin: 0 !important;
    padding: 0 0 0 50px !important;

    min-width: 0 !important;
}

/* Tiêu đề LIÊN HỆ */
.lvt-footer-contact h4 {
    margin: 0 0 25px 0;
    padding: 0;

    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Các dòng liên hệ */
.lvt-footer-contact .lvt-contact-item {
    display: flex;
    align-items: flex-start;

    width: 100%;
    margin-bottom: 20px;
}

/* Icon */
.lvt-footer-contact .lvt-contact-item i,
.lvt-footer-contact .lvt-contact-item svg {
    flex: 0 0 42px;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-right: 15px;

    border: 1px solid rgba(197, 168, 128, 0.35);
}

/* Nội dung */
.lvt-footer-contact .lvt-contact-item>div,
.lvt-footer-contact .lvt-contact-item span {
    min-width: 0;
}

/* Label */
.lvt-footer-contact .contact-label {
    display: block;

    margin-bottom: 5px;

    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;

    opacity: 0.55;
}

/* Text */
.lvt-footer-contact .contact-value {
    display: block;

    font-size: 14px;
    line-height: 1.6;

    word-break: break-word;
}


/* =====================================================
   DESKTOP LỚN
   ===================================================== */

@media (min-width: 1200px) {
    .lvt-footer-contact {
        right: 0;
        width: 42%;
        max-width: 500px;
        padding-left: 70px !important;
    }
}


/* =====================================================
   TABLET
   ===================================================== */

@media (max-width: 991px) {
    .lvt-footer-top {
        display: flex !important;
        flex-direction: column;
    }

    .lvt-footer-brand {
        width: 100%;
        flex: none;
        margin-bottom: 40px;
    }

    .lvt-footer-contact {
        position: static !important;

        width: 100%;
        max-width: none;

        padding: 0 !important;
    }
}

/* =========================================
   FIX ICON FOOTER - KHÔNG CHỒNG 2 Ô VUÔNG
   ========================================= */

.lvt-footer-contact .lvt-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 22px;
}

/* Chỉ để 1 khung duy nhất */
.lvt-footer-contact .lvt-contact-item i,
.lvt-footer-contact .lvt-contact-item svg {
    box-sizing: border-box;

    width: 42px !important;
    height: 42px !important;

    min-width: 42px;
    min-height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 !important;
    padding: 0 !important;

    border: 1px solid rgba(197, 168, 128, 0.45) !important;
    outline: none !important;
    box-shadow: none !important;

    background: transparent;
}

/* Nếu icon đang có pseudo-element tạo thêm ô */
.lvt-footer-contact .lvt-contact-item i::before,
.lvt-footer-contact .lvt-contact-item i::after,
.lvt-footer-contact .lvt-contact-item svg::before,
.lvt-footer-contact .lvt-contact-item svg::after {
    border: none !important;
    box-shadow: none !important;
}

/* Nội dung bên phải icon */
.lvt-footer-contact .lvt-contact-item>div {
    flex: 1;
    min-width: 0;
}

/* Label */
.lvt-footer-contact .contact-label {
    margin: 0 0 5px;
}

/* Giá trị */
.lvt-footer-contact .contact-value {
    margin: 0;
    line-height: 1.6;
}
