/* =========================
   CONTACT HEADER
========================= */

.contact-header{

    max-width:var(--container);
    margin:auto;
    padding:clamp(30px, 5vw, 56px) var(--pad) 0;

}

.contact-header h1{

    font-size:clamp(30px, 4vw, 42px);
    letter-spacing:-1.5px;
    margin-bottom:10px;

}

.contact-header p{

    font-size:16px;
    color:#6a6a6a;
    max-width:520px;

}


/* =========================
   LAYOUT
========================= */

.contact-layout{

    max-width:var(--container);
    margin:auto;
    padding:clamp(30px, 5vw, 50px) var(--pad) clamp(60px, 9vw, 100px);
    display:grid;
    grid-template-columns:260px 1fr;
    gap:clamp(30px, 5vw, 60px);
    align-items:start;

}


/* =========================
   CONTACT INFO SIDEBAR
========================= */

.contact-info{

    display:flex;
    flex-direction:column;
    gap:28px;
    position:sticky;
    top:100px;

}

.contact-info-block h3{

    font-size:14px;
    text-transform:uppercase;
    letter-spacing:.6px;
    color:#8a8a8a;
    margin-bottom:8px;

}

.contact-info-block a{

    font-size:16px;
    font-weight:700;
    color:var(--blue);

}

.contact-info-block p{

    font-size:14px;
    line-height:1.6;
    color:#6a6a6a;
    margin-top:6px;

}


/* =========================
   FORM
========================= */

.contact-form-wrap{

    background:var(--cream);
    border-radius:var(--radius-lg);
    padding:clamp(24px, 4vw, 40px);

}

.form-row{

    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;

}

.form-group{

    display:flex;
    flex-direction:column;
    margin-bottom:20px;
    position:relative;

}

.form-group label{

    font-size:14px;
    font-weight:600;
    color:var(--ink);
    margin-bottom:8px;

}

.optional-tag{

    font-weight:400;
    color:#9a9a9a;

}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea{

    font-family:inherit;
    font-size:15px;
    color:var(--ink);
    background:var(--paper);
    border:1px solid var(--line);
    border-radius:var(--radius-sm);
    padding:13px 16px;
    resize:vertical;
    transition:border-color .2s ease, box-shadow .2s ease;

}

.form-group input:focus,
.form-group textarea:focus{

    outline:none;
    border-color:var(--blue);
    box-shadow:0 0 0 3px rgba(56, 103, 255, .15);

}

.field-invalid{

    border-color:#c2402e !important;

}

.form-error{

    font-size:13px;
    color:#c2402e;
    margin-top:6px;
    min-height:16px;

}

.contact-submit{

    font-weight:700;
    font-size:15px;
    padding:15px 34px;
    border-radius:999px;
    background:var(--ink);
    color:var(--paper);
    transition:transform .2s ease, opacity .2s ease;

}

.contact-submit:hover{

    transform:translateY(-3px);

}

.form-success{

    margin-top:4px;
    font-size:15px;
    font-weight:600;
    color:#1f8a4c;
    background:rgba(31,138,76,.08);
    border-radius:var(--radius-sm);
    padding:16px 18px;

}


/* =========================
   CUSTOM DROPDOWN — SHARED TRIGGER
========================= */

.custom-select{

    position:relative;

}

.custom-select-trigger{

    width:100%;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    font-family:inherit;
    font-size:15px;
    text-align:left;
    color:var(--ink);
    background:var(--paper);
    border:1px solid var(--line);
    border-radius:var(--radius-sm);
    padding:13px 16px;
    transition:border-color .2s ease, box-shadow .2s ease;

}

.custom-select-value{

    color:#9a9a9a;

}

.custom-select-value.has-value{

    color:var(--ink);
    font-weight:600;

}

.custom-select-trigger:focus,
.custom-select-trigger[aria-expanded="true"]{

    outline:none;
    border-color:var(--blue);
    box-shadow:0 0 0 3px rgba(56, 103, 255, .15);

}

.custom-select-arrow{

    flex-shrink:0;
    font-size:13px;
    color:#8a8a8a;
    transition:transform .2s ease;

}

.custom-select-trigger[aria-expanded="true"] .custom-select-arrow{

    transform:rotate(180deg);

}


/* =========================
   DESKTOP INLINE LIST
   Positioned dropdown under the trigger. Hidden entirely on mobile —
   the trigger opens the bottom sheet instead (see contact.js).
========================= */

.custom-select-list{

    position:absolute;
    top:calc(100% + 8px);
    left:0;
    right:0;
    z-index:20;
    max-height:280px;
    overflow-y:auto;
    background:var(--paper);
    border:1px solid var(--line);
    border-radius:var(--radius-sm);
    box-shadow:0 12px 30px rgba(0,0,0,.12);
    padding:6px;

}

.custom-select-list li{

    font-size:15px;
    padding:11px 14px;
    border-radius:8px;
    color:var(--ink);
    cursor:pointer;
    transition:background .15s ease;

}

.custom-select-list li:hover,
.custom-select-list li:focus{

    background:var(--sand);
    outline:none;

}

.custom-select-list li.selected{

    background:var(--sand);
    font-weight:700;

}


/* =========================
   MOBILE BOTTOM SHEET
========================= */

.reason-sheet-backdrop{

    position:fixed;
    inset:0;
    z-index:2000;
    background:rgba(10,10,10,.5);
    opacity:0;
    pointer-events:none;
    transition:opacity .25s ease;

}

.reason-sheet-backdrop.open{

    opacity:1;
    pointer-events:auto;

}

.reason-sheet{

    position:fixed;
    left:0;
    right:0;
    bottom:0;
    z-index:2001;
    background:var(--paper);
    border-radius:20px 20px 0 0;
    padding:10px 22px calc(24px + env(safe-area-inset-bottom));
    max-height:75vh;
    overflow-y:auto;
    transform:translateY(100%);
    transition:transform .3s ease;
    box-shadow:0 -12px 30px rgba(0,0,0,.15);

}

.reason-sheet.open{

    transform:translateY(0);

}

.reason-sheet-handle{

    width:40px;
    height:4px;
    border-radius:999px;
    background:var(--line);
    margin:6px auto 14px;

}

.reason-sheet-head{

    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:10px;

}

.reason-sheet-head h3{

    font-size:18px;
    letter-spacing:-.3px;

}

.reason-sheet-close{

    width:34px;
    height:34px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:var(--sand);
    font-size:15px;

}

.reason-sheet-list li{

    display:flex;
    align-items:center;
    justify-content:space-between;
    font-size:16px;
    padding:16px 4px;
    border-bottom:1px solid var(--line);
    color:var(--ink);

}

.reason-sheet-list li:last-child{

    border-bottom:none;

}

.reason-sheet-check{

    opacity:0;
    color:var(--blue);
    font-size:16px;
    transition:opacity .15s ease;

}

.reason-sheet-list li.selected .reason-sheet-check{

    opacity:1;

}

.reason-sheet-list li.selected{

    font-weight:700;

}


/* =========================
   RESPONSIVE
========================= */

@media(max-width:900px){

    .contact-layout{

        grid-template-columns:1fr;

    }

    .contact-info{

        position:static;
        flex-direction:row;
        flex-wrap:wrap;
        gap:24px 40px;

    }

    .contact-info-block{

        flex:1 1 200px;

    }

}

@media(max-width:700px){

    .form-row{

        grid-template-columns:1fr;

    }

    /* The inline list is desktop-only; contact.js routes the mobile
       trigger to the bottom sheet instead, but keep this as a safety
       net in case the list is ever left open while resizing down. */
    .custom-select-list{

        display:none;

    }

}