*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #1a2744;
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --cream: #f8f4ee;
  --sand: #ede8df;
  --text: #2c2c2c;
  --muted: #7a7267;
  --border: #d6cfc4;
  --white: #ffffff;
  --danger: #c0392b;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  min-height: 100vh;
  padding: 0;
}

/* Header */
.header {
  background: var(--navy);
  padding: 24px 24px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    rgba(201,168,76,0.04) 20px,
    rgba(201,168,76,0.04) 40px
  );
}
.header-ornament {
  font-family: 'Cormorant Garamond', serif;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 8px;
  position: relative;
}
.header h1 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--white);
  font-size: 26px;
  font-weight: 300;
  line-height: 1.2;
  position: relative;
}
.header h1 em {
  color: var(--gold-light);
  font-style: italic;
}

/* Main */
.container {
  padding: 24px 20px 48px;
  max-width: 520px;
  margin: 0 auto;
}

/* Trip Card */
.trip-card {
  background: var(--navy);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.trip-card::after {
  content: '✈';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 64px;
  opacity: 0.07;
  color: var(--gold);
}
.trip-card-label {
  font-family: 'Cormorant Garamond', serif;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.trip-amount {
  font-family: 'Cormorant Garamond', serif;
  color: var(--white);
  font-size: 48px;
  font-weight: 300;
  line-height: 1;
  margin-bottom: 6px;
}
.trip-amount sup {
  font-size: 22px;
  vertical-align: top;
  padding-top: 8px;
}
.trip-desc {
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  font-weight: 300;
  margin-bottom: 20px;
  line-height: 1.5;
}
.trip-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.trip-meta-item {
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 12px 14px;
}
.trip-meta-item .meta-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.trip-meta-item .meta-value {
  font-size: 14px;
  color: var(--white);
  font-weight: 400;
}

/* Section */
.section {
  background: var(--white);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--navy);
  color: var(--gold);
  border-radius: 50%;
  font-size: 11px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  flex-shrink: 0;
}

/* Legal text */
.legal {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}
.legal strong {
  color: var(--text);
  font-weight: 500;
}

/* Signature area */
.sig-wrapper {
  position: relative;
}
.sig-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}
#signatureCanvas {
  width: 100%;
  height: 160px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--cream);
  touch-action: none;
  cursor: crosshair;
  display: block;
}
#signatureCanvas.active {
  border-color: var(--gold);
}
.sig-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}
.btn-clear {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--muted);
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-clear:hover { color: var(--danger); border-color: var(--danger); }
.sig-hint {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin-top: 8px;
}

/* Checkbox */
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 4px;
}
.check-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--navy);
  cursor: pointer;
}
.check-row label {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  cursor: pointer;
}

/* Submit */
.btn-submit {
  width: 100%;
  padding: 18px;
  background: var(--navy);
  color: var(--white);
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 1px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  margin-top: 8px;
  position: relative;
  overflow: hidden;
  transition: background 0.2s, transform 0.1s;
}
.btn-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(201,168,76,0.15));
}
.btn-submit:hover { background: #243360; }
.btn-submit:active { transform: scale(0.99); }
.btn-submit:disabled { background: #aaa; cursor: not-allowed; }
.btn-submit span { position: relative; }

/* Error */
.error-msg {
  font-size: 12px;
  color: var(--danger);
  margin-top: 8px;
  display: none;
}
.error-msg.visible { display: block; }

/* Success */
.success-screen {
  display: none;
  text-align: center;
  padding: 48px 24px;
}
.success-screen.visible { display: block; }
.success-icon {
  width: 72px;
  height: 72px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.success-icon svg { color: var(--gold); }
.success-screen h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  font-weight: 300;
  color: var(--navy);
  margin-bottom: 12px;
}
.success-screen p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.main-form {}
