/* -- site.css -- */
html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f4f5f7;
}

.rsvp-container {
    max-width: 640px;
    margin: 40px auto;
    padding: 0 16px;
}

.rsvp-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    padding: 24px 20px 28px;
}

.rsvp-header {
    margin-bottom: 20px;
    border-bottom: 1px solid #e4e7ec;
    padding-bottom: 12px;
}

    .rsvp-header h1 {
        font-size: 1.6rem;
        margin: 0;
    }

    .rsvp-header .event-subtitle {
        margin-top: 4px;
        font-size: 0.95rem;
        color: #6b7280;
    }

.form-group {
    margin-bottom: 16px;
}

.form-label {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 4px;
    color: #374151;
}

.form-static {
    font-size: 0.95rem;
    padding: 6px 0;
    color: #111827;
}

.form-control,
.custom-select {
    width: 100%;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    padding: 8px 14px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
    background-color: #ffffff;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.custom-select {
    background-image: linear-gradient(45deg, transparent 50%, #9ca3af 50%), linear-gradient(135deg, #9ca3af 50%, transparent 50%);
    background-position: calc(100% - 16px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 32px;
}

    .form-control:focus,
    .custom-select:focus {
        border-color: #2563eb;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
    }

.btn-row {
    margin-top: 20px;
}

.btn-theme {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 10px 18px;
    border-radius: 999px;
    border: none;
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    cursor: pointer;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
    transition: transform 0.08s ease-out, box-shadow 0.08s ease-out, filter 0.1s ease;
}

    .btn-theme:hover {
        filter: brightness(1.05);
        box-shadow: 0 14px 30px rgba(37, 99, 235, 0.35);
        transform: translateY(-1px);
    }

    .btn-theme:active {
        transform: translateY(1px);
        box-shadow: 0 6px 14px rgba(37, 99, 235, 0.25);
    }

.helper-text {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 4px;
}

.text-danger {
    font-size: 0.8rem;
}

@media (max-width: 576px) {
    .rsvp-card {
        padding: 18px 16px 22px;
    }

    .rsvp-header h1 {
        font-size: 1.3rem;
    }
}


/* RSVP portal - modern nested card layout */

.rsvp-portal {
    max-width: 960px;
    margin: 0 auto;
}

    .rsvp-portal .rsvp-main-card {
        border: 1px solid #e5e7eb;
        border-radius: 18px;
        box-shadow: 0 12px 35px rgba(15, 23, 42, .05);
    }

    .rsvp-portal .rsvp-dietary-panel {
        background: #f8fafc;
        border: 1px solid #e8edf3;
        border-radius: 14px;
        padding: 24px;
        margin-bottom: 30px;
    }

        .rsvp-portal .rsvp-dietary-panel .form-control {
            border-radius: 9px;
            min-height: 42px;
            background: #fff;
        }

    .rsvp-portal .rsvp-event-card {
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        box-shadow: 0 3px 12px rgba(15, 23, 42, .035);
        padding: 24px;
        margin-bottom: 18px;
    }

        .rsvp-portal .rsvp-event-card:hover {
            border-color: #cbd5e1;
        }

    .rsvp-portal .rsvp-event-header {
        border-bottom: 1px solid #edf0f4;
        padding-bottom: 18px;
        margin-bottom: 10px;
    }

    .rsvp-portal .rsvp-person {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        column-gap: 20px;
        padding: 14px 0;
    }

        .rsvp-portal .rsvp-person + .rsvp-person {
            border-top: 1px solid #f1f3f6;
        }

    .rsvp-portal .rsvp-option {
        min-width: 96px;
        border-radius: 8px;
        font-weight: 600;
        padding: 9px 16px;
    }

        .rsvp-portal .rsvp-option.is-selected {
            background: #0d6efd;
            border-color: #0d6efd;
            color: #fff;
        }

            .rsvp-portal .rsvp-option.is-selected:hover {
                background: #0b5ed7;
                color: #fff;
            }

    .rsvp-portal .event-badge {
        font-size: .78rem;
        font-weight: 600;
        padding: 8px 11px;
        border-radius: 7px;
        white-space: nowrap;
    }

    .rsvp-portal .autosave-note {
        font-size: .76rem;
        min-height: 1rem;
        margin-top: 4px;
    }

    .rsvp-portal .rsvp-footer {
        border-top: 1px solid #e5e7eb;
        padding-top: 24px;
        margin-top: 30px;
    }

@media (max-width: 576px) {
    .rsvp-portal .rsvp-event-card {
        padding: 18px;
    }

    .rsvp-portal .rsvp-dietary-panel {
        padding: 18px;
    }

    .rsvp-portal .rsvp-person {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .rsvp-portal .rsvp-option {
        min-width: 105px;
    }

    .rsvp-portal .rsvp-event-header {
        flex-wrap: wrap;
    }
}
