
/* =========================================
   Hexnivo - CONTACT PAGE
   Theme: Royal Blue + White + Ice
========================================= */

.contact-page {
    overflow: hidden;
}

.contact-page section {
    position: relative;
}

.contact-page .eyebrow {
    display: inline-block;
    color: #2563eb;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.7px;
}

/* =========================================
   1. CONTACT HERO
========================================= */

.contact-hero {
    position: relative;
    padding: 100px 0 95px;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(circle at 15% 20%, rgba(96, 165, 250, .24), transparent 30%),
        radial-gradient(circle at 85% 75%, rgba(147, 197, 253, .20), transparent 30%),
        linear-gradient(130deg, #172554 0%, #1d4ed8 55%, #3b82f6 100%);
}

.contact-hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.contact-hero .eyebrow {
    padding: 9px 16px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50px;
    color: #dbeafe;
    background: rgba(255, 255, 255, .07);
}

.contact-hero h1 {
    margin: 26px 0 20px;
    color: #ffffff;
    font-size: clamp(38px, 5.5vw, 65px);
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: -2px;
}

.contact-hero .gradient-text {
    color: #bfdbfe;
    background: linear-gradient(90deg, #eff6ff, #bfdbfe, #93c5fd);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-hero-content > p {
    max-width: 650px;
    margin: 0 auto 30px;
    color: #dbeafe;
    font-size: 15px;
    line-height: 1.9;
}

.contact-hero .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.contact-hero-decoration {
    position: absolute;
    z-index: -1;
    width: 230px;
    height: 230px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 50%;
    pointer-events: none;
}

.contact-decoration-one {
    top: -100px;
    left: -80px;
    box-shadow: 0 0 0 35px rgba(255, 255, 255, .025);
}

.contact-decoration-two {
    right: -100px;
    bottom: -130px;
    box-shadow: 0 0 0 35px rgba(255, 255, 255, .025);
}

/* =========================================
   2. CONTACT MAIN LAYOUT
========================================= */

.contact-main {
    padding: 95px 0;
    background: #f8fafc;
    scroll-margin-top: 90px;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    align-items: start;
    gap: 45px;
}

/* =========================================
   3. CONTACT INFORMATION PANEL
========================================= */

.contact-info {
    position: relative;
    padding: 38px 32px;
    overflow: hidden;
    border-radius: 23px;
    color: #ffffff;
    background:
        radial-gradient(circle at 100% 0%, rgba(147, 197, 253, .20), transparent 30%),
        linear-gradient(150deg, #172554, #1d4ed8 65%, #3b82f6);
    box-shadow: 0 18px 45px rgba(23, 37, 84, .13);
}

.contact-info > .eyebrow {
    color: #dbeafe;
}

.contact-info > h2 {
    margin: 16px 0;
    color: #ffffff;
    font-size: 32px;
    line-height: 1.2;
}

.contact-info-intro {
    margin: 0;
    color: #dbeafe;
    font-size: 13px;
    line-height: 1.9;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 27px;
    margin-top: 40px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 13px;
    color: #ffffff;
    background: rgba(255, 255, 255, .12);
    font-size: 21px;
}

.contact-info-item h3 {
    margin: 2px 0 7px;
    color: #ffffff;
    font-size: 14px;
}

.contact-info-item p {
    margin: 0;
    color: #eff6ff;
    font-size: 12px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.contact-info-note {
    display: block;
    margin-top: 5px;
    color: #bfdbfe;
    font-size: 10px;
    line-height: 1.6;
}

.contact-info-bottom {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 45px;
    padding: 21px;
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 15px;
    background: rgba(255, 255, 255, .08);
}

.contact-info-bottom-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: #1d4ed8;
    background: #eff6ff;
}

.contact-info-bottom h3 {
    margin: 1px 0 7px;
    color: #ffffff;
    font-size: 13px;
}

.contact-info-bottom p {
    margin: 0;
    color: #dbeafe;
    font-size: 11px;
    line-height: 1.7;
}

/* =========================================
   4. CONTACT FORM PANEL
========================================= */

.contact-form-wrapper {
    min-width: 0;
    padding: 38px;
    border: 1px solid #dbeafe;
    border-radius: 23px;
    background: #ffffff;
    box-shadow: 0 12px 40px rgba(23, 37, 84, .055);
}

.contact-form-heading {
    margin-bottom: 30px;
}

.contact-form-heading h2 {
    margin: 12px 0 10px;
    color: #172554;
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.3;
}

.contact-form-heading p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.8;
}

/* Two-column form rows */

.contact-form .form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin-bottom: 20px;
}

.contact-form .form-group > label {
    margin-bottom: 9px;
    color: #1e293b;
    font-size: 12px;
    font-weight: 750;
}

.contact-form input:not([type="checkbox"]),
.contact-form select,
.contact-form textarea {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 13px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    outline: none;
    color: #172554;
    background: #ffffff;
    font-family: inherit;
    font-size: 12px;
    line-height: 1.6;
    transition: border-color .25s ease,
                box-shadow .25s ease,
                background .25s ease;
}

.contact-form input:not([type="checkbox"])::placeholder,
.contact-form textarea::placeholder {
    color: #94a3b8;
    opacity: 1;
}

.contact-form select {
    cursor: pointer;
}

.contact-form textarea {
    min-height: 130px;
    resize: vertical;
}

.contact-form input:not([type="checkbox"]):hover,
.contact-form select:hover,
.contact-form textarea:hover {
    border-color: #93c5fd;
}

.contact-form input:not([type="checkbox"]):focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: #3b82f6;
    background: #f8fbff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, .12);
}

.contact-form input.invalid,
.contact-form select.invalid,
.contact-form textarea.invalid {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, .07);
}

.contact-form input.valid,
.contact-form select.valid,
.contact-form textarea.valid {
    border-color: #16a34a;
}

/* Message counter and validation messages */

.field-error {
    display: block;
    min-height: 0;
    margin-top: 6px;
    color: #dc2626;
    font-size: 10px;
    line-height: 1.5;
}

.field-error:empty {
    display: none;
}

.message-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.character-count {
    flex-shrink: 0;
    margin-top: 7px;
    color: #64748b;
    font-size: 10px;
}

/* Consent checkbox */

.contact-form .form-consent {
    display: flex;
    align-items: flex-start;
    flex-direction: row;
    gap: 10px;
    margin: 2px 0 10px;
}

.contact-form .form-consent input[type="checkbox"] {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin: 2px 0 0;
    accent-color: #3b82f6;
    cursor: pointer;
}

.contact-form .form-consent label {
    color: #64748b;
    font-size: 11px;
    line-height: 1.7;
    cursor: pointer;
}

/* Submit button */

.contact-form .contact-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 49px;
    margin-top: 18px;
    border: none;
    border-radius: 11px;
    color: #ffffff;
    background: linear-gradient(135deg, #172554, #3b82f6);
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
}

.contact-form .contact-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(37, 99, 235, .22);
}

.contact-form .contact-submit:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 4px;
}

.contact-form .contact-submit:disabled {
    opacity: .7;
    cursor: not-allowed;
    transform: none;
}

.form-disclaimer {
    margin: 14px 0 0;
    color: #64748b;
    font-size: 10px;
    line-height: 1.7;
    text-align: center;
}

/* Feedback message */

.form-feedback {
    margin-top: 20px;
    padding: 15px 17px;
    border: 1px solid #bfdbfe;
    border-radius: 11px;
    color: #1e40af;
    background: #eff6ff;
    font-size: 12px;
    line-height: 1.8;
}

.form-feedback.success {
    border-color: #bbf7d0;
    color: #166534;
    background: #f0fdf4;
}

.form-feedback.error {
    border-color: #fecaca;
    color: #991b1b;
    background: #fef2f2;
}

.form-feedback[hidden] {
    display: none !important;
}

/* =========================================
   5. FAQ SECTION
========================================= */

.contact-faq {
    padding: 95px 0;
    background: #ffffff;
}

.contact-faq .section-heading {
    max-width: 650px;
    margin: 0 auto 45px;
    text-align: center;
}

.contact-faq .section-heading .eyebrow {
    color: #2563eb;
}

.contact-faq .section-heading h2 {
    margin: 15px 0;
    color: #172554;
    font-size: clamp(30px, 4vw, 43px);
    line-height: 1.25;
}

.contact-faq .gradient-text {
    color: #3b82f6;
}

.contact-faq .section-heading p {
    color: #64748b;
    font-size: 13px;
    line-height: 1.8;
}

.contact-faq-list {
    max-width: 850px;
    margin: 0 auto;
}

.contact-faq-item {
    margin-bottom: 13px;
    overflow: hidden;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    background: #ffffff;
    transition: border-color .25s ease, box-shadow .25s ease;
}

.contact-faq-item:has(.contact-faq-question[aria-expanded="true"]) {
    border-color: #93c5fd;
    box-shadow: 0 8px 25px rgba(37, 99, 235, .08);
}

.contact-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    padding: 21px 23px;
    border: none;
    color: #172554;
    background: #ffffff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 750;
    text-align: left;
    cursor: pointer;
}

.contact-faq-question:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: -4px;
}

.faq-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 29px;
    height: 29px;
    border-radius: 9px;
    color: #2563eb;
    background: #eff6ff;
    font-size: 19px;
    transition: transform .25s ease, background .25s ease;
}

.contact-faq-question[aria-expanded="true"] .faq-toggle {
    transform: rotate(45deg);
    background: #dbeafe;
}

.contact-faq-answer {
    padding: 0 23px 22px;
}

.contact-faq-answer p {
    margin: 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.9;
}

.contact-faq-answer[hidden] {
    display: none !important;
}

/* =========================================
   6. FINAL CTA
========================================= */

.contact-final-cta {
    padding: 65px 0;
    color: #ffffff;
    background:
        radial-gradient(circle at 90% 20%, rgba(147, 197, 253, .18), transparent 30%),
        linear-gradient(125deg, #172554, #1d4ed8 65%, #3b82f6);
}

.contact-final-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.contact-final-inner .eyebrow {
    color: #dbeafe;
}

.contact-final-inner h2 {
    max-width: 700px;
    margin: 13px 0;
    color: #ffffff;
    font-size: clamp(25px, 3.5vw, 38px);
    line-height: 1.25;
}

.contact-final-inner p {
    margin: 0;
    color: #dbeafe;
    font-size: 13px;
    line-height: 1.8;
}

.contact-final-inner .btn-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    gap: 12px;
    padding: 15px 22px;
    border-radius: 10px;
    color: #1d4ed8;
    background: #ffffff;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease;
}

.contact-final-inner .btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .15);
}

/* =========================================
   7. RESPONSIVE DESIGN
========================================= */

@media (max-width: 1050px) {
    .contact-layout {
        grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
        gap: 25px;
    }

    .contact-info {
        padding: 30px 24px;
    }

    .contact-form-wrapper {
        padding: 30px 24px;
    }
}

@media (max-width: 800px) {
    .contact-hero {
        padding: 75px 0;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-info-list {
        gap: 22px;
    }

    .contact-info-bottom {
        margin-top: 30px;
    }

    .contact-main,
    .contact-faq {
        padding: 70px 0;
    }

    .contact-final-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .contact-hero {
        padding: 65px 0;
    }

    .contact-hero h1 {
        font-size: 36px;
        letter-spacing: -1px;
    }

    .contact-hero-content > p {
        font-size: 13px;
    }

    .contact-main,
    .contact-faq {
        padding: 55px 0;
    }

    .contact-info {
        padding: 28px 22px;
    }

    .contact-info > h2 {
        font-size: 28px;
    }

    .contact-form-wrapper {
        padding: 27px 19px;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-form-heading h2 {
        font-size: 25px;
    }

    .contact-faq .section-heading h2 {
        font-size: 31px;
    }

    .contact-faq-question {
        padding: 17px;
        font-size: 12px;
    }

    .contact-faq-answer {
        padding: 0 17px 18px;
    }

    .contact-final-cta {
        padding: 50px 0;
    }
}

/* =========================================
   8. REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {
    .contact-page *,
    .contact-page *::before,
    .contact-page *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}


/* ==========================================
   CONTACT INFORMATION LINKS
========================================== */

/* Contact Items - Vertical Layout */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    min-width: 0;
}

/* Contact Icons */
.contact-info-item .contact-info-icon {
    flex-shrink: 0;
}

.contact-info-item .contact-info-icon i {
    font-size: 19px;
}

/* Contact Links */
.contact-info-link {
    display: inline-block;
    max-width: 100%;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.7;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: color 0.3s ease;
}

.contact-info-link:hover {
    color: #93C5FD !important;
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 576px) {
    .contact-info {
        gap: 18px;
    }

    .contact-info-item {
        gap: 12px;
    }

    .contact-info-item .contact-info-icon i {
        font-size: 17px;
    }

    .contact-info-link {
        font-size: 13px;
    }
}