:root {
    --ijaa-red: #7a1f1f;
    --ijaa-dark: #4a4a4a;
    --border: #cfcfcf;
    --text: #333;
    --hint: #888;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    color: var(--text);
    background: #e9e9e9;
    line-height: 1.5;
}

.page { padding: 24px 12px; }

.card {
    margin: 0 auto;
    background: #fff;
    padding: 32px 40px 48px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .15);
}

h1 {
    font-size: 26px;
    color: var(--text);
    margin: 0 0 16px;
    font-weight: 600;
}

h2 {
    font-size: 20px;
    margin: 24px 0 16px;
    font-weight: 600;
}

.intro { font-size: 14px; margin: 0 0 16px; }

hr { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

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

label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
    font-family: Arial, Helvetica, sans-serif;
}

label.req::after { content: ' *'; color: #c00; }

label.radio, label.sub {
    font-weight: 400;
    display: block;
    margin: 4px 0;
}

label.sub { font-weight: 700; margin-top: 12px; }

input[type=text], input[type=email], input[type=tel], input[type=date],
input[type=number], textarea, select {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid var(--border);
    border-radius: 3px;
    font-size: 14px;
    font-family: Arial, Helvetica, sans-serif;
    background: #fff;
    margin-bottom: 2px;
}

input.short, .short { max-width: 240px; }
input.mini { max-width: 90px; }

textarea { resize: vertical; }

.hint {
    display: block;
    font-size: 11px;
    color: var(--hint);
    font-family: Arial, Helvetica, sans-serif;
    margin-bottom: 8px;
}

.note {
    font-size: 13px;
    color: #555;
    font-family: Arial, Helvetica, sans-serif;
    margin: 6px 0;
}

/* Layout rows */
.row.two {
    display: flex;
    gap: 16px;
}
.row.two > * { flex: 1; min-width: 0; }

@media (max-width: 520px) {
    .row.two { flex-direction: column; gap: 0; }
    .card { padding: 24px 18px 36px; }
}

/* Radios */
label.radio input { width: auto; margin-right: 6px; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 11px 20px;
    border: none;
    border-radius: 4px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    margin: 8px 8px 8px 0;
}

.btn-dark { background: var(--ijaa-dark); }
.btn-dark:hover { background: #333; }
.btn-primary { background: #2f6fb0; }
.btn-primary:hover { background: #255a90; }
.btn-light { background: #666; padding: 8px 16px; font-size: 13px; }
.btn-light:hover { background: #555; }

/* Section heading + notice */
h3.section {
    font-size: 17px;
    font-family: Arial, Helvetica, sans-serif;
    margin: 4px 0 6px;
    font-weight: 700;
}
.note.notice {
    background: #fbf7e8;
    border: 1px solid #e6d9a8;
    padding: 10px 14px;
    border-radius: 4px;
}

/* Guests repeater */
.guest-block {
    border: 1px solid var(--border);
    border-left: 4px solid var(--ijaa-red);
    border-radius: 4px;
    padding: 14px 16px;
    margin-bottom: 14px;
    background: #fafafa;
}
.guest-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-family: Arial, Helvetica, sans-serif;
}
.guest-remove {
    background: none;
    border: none;
    color: #b00;
    cursor: pointer;
    font-size: 13px;
    font-family: Arial, Helvetica, sans-serif;
}
.guest-remove:hover { text-decoration: underline; }

/* Totals table */
table.totals {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    font-family: Arial, Helvetica, sans-serif;
}

table.totals th, table.totals td {
    border: 1px solid var(--border);
    padding: 7px 10px;
    text-align: left;
}
table.totals th:nth-child(2), table.totals td:nth-child(2) { text-align: center; width: 80px; }
table.totals th:nth-child(3), table.totals td:nth-child(3) { text-align: right; width: 100px; }
table.totals thead th { background: #f2f2f2; }
table.totals tr.sub td { background: #fafafa; }
table.totals tr.grand td { font-weight: 700; background: #f2f2f2; }

/* Square / payment box */
.square-box {
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 14px;
    background: #fafafa;
}
.card-row { display: flex; gap: 8px; margin-bottom: 8px; }
.card-row input:first-child { flex: 1; }
.payment-note { margin-top: 10px; font-size: 12px; }

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 4px;
    margin: 16px 0;
    font-size: 14px;
    font-family: Arial, Helvetica, sans-serif;
}
.alert-success { background: #e4f4e4; border: 1px solid #99c999; color: #205a20; }
.alert-error { background: #fbe6e6; border: 1px solid #d99; color: #8a1f1f; }

.field-error {
    display: block;
    color: #c00;
    font-size: 12px;
    font-family: Arial, Helvetica, sans-serif;
    margin-top: 4px;
}
