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

.contact-section {
    width: 100%;
    padding: var(--section-pad-top) 0 var(--section-pad-bottom);
    background: linear-gradient(145deg, rgba(5, 16, 29, 0.98), rgba(11, 28, 46, 0.97));
    border-bottom: 1px solid rgba(125, 211, 252, 0.18);
    box-shadow: inset 0 1px 0 rgba(125, 211, 252, 0.08), inset 0 -1px 0 rgba(56, 189, 248, 0.1);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 55%;
    height: 100%;
    background: radial-gradient(circle at 18% 15%, rgba(56, 189, 248, 0.08), transparent 58%);
    pointer-events: none;
}

.contact-wrap {
    max-width: var(--content-max-lg);
    margin: 0 auto;
    padding: 0 1.25rem;
    position: relative;
    z-index: 1;
}

.contact-header {
    text-align: center;
    padding-top: var(--section-title-top-offset);
    margin-bottom: var(--section-heading-gap);
}

.contact-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--section-eyebrow-color);
    margin: 0 0 0.6rem;
    text-shadow: 0 0 18px var(--section-eyebrow-glow);
}

.contact-heading {
    font-family: "Space Grotesk", "Lato", sans-serif;
    font-size: clamp(1.95rem, 3.2vw, 2.8rem);
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    position: relative;
    display: inline-block;
    padding-bottom: 0.7rem;
}

.contact-heading::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    border-radius: 99px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.88) 40%, rgba(255,255,255,0.96) 50%, rgba(255,255,255,0.88) 60%, transparent 100%);
    background-size: 40px 100%;
    background-repeat: no-repeat;
    background-position: -40px 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
}

.contact-heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--section-underline-start), var(--section-underline-end));
    box-shadow: 0 0 12px var(--section-underline-glow);
    opacity: 0.22;
}

.contact-heading.ul-animate::before {
    animation: ul-sweep-loop 6s ease-out 0.4s infinite;
}

.contact-heading.ul-animate::after {
    animation: ul-bar-reveal 0.55s ease-out 0.4s forwards;
}

.contact-subtitle {
    margin: 0.85rem auto 0;
    max-width: 680px;
    color: rgba(186, 230, 253, 0.82);
    font-size: 0.98rem;
    line-height: 1.65;
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(125, 211, 252, 0.24);
    border-radius: 14px;
    padding: 1.35rem;
    box-shadow: inset 0 0 1px rgba(56, 189, 248, 0.1), 0 12px 28px rgba(0, 0, 0, 0.22);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.contact-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.contact-field--full {
    grid-column: 1 / -1;
}

.contact-label {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(186, 230, 253, 0.9);
}

.contact-input,
.contact-textarea {
    width: 100%;
    border: 1px solid rgba(125, 211, 252, 0.2);
    border-radius: 10px;
    background: rgba(7, 19, 33, 0.88);
    color: #e0f2fe;
    font-size: 0.92rem;
    padding: 0.7rem 0.8rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-input:focus,
.contact-textarea:focus {
    outline: none;
    border-color: rgba(103, 232, 249, 0.7);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.16);
}

.contact-textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-actions {
    margin-top: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-submit {
    border: 2px solid var(--accent-cyan);
    background: rgba(7, 19, 33, 0.92);
    color: #fff;
    border-radius: 10px;
    padding: 0.48rem 1.25rem;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    box-shadow: none;
    transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.18s;
    cursor: pointer;
    outline: none;
    font-family: "Space Grotesk", "Lato", sans-serif;
}
}

.contact-submit::before {
    display: none;
}
}

.contact-submit:hover,
.contact-submit:focus-visible {
    background: rgba(7, 19, 33, 0.99);
    border-color: var(--accent-green);
    color: #bae6fd;
    transform: translateY(-1px) scale(1.03);
}

.contact-submit:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
}
}

.contact-submit:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
    filter: grayscale(0.2);
}

.contact-status {
    min-height: 1.25rem;
    font-size: 0.84rem;
    color: rgba(186, 230, 253, 0.88);
}

.contact-status.is-success {
    color: #6ee7b7;
}

.contact-status.is-error {
    color: #fda4af;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 740px) {
    .contact-section {
        padding: var(--section-pad-top-mobile) 0 var(--section-pad-bottom-mobile);
    }

    .contact-form {
        padding: 1rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}