/**
 * SHA Registration Form Styles
 *
 * Clean, responsive styles for the event registration form.
 * Uses BEM naming convention with .sha-reg prefix.
 * Matches SHA Theme design system (Inter, navy/red, rounded).
 */

/* ─── Base & Reset ────────────────────────────────────────── */
.sha-reg {
    max-width: 800px;
    margin: 0 auto;
    font-family: Inter, system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    color: #111827;
}

/* Honeypot field — hidden from humans */
.sha-reg__hp {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
    pointer-events: none;
}

.sha-reg *,
.sha-reg *::before,
.sha-reg *::after {
    box-sizing: border-box;
}

/* ─── Sections ────────────────────────────────────────────── */
.sha-reg__section {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
}

.sha-reg__heading {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #0b1a55;
    color: #0b1a55;
}

/* ─── Form Fields ─────────────────────────────────────────── */
.sha-reg__field {
    margin-bottom: 16px;
}

.sha-reg__field:last-child {
    margin-bottom: 0;
}

.sha-reg__field-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.sha-reg__field--half {
    flex: 1;
    margin-bottom: 0;
}

.sha-reg__label {
    display: block;
    font-weight: 500;
    margin-bottom: 4px;
    font-size: 14px;
    color: #374151;
}

.sha-reg__required {
    color: #d62828;
}

.sha-reg__input,
.sha-reg__select,
.sha-reg__textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #fff;
    color: #111827;
}

.sha-reg__input:focus,
.sha-reg__select:focus,
.sha-reg__textarea:focus {
    outline: none;
    border-color: #0b1a55;
    box-shadow: 0 0 0 2px rgba(11, 26, 85, 0.15);
}

.sha-reg__input.sha-reg__input--error,
.sha-reg__select.sha-reg__select--error {
    border-color: #d62828;
    box-shadow: 0 0 0 2px rgba(214, 40, 40, 0.15);
}

.sha-reg__file {
    font-size: 14px;
}

/* ─── Radio Buttons ───────────────────────────────────────── */
.sha-reg__radio-group {
    display: flex;
    gap: 24px;
    margin-top: 4px;
}

.sha-reg__radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 15px;
}

.sha-reg__radio {
    margin: 0;
    accent-color: #0b1a55;
}

/* ─── Checkboxes ──────────────────────────────────────────── */
.sha-reg__checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.sha-reg__checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 15px;
}

.sha-reg__checkbox {
    margin: 3px 0 0 0;
    accent-color: #0b1a55;
    flex-shrink: 0;
}

.sha-reg__event-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    padding: 8px 12px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    transition: background-color 0.15s, border-color 0.15s;
}

.sha-reg__event-label:hover {
    background-color: #F3F4F6;
}

.sha-reg__event-label--checked {
    background-color: #EFF3FF;
    border-color: #0b1a55;
}

.sha-reg__event-price {
    margin-left: auto;
    font-size: 13px;
    color: #6B7280;
    font-weight: 500;
}

/* ─── Show Info ───────────────────────────────────────────── */
.sha-reg__show-info {
    background: #EFF3FF;
    border: 1px solid #C7D2FE;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 12px;
}

.sha-reg__show-info p {
    margin: 4px 0;
    font-size: 14px;
    color: #374151;
}

/* ─── Notices ─────────────────────────────────────────────── */
.sha-reg__notice {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
}

.sha-reg__notice--fee {
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    margin-top: 10px;
    color: #B45309;
}

/* ─── Riders ──────────────────────────────────────────────── */
.sha-reg__rider {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    transition: box-shadow 0.2s;
}

.sha-reg__rider:hover {
    box-shadow: 0 2px 8px rgba(2, 6, 23, 0.06);
}

.sha-reg__rider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #E5E7EB;
}

.sha-reg__rider-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
    color: #0b1a55;
}

.sha-reg__rider-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #E5E7EB;
    font-size: 15px;
}

/* ─── OTT Fields ──────────────────────────────────────────── */
.sha-reg__ott-fields {
    margin-top: 16px;
    padding: 16px;
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    border-radius: 8px;
}

.sha-reg__ott-notice {
    margin-bottom: 12px;
}

.sha-reg__ott-notice p {
    margin: 0;
    font-size: 14px;
    color: #B45309;
}

/* ─── Buttons ─────────────────────────────────────────────── */
.sha-reg__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, opacity 0.2s;
    font-family: inherit;
}

.sha-reg__btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.sha-reg__btn--add {
    background: #EFF3FF;
    color: #0b1a55;
    border: 1px dashed #0b1a55;
    width: 100%;
    justify-content: center;
    padding: 14px;
}

.sha-reg__btn--add:hover:not(:disabled) {
    background: #DBEAFE;
}

.sha-reg__btn--remove-rider {
    background: none;
    color: #9CA3AF;
    font-size: 18px;
    padding: 4px 8px;
    border: 1px solid transparent;
    border-radius: 8px;
}

.sha-reg__btn--remove-rider:hover {
    color: #d62828;
    background: #FEF2F2;
    border-color: #FECACA;
}

.sha-reg__btn--submit {
    background: #d62828;
    color: #fff;
    width: 100%;
    justify-content: center;
    padding: 16px;
    font-size: 17px;
    font-weight: 600;
    border-radius: 12px;
}

.sha-reg__btn--submit:hover:not(:disabled) {
    background: #b71f1f;
}

/* ─── Waiver ──────────────────────────────────────────────── */
.sha-reg__waiver-intro {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 16px;
}

.sha-reg__waiver-scroll {
    max-height: 300px;
    overflow-y: auto;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.6;
}

.sha-reg__waiver-scroll h3 {
    font-size: 15px;
    font-weight: 700;
    color: #0b1a55;
    margin: 20px 0 8px 0;
}

.sha-reg__waiver-scroll h3:first-child {
    margin-top: 0;
}

.sha-reg__waiver-scroll p {
    margin: 0 0 10px 0;
    color: #333;
}

.sha-reg__waiver-scroll ul {
    margin: 0 0 10px 0;
    padding-left: 20px;
    list-style: disc;
}

.sha-reg__waiver-scroll li {
    margin-bottom: 4px;
    color: #333;
}

.sha-reg__waiver-box {
    max-height: 200px;
    overflow-y: auto;
    background: #F3F4F6;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.6;
}

.sha-reg__waiver-box p {
    margin: 0 0 8px 0;
}

.sha-reg__waiver-box ul {
    margin: 0;
    padding-left: 20px;
    list-style: disc;
}

.sha-reg__waiver-box li {
    margin-bottom: 6px;
}

/* ─── Order Summary ───────────────────────────────────────── */
.sha-reg__summary {
    background: #F8FAFF;
    border: 1px solid #C7D2FE;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.sha-reg__summary-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
    font-size: 14px;
}

.sha-reg__summary-table th {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 2px solid #0b1a55;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #0b1a55;
}

.sha-reg__summary-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #E5E7EB;
    vertical-align: top;
}

.sha-reg__summary-table .sha-reg__events-list-summary {
    font-size: 13px;
    color: #6B7280;
}

.sha-reg__text-right {
    text-align: right;
}

.sha-reg__summary-totals {
    border-top: 2px solid #0b1a55;
    padding-top: 12px;
}

.sha-reg__summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 14px;
}

.sha-reg__summary-line--total {
    border-top: 1px solid #D1D5DB;
    margin-top: 8px;
    padding-top: 12px;
    font-size: 18px;
    font-weight: 700;
    color: #0b1a55;
}

/* ─── Errors ──────────────────────────────────────────────── */
.sha-reg__errors {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 16px;
}

.sha-reg__errors p {
    margin: 0 0 8px 0;
    color: #B91C1C;
    font-size: 14px;
    font-weight: 600;
}

.sha-reg__errors ul {
    margin: 0;
    padding-left: 20px;
    color: #B91C1C;
    font-size: 14px;
    list-style: disc;
}

.sha-reg__errors li {
    margin-bottom: 4px;
}

/* ─── Loading ─────────────────────────────────────────────── */
.sha-reg__loading {
    text-align: center;
    padding: 24px;
    font-size: 15px;
    color: #6B7280;
}

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 600px) {
    .sha-reg__section {
        padding: 16px;
        border-radius: 12px;
    }

    .sha-reg__field-row {
        flex-direction: column;
        gap: 0;
    }

    .sha-reg__field--half {
        margin-bottom: 16px;
    }

    .sha-reg__radio-group {
        flex-direction: column;
        gap: 10px;
    }

    .sha-reg__rider {
        padding: 14px;
    }

    .sha-reg__summary {
        padding: 14px;
        border-radius: 12px;
    }

    .sha-reg__summary-table th:nth-child(3),
    .sha-reg__summary-table td:nth-child(3) {
        display: none;
    }

    .sha-reg__btn--submit {
        min-height: 44px;
    }
}


/* ─── Ticket Form (Awards Night) ───────────────────────── */

.sha-ticket__types {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sha-ticket__row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    transition: border-color 200ms;
}

.sha-ticket__row--active {
    border-color: #0b1a55;
    background: #EFF3FF;
}

.sha-ticket__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sha-ticket__label {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.sha-ticket__price {
    font-size: 14px;
    color: #6B7280;
    font-weight: 500;
}

.sha-ticket__qty-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.sha-ticket__qty-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: #fff;
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 150ms;
    line-height: 1;
}

.sha-ticket__qty-btn:hover {
    background: #F3F4F6;
}

.sha-ticket__qty-btn:active {
    background: #E5E7EB;
}

.sha-ticket__qty-input {
    width: 44px;
    height: 36px;
    text-align: center;
    border: none;
    border-left: 1px solid #E5E7EB;
    border-right: 1px solid #E5E7EB;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    background: #fff;
    -moz-appearance: textfield;
}

.sha-ticket__qty-input::-webkit-outer-spin-button,
.sha-ticket__qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.sha-ticket__subtotal {
    font-size: 15px;
    font-weight: 600;
    color: #0b1a55;
    min-width: 70px;
    text-align: right;
}

.sha-ticket__summary-line {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 14px;
    color: #4B5563;
}

@media (max-width: 600px) {
    .sha-ticket__row {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px;
    }

    .sha-ticket__info {
        width: 100%;
    }

    .sha-ticket__qty-wrap {
        flex-shrink: 0;
    }

    .sha-ticket__subtotal {
        margin-left: auto;
    }
}
