/* CSS cho Trang Liên Hệ */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

/* Global font override for this page */
.contact-hero,
.quick-contact,
.contact-form-section,
.custom-process {
    font-family: 'Montserrat', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* Utilities */
.text-gold {
    color: var(--accent-gold);
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 2.5px;
    margin-bottom: 25px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
}

.form-title {
    font-size: 14px !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    font-family: 'Inter', sans-serif !important;
}


/* ========== HERO SECTION ========== */
.contact-hero {
    position: relative;
    padding: 80px 0 60px;
    min-height: 60vh;
    display: flex;
    align-items: center;
    background-color: #050505;
}

.contact-hero-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
}

.contact-hero-image img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    object-fit: cover;
}

@media (max-width: 770px) {
    .contact-hero-split {
        flex-direction: column;
        text-align: center;
    }

    .sub-heading {
        justify-content: center;
    }

    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .contact-hero-image {
        margin-top: 30px;
        text-align: center !important;
    }
}

.sub-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-gold);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
}


.sub-heading .gold-line {
    width: 30px;
    height: 1px;
    background-color: var(--accent-gold);
}

.contact-hero-content .main-heading {
    font-size: 54px;
    font-weight: 900;
    line-height: 1.25;
    color: #fff;
    margin-bottom: 22px;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


.contact-hero-content .main-heading span {
    background: linear-gradient(to bottom, #fdfdfd 0%, #d4af37 50%, #f3e5ab 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    padding: 0.2em 0;
}

.contact-hero-content .hero-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
    margin-bottom: 30px;
    max-width: 450px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    letter-spacing: 0.1px;
}


.hero-actions {
    display: flex;
    gap: 15px;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 24px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: var(--transition);
    gap: 10px;
    font-family: 'Inter', sans-serif;
}


.btn-messenger {
    background-color: transparent;
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
}

.btn-messenger:hover {
    background-color: rgba(201, 168, 76, 0.1);
}

.btn-zalo {
    background-color: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-zalo:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* ========== QUICK CONTACT ========== */
.quick-contact {
    padding: 60px 0;
    background-color: var(--bg-dark);
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.contact-card {
    background: linear-gradient(145deg, #161616 0%, #0d0d0d 100%);
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    opacity: 0;
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: rgba(201, 168, 76, 0.4);
    box-shadow: 0 10px 30px rgba(201, 168, 76, 0.05);
}

.contact-card:hover::before {
    opacity: 1;
}

.card-icon {
    margin-bottom: 20px;
}

.card-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-card h4 {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
}


.contact-card p {
    color: rgba(255, 255, 255, 0.45);
    font-size: 12px;
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
}


.action-link {
    color: var(--accent-gold);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
}


/* ========== CONTACT FORM ========== */
.contact-form-section {
    padding: 60px 0;
    background-color: var(--bg-dark);
}

.form-wrapper {
    display: flex;
    background-color: #0d0d0d;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    min-height: 420px;
}

.form-left {
    flex: 1;
    min-width: 0;
    padding: 60px 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-right {
    flex: 0 0 45%;
    min-height: 420px;
    background-image: url('../images/Contact_form.png');
    background-size: cover;
    background-position: center top;
    position: relative;
    overflow: hidden;
}

/* Gradient overlay: seamless blend left-to-right */
.form-right::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        #0d0d0d 0%,
        rgba(13, 13, 13, 0.55) 22%,
        transparent 55%
    );
}

/* Only show the image panel on screens wider than 1024px */
.form-right-panel {
    display: none;
}

@media (min-width: 1025px) {
    .form-right-panel {
        display: block;
    }
}

.form-desc {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    margin-bottom: 25px;
}

.pytado-form .input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.4);
}

.input-icon.textarea-icon {
    align-items: flex-start;
    padding-top: 14px;
}

.pytado-form input,
.pytado-form textarea {
    width: 100%;
    box-sizing: border-box;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    padding: 13px 16px 13px 50px;
    transition: var(--transition);
    letter-spacing: 0.2px;
}


.pytado-form input:focus,
.pytado-form textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    background-color: rgba(255, 255, 255, 0.06);
}

.pytado-form textarea {
    resize: vertical;
}

.btn-submit {
    width: 100%;
    box-sizing: border-box;
    background: linear-gradient(90deg, #c9a84c, #e5c36a);
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 13px 16px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
}


.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(201, 168, 76, 0.2);
}

/* ========== TIMELINE SECTION ========== */
.custom-process {
    padding: 80px 0 100px;
    background-color: var(--bg-dark);
}

.timeline-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-top: 50px;
}

.timeline-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-icon-wrapper {
    position: relative;
    margin-bottom: 25px;
}

.step-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 1px solid rgba(201, 168, 76, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    background-color: var(--bg-dark);
}

.step-number {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: var(--accent-gold);
    color: #000;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 6px;
    border-radius: 4px;
}

.step-content h4 {
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-family: 'Inter', sans-serif;
}


.step-content p {
    color: rgba(255, 255, 255, 0.45);
    font-size: 12px;
    line-height: 1.6;
    max-width: 250px;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.1px;
}


.timeline-divider {
    flex: 0.5;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.5), transparent);
    margin-top: 35px;
}

/* Responsive and Premium Layout Refinements */
@media (max-width: 1024px) {

    /* Hero Title Scaling */
    .contact-hero-content .main-heading {
        font-size: 38px !important;
    }

    .contact-hero-content .hero-desc {
        font-size: 14px;
        max-width: 100%;
    }

    /* Quick Contact in 3 columns (1 row) on tablet */
    .contact-cards {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 15px !important;
    }

    .contact-card {
        padding: 25px 15px !important;
    }

    .contact-card h4 {
        font-size: 14px !important;
    }

    .contact-card p {
        font-size: 11px !important;
    }

    /* Form wrapper padding optimization */
    .form-wrapper {
        flex-direction: column !important;
    }

    .form-left {
        padding: 40px 30px !important;
    }

    .form-right {
        min-height: 240px;
    }

    /* Process Timeline strictly in 1 row (horizontal) */
    .timeline-container {
        flex-direction: row !important;
        gap: 15px !important;
    }

    .timeline-divider {
        display: block !important;
        flex: 0.3 !important;
        margin-top: 25px !important;
    }

    .timeline-step {
        flex: 1 !important;
    }

    .step-icon {
        width: 56px !important;
        height: 56px !important;
    }

    .step-icon svg {
        width: 22px;
        height: 22px;
    }

    .step-number {
        top: -5px !important;
        right: -5px !important;
        font-size: 9px !important;
        padding: 3px 5px !important;
    }

    .step-content h4 {
        font-size: 12px !important;
    }

    .step-content p {
        font-size: 11.5px !important;
        max-width: 100% !important;
    }
}

@media (max-width: 770px) {
    /* Ảnh 1: Ẩn hoàn toàn nút Zalo và Messenger của Hero dưới 770px */
    .hero-actions {
        display: none !important;
    }

    .contact-hero {
        padding: 60px 0 40px !important;
        min-height: auto !important;
    }

    .contact-hero-content .main-heading {
        font-size: 28px !important;
    }

    /* Ảnh 2: Bố cục Liên hệ nhanh dạng danh sách trượt dọc (3 hàng dọc) */
    .contact-cards {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .contact-card {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        text-align: left !important;
        padding: 15px 20px !important;
        height: auto !important;
        gap: 15px !important;
    }

    .contact-card .card-icon {
        margin-bottom: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .contact-card .card-icon svg {
        width: 32px;
        height: 32px;
    }

    .contact-card .card-info {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
        gap: 2px !important;
        margin: 0 !important;
    }

    .contact-card h4 {
        font-size: 13px !important;
        margin: 0 !important;
        line-height: 1.2 !important;
    }

    .contact-card p {
        font-size: 11px !important;
        margin: 0 !important;
        line-height: 1.2 !important;
    }

    .contact-card .action-link {
        margin-left: auto !important;
        font-size: 11px !important;
        white-space: nowrap !important;
    }

    /* Ảnh 3: Form tư vấn căn chỉnh cực đẹp */
    .form-left {
        padding: 30px 20px !important;
    }

    .pytado-form .input-group {
        margin-bottom: 15px !important;
    }

    .pytado-form input,
    .pytado-form textarea {
        padding: 12px 16px 12px 46px !important;
        font-size: 12.5px !important;
    }

    .input-icon {
        left: 16px !important;
    }

    .btn-submit {
        padding: 12px 16px !important;
        font-size: 13px !important;
    }

    .form-title {
        font-size: 14.5px !important;
    }

    .form-desc {
        font-size: 12px !important;
        margin-bottom: 20px !important;
    }

    /* Ảnh 4: Quy trình đặt tranh custom căn chỉnh cực đẹp */
    .timeline-container {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 10px 5px 20px !important;
        justify-content: flex-start !important;
        gap: 15px !important;
        scrollbar-width: none !important;
    }

    .timeline-container::-webkit-scrollbar {
        display: none !important;
    }

    .timeline-step {
        flex: 0 0 240px !important;
        background: linear-gradient(145deg, #141414 0%, #0a0a0a 100%) !important;
        border: 1px solid rgba(201, 168, 76, 0.15) !important;
        border-radius: 12px !important;
        padding: 25px 15px !important;
        box-sizing: border-box !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
    }

    .step-icon-wrapper {
        margin-bottom: 15px !important;
    }

    .step-icon {
        width: 50px !important;
        height: 50px !important;
        background-color: #111 !important;
        border: 1px solid rgba(201, 168, 76, 0.4) !important;
    }

    .step-icon svg {
        width: 20px;
        height: 20px;
    }

    .step-number {
        top: -6px !important;
        right: -6px !important;
        font-size: 8px !important;
        padding: 3px 5px !important;
        border-radius: 3px !important;
    }

    .step-content h4 {
        font-size: 12px !important;
        letter-spacing: 0.5px !important;
        margin-bottom: 8px !important;
    }

    .step-content p {
        font-size: 11px !important;
        line-height: 1.4 !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    .timeline-divider {
        display: none !important;
    }
}

@media (max-width: 660px) {
    /* Bỏ cụm từ phản hồi nhanh, hỗ trợ dành cho,... dưới 660px */
    .contact-card p {
        display: none !important;
    }
}

@media (max-width: 460px) {
    /* Ảnh 2: Bỏ Nhắn tin ngay, chat ngay, gửi email và căn chỉnh lại */
    .contact-card {
        padding: 14px 20px !important;
        justify-content: flex-start !important;
        gap: 12px !important;
    }

    .contact-card .action-link {
        display: none !important;
    }

    .contact-card h4 {
        font-size: 12.5px !important;
        margin: 0 !important;
        letter-spacing: 1px !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
    }

    .contact-card .card-icon svg {
        width: 28px !important;
        height: 28px !important;
    }
}