/* ==========================================================================
   Forms and simple content pages.

   Requires css/design-tokens.css.

   Shared by contact and the account-recovery pages, which were all running the
   same template layout: an owl carousel holding a single static photo beside a
   floating card. One stylesheet so they cannot drift apart the way the header
   did.
   ========================================================================== */

body.form-page {
    background-color: var(--paper);
    color: var(--ink);
    font-family: var(--font-ui);
    -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------------------------------
   Page header
   -------------------------------------------------------------------------- */

.page-head {
    padding: 48px 0 32px;
    background: linear-gradient(180deg, var(--tile-green) 0%, var(--paper) 100%);
    border-bottom: 1px solid var(--divider);
}

.page-head__inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

.page-head__kicker {
    display: block;
    margin-bottom: 4px;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1rem;
    color: var(--turmeric-text);
}

.page-head__title {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.8rem, 1.4rem + 1.8vw, 2.6rem);
    line-height: 1.12;
    color: var(--ink);
}

.page-head__lead {
    max-width: 60ch;
    margin: 12px 0 0;
    font-size: 1.02rem;
    line-height: 1.6;
    color: var(--dark-grey);
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.page-body {
    max-width: 1080px;
    margin: 0 auto;
    padding: 44px 24px 72px;
}

.split {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
    align-items: start;
}

/* --------------------------------------------------------------------------
   Fields
   -------------------------------------------------------------------------- */

.field {
    margin-bottom: 18px;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.field__label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--cement-grey);
}

.field__input,
.form-page .form-control {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid var(--divider);
    border-radius: var(--r-sm) !important;
    background: #fff;
    color: var(--ink);
    font-family: var(--font-ui);
    font-size: 0.98rem;
    line-height: 1.5;
    transition: border-color 0.15s ease;
}

.field__input::placeholder {
    color: var(--arrow-grey);
}

/* The theme sets `box-shadow: none !important` on .form-control, which removes
   whatever focus ring Bootstrap would have drawn. The outline carries it. */
.field__input:focus,
.form-page .form-control:focus {
    border-color: var(--cardamom);
    outline: 2px solid rgba(11, 68, 51, 0.25);
    outline-offset: 1px;
}

textarea.field__input {
    min-height: 160px;
    resize: vertical;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn-form {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 30px;
    border: 0;
    border-radius: var(--r-md);
    background: var(--cardamom);
    color: var(--paper);
    font-family: var(--font-ui);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.btn-form:hover {
    background: var(--cardamom-strong);
    color: var(--paper);
    box-shadow: var(--shadow-raised);
}

.btn-form:focus-visible {
    outline: 3px solid var(--turmeric);
    outline-offset: 2px;
}

.btn-form--ghost {
    background: transparent;
    color: var(--cardamom-strong);
    box-shadow: inset 0 0 0 1.4px rgba(11, 68, 51, 0.45);
}

.btn-form--ghost:hover {
    background: rgba(11, 68, 51, 0.08);
    color: var(--cardamom-strong);
    box-shadow: inset 0 0 0 1.4px rgba(11, 68, 51, 0.45);
}

/* --------------------------------------------------------------------------
   Alerts — the template left these permanently in the flow, so an empty red
   bar sat above the form until script hid it.
   -------------------------------------------------------------------------- */

.alert-note {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: var(--r-md);
    font-size: 0.94rem;
    line-height: 1.55;
}

.alert-note[hidden],
.form-page .alert[hidden] {
    display: none !important;
}

.alert-note--error {
    border: 1px solid rgba(178, 59, 44, 0.35);
    border-left: 4px solid var(--chili);
    background: #FCF3F1;
    color: #7A2618;
}

.alert-note--ok {
    border: 1px solid rgba(11, 68, 51, 0.28);
    border-left: 4px solid var(--cardamom);
    background: var(--tile-green);
    color: var(--cardamom-strong);
}

/* --------------------------------------------------------------------------
   Aside — contact details, help text
   -------------------------------------------------------------------------- */

.aside-card {
    padding: 28px;
    border-radius: var(--r-lg);
    background: #fff;
    box-shadow: var(--shadow-card);
}

.aside-card__title {
    margin: 0 0 20px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--ink);
}

.aside-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.aside-list li {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    font-size: 0.94rem;
    line-height: 1.6;
    color: var(--cement-grey);
}

.aside-list li:last-child {
    margin-bottom: 0;
}

.aside-list__icon {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--cardamom);
}

.aside-list__label {
    display: block;
    font-weight: 600;
    color: var(--ink);
}

.aside-list a {
    color: var(--cardamom);
    text-decoration: none;
}

.aside-list a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Narrow single-column pages — password reset, invite gate
   -------------------------------------------------------------------------- */

.narrow {
    max-width: 460px;
    margin: 0 auto;
}

.narrow-card {
    padding: 32px;
    border-radius: var(--r-lg);
    background: #fff;
    box-shadow: var(--shadow-card);
}

.narrow-foot {
    margin: 22px 0 0;
    font-size: 0.9rem;
    color: var(--cement-grey);
    text-align: center;
}

.narrow-foot a {
    color: var(--cardamom);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 860px) {
    .split {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

@media (max-width: 640px) {
    .page-head {
        padding: 32px 0 24px;
    }

    .page-head__inner,
    .page-body {
        padding-left: 16px;
        padding-right: 16px;
    }

    .page-body {
        padding-top: 32px;
        padding-bottom: 52px;
    }

    .field-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .btn-form {
        width: 100%;
    }

    .aside-card,
    .narrow-card {
        padding: 22px 18px;
    }
}
