:root {
  --sage: #84a98c;
  --sage-light: #cadabf; /* slightly lighter muted green */
  --ivory: #fdf8ef;
  --ivory-dark: #f5eedf;
  --gold: #b08d4a;
  --gold-light: #dfc898;
  --blush: #fbcfe8;
  --text: #2c362e;
  --text-light: #57655a;
  
  --font-serif: 'Cormorant Garamond', serif;
  --font-script: 'Allura', cursive;
  --font-sans: 'Inter', sans-serif;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--ivory);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hidden {
  display: none !important;
}

.page-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px 60px;
  width: 100%;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  text-align: center;
  padding: 40px 0 60px;
  position: relative;
}

.hero-image-wrap {
  width: 100%;
  max-width: 800px;
  height: 350px;
  margin: 0 auto 40px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(132, 169, 140, 0.15);
  position: relative;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spa-logo {
  font-family: var(--font-serif);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 16px;
  font-weight: 600;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 300;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 24px;
}

.hero-title span {
  font-family: var(--font-script);
  font-size: 4rem;
  color: var(--sage);
  display: block;
  margin-top: -10px;
}

.hero-subtitle {
  max-width: 500px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--text-light);
}

/* ==========================================================================
   VOUCHER MOCKUP
   ========================================================================== */
.voucher-section {
  margin-bottom: 60px;
}

.voucher-card {
  max-width: 650px;
  margin: 0 auto;
  background-color: #fff;
  border-radius: 4px;
  aspect-ratio: 21 / 9;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.05);
  padding: 30px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(176, 141, 74, 0.2);
}

.voucher-bg-texture {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: linear-gradient(135deg, rgba(253,248,239,0.5) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
  z-index: 0;
}

.voucher-header, .voucher-body, .voucher-footer {
  position: relative;
  z-index: 1;
}

.voucher-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--ivory-dark);
  padding-bottom: 15px;
}

.voucher-wordmark {
  font-family: var(--font-serif);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 1.25rem;
  color: var(--gold);
  font-weight: 600;
  /* Emboss effect */
  text-shadow: 1px 1px 1px rgba(255,255,255,0.8), -1px -1px 1px rgba(0,0,0,0.1);
}

.voucher-script {
  font-family: var(--font-script);
  font-size: 2.2rem;
  color: var(--sage);
  line-height: 1;
}

.voucher-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-grow: 1;
  padding: 20px 0;
}

.voucher-fields {
  flex-grow: 1;
  padding-right: 40px;
}

.v-field {
  display: flex;
  align-items: flex-end;
  margin-bottom: 16px;
}

.v-label {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--text-light);
  width: 50px;
  font-style: italic;
}

.v-line {
  flex-grow: 1;
  border-bottom: 1px solid var(--gold-light);
  min-height: 24px;
  padding: 0 10px;
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--text);
  line-height: 0.8;
}

.voucher-qr-wrap {
  width: 80px;
  height: 80px;
  padding: 5px;
  background: #fff;
  border: 1px solid var(--ivory-dark);
}

.css-qr-code {
  width: 100%;
  height: 100%;
  background: 
    repeating-linear-gradient(45deg, var(--text) 0, var(--text) 4px, transparent 4px, transparent 8px),
    repeating-linear-gradient(-45deg, var(--text) 0, var(--text) 4px, transparent 4px, transparent 8px);
  opacity: 0.8;
}

.voucher-footer {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ==========================================================================
   TIERS SECTION
   ========================================================================== */
.tiers-section {
  margin-bottom: 60px;
}

.section-heading {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 30px;
  color: var(--text);
}

.tiers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.tier-card {
  cursor: pointer;
  position: relative;
}

.tier-card input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.tier-card-inner {
  background: #fff;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 30px 20px;
  height: 100%;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.tier-card input[type="radio"]:checked + .tier-card-inner {
  border-color: var(--gold);
  box-shadow: 0 10px 30px rgba(176, 141, 74, 0.15);
  transform: translateY(-5px);
}

.tier-card:hover .tier-card-inner {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.tier-price {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--sage);
  margin-bottom: 10px;
}

.tier-name {
  font-weight: 500;
  margin-bottom: 20px;
  color: var(--text);
  font-size: 1.1rem;
}

.tier-features {
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-light);
  text-align: center;
}

.tier-features li {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ivory-dark);
}

.tier-features li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* ==========================================================================
   FORM SECTION
   ========================================================================== */
.form-section {
  margin-bottom: 60px;
}

.form-card {
  background: #fff;
  border-radius: 16px;
  padding: 50px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.04);
  max-width: 800px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="date"],
.form-group textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--sage-light);
  background: transparent;
  padding: 10px 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.3s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #a0aec0;
  font-style: italic;
  font-family: var(--font-serif);
  font-size: 1.1rem;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}

/* Toggle */
.radio-toggle {
  display: flex;
  gap: 15px;
}

.toggle-option {
  cursor: pointer;
  display: flex;
  align-items: center;
}

.toggle-option input {
  margin-right: 8px;
  accent-color: var(--gold);
}

.submit-btn {
  width: 100%;
  background: var(--sage);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 18px 24px;
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
}

.submit-btn:hover {
  background: #6f9277;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(132, 169, 140, 0.3);
}

/* ==========================================================================
   UTILITIES & STATES
   ========================================================================== */
.error-message {
  background-color: #fff5f5;
  color: #c53030;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 25px;
  font-size: 0.9rem;
  border-left: 4px solid #c53030;
}

.status-banner {
  background: var(--ivory-dark);
  color: var(--text);
  text-align: center;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 40px;
  font-family: var(--font-serif);
  font-size: 1.5rem;
}

.success-card {
  background: #fff;
  border-radius: 16px;
  padding: 60px 40px;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0,0,0,0.04);
  max-width: 600px;
  margin: 0 auto 60px;
}

.success-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.success-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 15px;
}

.success-message {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 10px;
}

.success-receipt {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 30px;
}

.secondary-btn {
  background: transparent;
  color: var(--sage);
  border: 1px solid var(--sage);
  border-radius: 4px;
  padding: 12px 24px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s;
}

.secondary-btn:hover {
  background: var(--sage);
  color: #fff;
}

/* Spinner */
#loading-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(253, 248, 239, 0.8);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--sage-light);
  border-top-color: var(--sage);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Responsive */
@media (max-width: 768px) {
  .hero-title { font-size: 2.5rem; }
  .hero-title span { font-size: 3rem; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-card { padding: 30px 20px; }
  .voucher-card { padding: 20px; aspect-ratio: auto; height: 300px; }
  .voucher-script { font-size: 1.8rem; }
  .hero-image-wrap { height: 250px; }
}
