/* Running Dinner – Public Styles */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=DM+Sans:wght@400;500;600&display=swap');

:root {
    --rd-primary:    #e85d04;
    --rd-primary-h:  #c44b02;
    --rd-secondary:  #2d6a4f;
    --rd-accent:     #f4a261;
    --rd-bg:         #fffbf7;
    --rd-surface:    #ffffff;
    --rd-border:     #e8ddd4;
    --rd-text:       #1a120b;
    --rd-muted:      #7c6f65;
    --rd-radius:     14px;
    --rd-shadow:     0 4px 24px rgba(232,93,4,.10);
    --rd-font-head:  'Playfair Display', Georgia, serif;
    --rd-font-body:  'DM Sans', system-ui, sans-serif;
}

.rd-public * { box-sizing: border-box; }
.rd-public {
    font-family: var(--rd-font-body);
    color: var(--rd-text);
    max-width: 680px;
    margin: 0 auto;
    padding: 0 16px 60px;
}

/* ── Hero ── */
.rd-event-hero {
    border-radius: var(--rd-radius);
    background-size: cover;
    background-position: center;
    height: 280px;
    display: flex;
    align-items: flex-end;
    margin-bottom: 28px;
    overflow: hidden;
    position: relative;
}
.rd-event-hero-overlay {
    background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 100%);
    width: 100%;
    padding: 28px 28px 24px;
}
.rd-event-hero-overlay h1 {
    font-family: var(--rd-font-head);
    font-size: 32px;
    color: #fff;
    margin: 0 0 6px;
    line-height: 1.1;
}

.rd-event-header { margin-bottom: 24px; }
.rd-event-header h1 {
    font-family: var(--rd-font-head);
    font-size: 36px;
    color: var(--rd-text);
    margin: 0 0 6px;
}

.rd-event-theme-tag {
    display: inline-block;
    background: var(--rd-accent);
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin: 0;
}

.rd-event-description {
    font-size: 16px;
    line-height: 1.7;
    color: var(--rd-muted);
    margin-bottom: 24px;
}

/* ── Info bar ── */
.rd-event-info-bar {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    background: var(--rd-surface);
    border: 1px solid var(--rd-border);
    border-radius: 10px;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--rd-muted);
}

/* ── Reg deadline ── */
.rd-reg-deadline {
    font-size: 13px;
    color: var(--rd-muted);
    margin-bottom: 12px;
    font-style: italic;
}

/* ── Login box ── */
.rd-login-box {
    background: #fff8f4;
    border: 1px solid #fcdcc9;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 24px;
    font-size: 14px;
}
.rd-login-box p { margin: 0 0 10px; font-weight: 600; }
.rd-login-form { display: flex; gap: 8px; flex-wrap: wrap; }
.rd-login-form input {
    flex: 1;
    min-width: 200px;
    padding: 9px 13px;
    border: 1.5px solid var(--rd-border);
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--rd-font-body);
}
.rd-login-form input:focus { outline: none; border-color: var(--rd-primary); }

/* ── Register card ── */
.rd-register-card {
    background: var(--rd-surface);
    border: 1px solid var(--rd-border);
    border-radius: var(--rd-radius);
    box-shadow: var(--rd-shadow);
    padding: 32px;
    margin-top: 8px;
}
.rd-register-card h2 {
    font-family: var(--rd-font-head);
    font-size: 22px;
    margin: 0 0 24px;
    color: var(--rd-text);
}

/* ── Field group ── */
.rd-field-group {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--rd-border);
}
.rd-field-group:last-of-type { border-bottom: none; }
.rd-field-group h3 {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--rd-primary);
    margin: 0 0 18px;
}

.rd-field { margin-bottom: 16px; }
.rd-field label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--rd-text);
}
.rd-field-hint { font-size: 12px; color: var(--rd-muted); margin: -10px 0 10px; }

.rd-field input[type=text],
.rd-field input[type=email],
.rd-field input[type=tel],
.rd-field textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--rd-border);
    border-radius: 9px;
    font-size: 15px;
    font-family: var(--rd-font-body);
    background: var(--rd-bg);
    color: var(--rd-text);
    transition: border-color .15s, box-shadow .15s;
}
.rd-field input:focus, .rd-field textarea:focus {
    outline: none;
    border-color: var(--rd-primary);
    box-shadow: 0 0 0 3px rgba(232,93,4,.12);
    background: #fff;
}

.rd-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .rd-field-row { grid-template-columns: 1fr; } }

/* ── Radio / Checkbox ── */
.rd-radio-group, .rd-checkbox-group { display: flex; flex-direction: column; gap: 10px; }
.rd-radio, .rd-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 14px;
    border-radius: 9px;
    border: 1.5px solid var(--rd-border);
    transition: border-color .15s, background .15s;
}
.rd-radio:hover, .rd-checkbox:hover { border-color: var(--rd-primary); background: #fff8f4; }
.rd-radio input, .rd-checkbox input { accent-color: var(--rd-primary); width: 16px; height: 16px; }
.rd-radio input:checked ~ span, .rd-checkbox input:checked ~ span { color: var(--rd-primary); }

.rd-exclusions-list { max-height: 240px; overflow-y: auto; }

/* ── Buttons ── */
.rd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 10px;
    font-family: var(--rd-font-body);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all .18s ease;
    line-height: 1;
}
.rd-btn-primary {
    background: var(--rd-primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(232,93,4,.30);
}
.rd-btn-primary:hover {
    background: var(--rd-primary-h);
    box-shadow: 0 6px 20px rgba(232,93,4,.40);
    transform: translateY(-1px);
}
.rd-btn-ghost {
    background: transparent;
    color: var(--rd-muted);
    border: 1.5px solid var(--rd-border);
    font-size: 13px;
    padding: 8px 16px;
}
.rd-btn-ghost:hover { border-color: var(--rd-primary); color: var(--rd-primary); }
.rd-btn-full { width: 100%; padding: 15px; font-size: 16px; }
.rd-btn-sm { padding: 8px 14px; font-size: 13px; }

/* ── Notices ── */
.rd-notice {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 500;
    font-size: 15px;
}
.rd-notice-info { background: #e8f4f8; color: #2c6e8a; border-left: 4px solid #17a2b8; }

/* ── Badges ── */
.rd-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
}
.rd-badge-confirmed   { background: #c6f6d5; color: #276749; }
.rd-badge-provisional { background: #fefcbf; color: #744210; }
.rd-badge-waitlist    { background: #e2e8f0; color: #4a5568; }

/* ── Messages ── */
.rd-msg { padding: 12px 16px; border-radius: 10px; font-size: 14px; font-weight: 500; }
.rd-msg-success { background: #d4edda; color: #155724; }
.rd-msg-error   { background: #f8d7da; color: #721c24; }

/* ── Manage page ── */
.rd-manage-header { text-align: center; padding: 32px 0 24px; }
.rd-manage-header h1 { font-family: var(--rd-font-head); font-size: 30px; margin: 0 0 6px; }

.rd-manage-card {
    background: var(--rd-surface);
    border: 1px solid var(--rd-border);
    border-radius: var(--rd-radius);
    box-shadow: var(--rd-shadow);
    padding: 28px;
    margin-bottom: 20px;
}
.rd-manage-card h2 {
    font-family: var(--rd-font-head);
    font-size: 20px;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--rd-border);
}
.rd-members-list { list-style: none; padding: 0; margin: 12px 0 0; }
.rd-members-list li { padding: 6px 0; border-bottom: 1px solid #f5f0eb; font-size: 14px; }
.rd-members-list li:last-child { border-bottom: none; }
.rd-manage-logout { text-align: center; margin-top: 24px; }

/* ── Animations ── */
@keyframes rd-slide-up {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.rd-register-card, .rd-manage-card {
    animation: rd-slide-up .4s ease both;
}
