/* =========================================================
   forms.css – shared by Waitlist and Checkout
   Load before waitlist.css / checkout.css
   ========================================================= */

body {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    background: var(--bg);
    color: #1a1a1a;
    padding: 0 0 60px;
}

/* ---------- Page intro (was .hero) ---------- */
.page-intro {
    padding: 0 40px 40px;
    border-bottom: 1px solid #ebebeb;
    text-align: center;
    width: 750px;
    max-width: 90vw;
    margin-left: 50%;
    transform: translateX(-50%);
    margin-top: 0;
}
.page-intro h2 { font-size: 28px; font-weight: 400; margin-bottom: 12px; }
.page-intro p  { font-size: 15px; color: #666; line-height: 1.7; margin-bottom: 20px; }

/* Optional pill list under the intro (was .benefits / .benefit) */
.page-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.page-pill  {
    font-size: 12px;
    color: #555;
    background: white;
    border-radius: 100px;
    padding: 5px 14px;
    border: 1px solid #ebebeb;
}

/* ---------- Section label (was .sec-label) ---------- */
.section-label {
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #aaa;
    padding: 32px 40px 16px;
    text-align: center;
}

/* ---------- Form card (was .form-inner) ---------- */
.form-wrap { padding: 0 40px; }
.form-card { border: 1px solid #ebebeb; border-radius: 8px; overflow: hidden; background: var(--bg); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; }

/* ---------- Fields ---------- */
.field {
    padding: 16px 20px;
    border-bottom: 1px solid #ebebeb;
    border-right: 1px solid #ebebeb;
}
.field--full { grid-column: 1 / -1; border-right: none; }  /* spans both columns        */
.field--end  { border-right: none; }                       /* right-hand field of a pair */
.field--last { border-bottom: none; }                      /* last row of the card       */

.field label {
    display: block;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #aaa;
    margin-bottom: 6px;
}
.field label span { color: var(--accent); }

.field input,
.field select,
.field textarea {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    padding: 0;
    border-radius: 0;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: #1a1a1a;
}
.field input::placeholder,
.field textarea::placeholder { color: #ccc; }
.field select option { background: var(--bg); }
.field textarea { resize: none; min-height: 68px; }

.field:hover select { color: var(--accent); }
.field:focus-within { background: rgba(255,116,0,.04); }
.field:focus-within label { color: var(--accent); }

/* ---------- File upload ---------- */
.file-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #aaa;
    cursor: pointer;
    border: 1px dashed #ddd;
    border-radius: 4px;
    padding: 7px 14px;
    transition: border-color 0.15s, color 0.15s;
}
.file-label:hover { border-color: var(--accent); color: var(--accent); }
#fileInput { display: none; }
#fileName  { font-size: 12px; color: var(--accent); margin-top: 6px; }

/* ---------- Footer & button ---------- */
.form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid #ebebeb;
}
.form-footer--stack { flex-direction: column; align-items: stretch; }
.form-note { font-size: 12px; color: #aaa; }

.btn {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px 30px;
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    font-weight: 400;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    display: inline-block;
    transition: opacity 0.15s;
}
.btn:hover    { opacity: 0.85; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn--block   { width: 100%; }

/* ---------- Consent checkbox ---------- */
.consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    line-height: 1.4;
}
.consent--inline { grid-column: 1 / -1; padding: 0 20px 20px; }  /* inside .form-grid */

.consent-check {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    position: relative;
    margin-top: 2px;
    transition: all 0.2s ease;
}
.consent-check:checked { background: var(--accent); }
.consent-check:checked::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* ---------- Messages ---------- */
.form-error {
    display: none;
    color: #e0645a;
    font-size: 13px;
    margin-top: 6px;
}
.form-error--visible { display: block; }

.form-success { display: none; text-align: center; padding: 48px 20px; }
.form-success.on { display: block; }
.form-success h3 { font-size: 20px; font-weight: 400; margin-bottom: 8px; }
.form-success p  { font-size: 14px; color: #888; }
.form-success .tick { font-size: 32px; color: var(--accent); margin-bottom: 16px; }

/* ---------- Order / cart summary (Cart + Checkout) ---------- */
.summary-items { padding: 16px 20px; border-bottom: 1px solid #ebebeb; }
#cart-items    { font-size: 14px; }

.summary-section { padding: 16px 20px; border-bottom: 1px solid #ebebeb; }

/* .order-item kept as alias in case cart-ui.js still renders rows with it */
.summary-line,
.order-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 14px;
}
.summary-note { font-size: 12px; color: #aaa; margin-top: 6px; }

.summary-total { padding: 16px 20px; font-size: 16px; font-weight: 400; }
.summary-total .summary-value { color: var(--accent); font-weight: 500; }

.empty-state { text-align: center; padding: 48px 20px; }
.empty-state h3 { font-size: 20px; font-weight: 400; margin-bottom: 20px; }
.empty-state .btn { max-width: 240px; }

/* Message card (order confirmation, payment status) */
.message-box { text-align: center; padding: 48px 20px; }
.message-box p { font-size: 14px; color: #666; line-height: 1.7; margin-bottom: 12px; }
.message-box strong { font-weight: 500; color: #1a1a1a; }
.message-box .tick { font-size: 32px; color: var(--accent); margin-bottom: 16px; }
.message-box .btn { margin-top: 12px; }
.message-highlight { font-weight: 500; letter-spacing: .5px; color: var(--accent); }

/* Secondary button + narrow centered page column */
.btn--ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.form-wrap--narrow { max-width: 750px; margin: 0 auto; }

/* ---------- Misc ---------- */
.page-link { text-align: center; margin-top: 20px; font-size: 15px; color: #aaa; }
.page-link a { color: var(--accent); text-decoration: none; }

.hidden { display: none; }

/* ---------- Portrait / mobile ---------- */
@media (orientation: portrait) {
    .page-intro, .form-wrap, .section-label { padding-left: 20px; padding-right: 20px; }
    .form-grid { grid-template-columns: 1fr; }
    .field { border-right: none; }
}