/*
 * SR Operations – Public / Front-end Styles
 * Matches the Stella Rossa visual identity: dark banner, gold accents, card layout.
 */

:root {
    --sro-gold:        #c8a45f;
    --sro-gold-light:  #ecd39c;
    --sro-gold-bg:     #faf6ec;
    --sro-dark:        #0b0e14;
    --sro-dark-mid:    #14171c;
    --sro-text:        #14171c;
    --sro-muted:       #6b7280;
    --sro-border:      #e5e2db;
    --sro-bg:          #faf9f7;
    --sro-radius:      8px;
    --sro-radius-sm:   6px;
    --sro-shadow:      0 1px 2px rgba(15,15,15,.04), 0 8px 24px rgba(15,15,15,.06);
}

/* ── Outer wrap ──────────────────────────────────────────────────────────── */
.sro-public-wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 30px 0 60px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--sro-text);
}

/* ── Banner ──────────────────────────────────────────────────────────────── */
.sro-public-banner {
    background: linear-gradient(135deg, #0b0e14 0%, #151a22 100%);
    color: #fff;
    border-radius: 10px;
    padding: 24px 28px;
    margin-bottom: 28px;
    border-left: 4px solid var(--sro-gold);
}
.sro-public-banner h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #fff;
    border: none;
    padding: 0;
}
.sro-public-banner p {
    margin: 6px 0 0;
    font-size: 13.5px;
    color: rgba(255,255,255,.65);
}

/* ── Cards ───────────────────────────────────────────────────────────────── */
.sro-public-card {
    background: #fff;
    border: 1px solid var(--sro-border);
    border-radius: 10px;
    padding: 22px 24px;
    margin-bottom: 18px;
    box-shadow: var(--sro-shadow);
}

/* Legend / section heading inside a card */
.sro-public-card fieldset {
    border: none;
    padding: 0;
    margin: 0 0 22px;
}
.sro-public-card fieldset:last-of-type {
    margin-bottom: 0;
}
.sro-public-card legend,
.sro-public-card .sro-section-heading {
    display: block;
    width: 100%;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #8a6a30;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--sro-gold);
}

/* ── Fields ──────────────────────────────────────────────────────────────── */
.sro-public-wrap label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 14px;
}
.sro-public-wrap label.sro-checkbox {
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
    font-weight: 500;
    font-size: 13.5px;
    margin-bottom: 10px;
}
.sro-public-wrap label.sro-checkbox input[type="checkbox"] {
    width: auto;
    margin-top: .15em;
    flex-shrink: 0;
    accent-color: var(--sro-gold);
}

.sro-public-wrap input[type="text"],
.sro-public-wrap input[type="email"],
.sro-public-wrap input[type="tel"],
.sro-public-wrap input[type="date"],
.sro-public-wrap input[type="number"],
.sro-public-wrap input[type="file"],
.sro-public-wrap select,
.sro-public-wrap textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: var(--sro-radius-sm);
    font-size: 14px;
    font-family: inherit;
    color: var(--sro-text);
    box-sizing: border-box;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.sro-public-wrap input[type="file"] {
    padding: 7px 10px;
    background: var(--sro-bg);
    cursor: pointer;
}
.sro-public-wrap input:focus,
.sro-public-wrap select:focus,
.sro-public-wrap textarea:focus {
    outline: none;
    border-color: var(--sro-gold);
    box-shadow: 0 0 0 3px rgba(200,164,95,.18);
}
.sro-public-wrap textarea {
    resize: vertical;
    min-height: 90px;
}

/* Two-column form row */
.sro-public-wrap .sro-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (max-width: 540px) {
    .sro-public-wrap .sro-form-row {
        grid-template-columns: 1fr;
    }
}

/* Required star */
.sro-public-wrap .sro-req::after {
    content: " *";
    color: #9b2c2c;
}

/* Hint text below a field */
.sro-public-wrap .sro-hint {
    font-size: 11.5px;
    font-weight: 400;
    color: var(--sro-muted);
}

/* ── Submit button ───────────────────────────────────────────────────────── */
.sro-public-wrap .sro-btn-submit {
    display: block;
    width: 100%;
    padding: 13px;
    font-size: 15px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--sro-gold-light) 0%, var(--sro-gold) 100%);
    color: var(--sro-dark);
    border: none;
    border-radius: var(--sro-radius-sm);
    cursor: pointer;
    margin-top: 6px;
    letter-spacing: .02em;
    transition: filter .15s;
}
.sro-public-wrap .sro-btn-submit:hover {
    filter: brightness(1.07);
}

/* ── Notice / status messages ────────────────────────────────────────────── */
.sro-public-wrap .sro-success {
    background: #dcfce7;
    color: #166534;
    border-left: 4px solid #16a34a;
    border-radius: var(--sro-radius);
    padding: 16px 20px;
    margin-bottom: 20px;
}
.sro-public-wrap .sro-success h2 {
    color: #166534;
    border-color: #16a34a;
    margin-top: 0;
}
.sro-public-wrap .sro-error {
    background: #fbeaea;
    color: #9b2c2c;
    border-left: 4px solid #9b2c2c;
    border-radius: var(--sro-radius);
    padding: 14px 18px;
    margin-bottom: 14px;
}
.sro-public-wrap .sro-notice {
    color: var(--sro-muted);
    font-style: italic;
    padding: 20px 0;
}

/* ── Waiver upload block ─────────────────────────────────────────────────── */
.sro-public-wrap .sro-waiver-upload {
    margin-bottom: 16px;
    padding: 14px 16px;
    background: var(--sro-bg);
    border: 1px solid var(--sro-border);
    border-radius: var(--sro-radius-sm);
}
.sro-public-wrap .sro-waiver-desc {
    font-size: 12.5px;
    font-weight: 400;
    color: var(--sro-muted);
    margin-bottom: 4px;
}
.sro-public-wrap .sro-waiver-hint {
    font-size: 12px;
    font-weight: 600;
    color: #92400e;
    background: #fdf1d9;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}
