:root {
  --sand: #f4efe7;
  --sand-strong: #e8ddcf;
  --ink: #2c2927;
  --muted: #73675d;
  --brand: #ee6a1a;
  --brand-deep: #a9521f;
  --gold: #e6b64d;
  --paper: #fffdf9;
  --shadow: 0 22px 60px rgba(101, 61, 22, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top, rgba(247, 225, 184, 0.45), transparent 28%),
    linear-gradient(180deg, #7ec3df 0%, #c6e7f5 20%, #f8e9b0 52%, #f7f1e8 52%, #f7f1e8 100%);
  font-family: "Manrope", sans-serif;
}

a {
  color: var(--brand-deep);
}

.hero-section {
  position: relative;
  min-height: clamp(360px, 33vw, 640px);
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 72%;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(108, 183, 215, 0.10), transparent 22%, rgba(255, 221, 152, 0.18) 100%);
  pointer-events: none;
}

.intro-section {
  position: relative;
  background: var(--paper);
  border-top-left-radius: 48% 48px;
  border-top-right-radius: 48% 48px;
  margin-top: -56px;
  padding: 64px 0 36px;
}

.section-copy h1 {
  margin: 0 0 14px;
  color: var(--brand);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3.2rem, 6vw, 5.7rem);
  line-height: 0.94;
  font-weight: 700;
}

.lead-copy {
  max-width: 620px;
  margin-bottom: 24px;
  font-size: clamp(1.7rem, 2.6vw, 2.8rem);
  line-height: 1.08;
}

.event-metadata {
  margin-bottom: 24px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
  font-weight: 800;
}

.venue {
  font-size: clamp(1.55rem, 2.4vw, 2.35rem);
  line-height: 1.08;
  margin-bottom: 24px;
}

.program-note {
  margin-bottom: 22px;
  font-size: 1.35rem;
  font-style: italic;
}

.intro-text {
  max-width: 590px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.registration-shell,
.legal-shell,
.admin-login-shell,
.table-shell {
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(251, 246, 239, 0.98));
  border: 1px solid rgba(190, 148, 102, 0.18);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.registration-shell {
  padding: 30px;
}

.form-header span,
.legal-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--brand-deep);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 800;
}

.form-header h2,
.legal-shell h1,
.admin-login-shell h1,
.admin-header h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: 3rem;
  line-height: 0.95;
  margin-bottom: 12px;
}

.form-header p {
  color: var(--muted);
  margin-bottom: 22px;
}

.form-control {
  border-radius: 14px;
  border-color: rgba(123, 103, 77, 0.22);
  min-height: 52px;
  padding: 0.9rem 1rem;
}

.form-control:focus,
.form-check-input:focus {
  border-color: rgba(238, 106, 26, 0.42);
  box-shadow: 0 0 0 0.25rem rgba(238, 106, 26, 0.14);
}

textarea.form-control {
  min-height: 136px;
}

.form-label {
  font-weight: 700;
}

.consent-box {
  padding: 16px 18px 16px 42px;
  border-radius: 16px;
  background: rgba(244, 239, 231, 0.7);
}

.btn-register {
  padding: 0.95rem 1.5rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 16px 30px rgba(169, 82, 31, 0.24);
}

.btn-register:hover,
.btn-register:focus {
  color: #fff;
  background: linear-gradient(135deg, #ff7b2c 0%, #9d4214 100%);
}

.legal-link {
  font-weight: 700;
  text-decoration: none;
}

.brand-strip {
  padding-top: 42px;
}

.brand-strip-inner {
  display: flex;
  justify-content: flex-end;
}

.brand-logo {
  width: min(420px, 62vw);
  height: auto;
}

@media (min-width: 1400px) {
  .hero-section {
    min-height: 420px;
  }

  .hero-image {
    object-position: center 68%;
  }

  .intro-section {
    margin-top: -42px;
    padding-top: 44px;
  }

  .registration-shell {
    padding: 26px;
  }

  .section-copy h1 {
    margin-bottom: 10px;
  }

  .lead-copy,
  .event-metadata,
  .venue,
  .program-note {
    margin-bottom: 18px;
  }
}

.success-modal {
  border: 0;
  border-radius: 26px;
  overflow: hidden;
}

.success-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(238, 106, 26, 0.12);
  color: var(--brand-deep);
  font-weight: 800;
  margin-bottom: 18px;
}

.success-modal h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.6rem;
}

.success-modal p {
  font-size: 1.05rem;
}

.success-modal .secondary {
  color: var(--muted);
}

.legal-page,
.admin-page {
  padding: 56px 0;
}

.legal-shell,
.admin-login-shell {
  max-width: 860px;
  margin: 0 auto;
  padding: 38px;
}

.legal-shell h2 {
  margin-top: 28px;
  margin-bottom: 10px;
  font-size: 1.2rem;
  font-weight: 800;
}

.legal-shell p {
  color: #514943;
  line-height: 1.8;
}

.admin-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.table-shell {
  padding: 10px;
}

.admin-table {
  margin: 0;
}

.admin-table thead th {
  color: var(--muted);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom-width: 1px;
}

.admin-table td,
.admin-table th {
  padding: 1rem;
}

@media (max-width: 991.98px) {
  .hero-section {
    min-height: 520px;
  }

  .hero-image {
    object-position: left 62%;
  }

  .section-copy h1,
  .form-header h2,
  .legal-shell h1,
  .admin-login-shell h1,
  .admin-header h1 {
    font-size: 2.75rem;
  }

  .brand-strip-inner {
    justify-content: center;
  }

  .admin-header {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 575.98px) {
  .hero-section {
    min-height: 360px;
  }

  .hero-image {
    object-position: left 52%;
  }

  .intro-section {
    border-top-left-radius: 44% 24px;
    border-top-right-radius: 44% 24px;
    padding-top: 42px;
  }

  .section-copy h1 {
    font-size: 4.2rem;
  }

  .lead-copy {
    font-size: 1.2rem;
    line-height: 1.12;
    margin-bottom: 20px;
  }

  .event-metadata {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }

  .venue {
    font-size: 1rem;
    line-height: 1.2;
    margin-bottom: 18px;
  }

  .program-note {
    font-size: 0.9rem;
    margin-bottom: 18px;
  }

  .intro-text {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .registration-shell,
  .legal-shell,
  .admin-login-shell {
    padding: 22px;
    border-radius: 22px;
  }

  .form-header h2,
  .legal-shell h1,
  .admin-login-shell h1,
  .admin-header h1 {
    font-size: 2.3rem;
  }

  .form-header p {
    font-size: 0.95rem;
    margin-bottom: 18px;
  }

  .form-label,
  .consent-box,
  .legal-link,
  .btn-register {
    font-size: 0.95rem;
  }

  .lead-copy,
  .event-metadata,
  .venue {
    word-break: normal;
  }
}
