/* Members registration & email verification pages of the new design.
   The form is validated & sent by js/members.js; the shared form pieces are in forms.css. */

/* — a bit more space below the navbar on the registration page — */
.page-title.members-title { padding-top: 48px; }

/* — hero: the same road sign as the contact page — */
.members-hero { aspect-ratio: 12 / 5; margin: 32px 6px 6px; }
.members-hero > img { position: absolute; inset: 0; object-position: 75% center; }
@media (max-width: 720px) {
    .members-hero { aspect-ratio: 4 / 3; }
}

/* — form beside the steps — */
.members-grid {
    margin-top: 40px; padding: 6px;
    display: grid; grid-template-columns: minmax(0, 3fr) minmax(260px, 2fr); gap: 48px; align-items: start;
}
@media (max-width: 800px) {
    .members-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}

.members-form { display: flex; flex-direction: column; gap: 16px; }
.members-form__fields { display: flex; flex-direction: column; gap: 16px; }
.members-form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.members-form__help { display: block; margin-top: 4px; font-size: 12px; line-height: 1.45; opacity: 0.65; }
.members-form__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.members-form__foot .btn { margin-left: auto; }

/* date of birth: day · month · year */
.members-dob { display: grid; grid-template-columns: 1fr 1.6fr 1.2fr; gap: 6px; }

/* consent */
.members-consent { padding-top: 16px; border-top: 1px solid var(--color-divider); }
.members-consent__label { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: 14px; line-height: 1.55; cursor: pointer; }
.members-consent__label input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--color-accent); }
.members-consent #consent-error label.error { margin-left: 30px; }
.members-consent__label--optional { margin-top: 12px; }
.members-consent__label--optional small { opacity: 0.65; }

/* terms of the registration: a white box that scrolls, above the consent checkbox */
.members-terms__title { color: var(--color-accent-700); margin: 0 0 10px; }
.members-terms {
    max-height: 260px; overflow-y: auto; margin-bottom: 16px; padding: 14px 16px;
    background: #fff; border: 1px solid var(--color-divider);
    font-size: 13px; line-height: 1.6;
}
.members-terms p { margin: 0 0 0.8em; }
.members-terms p:last-child { margin-bottom: 0; }
.members-terms__head {
    margin: 1.6em 0 0.6em; padding-bottom: 4px; font-size: 15px; line-height: 1.3;
    letter-spacing: 0; text-transform: none; color: var(--color-accent-700);
    border-bottom: 1px solid var(--color-divider); /* a line under each heading, across the box */
}

/* — how it works: numbered steps — */
.members-steps h6 { color: var(--color-accent-700); margin-top: 0; }
.members-steps ol { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.members-steps li {
    counter-increment: step;
    display: grid; grid-template-columns: 40px 1fr; gap: 8px;
    padding: 14px 0; border-top: 1px solid var(--color-divider);
    font-size: 15px; line-height: 1.5;
}
.members-steps li::before {
    content: counter(step, decimal-leading-zero);
    font-family: var(--font-heading); font-weight: var(--font-heading-weight);
    font-size: 22px; line-height: 1.1; color: var(--color-accent-700);
}

/* ————————————————— verification result ————————————————— */
.members-result { margin-top: 32px; max-width: 84ch; font-size: 16px; line-height: 1.65; }
.members-result > p { margin: 0 0 1em; }
.members-result > .form-note { margin-bottom: 24px; font-size: 15px; }
.members-payment { margin: 28px 6px; padding: 22px; gap: 12px; }
.members-payment__table th { width: 30%; white-space: nowrap; }
.members-payment__amount {
    font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 22px;
}
.members-payment__amount small { font-family: var(--font-body); font-weight: 400; font-size: 13px; opacity: 0.7; }
.members-payment__iban { font-family: ui-monospace, monospace; letter-spacing: 0.04em; overflow-wrap: anywhere; }
.members-result__back { margin-top: 32px !important; }
