:root {
  --navy-950: #0d1b30;
  --navy-900: #132c4d;
  --navy-800: #1c3a63;
  --navy-700: #29527f;
  --gold-500: #c8992e;
  --gold-400: #d9ad4c;
  --gold-100: #f6ecd6;
  --paper: #f8f6f1;
  --card: #ffffff;
  --ink: #1b2430;
  --ink-soft: #5b6472;
  --line: #e4e0d6;
  --danger: #b3261e;
  --success-bg: #eef7ee;
  --success-ink: #1e5c2a;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(13, 27, 48, 0.08);
  font-size: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

h1, h2, h3, .brand-org {
  font-family: "Fraunces", Georgia, serif;
}

/* Top bar */
.topbar {
  background: linear-gradient(135deg, var(--navy-950), var(--navy-800));
  color: white;
  border-bottom: 3px solid var(--gold-500);
}
.topbar-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-crest {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--gold-400), var(--gold-500));
  color: var(--navy-950);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.4);
}
.brand-text { display: flex; flex-direction: column; }
.brand-org {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-100);
  opacity: 0.9;
}
.brand-form { font-size: 1.25rem; font-weight: 700; }

.lang-toggle {
  border: 1px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.08);
  color: white;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s ease;
}
.lang-toggle:hover { background: rgba(255,255,255,0.18); }

/* Layout */
.page {
  max-width: 880px;
  margin: 0 auto;
  padding: 28px 20px 60px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  padding: 28px 28px 32px;
  margin-bottom: 22px;
}

.section-title {
  margin: 0 0 20px;
  font-size: 1.4rem;
  color: var(--navy-900);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold-100);
}
.subsection-title {
  margin: 24px 0 10px;
  font-size: 1.02rem;
  color: var(--navy-800);
  font-weight: 600;
}

.field-group { margin-bottom: 20px; }
.field-group:last-child { margin-bottom: 0; }

.field-label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  margin-bottom: 8px;
}
.field-label.required::after {
  content: " *";
  color: var(--danger);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="file"],
select,
textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #cdd3db;
  border-radius: 9px;
  background: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--navy-700);
  box-shadow: 0 0 0 3px rgba(41, 82, 127, 0.15);
}
textarea { resize: vertical; min-height: 80px; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 10px;
}
.grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 10px;
}
#country { margin-top: 4px; }

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}
.radio-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #cdd3db;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.9rem;
  cursor: pointer;
  background: #fff;
  transition: all 0.15s ease;
}
.radio-pill:has(input:checked) {
  border-color: var(--navy-700);
  background: var(--gold-100);
  color: var(--navy-900);
  font-weight: 600;
}
.radio-pill input { accent-color: var(--navy-800); }

.note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0 0 14px;
}

.table-scroll { overflow-x: auto; }
.availability-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 620px;
  font-size: 0.82rem;
}
.availability-table th, .availability-table td {
  border: 1px solid var(--line);
  padding: 8px 6px;
  text-align: center;
}
.availability-table th {
  background: var(--navy-900);
  color: white;
  font-weight: 600;
  font-size: 0.75rem;
}
.availability-table td:first-child, .availability-table th:first-child {
  text-align: left;
  background: var(--gold-100);
  font-weight: 600;
  color: var(--navy-900);
}
.availability-table input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--navy-800);
  cursor: pointer;
}

.photo-preview {
  margin-top: 12px;
  width: 96px; height: 96px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.submit-btn {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: white;
  border: none;
  border-radius: 999px;
  padding: 15px 34px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(19, 44, 77, 0.28);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.submit-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(19, 44, 77, 0.32); }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.form-status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 0.92rem;
  display: none;
}
.form-status.visible { display: block; }
.form-status.success { background: var(--success-bg); color: var(--success-ink); }
.form-status.error { background: #fdecea; color: var(--danger); }

.page-footer {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.8rem;
  padding: 20px;
}

@media (max-width: 640px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .card { padding: 20px 18px 24px; }
  .brand-form { font-size: 1.05rem; }
}
