/* =========================================
   AV Code Works
   Contact Page
   ========================================= */


/* =========================================
   Contact Hero
   ========================================= */

.contact-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 15% 25%,
            rgba(37, 99, 235, 0.23),
            transparent 32%
        ),
        radial-gradient(
            circle at 85% 70%,
            rgba(124, 58, 237, 0.22),
            transparent 30%
        ),
        var(--navy-950);
    color: #ffffff;
}

.contact-hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    padding: 85px 0 90px;
}

.contact-hero h1 {
    margin: 20px 0;
    color: #ffffff !important;
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 5.4rem);
    line-height: 1.03;
    letter-spacing: -0.055em;
    font-weight: 700;
}

.contact-hero h1 .gradient-text {
    display: block;
    color: transparent !important;
    background: linear-gradient(
        90deg,
        #38bdf8,
        #6366f1,
        #a855f7
    );
    -webkit-background-clip: text;
    background-clip: text;
}

.contact-hero p {
    max-width: 720px;
    margin: 0;
    color: #cbd5e1;
    font-size: 1.12rem;
    line-height: 1.8;
}

.contact-hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(85px);
    pointer-events: none;
}

.contact-glow-one {
    width: 420px;
    height: 420px;
    top: -180px;
    right: 5%;
    background: rgba(37, 99, 235, 0.22);
}

.contact-glow-two {
    width: 350px;
    height: 350px;
    bottom: -180px;
    left: 35%;
    background: rgba(168, 85, 247, 0.15);
}


/* =========================================
   Contact Section
   ========================================= */

.contact-section {
    background: #f7faff;
}

.contact-info {
    position: sticky;
    top: 110px;
}

.contact-info-description {
    max-width: 530px;
    margin: 0 0 32px;
    color: var(--slate-600);
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-detail-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 13px;
    font-size: 1.1rem;
}

.contact-detail-icon.blue {
    color: #2563eb;
    background: #dbeafe;
}

.contact-detail-icon.purple {
    color: #7c3aed;
    background: #ede9fe;
}

.contact-detail-icon.cyan {
    color: #0891b2;
    background: #cffafe;
}

.contact-detail span {
    display: block;
    margin-bottom: 3px;
    color: var(--slate-500);
    font-size: 0.76rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.contact-detail a,
.contact-detail strong {
    display: block;
    color: var(--navy-900);
    font-size: 0.94rem;
    font-weight: 700;
    text-decoration: none;
}

.contact-detail a:hover {
    color: var(--blue-600);
}

.contact-note {
    display: flex;
    gap: 14px;
    margin-top: 35px;
    padding: 20px;
    border: 1px solid #dbeafe;
    border-radius: 18px;
    background: #eff6ff;
}

.contact-note-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: #2563eb;
    background: #dbeafe;
}

.contact-note strong {
    display: block;
    margin-bottom: 5px;
    color: var(--navy-900);
    font-size: 0.9rem;
}

.contact-note p {
    margin: 0;
    color: var(--slate-600);
    font-size: 0.82rem;
    line-height: 1.65;
}


/* =========================================
   Contact Form Card
   ========================================= */

.contact-form-card {
    padding: 38px;
    border: 1px solid #dce6f2;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 25px 65px rgba(15, 23, 42, 0.09);
}

.contact-form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e8eef5;
}

.form-eyebrow {
    display: block;
    margin-bottom: 7px;
    color: #2563eb;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.contact-form-header h2 {
    margin: 0;
    color: var(--navy-900);
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 700;
}

.form-header-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(
        135deg,
        #2563eb,
        #7c3aed
    );
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.22);
}


/* =========================================
   Form
   ========================================= */

.contact-form-card .form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--navy-900);
    font-size: 0.84rem;
    font-weight: 700;
}

.form-label .optional {
    margin-left: 5px;
    color: var(--slate-400);
    font-size: 0.7rem;
    font-weight: 500;
}

.contact-form-card .form-control,
.contact-form-card .form-select {
    min-height: 50px;
    border: 1px solid #d7e0eb;
    border-radius: 11px;
    background: #ffffff;
    color: var(--navy-900);
    font-size: 0.9rem;
    box-shadow: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.contact-form-card textarea.form-control {
    min-height: 145px;
    resize: vertical;
}

.contact-form-card .form-control::placeholder {
    color: #94a3b8;
}

.contact-form-card .form-control:focus,
.contact-form-card .form-select:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.contact-form-card .form-control.is-invalid,
.contact-form-card .form-select.is-invalid {
    border-color: #ef4444;
}

.contact-form-card .invalid-feedback {
    font-size: 0.76rem;
}

.form-helper {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 7px;
    color: var(--slate-400);
    font-size: 0.7rem;
}

.form-security-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 13px 15px;
    border-radius: 11px;
    background: #f8fafc;
    color: var(--slate-500);
    font-size: 0.74rem;
    line-height: 1.5;
}

.form-security-note i {
    margin-top: 1px;
    color: #16a34a;
    font-size: 0.95rem;
}


/* =========================================
   Submit Button
   ========================================= */

.contact-submit {
    width: 100%;
    min-height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(
        135deg,
        #2563eb,
        #7c3aed
    );
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 700;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.2);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}

.contact-submit:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 18px 35px rgba(37, 99, 235, 0.28);
}

.contact-submit:active {
    transform: translateY(0);
}

.contact-submit:disabled {
    opacity: 0.75;
    cursor: not-allowed;
    transform: none;
}

.submit-loading {
    display: none;
    align-items: center;
    gap: 8px;
}

.contact-submit.loading .submit-text {
    display: none;
}

.contact-submit.loading .submit-loading {
    display: inline-flex;
}

.contact-submit i {
    font-size: 1rem;
}


/* =========================================
   Alert
   ========================================= */

.contact-alert {
    display: none;
    margin-bottom: 22px;
    padding: 13px 16px;
    border-radius: 11px;
    font-size: 0.84rem;
    line-height: 1.5;
}

.contact-alert.show {
    display: block;
}

.contact-alert.success {
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.contact-alert.error {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
}


/* =========================================
   Bottom Contact Card
   ========================================= */

.contact-bottom {
    background: #ffffff;
}

.contact-bottom-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 32px;
    border: 1px solid #dbe5f0;
    border-radius: 20px;
    background:
        linear-gradient(
            135deg,
            #f8fbff,
            #ffffff
        );
}

.contact-bottom-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: #7c3aed;
    background: #ede9fe;
    font-size: 1.25rem;
}

.contact-bottom-card h2 {
    margin: 0 0 4px;
    color: var(--navy-900);
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
}

.contact-bottom-card p {
    margin: 0;
    color: var(--slate-600);
    font-size: 0.86rem;
}

.contact-bottom-card p a {
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
}

.contact-email-button {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 18px;
    border-radius: 11px;
    background: #071426;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.2s ease;
}

.contact-email-button:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

.contact-email-button i {
    color: #67e8f9;
}


/* =========================================
   Responsive
   ========================================= */

@media (max-width: 991.98px) {

    .contact-info {
        position: static;
    }

    .contact-form-card {
        padding: 30px;
    }

}


@media (max-width: 767.98px) {

    .contact-hero-content {
        padding: 65px 0 70px;
    }

    .contact-hero h1 {
        font-size: clamp(2.7rem, 12vw, 4rem);
    }

    .contact-hero p {
        font-size: 1rem;
    }

    .contact-form-card {
        padding: 23px;
        border-radius: 18px;
    }

    .contact-form-header {
        align-items: flex-start;
    }

    .form-header-icon {
        width: 44px;
        height: 44px;
    }

    .contact-bottom-card {
        align-items: flex-start;
        flex-wrap: wrap;
        padding: 24px;
    }

    .contact-email-button {
        width: 100%;
        justify-content: center;
        margin-left: 0;
    }

}

/* ========================================
   Contact Server Messages
======================================== */

.contact-server-alert {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;

    width: 100%;

    margin: 0 0 28px;
    padding: 16px 18px;

    border-radius: 16px;

    border: 1px solid rgba(56, 189, 248, 0.22);

    background:
        linear-gradient(
            135deg,
            rgba(37, 99, 235, 0.08),
            rgba(6, 182, 212, 0.06)
        );

    box-shadow:
        0 10px 30px rgba(7, 20, 38, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);

    animation:
        contactMessageIn 0.45s ease-out;

    overflow: hidden;
}


/* Decorative glow */

.contact-server-alert::before {
    content: "";

    position: absolute;

    width: 120px;
    height: 120px;

    top: -70px;
    right: -40px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(56, 189, 248, 0.18),
            transparent 70%
        );

    pointer-events: none;
}


/* ========================================
   Success Icon
======================================== */

.contact-server-alert-icon {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    min-width: 44px;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #06b6d4
        );

    color: #ffffff;

    font-size: 18px;

    box-shadow:
        0 8px 18px rgba(37, 99, 235, 0.22);
}


/* ========================================
   Text
======================================== */

.contact-server-alert > div:nth-child(2) {
    position: relative;

    flex: 1;

    min-width: 0;
}

.contact-server-alert strong {
    display: block;

    margin-bottom: 3px;

    color: #0b1b33;

    font-family: "Space Grotesk", sans-serif;

    font-size: 14px;
    font-weight: 700;

    line-height: 1.4;
}

.contact-server-alert p {
    margin: 0;

    color: #64748b;

    font-size: 13px;

    line-height: 1.55;
}


/* ========================================
   Close Button
======================================== */

.contact-server-alert-close {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    min-width: 30px;

    padding: 0;

    border: 0;
    border-radius: 8px;

    background: rgba(7, 20, 38, 0.04);

    color: #64748b;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.contact-server-alert-close:hover {
    background: rgba(37, 99, 235, 0.1);

    color: #2563eb;

    transform: scale(1.05);
}

.contact-server-alert-close i {
    font-size: 11px;
}


/* ========================================
   Error Message
======================================== */

.contact-server-alert-error {
    border-color:
        rgba(236, 72, 153, 0.22);

    background:
        linear-gradient(
            135deg,
            rgba(236, 72, 153, 0.07),
            rgba(124, 58, 237, 0.06)
        );
}

.contact-server-alert-error
.contact-server-alert-icon {
    background:
        linear-gradient(
            135deg,
            #7c3aed,
            #ec4899
        );

    box-shadow:
        0 8px 18px rgba(124, 58, 237, 0.2);
}


/* ========================================
   Animation
======================================== */

@keyframes contactMessageIn {

    from {
        opacity: 0;

        transform:
            translateY(-10px)
            scale(0.98);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}


/* ========================================
   Mobile
======================================== */

@media (max-width: 575.98px) {

    .contact-server-alert {
        align-items: flex-start;

        gap: 12px;

        padding: 14px;
        margin-bottom: 22px;

        border-radius: 14px;
    }

    .contact-server-alert-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;

        border-radius: 11px;

        font-size: 16px;
    }

    .contact-server-alert strong {
        font-size: 13px;
    }

    .contact-server-alert p {
        font-size: 12px;
    }

    .contact-server-alert-close {
        width: 28px;
        height: 28px;
        min-width: 28px;
    }
}


/* ========================================
   Honeypot Anti-Spam Field
======================================== */

.contact-honeypot {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    padding: 0 !important;
    margin: -1px !important;

    overflow: hidden !important;

    clip: rect(0, 0, 0, 0) !important;

    white-space: nowrap !important;

    border: 0 !important;
}

