@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600&family=Source+Sans+3:wght@300;400;600;700&display=swap');

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #0f2547;
  --blue:       #1a3a6b;
  --blue-mid:   #2a5298;
  --blue-light: #1a6bb5;
  --gold:       #c9a84c;
  --gold-light: #e8c96a;
  --cream:      #f8f6f0;
  --white:      #ffffff;
  --gray-100:   #f1efe9;
  --gray-200:   #e0ddd5;
  --gray-400:   #a0998e;
  --gray-600:   #6b655c;
  --gray-800:   #3d3830;
  --text:       #2a2520;
  --shadow-sm:  0 2px 8px rgba(15,37,71,0.10);
  --shadow-md:  0 4px 20px rgba(15,37,71,0.14);
  --shadow-lg:  0 8px 40px rgba(15,37,71,0.18);
  --transition: 0.22s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--blue-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }

/* ===== SITE HEADER ===== */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.topbar {
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 10px 40px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  flex-shrink: 0;
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  color: var(--white);
  font-weight: 400;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

.logo-text span {
  display: block;
  font-size: 10px;
  color: var(--gold-light);
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.main-nav {
  background: var(--blue);
  padding: 0 40px;
  display: flex;
  gap: 0;
  overflow-x: auto;
}

.main-nav a {
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 11px 18px;
  border-bottom: 3px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--white);
  border-bottom-color: var(--gold);
  background: rgba(255,255,255,0.07);
}

/* ===== HERO BANNER ===== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue-mid) 60%, #3a6dba 100%);
  position: relative;
  overflow: hidden;
  padding: 50px 40px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(201,168,76,0.08);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: 30%;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}

.hero-text { flex: 1; position: relative; z-index: 1; }

.hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 10px;
}

.hero-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 12px;
}

.hero-text p {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  font-weight: 300;
  max-width: 480px;
}

.hero-image-wrapper {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.hero-image {
  width: 220px;
  height: 155px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  border: 3px solid rgba(201,168,76,0.5);
  box-shadow: var(--shadow-lg);
}

.hero-image-placeholder {
  width: 220px;
  height: 155px;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  border: 2px dashed rgba(201,168,76,0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  gap: 6px;
}

.hero-image-placeholder .icon { font-size: 28px; opacity: 0.6; }

/* ===== PAGE LAYOUT ===== */
.page-container { max-width: 1100px; margin: 0 auto; padding: 0 40px 60px; }

/* ===== SECTION GRID (Page 1) ===== */
.sections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.info-card {
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

.info-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-header {
  background: var(--blue);
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-header .card-icon {
  width: 32px; height: 32px;
  background: rgba(201,168,76,0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.card-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
}

.card-body { padding: 20px 22px; }

/* ===== LISTS ===== */
.info-card ul {
  list-style: none;
  padding: 0;
}

.info-card > .card-body > ul > li {
  border-bottom: 1px solid var(--gray-100);
  padding: 7px 0;
}

.info-card > .card-body > ul > li:last-child { border-bottom: none; }

.info-card ul li a {
  font-size: 13.5px;
  color: var(--gray-800);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition), padding-left var(--transition);
}

.info-card ul li a::before {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  transition: transform var(--transition);
}

.info-card ul li a:hover {
  color: var(--blue-light);
  padding-left: 4px;
}

.info-card ul li a:hover::before { transform: scale(1.4); }

/* Nested list (sub-items) */
.info-card ul ul {
  padding-left: 18px;
  margin-top: 4px;
}

.info-card ul ul li { border-bottom: none !important; padding: 3px 0 !important; }

.info-card ul ul li a {
  font-size: 12.5px;
  color: var(--gray-600);
}

.info-card ul ul li a::before {
  width: 4px; height: 4px;
  background: var(--gray-400);
}

.list-parent-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gray-800);
  padding: 7px 0 3px;
  display: block;
}

/* ===== TABLE (Page 1 Quick Links) ===== */
.quick-links-section { margin-top: 40px; }

.section-heading {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--blue);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

.links-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.links-table thead tr {
  background: var(--blue);
  color: var(--white);
}

.links-table thead th {
  padding: 13px 20px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.links-table tbody tr {
  border-bottom: 1px solid var(--gray-100);
  transition: background var(--transition);
}

.links-table tbody tr:last-child { border-bottom: none; }
.links-table tbody tr:hover { background: var(--gray-100); }

.links-table tbody td {
  padding: 12px 20px;
  font-size: 13.5px;
  vertical-align: middle;
}

.links-table td a {
  color: var(--blue-light);
  font-weight: 600;
}

.links-table td a:hover { color: var(--gold); }

.badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-online { background: #e8f5e9; color: #2e7d32; }
.badge-inperson { background: #e3f2fd; color: #1565c0; }
.badge-new { background: #fff3e0; color: #e65100; }

/* ===== PAGE FOOTER ===== */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.65);
  text-align: center;
  padding: 22px 40px;
  font-size: 12px;
}

.site-footer a { color: var(--gold-light); }
.site-footer a:hover { color: var(--white); }
.footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 10px; flex-wrap: wrap; }

/* ===== PAGE 2: BOARDING FORM ===== */
.page2-body {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 0;
  min-height: calc(100vh - 200px);
}

.form-main {
  padding: 40px 44px;
  background: var(--white);
}

.form-sidebar {
  background: var(--navy);
  padding: 36px 30px;
}

.page-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 6px;
}

.page-subtitle {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-200);
}

/* Form elements */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-row.three { grid-template-columns: 1fr 1fr 120px; }

.form-group { margin-bottom: 20px; }

label.field-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 7px;
}

input[type="text"],
select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 6px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--cream);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

input[type="text"]:focus,
select:focus {
  border-color: var(--blue-light);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(26,107,181,0.12);
}

.select-wrapper { position: relative; }
.select-wrapper::after {
  content: '▾';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-600);
  pointer-events: none;
  font-size: 12px;
}

/* Radio buttons */
.radio-group { display: flex; gap: 20px; margin-top: 4px; }

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--gray-800);
  padding: 8px 16px 8px 12px;
  border: 1.5px solid var(--gray-200);
  border-radius: 6px;
  transition: all var(--transition);
  background: var(--cream);
}

.radio-label:hover { border-color: var(--blue-light); background: var(--white); }

.radio-label input[type="radio"] {
  width: 16px; height: 16px;
  accent-color: var(--blue);
  flex-shrink: 0;
}

/* Checkboxes */
.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--gray-800);
  padding: 8px 12px;
  border: 1.5px solid var(--gray-200);
  border-radius: 6px;
  transition: all var(--transition);
  background: var(--cream);
}

.checkbox-label:hover { border-color: var(--blue-light); background: var(--white); }

.checkbox-label input[type="checkbox"] {
  width: 15px; height: 15px;
  accent-color: var(--blue);
  flex-shrink: 0;
}

/* T&C checkbox */
.tc-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  background: var(--gray-100);
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  margin-bottom: 24px;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--gray-800);
  transition: border-color var(--transition);
}

.tc-checkbox:hover { border-color: var(--blue); }

.tc-checkbox input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--blue);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Submit button */
.btn-apply {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: var(--white);
  border: none;
  padding: 13px 36px;
  border-radius: 7px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
}

.btn-apply:hover {
  background: var(--navy);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-apply:active { transform: translateY(0); }

.form-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

.back-link {
  font-size: 13px;
  color: var(--gray-600);
  transition: color var(--transition);
}

.back-link:hover { color: var(--blue-light); }

/* ===== SIDEBAR (Page 2) ===== */
.sidebar-block { margin-bottom: 32px; }

.sidebar-title {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.tc-scroll {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 14px;
  max-height: 140px;
  overflow-y: auto;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}

.tc-scroll::-webkit-scrollbar { width: 4px; }
.tc-scroll::-webkit-scrollbar-track { background: transparent; }
.tc-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 2px; }

.contact-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 16px;
}

.contact-intro {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 14px;
  line-height: 1.6;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-size: 13px;
  color: rgba(255,255,255,0.75);
}

.contact-item:last-child { border-bottom: none; }
.contact-icon { font-size: 14px; width: 20px; text-align: center; }

.contact-item a { color: var(--gold-light); }
.contact-item a:hover { color: var(--white); }

/* ===== BACK HEADER (Page 2) ===== */
.back-header {
  background: var(--navy);
  padding: 10px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.back-header a {
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.back-header a:hover { color: var(--white); }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.info-card { animation: fadeUp 0.5s ease both; }
.info-card:nth-child(1) { animation-delay: 0.05s; }
.info-card:nth-child(2) { animation-delay: 0.12s; }
.info-card:nth-child(3) { animation-delay: 0.19s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .sections-grid { grid-template-columns: 1fr; }
  .page2-body { grid-template-columns: 1fr; }
  .form-sidebar { order: -1; }
  .topbar, .main-nav, .hero, .page-container { padding-left: 20px; padding-right: 20px; }
  .hero { flex-direction: column; }
  .hero-image-placeholder { width: 100%; }
  .form-row, .form-row.three { grid-template-columns: 1fr; }
  .form-main { padding: 28px 22px; }
  .back-header { padding-left: 20px; padding-right: 20px; }
}
