/* ============================================================
   Singing Christmas Tree 2026 — Registration Styles
   Color palette: Teal, Forest Green, Cream, Burgundy, Gold, Purple
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Lato:wght@300;400;700&family=Dancing+Script:wght@600;700&display=swap');

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --teal:           #17A697;
  --teal-dark:      #0E8A7D;
  --teal-light:     #D6F0ED;
  --teal-xlight:    #EEF8F7;
  --forest:         #1B4332;
  --forest-mid:     #2D6A4F;
  --cream:          #F8F4EF;
  --cream-dark:     #EDE8DF;
  --burgundy:       #8B1A2B;
  --gold:           #C9A84C;
  --gold-light:     #F0E4C3;
  --gold-xlight:    #FAF5E8;
  --purple:         #7B2D8B;
  --purple-light:   #9B4DAB;
  --charcoal:       #2D2D2D;
  --mid-grey:       #6B6B6B;
  --border:         #DDD5C8;
  --border-focus:   #17A697;
  --error:          #B91C1C;
  --success:        #166534;
  --white:          #FFFFFF;

  --font-serif:     'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-script:    'Dancing Script', cursive;
  --font-sans:      'Lato', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --radius:         6px;
  --radius-lg:      12px;
  --shadow-sm:      0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:      0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:      0 8px 32px rgba(0,0,0,0.12);

  --max-width:      700px;
  --transition:     0.2s ease;
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family:      var(--font-sans);
  font-size:        16px;
  line-height:      1.65;
  color:            var(--charcoal);
  background-color: var(--cream);
  min-height:       100vh;
  display:          flex;
  flex-direction:   column;
}

img { max-width: 100%; display: block; }
a   { color: var(--purple); text-decoration: underline; }
a:hover { color: var(--purple-light); }

/* ── Header ────────────────────────────────────────────────── */
.site-header {
  background: linear-gradient(160deg, var(--forest) 0%, var(--forest-mid) 100%);
  color: var(--cream);
  text-align: center;
  padding: 48px 24px 40px;
  position: relative;
  overflow: hidden;
}

/* Subtle snowflake/star pattern overlay */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* Gold top accent bar */
.site-header::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--gold) 0%, #E8C96A 50%, var(--gold) 100%);
}

.header-ornament {
  font-size: 56px;
  line-height: 1;
  margin-bottom: 12px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.brand-logo {
  max-width: 220px;
  width: 100%;
  height: auto;
  margin: 0 auto 16px;
  border-radius: var(--radius);
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.3));
}

.header-corner-logo {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 150px;
  height: auto;
  border-radius: 6px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
  z-index: 2;
}

.header-byline {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(248, 244, 239, 0.75);
  margin-bottom: 10px;
}

.header-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  color: var(--gold);
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  line-height: 1.15;
  margin-bottom: 8px;
}

.header-show-name {
  font-family: var(--font-script);
  font-size: clamp(22px, 4vw, 34px);
  color: var(--cream);
  opacity: 0.95;
  margin-bottom: 4px;
}

.header-year {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.85;
}

.header-divider {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 16px auto 0;
}

/* ── Main Content ──────────────────────────────────────────── */
main {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 20px 48px;
}

/* ── Intro Banner ──────────────────────────────────────────── */
.intro-banner {
  background: linear-gradient(135deg, var(--gold-xlight) 0%, var(--cream-dark) 100%);
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.intro-banner h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--forest);
  margin-bottom: 8px;
}

.intro-banner p {
  font-size: 15px;
  color: var(--mid-grey);
  line-height: 1.6;
}

.intro-banner .venue {
  margin-top: 12px;
  font-size: 13px;
  color: var(--forest);
  font-weight: 700;
}

/* ── Show Dates Callout ────────────────────────────────────── */
.show-dates {
  background: var(--teal-xlight);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 16px 0 0;
  text-align: left;
}

.show-dates h3 {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--teal-dark);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.show-dates ul {
  list-style: none;
  font-size: 14px;
  color: var(--charcoal);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 4px 16px;
}

.show-dates ul li::before {
  content: '🎭 ';
  font-size: 12px;
}

/* ── Form Card ─────────────────────────────────────────────── */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

/* ── Form Sections ─────────────────────────────────────────── */
.form-section {
  padding: 28px 32px;
  border-bottom: 1px solid var(--cream-dark);
}
.form-section:last-of-type { border-bottom: none; }

.section-heading {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-heading-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.section-subheading {
  font-size: 13px;
  color: var(--mid-grey);
  margin-bottom: 20px;
  padding-left: 30px;  /* align under title past icon */
}

/* ── Form Fields ───────────────────────────────────────────── */
.field-group {
  margin-bottom: 18px;
}
.field-group:last-child { margin-bottom: 0; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 5px;
}

label .required {
  color: var(--burgundy);
  margin-left: 2px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--charcoal);
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
  border-color: var(--border-focus);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(23, 166, 151, 0.15);
}

input.error,
textarea.error {
  border-color: var(--error);
}

textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.5;
}

.field-hint {
  font-size: 12px;
  color: var(--mid-grey);
  margin-top: 4px;
}

/* ── Checkboxes — Participation Areas ─────────────────────── */
.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.checkbox-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  background: var(--cream);
  user-select: none;
}

.checkbox-card:hover {
  border-color: var(--teal);
  background: var(--teal-xlight);
}

.checkbox-card input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}

.checkbox-card.checked {
  border-color: var(--teal);
  background: var(--teal-xlight);
}

.checkbox-card-label {
  flex: 1;
}

.checkbox-card-label strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--charcoal);
}

.checkbox-card-label small {
  font-size: 12px;
  color: var(--mid-grey);
  line-height: 1.4;
}

/* ── Checkboxes — Show Conflicts ───────────────────────────── */
.show-conflict-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.show-conflict-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  background: var(--cream);
  user-select: none;
  font-size: 14px;
}

.show-conflict-item:hover {
  border-color: var(--burgundy);
  background: #FDF5F6;
}

.show-conflict-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--burgundy);
  flex-shrink: 0;
  cursor: pointer;
}

.show-conflict-item.checked {
  border-color: var(--burgundy);
  background: #FDF5F6;
}

.show-conflict-item .show-date {
  font-weight: 700;
  color: var(--charcoal);
}

.show-conflict-item .show-time {
  color: var(--mid-grey);
  margin-left: 4px;
}

/* ── Fee Callout ───────────────────────────────────────────── */
.fee-callout {
  background: linear-gradient(135deg, var(--gold-xlight), var(--cream-dark));
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
}

.fee-callout h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--forest);
  margin-bottom: 8px;
}

.fee-amount {
  font-size: 36px;
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--forest);
  margin: 4px 0;
}

.fee-amount sup {
  font-size: 18px;
  vertical-align: super;
}

.fee-note {
  font-size: 13px;
  color: var(--mid-grey);
  line-height: 1.5;
  margin-top: 8px;
}

.fee-note strong { color: var(--charcoal); }

/* ── Submit Section ────────────────────────────────────────── */
.submit-section {
  background: var(--forest);
  padding: 32px;
  text-align: center;
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--forest);
  background: linear-gradient(135deg, var(--gold) 0%, #E8C96A 50%, var(--gold) 100%);
  border: none;
  border-radius: 50px;
  padding: 16px 48px;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  width: 100%;
  max-width: 380px;
  letter-spacing: 0.02em;
}

.submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.3);
}

.submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

.submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.submit-btn .btn-icon {
  font-size: 20px;
}

.submit-legal {
  font-size: 12px;
  color: rgba(248, 244, 239, 0.6);
  margin-top: 16px;
  line-height: 1.5;
}

/* ── Error / Alert Messages ────────────────────────────────── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 20px;
  display: none;
}

.alert.alert-error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: var(--error);
  display: block;
}

.alert.alert-warning {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  color: #92400E;
  display: block;
}

.field-error {
  font-size: 12px;
  color: var(--error);
  margin-top: 4px;
  display: none;
}
.field-error.visible { display: block; }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--forest);
  color: rgba(248, 244, 239, 0.75);
  text-align: center;
  padding: 32px 24px;
  font-size: 13px;
  line-height: 1.8;
  margin-top: auto;
}

.site-footer a {
  color: var(--gold);
  text-decoration: none;
}
.site-footer a:hover { text-decoration: underline; }

.footer-logo {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--gold);
  margin-bottom: 8px;
}

.footer-logo-img {
  max-width: 220px;
  width: 100%;
  height: auto;
  margin: 0 auto 12px;
  border-radius: var(--radius);
}

.footer-social {
  margin: 18px 0 4px;
}

.footer-social-heading {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(248, 244, 239, 0.55);
  margin-bottom: 12px;
}

.footer-social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
}

.footer-social-icons a {
  color: var(--gold);
  display: inline-flex;
  opacity: 0.9;
  transition: opacity 0.15s ease;
}

.footer-social-icons a:hover {
  opacity: 1;
  text-decoration: none;
}

.footer-social-icons svg {
  width: 20px;
  height: 20px;
}

.footer-divider {
  width: 60px;
  height: 1px;
  background: rgba(201, 168, 76, 0.4);
  margin: 16px auto;
}

/* ── Spinner ────────────────────────────────────────────────── */
.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(27, 67, 50, 0.3);
  border-top-color: var(--forest);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 600px) {
  .form-section {
    padding: 22px 18px;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .checkbox-grid {
    grid-template-columns: 1fr;
  }

  .header-ornament { font-size: 44px; }
  .brand-logo { max-width: 160px; }
  .header-corner-logo { width: 110px; top: 10px; left: 10px; }

  .submit-section { padding: 24px 18px; }

  .fee-amount { font-size: 28px; }
}

/* ── Success Page Styles ────────────────────────────────────── */
.success-hero {
  text-align: center;
  padding: 48px 24px 36px;
}

.success-icon {
  font-size: 72px;
  margin-bottom: 16px;
  animation: popIn 0.5s ease-out;
}

@keyframes popIn {
  0%   { transform: scale(0.5); opacity: 0; }
  80%  { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.success-title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 5vw, 38px);
  color: var(--purple);
  margin-bottom: 12px;
}

.success-subtitle {
  font-family: var(--font-script);
  font-size: clamp(18px, 3.5vw, 26px);
  color: var(--forest);
}

.success-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  overflow: hidden;
  max-width: var(--max-width);
  margin: 0 auto;
}

.success-body {
  padding: 28px 32px;
}

.success-body h3 {
  font-family: var(--font-serif);
  color: var(--forest);
  font-size: 17px;
  margin-bottom: 8px;
}

.success-body p {
  font-size: 14px;
  color: var(--mid-grey);
  line-height: 1.65;
  margin-bottom: 12px;
}

.success-dates-list {
  list-style: none;
  margin: 12px 0;
}

.success-dates-list li {
  padding: 8px 12px;
  font-size: 14px;
  border-bottom: 1px solid var(--cream-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.success-dates-list li:last-child { border-bottom: none; }

.back-btn {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--teal);
  font-weight: 700;
  text-decoration: none;
}

.back-btn:hover { text-decoration: underline; }
