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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  background: #f5f2ec;
  color: #3a3a3a;
  min-height: 100vh;
  overflow-x: hidden;
}

.page {
  max-width: 480px;
  margin: 0 auto;
  background: #f9f7f3;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-bg {
  display: block;
  width: 100%;
  height: auto;
}

.hero-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10% 15% 18%;
}

/* ===== Names ===== */
.names {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 16px;
}

.name {
  font-family: 'Cormorant SC', 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: #4a4a4a;
  line-height: 1.1;
  text-transform: uppercase;
}

.ampersand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.2rem;
  font-weight: 300;
  font-style: italic;
  color: #b0a89a;
  line-height: 1;
  margin: -4px 0;
}

/* ===== Divider ===== */
.divider {
  width: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #b0a89a, transparent);
  margin: 4px 0 16px;
}

/* ===== Quote ===== */
.quote {
  font-size: 0.95rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.6;
  color: #6a6a6a;
  text-align: center;
  max-width: 260px;
  margin-bottom: 24px;
}

/* ===== Date ===== */
.date-main {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: #3a3a3a;
  padding-top: 16px;
  border-top: 1px solid rgba(176, 168, 154, 0.4);
}

/* ===== Section titles ===== */
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 400;
  text-align: center;
  color: #4a4a4a;
  margin-bottom: 30px;
  letter-spacing: 0.02em;
}

/* ===== Calendar ===== */
.calendar-section {
  padding: 50px 20px;
  background: #fff;
}

.calendar {
  max-width: 360px;
  margin: 0 auto;
}

.calendar-month {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 20px;
  color: #3a3a3a;
  letter-spacing: 0.05em;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}

.calendar-grid .day-header {
  font-family: 'Cormorant SC', 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #6a6a6a;
  padding: 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #d0ccc4;
  margin-bottom: 4px;
}

.calendar-grid .day {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: #4a4a4a;
  padding: 8px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border-radius: 50%;
  transition: background 0.2s;
}

.calendar-grid .day.highlighted {
  background: #6b7f5e;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(107, 127, 94, 0.3);
}

.calendar-grid .day.weekend {
  color: #9a8e80;
}

/* ===== Countdown ===== */
.countdown-section {
  padding: 60px 20px 80px;
  background: #f2efe8;
}

.countdown {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  max-width: 420px;
  margin: 0 auto;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 70px;
}

.countdown-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  font-weight: 300;
  color: #3a3a3a;
  line-height: 1;
  letter-spacing: 0.02em;
}

.countdown-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  font-weight: 400;
  color: #8a8a8a;
  margin-top: 6px;
  letter-spacing: 0.05em;
}

.countdown-separator {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 300;
  color: #b0a89a;
  line-height: 1;
  padding-top: 2px;
}

/* ===== Guest Names (on invitation pages) ===== */
.guest-names {
  font-family: 'Cormorant SC', 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #4a4a4a;
  line-height: 1.2;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 16px;
}

.guest-names .ampersand {
  display: inline;
  font-size: 2.8rem;
}

/* ===== Survey Form ===== */
.survey-section {
  padding: 50px 20px 60px;
  background: #f9f7f3;
}

.survey-form {
  max-width: 360px;
  margin: 0 auto;
}

.survey-drinks-title {
  margin-top: 30px;
}

.survey-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Radio buttons */
.radio-option,
.checkbox-option {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid rgba(176, 168, 154, 0.3);
  background: #fff;
  transition: border-color 0.2s, background 0.2s;
}

.radio-option:hover,
.checkbox-option:hover {
  border-color: #6b7f5e;
  background: rgba(107, 127, 94, 0.04);
}

.radio-option input,
.checkbox-option input {
  display: none;
}

.radio-custom {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #b0a89a;
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.2s;
}

.radio-option input:checked ~ .radio-custom {
  border-color: #6b7f5e;
}

.radio-option input:checked ~ .radio-custom::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #6b7f5e;
}

.checkbox-custom {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 2px solid #b0a89a;
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.2s, background 0.2s;
}

.checkbox-option input:checked ~ .checkbox-custom {
  border-color: #6b7f5e;
  background: #6b7f5e;
}

.checkbox-option input:checked ~ .checkbox-custom::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.radio-label,
.checkbox-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: #4a4a4a;
}

/* Submit button */
.submit-btn {
  display: block;
  width: 100%;
  margin-top: 30px;
  padding: 14px 24px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #fff;
  background: #6b7f5e;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}

.submit-btn:hover {
  background: #5a6e4e;
}

.submit-btn:disabled {
  background: #b0a89a;
  cursor: not-allowed;
  opacity: 0.7;
}

/* Success message */
.survey-success {
  max-width: 360px;
  margin: 0 auto;
  text-align: center;
  padding: 30px 20px;
}

.survey-success p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 500;
  color: #6b7f5e;
}

/* ===== Footer ===== */
.footer {
  padding: 30px 20px;
  text-align: center;
  background: #f9f7f3;
  border-top: 1px solid rgba(176, 168, 154, 0.3);
}

.footer p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-style: italic;
  color: #8a8a8a;
}

/* ===== Responsive ===== */
@media (max-width: 400px) {
  .name {
    font-size: 2.2rem;
  }

  .ampersand {
    font-size: 2.6rem;
  }

  .date-main {
    font-size: 1.8rem;
  }

  .quote {
    font-size: 0.85rem;
  }

  .countdown-number {
    font-size: 2.8rem;
  }

  .countdown-item {
    min-width: 55px;
  }
}

@media (min-width: 481px) {
  .page {
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
  }
}
