@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700&family=DM+Serif+Display&display=swap');
/* ── TOKENS ── */
:root {
  --maroon:      #7a1a1a;
  --maroon-dark: #4d0f0f;
  --maroon-mid:  #5c1414;
  --gold:        #c9a84c;
  --gold-light:  #e8cc6a;
  --gold-dim:    rgba(201,168,76,0.14);
  --cream:       #faf7f2;
  --cream-alt:   #f3ede3;
  --surface:     #ffffff;
  --text:        #1a1207;
  --text-2:      #5a5040;
  --muted:       #8a7e6e;
  --border:      #e4dace;
  --border-soft: rgba(122,26,26,0.10);
  --shadow-sm:   0 1px 4px rgba(26,12,7,0.06), 0 4px 14px rgba(26,12,7,0.04);
  --shadow-md:   0 2px 12px rgba(26,12,7,0.08), 0 16px 40px rgba(26,12,7,0.07);
  --radius:      16px;
  --radius-sm:   10px;
  --transition:  0.22s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* ── PAGE HERO ── */
.page-hero {
  margin-top: 30px;
  background: var(--maroon-dark);
  position: relative;
  overflow: hidden;
  padding: 100px 24px 64px;
  text-align: center;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 20% 50%, rgba(201,168,76,0.10) 0%, transparent 65%),
    radial-gradient(ellipse 50% 80% at 80% 30%, rgba(122,26,26,0.40) 0%, transparent 60%);
}

/* Decorative lines */
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 40px,
      rgba(255,255,255,0.015) 40px,
      rgba(255,255,255,0.015) 41px
    );
}

.hero-inner { position: relative; z-index: 2; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.30);
  color: var(--gold-light);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 40px;
  margin-bottom: 22px;
}
.hero-eyebrow::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--gold);
  border-radius: 50%;
}

.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.page-hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}
.page-hero p {
  font-size: 15px;
  color: rgba(255,255,255,0.58);
  max-width: 460px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Steps row */
.hero-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 40px;
  flex-wrap: wrap;
  row-gap: 10px;
}
.step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.step-num {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(201,168,76,0.18);
  border: 1px solid rgba(201,168,76,0.30);
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-arrow {
  width: 36px; height: 1px;
  background: rgba(255,255,255,0.12);
  margin: 0 6px;
  position: relative;
}
.step-arrow::after {
  content: '›';
  position: absolute;
  right: -5px;
  top: -9px;
  color: rgba(255,255,255,0.18);
  font-size: 16px;
}

/* ── LAYOUT ── */
.page-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* Response box */
#response:not(:empty) {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-left: 4px solid #22c55e;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 14px;
  color: #15803d;
  font-weight: 500;
  margin-bottom: 28px;
  animation: slide-in 0.3s ease;
}
@keyframes slide-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── FORM CARD ── */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

/* ── FORM SECTIONS ── */
.form-section {
  padding: 32px 36px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.form-section:last-of-type { border-bottom: none; }

.section-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 26px;
}

.s-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(122,26,26,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  border: 1px solid rgba(122,26,26,0.10);
}

.section-head h2 {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--maroon-dark);
  margin-bottom: 3px;
  line-height: 1.2;
}

.sh-sub {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 400;
}

/* ── FORM ELEMENTS ── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.form-group:last-child { margin-bottom: 0; }

.form-group label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-2);
}

.req { color: var(--maroon); margin-left: 2px; }

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--cream);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(201,168,76,0.14);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: #c0b5a0; }

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238a7e6e' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.65;
}

/* ── TYPE SELECTOR ── */
.type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.type-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--cream);
  position: relative;
  overflow: hidden;
  user-select: none;
}

.type-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(122,26,26,0.04), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.type-card:hover {
  border-color: rgba(122,26,26,0.30);
  background: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.type-card:hover::before { opacity: 1; }

.type-card.active {
  border-color: var(--maroon);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(122,26,26,0.10), var(--shadow-sm);
}

.type-card.active::after {
  content: '✓';
  position: absolute;
  top: 10px; right: 12px;
  width: 20px; height: 20px;
  background: var(--maroon);
  color: #fff;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 20px;
}

.tc-icon { font-size: 24px; margin-bottom: 10px; line-height: 1; }

.tc-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--maroon-dark);
  margin-bottom: 4px;
  line-height: 1.2;
}

.tc-sub {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}

/* ── DYNAMIC FIELDS ── */
.dynamic-fields { display: none; }
.dynamic-fields.visible { display: block; animation: fade-in 0.28s ease; }
@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── FILE DROP ── */
.file-drop {
  position: relative;
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  background: var(--cream);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  overflow: hidden;
}

.file-drop:hover {
  border-color: var(--gold);
  background: rgba(201,168,76,0.04);
}

.file-drop.has-file {
  border-color: var(--maroon);
  border-style: solid;
  background: rgba(122,26,26,0.03);
}

.file-drop input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.fd-icon { font-size: 28px; margin-bottom: 8px; opacity: 0.5; }

.fd-label {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 4px;
}

.fd-sub { font-size: 11.5px; color: var(--muted); }

.file-name-display {
  margin-top: 10px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--maroon);
  word-break: break-all;
  min-height: 0;
}
.file-name-display:not(:empty)::before {
  content: '📎 ';
}

/* ── NOTICE BOX ── */
.form-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fffcf0;
  border: 1px solid rgba(201,168,76,0.28);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 13px;
  color: #7a5800;
  font-weight: 400;
  line-height: 1.6;
  margin-top: 6px;
}
.form-notice strong { font-weight: 600; }

/* ── SUBMIT AREA ── */
.form-submit {
  padding: 28px 36px 32px;
  background: var(--cream);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.submit-info {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 380px;
}
.submit-info strong { color: var(--text-2); font-weight: 600; }

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--maroon);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: all var(--transition);
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(122,26,26,0.25);
}
.btn-submit:hover {
  background: var(--maroon-mid);
  box-shadow: 0 6px 24px rgba(122,26,26,0.32);
  transform: translateY(-1px);
}
.btn-submit:active { transform: translateY(0); }
.btn-submit svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ── SECTION DIVIDER LABEL ── */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--maroon);
  background: rgba(122,26,26,0.07);
  border: 1px solid rgba(122,26,26,0.12);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 20px;
  display: block;
  width: fit-content;
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .form-section { padding: 24px 22px; }
  .form-submit { padding: 22px; flex-direction: column; align-items: stretch; }
  .btn-submit { justify-content: center; }
  .type-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .page-hero { padding: 88px 20px 52px; }
  .hero-steps { display: none; }
}/* ───────── FINAL RESPONSIVE FIX ───────── */

/* GLOBAL SAFETY FIX (prevents horizontal scroll issues) */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

img, video {
  max-width: 100%;
  height: auto;
}

/* ───────── TABLETS ───────── */
@media (max-width: 768px) {

  .page-wrap {
    padding: 36px 18px 60px;
  }

  .form-section {
    padding: 26px 24px;
  }

  .form-submit {
    padding: 22px 24px;
  }

  /* 3 column → 2 column instead of full collapse */
  .type-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-hero {
    padding: 90px 20px 55px;
  }

  .page-hero h1 {
    font-size: 2.1rem;
  }

  .hero-eyebrow {
    font-size: 10px;
  }
}

/* ───────── MOBILE PHONES ───────── */
@media (max-width: 640px) {

  .page-wrap {
    padding: 28px 16px 50px;
  }

  .form-section {
    padding: 22px 18px;
  }

  .section-head {
    flex-direction: column;
    gap: 10px;
  }

  .s-icon {
    width: 38px;
    height: 38px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* full single column layout */
  .type-grid {
    grid-template-columns: 1fr;
  }

  .form-submit {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .submit-info {
    max-width: 100%;
  }

  .btn-submit {
    width: 100%;
    justify-content: center;
  }

  .page-hero {
    padding: 80px 16px 45px;
  }

  .page-hero h1 {
    font-size: 1.8rem;
    line-height: 1.2;
  }

  .page-hero p {
    font-size: 13.5px;
  }
}

/* ───────── SMALL PHONES ───────── */
@media (max-width: 480px) {

  .page-hero {
    padding: 70px 14px 40px;
  }

  .page-hero h1 {
    font-size: 1.6rem;
  }

  .form-card {
    border-radius: 14px;
  }

  .form-section {
    padding: 18px 14px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 13.5px;
  }

  .btn-submit {
    padding: 12px 18px;
    font-size: 13.5px;
  }

  .file-drop {
    padding: 22px 14px;
  }

  .fd-icon {
    font-size: 24px;
  }
}

/* ───────── VERY SMALL DEVICES ───────── */
@media (max-width: 360px) {

  .page-hero h1 {
    font-size: 1.45rem;
  }

  .hero-eyebrow {
    padding: 5px 14px;
    font-size: 9.5px;
  }

  .form-section {
    padding: 16px 12px;
  }

  .btn-submit {
    font-size: 13px;
  }
}