/* ============================================================
 *  beround RSVP — brand styles
 *  Brand palette taken from the beround logo + brand site:
 *    orange  #E8632A   gray  #9D9FA2   dark text  #333333
 * ============================================================ */

:root {
    --orange:      #E8632A;
    --orange-dark: #CF531C;
    --gray:        #9D9FA2;
    --text:        #333333;
    --muted:       #6b6f76;
    --red:         #D0021B;
    --border:      #d9dce1;
    --page-bg:     #f4f5f7;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Poppins', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--page-bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 36px 16px;
}

.logo { margin-bottom: 26px; }
.logo img { height: 74px; width: auto; display: block; }

/* ---------- Card ---------- */
.card {
    background: #fff;
    width: 100%;
    max-width: 560px;
    border: 1px solid #e6e8eb;
    border-radius: 10px;
    padding: 34px 36px 30px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .05);
}

.card h1 {
    font-size: 20px;
    line-height: 1.45;
    font-weight: 700;
    margin: 0 0 26px;
}

/* ---------- Fields ---------- */
.field { margin-bottom: 20px; }

.field label {
    display: block;
    font-size: 15px;
    margin-bottom: 8px;
    color: #3b3b3b;
}
.field label .req { color: var(--red); margin-left: 2px; }

.field input {
    width: 100%;
    font-size: 15px;
    font-family: inherit;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.field input:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(232, 99, 42, .15);
}
.field.guests input { width: 120px; }

.field .err { color: var(--red); font-size: 13px; margin-top: 6px; }

/* ---------- Buttons ---------- */
.actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
}

.btn {
    display: inline-block;
    font-family: inherit;
    font-size: 15px;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    border: 1px solid transparent;
    padding: 13px 22px;
    transition: background .15s, border-color .15s;
}

.btn-cancel {
    background: #fff;
    border-color: var(--border);
    color: var(--muted);
}
.btn-cancel:hover { background: #f3f4f6; }

.btn-submit {
    flex: 1;
    background: var(--orange);
    color: #fff;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    border: none;
}
.btn-submit:hover { background: var(--orange-dark); }

/* ---------- Alerts ---------- */
.alert {
    padding: 14px 16px;
    border-radius: 6px;
    font-size: 15px;
    margin-bottom: 22px;
}
.alert-success { background: #eafbe7; border: 1px solid #b9e8ad; color: #256d1b; }
.alert-error   { background: #fdecec; border: 1px solid #f5c2c2; color: #a31515; }

/* ---------- Admin ---------- */
.admin-card { max-width: 880px; }

.admin-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.admin-head h1 { margin: 0; }
.admin-actions { display: flex; gap: 10px; }
.admin-actions .btn { padding: 9px 16px; font-size: 14px; }

.stats {
    display: flex;
    gap: 26px;
    margin: 14px 0 22px;
    color: var(--muted);
    font-size: 15px;
}
.stats strong { color: var(--orange); font-size: 17px; }

.table-wrap { overflow-x: auto; }

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
thead th {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 2px solid var(--orange);
    color: var(--text);
    font-weight: 600;
    white-space: nowrap;
}
tbody td {
    padding: 11px 12px;
    border-bottom: 1px solid #eef0f2;
}
tbody tr:hover { background: #fafafa; }

.empty { color: var(--muted); padding: 20px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 520px) {
    .card { padding: 26px 20px 22px; }
    .actions { flex-direction: column-reverse; align-items: stretch; }
    .btn-cancel { width: 100%; }
}
