/* =========================================================
   CODNESTA CONTACT PAGE
   Page-specific styles only
========================================================= */

/* =========================================================
   PAGE FOUNDATION
========================================================= */

.contact-page {
    width: 100%;
    overflow: hidden;
    background: #ffffff;
    color: var(--color-text, #263946);
}

.contact-page *,
.contact-page *::before,
.contact-page *::after {
    box-sizing: border-box;
}

/* =========================================================
   HERO CUSTOM ADJUSTMENT
========================================================= */

.page-hero--contact .page-hero__background-word {
    font-size: clamp(4rem, 16vw, 11rem);
    letter-spacing: 0.05em;
}

/* =========================================================
   CONTACT SECTIONS
========================================================= */

.contact-section {
    position: relative;
    padding: 6.5rem 0;
    background: #ffffff;
}

.contact-section--soft {
    background: #f5f8fa;
}

.contact-section[id] {
    scroll-margin-top: 6rem;
}

/* =========================================================
   SHARED HEADINGS & EYEBROWS
========================================================= */

.contact-heading {
    max-width: 760px;
    margin: 0 auto 3.5rem;
    text-align: center;
}

/* Scattered Broom-Bristle Brush Stroke for Eyebrows */
.section-label,
.contact-eyebrow {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2, 0.5rem);
    
    color: #ffffff !important;
    padding: 0.35em 1.2em;
    margin-bottom: 1rem;
    
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    
    z-index: 1;
}

/* Base Layer: CodNesta Navy Scattered Broom Stroke */
.section-label::before,
.contact-eyebrow::before {
    content: "";
    position: absolute;
    inset: -6px -16px;
    z-index: -1;
    
    background: linear-gradient(110deg, #0a3857 0%, #06192e 100%);
    
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 60' preserveAspectRatio='none'%3E%3Cpath d='M25,8 L35,4 L42,10 L160,5 L275,8 L285,3 L290,12 L298,6 L292,20 L315,15 L296,28 L318,34 L292,42 L308,48 L285,52 L160,55 L35,50 L25,56 L20,44 L2,48 L18,36 L0,28 L22,22 L8,12 Z' fill='%23000'/%3E%3Ccircle cx='312' cy='10' r='1.5' fill='%23000'/%3E%3Ccircle cx='316' cy='46' r='2' fill='%23000'/%3E%3Ccircle cx='5' cy='8' r='1.5' fill='%23000'/%3E%3Ccircle cx='3' cy='52' r='2' fill='%23000'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 60' preserveAspectRatio='none'%3E%3Cpath d='M25,8 L35,4 L42,10 L160,5 L275,8 L285,3 L290,12 L298,6 L292,20 L315,15 L296,28 L318,34 L292,42 L308,48 L285,52 L160,55 L35,50 L25,56 L20,44 L2,48 L18,36 L0,28 L22,22 L8,12 Z' fill='%23000'/%3E%3Ccircle cx='312' cy='10' r='1.5' fill='%23000'/%3E%3Ccircle cx='316' cy='46' r='2' fill='%23000'/%3E%3Ccircle cx='5' cy='8' r='1.5' fill='%23000'/%3E%3Ccircle cx='3' cy='52' r='2' fill='%23000'/%3E%3C/svg%3E");
    
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

/* Accent Layer: CodNesta Gold Bristle Underlay */
.section-label::after,
.contact-eyebrow::after {
    content: "";
    position: absolute;
    inset: -4px -20px;
    z-index: -2;
    
    background: var(--color-gold, #f4b400);
    opacity: 0.9;
    
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 60' preserveAspectRatio='none'%3E%3Cpath d='M20,6 L160,3 L280,6 L295,2 L288,16 L312,22 L290,32 L319,40 L282,50 L160,57 L28,52 L15,58 L22,40 L0,32 L20,24 L2,14 Z' fill='%23000'/%3E%3Ccircle cx='315' cy='28' r='2.5' fill='%23000'/%3E%3Ccircle cx='6' cy='40' r='2' fill='%23000'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 60' preserveAspectRatio='none'%3E%3Cpath d='M20,6 L160,3 L280,6 L295,2 L288,16 L312,22 L290,32 L319,40 L282,50 L160,57 L28,52 L15,58 L22,40 L0,32 L20,24 L2,14 Z' fill='%23000'/%3E%3Ccircle cx='315' cy='28' r='2.5' fill='%23000'/%3E%3Ccircle cx='6' cy='40' r='2' fill='%23000'/%3E%3C/svg%3E");
    
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    transform: rotate(-1deg) scaleX(1.02);
}

.contact-title {
    margin: 0;
    color: var(--color-navy, #0a3857);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 850;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.contact-title span {
    display: inline-block;
    color: var(--color-gold, #f4b400);
}

.contact-description {
    max-width: 700px;
    margin: 1.25rem auto 0;
    color: var(--color-text-secondary, #667580);
    font-size: 1rem;
    line-height: 1.8;
}

.contact-content .contact-description {
    max-width: none;
    margin-right: 0;
    margin-left: 0;
}

/* =========================================================
   CONTACT METHODS
========================================================= */

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

.contact-method {
    position: relative;
    padding: 2rem;
    overflow: hidden;
    border: 1px solid #dce5ea;
    border-radius: 1.1rem;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(10, 56, 87, 0.07);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-7px);
    border-color: rgba(244, 180, 0, 0.7);
    box-shadow: 0 18px 45px rgba(10, 56, 87, 0.12);
}

.contact-method__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 1.4rem;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(10, 56, 87, 0.08);
    color: var(--color-navy, #0a3857);
    font-size: 1.35rem;
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.contact-method:hover .contact-method__icon {
    transform: translateY(-4px) rotate(-3deg);
    background: var(--color-navy, #0a3857);
    color: var(--color-gold, #f4b400);
}

.contact-method__title {
    margin: 0 0 0.75rem;
    color: var(--color-navy, #0a3857);
    font-size: 1.18rem;
    font-weight: 800;
}

.contact-method__description {
    margin: 0 0 1rem;
    color: var(--color-text-secondary, #667580);
    font-size: 0.94rem;
    line-height: 1.7;
}

.contact-method__link,
.contact-method__value {
    display: inline-flex;
    align-items: center;
    color: var(--color-navy, #0a3857);
    font-size: 0.95rem;
    font-weight: 800;
    text-decoration: none;
}

.contact-method__link:hover {
    color: var(--color-gold, #f4b400);
}

/* =========================================================
   CONTACT FORM LAYOUT & CONTENT
========================================================= */

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
    gap: clamp(2.5rem, 6vw, 5rem);
}

.contact-content {
    max-width: 580px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* =========================================================
   CONTACT NOTICE
========================================================= */

.contact-notice {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1.5rem;
    border: 1px solid #dce5ea;
    border-left: 4px solid var(--color-gold, #f4b400);
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(10, 56, 87, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-notice:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 35px rgba(10, 56, 87, 0.1);
}

.contact-notice__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 0.9rem;
    background: #f7f7f7;
    color: var(--color-navy, #0a3857);
    font-size: 1.15rem;
}

.contact-notice__title {
    margin: 0 0 0.45rem;
    color: var(--color-navy, #0a3857);
    font-size: 1.05rem;
    font-weight: 800;
}

.contact-notice__description {
    margin: 0;
    color: var(--color-text-secondary, #667580);
    font-size: 0.925rem;
    line-height: 1.65;
}

.contact-notice__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.8rem;
    color: var(--color-navy, #0a3857);
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
}

.contact-notice__link i {
    color: var(--color-gold, #f4b400);
    transition: transform 0.3s ease;
}

.contact-notice__link:hover i {
    transform: translateX(4px);
}

/* =========================================================
   CONTACT FORM & PREDEV FORM
========================================================= */

.contact-form,
.predev-form {
    display: grid;
    gap: 1.2rem;
    padding: clamp(1.6rem, 4vw, 2.5rem);
    border: 1px solid #dce5ea;
    border-radius: 1.25rem;
    background: var(--color-navy, #0a3857);
    box-shadow: 0 18px 45px rgba(10, 56, 87, 0.1);
}

.contact-form__group,
.predev-form__group {
    display: grid;
    gap: 0.55rem;
}

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

.contact-form__label,
.predev-form__label {
    color: #f2f2f2;
    font-size: 0.9rem;
    font-weight: 700;
}

.contact-form__input,
.contact-form__select,
.contact-form__textarea,
.predev-form__input,
.predev-form__select,
.predev-form__textarea {
    width: 100%;
    border: 1px solid #cfdbe2;
    border-radius: 0.75rem;
    background: #ffffff;
    color: var(--color-text, #263946);
    font: inherit;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.contact-form__input,
.contact-form__select,
.predev-form__input,
.predev-form__select {
    min-height: 52px;
    padding: 0.75rem 0.9rem;
}

.contact-form__textarea,
.predev-form__textarea {
    min-height: 140px;
    padding: 0.9rem;
    resize: vertical;
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder,
.predev-form__input::placeholder,
.predev-form__textarea::placeholder {
    color: #95a2ab;
}

.contact-form__input:focus,
.contact-form__select:focus,
.contact-form__textarea:focus,
.predev-form__input:focus,
.predev-form__select:focus,
.predev-form__textarea:focus {
    outline: none;
    border-color: var(--color-gold, #f4b400);
    box-shadow: 0 0 0 4px rgba(244, 180, 0, 0.2);
}

.predev-form__agreement {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: #d1dbe0;
    font-size: 0.88rem;
    line-height: 1.5;
}

.predev-form__agreement input[type="checkbox"] {
    accent-color: var(--color-gold, #f4b400);
    width: 18px;
    height: 18px;
    margin-top: 0.15rem;
}

.contact-form__submit,
.predev-form__submit {
    width: 100%;
    margin-top: 0.25rem;
}

.predev-form__note {
    color: #9db2bf;
    font-size: 0.82rem;
    text-align: center;
    margin: 0;
}

/* =========================================================
   QUICK DIRECTIONS
========================================================= */

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

.contact-direction {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid #dce5ea;
    border-radius: 1rem;
    background: #ffffff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(10, 56, 87, 0.06);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-direction:hover {
    transform: translateY(-5px);
    border-color: rgba(244, 180, 0, 0.7);
    box-shadow: 0 16px 38px rgba(10, 56, 87, 0.11);
}

.contact-direction__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 0.9rem;
    background: #fcfbfb;
    color: var(--color-navy, #0a3857);
    font-size: 1.1rem;
}

.contact-direction__content {
    display: grid;
    gap: 0.25rem;
}

.contact-direction__content strong {
    color: var(--color-navy, #0a3857);
    font-size: 1rem;
    font-weight: 800;
}

.contact-direction__content small {
    color: var(--color-text-secondary, #667580);
    font-size: 0.86rem;
    line-height: 1.5;
}

.contact-direction > i {
    color: var(--color-gold, #f4b400);
    transition: transform 0.3s ease;
}

.contact-direction:hover > i {
    transform: translateX(4px);
}

/* =========================================================
   ACCESSIBILITY
========================================================= */

.contact-page a:focus-visible,
.contact-page button:focus-visible {
    outline: 3px solid var(--color-gold, #f4b400);
    outline-offset: 4px;
}

/* =========================================================
   RESPONSIVE BREAKPOINTS
========================================================= */

@media (max-width: 1000px) {
    .contact-section {
        padding: 5.5rem 0;
    }

    .contact-methods {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-content {
        max-width: 760px;
    }
}

@media (max-width: 760px) {
    .contact-methods,
    .contact-directions,
    .predev-form__row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .page-hero--contact .page-hero__background-word {
        font-size: clamp(3rem, 20vw, 5.5rem);
        letter-spacing: 0.02em;
    }

    .contact-section {
        padding: 4.3rem 0;
    }

    .contact-heading {
        margin-bottom: 2.5rem;
    }

    .contact-title {
        font-size: clamp(1.9rem, 10vw, 2.7rem);
    }

    .contact-method,
    .contact-form,
    .predev-form {
        padding: 1.5rem 1.25rem;
    }

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

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

    .contact-direction > i {
        display: none;
    }
}

/* =========================================================
   FORM LOADER OVERLAY
========================================================= */

.form-loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 56, 87, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    border-radius: 1.25rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(244, 180, 0, 0.3);
    border-top: 4px solid var(--color-gold, #f4b400);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-text {
    color: #ffffff;
    margin-top: 12px;
    font-size: 0.95rem;
    font-weight: 500;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}