/* Extra styles for the registration form and admin, on top of the website's site.css. */

.app-wrap { max-width: var(--wide, 1200px); margin: 0 auto; padding: 0 var(--gutter, 20px) clamp(48px, 6vw, 80px); }
.app-wrap.narrow { max-width: 860px; }

/* Registration form */
.child-block { border: 1px solid rgba(29, 36, 85, .14); border-radius: 18px; padding: 20px 20px 4px; margin: 0 0 18px; position: relative; background: rgba(255, 255, 255, .55); }
.child-block legend { font: italic 500 22px var(--display, Georgia, serif); color: var(--navy, #1d2455); padding: 0 8px; }
.child-block .remove-child { position: absolute; top: 14px; right: 14px; }
.link-button { border: 0; background: none; color: var(--navy, #1d2455); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: inherit; padding: 0; }
.add-child { margin: 4px 0 24px; }
.declarations { border: 0; padding: 0; margin: 8px 0 18px; }
.declarations legend { font-weight: 600; margin-bottom: 10px; }
.declarations .consent-row { margin-bottom: 12px; }
.form-errors { background: #fdf0ee; border: 1px solid #c0392b; color: #7b2318; border-radius: 14px; padding: 14px 18px; margin-bottom: 22px; }
.form-errors ul { margin: 6px 0 0; padding-left: 20px; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ref-box { font: 500 clamp(28px, 4vw, 40px) var(--display, Georgia, serif); color: var(--navy, #1d2455); letter-spacing: .02em; margin: 8px 0 16px; }
.policy-body h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 28px 0 8px; }
.policy-body p { max-width: 70ch; }

/* Admin */
.admin-bar { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; margin: 0 0 20px; }
.admin-bar nav a { margin-right: 16px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.toolbar input[type=search] { flex: 1; min-width: 220px; }
.toolbar input, .toolbar select { width: auto; }
.data-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.data-table th, .data-table td { padding: 10px 12px; border-bottom: 1px solid rgba(29, 36, 85, .12); text-align: left; vertical-align: top; }
.data-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted, #666); }
.right { text-align: right; }
.data-table tbody tr:hover { background: rgba(189, 150, 84, .07); }
.table-wrap { overflow-x: auto; }
.status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; background: #eceef5; color: var(--navy, #1d2455); }
.status-new { background: #e3ecfb; } .status-contacted { background: #f6ecd8; } .status-admitted { background: #e2f3e7; color: #1d5b33; }
.status-declined { background: #eee; color: #555; } .status-withdrawn { background: #fbe6e3; color: #8a2a1d; }
.details { display: grid; grid-template-columns: 180px 1fr; gap: 8px 16px; margin: 0 0 8px; }
.details dt { font-weight: 600; } .details dd { margin: 0; }
.admin-section { margin-top: 28px; }
.admin-section h2 { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 10px; }
.button.danger { background: #b03a2e; border-color: #b03a2e; color: #fff; }
.inline-form { display: inline; }
.notice-box { background: rgba(189, 150, 84, .12); border-radius: 14px; padding: 14px 18px; margin-bottom: 24px; }

/* Admission letter */
.letter { background: #fff; color: #1b1b1b; max-width: 760px; margin: 0 auto; padding: clamp(24px, 5vw, 56px); border-radius: 6px; box-shadow: 0 20px 50px -30px rgba(29, 36, 85, .4); font-size: 16px; line-height: 1.6; }
.letterhead { display: flex; align-items: center; gap: 14px; border-bottom: 2px solid var(--gold, #bd9654); padding-bottom: 14px; margin-bottom: 24px; }
.letterhead img { width: 56px; height: auto; }
.letterhead strong { display: block; font: 600 22px var(--display, Georgia, serif); color: var(--navy, #1d2455); }
.letterhead span { font-size: 12px; letter-spacing: .14em; color: #666; }
.letter table { border-collapse: collapse; margin: 12px 0 18px; min-width: 60%; }
.letter td, .letter th { border: 1px solid #ddd; padding: 8px 12px; }
.letter .right { text-align: right; }

@media (max-width: 640px) { .details { grid-template-columns: 1fr; } }
@media print {
  .site-header, .site-footer, .skip-link, .no-print, .motion-toggle { display: none !important; }
  body, main { background: #fff !important; }
  .app-wrap { padding: 0; max-width: none; }
  .letter { box-shadow: none; padding: 0; max-width: none; }
}

/* spacing fixes after visual review */
.admin-page .app-wrap { padding-top: clamp(28px, 4vw, 48px); }
.enquiry-panel form h3 { margin: 28px 0 14px; }
.enquiry-panel form > h3:first-child { margin-top: 18px; }
