/* ============================================
   1920s ART DECO — WEDDING MENU STYLESHEET
   ============================================ */

:root {
  --gold: #d4a876;
  --gold-light: #e8c9a0;
  --gold-dark: #b8915f;
  --black: #1a1a1a;
  --cream: #f5f0e1;
  --cream-dark: #e8dfc8;
  --white: #fefcf5;
  --charcoal: #2c2c2c;
  --text: #3a3630;
  --text-light: #6b6357;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  background-color: #2a2a2a;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem 1rem;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(212, 168, 118, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(212, 168, 118, 0.05) 0%, transparent 50%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 40px,
      rgba(212, 168, 118, 0.02) 40px,
      rgba(212, 168, 118, 0.02) 41px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 40px,
      rgba(212, 168, 118, 0.02) 40px,
      rgba(212, 168, 118, 0.02) 41px
    );
}

/* ---- Corner Ornaments ---- */
.corner-ornament {
  position: fixed;
  width: 80px;
  height: 80px;
  z-index: 0;
  pointer-events: none;
}

.corner-ornament::before,
.corner-ornament::after {
  content: '';
  position: absolute;
  background: var(--gold);
}

.top-left {
  top: 12px;
  left: 12px;
}
.top-left::before {
  top: 0; left: 0;
  width: 60px; height: 2px;
}
.top-left::after {
  top: 0; left: 0;
  width: 2px; height: 60px;
}

.top-right {
  top: 12px;
  right: 12px;
}
.top-right::before {
  top: 0; right: 0;
  width: 60px; height: 2px;
}
.top-right::after {
  top: 0; right: 0;
  width: 2px; height: 60px;
}

.bottom-left {
  bottom: 12px;
  left: 12px;
}
.bottom-left::before {
  bottom: 0; left: 0;
  width: 60px; height: 2px;
}
.bottom-left::after {
  bottom: 0; left: 0;
  width: 2px; height: 60px;
}

.bottom-right {
  bottom: 12px;
  right: 12px;
}
.bottom-right::before {
  bottom: 0; right: 0;
  width: 60px; height: 2px;
}
.bottom-right::after {
  bottom: 0; right: 0;
  width: 2px; height: 60px;
}

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: 680px;
  position: relative;
  z-index: 1;
}

.link-error-view {
  display: none;
  width: min(100%, 420px);
  margin: 18vh auto 0;
  padding: 2rem 1.5rem;
  border: 1px solid var(--gold-dark);
  background: var(--cream);
  color: var(--charcoal);
  text-align: center;
}

.link-error-view p {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.5;
  margin-top: 1rem;
}

/* ---- Header ---- */
.menu-header {
  text-align: center;
  padding: 2rem 0 1.5rem;
}

.logo-container {
  margin-bottom: 1.5rem;
}

.wedding-logo {
  max-width: 200px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.couple-names {
  font-family: 'Poiret One', serif;
  font-weight: 400;
  font-size: 3.2rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0.5rem 0 0.3rem;
  text-shadow: 0 0 40px rgba(201, 168, 76, 0.3);
}

.event-subtitle {
  font-family: 'Raleway', sans-serif;
  font-weight: 200;
  font-size: 1.1rem;
  color: var(--gold-light);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.event-details {
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  font-size: 0.85rem;
  color: var(--gold-dark);
  letter-spacing: 0.2em;
}

.detail-separator {
  margin: 0 0.8rem;
  font-size: 0.6rem;
  vertical-align: middle;
}

/* ---- Decorative Elements ---- */
.deco-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0.5rem auto;
  width: 80%;
}

.deco-line.short {
  width: 40%;
}

.deco-diamond {
  width: 12px;
  height: 12px;
  background: var(--gold);
  transform: rotate(45deg);
  margin: 0.6rem auto;
}

.section-divider {
  position: relative;
  text-align: center;
  margin: 2rem auto 1.8rem;
  width: 70%;
}

.section-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dark), transparent);
}

.section-divider::after {
  content: '◆';
  position: relative;
  background: var(--cream);
  padding: 0 1rem;
  color: var(--gold);
  font-size: 0.6rem;
}

.section-divider.small {
  margin: 1.5rem auto;
  width: 50%;
}

/* ---- Fan Ornament ---- */
.fan-ornament {
  display: flex;
  justify-content: center;
  gap: 3px;
  margin-bottom: 1rem;
}

.fan-ornament span {
  display: block;
  width: 3px;
  background: var(--gold);
  border-radius: 1px 1px 0 0;
}

.fan-ornament span:nth-child(1) { height: 14px; }
.fan-ornament span:nth-child(2) { height: 20px; }
.fan-ornament span:nth-child(3) { height: 26px; }
.fan-ornament span:nth-child(4) { height: 20px; }
.fan-ornament span:nth-child(5) { height: 14px; }

.fan-ornament.bottom {
  margin-top: 2rem;
  margin-bottom: 0;
  transform: rotate(180deg);
}

/* ---- Menu Card ---- */
.menu-card {
  margin: 0.5rem 0;
}

.art-deco-border {
  border: 2px solid var(--gold);
  padding: 4px;
  position: relative;
  background: var(--cream);
}

.art-deco-border::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid var(--gold-dark);
  pointer-events: none;
}

.menu-inner {
  padding: 2.5rem 2rem;
}

/* ---- Menu Title ---- */
.menu-title-block {
  text-align: center;
  margin-bottom: 2rem;
}

.menu-title {
  font-family: 'Poiret One', serif;
  font-size: 2.4rem;
  font-weight: 400;
  color: var(--charcoal);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
}

.title-underline {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 0.4rem auto 0;
}

.deadline-note {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 0.86rem;
  line-height: 1.5;
  letter-spacing: 0.1em;
  color: var(--charcoal);
  margin: 0.9rem auto 0;
  max-width: 28rem;
  padding: 0.7rem 1rem;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  background: rgba(212, 168, 118, 0.14);
  text-align: center;
  text-transform: uppercase;
}

/* ---- Guest Input ---- */
.guest-section {
  text-align: center;
  margin-bottom: 2rem;
}

.guest-label {
  display: block;
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.guest-input-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
}

.guest-input {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  text-align: center;
  padding: 0.8rem 1.2rem;
  border: none;
  border-bottom: 2px solid var(--gold);
  background: transparent;
  color: var(--text);
  width: 100%;
  max-width: 320px;
  outline: none;
  transition: border-color 0.3s, opacity 0.3s;
}

.guest-input:focus {
  border-bottom-color: var(--gold-light);
  box-shadow: 0 1px 0 var(--gold-light);
}

.guest-input::placeholder {
  color: var(--cream-dark);
  font-style: italic;
}

.guest-input:read-only {
  opacity: 0.8;
  cursor: default;
}

.guest-name-display {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  text-align: center;
  color: var(--charcoal);
  padding: 0.8rem 1.2rem;
  font-weight: 600;
}

/* ---- Course Section ---- */
.course-section {
  margin-bottom: 0.5rem;
}

.course-header {
  text-align: center;
  margin-bottom: 1.2rem;
}

.course-title {
  font-family: 'Poiret One', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--charcoal);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  width: 100%;
  padding-left: 0.15em;
}

.course-subtitle {
  font-family: 'Raleway', sans-serif;
  font-weight: 200;
  font-size: 0.75rem;
  color: var(--text-light);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-top: 0.2rem;
}

.choice-label {
  display: block;
  text-align: center;
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 1rem;
  font-style: italic;
}

.seat-label {
  text-align: center;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 1.5rem 0 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(212, 168, 118, 0.3);
}

.seats-names-container {
  margin-bottom: 1.5rem;
}

.seats-label {
  text-align: center;
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.seat-name-input {
  text-align: center;
  margin-bottom: 1rem;
}

.seat-name-input .guest-label {
  margin-bottom: 0.3rem;
}

.seat-name-input .guest-input {
  max-width: 250px;
}

/* ---- Person sections ---- */
.person-section {
  margin-bottom: 2.5rem;
  padding-top: 1.5rem;
}

.person-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.person-name {
  font-family: 'Poiret One', serif;
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--charcoal);
  letter-spacing: 0.1em;
  margin: 0.8rem 0;
}

.kid-meal-note {
  width: min(100%, 420px);
  margin: 0 auto 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--gold-dark);
  background: var(--white);
  color: var(--text);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  line-height: 1.5;
  text-align: center;
}

/* ---- Menu Item ---- */
.menu-item {
  text-align: center;
  margin-bottom: 1.2rem;
  padding: 1rem 1.2rem;
  border-radius: 2px;
  transition: background 0.3s, box-shadow 0.3s;
  cursor: default;
}

.menu-item.selectable {
  cursor: pointer;
  position: relative;
}

.menu-item.selectable:hover {
  background: rgba(201, 168, 76, 0.06);
}

.menu-item.selectable.selected {
  background: rgba(201, 168, 76, 0.1);
  box-shadow: inset 0 0 0 1px var(--gold);
}

.menu-item.selectable .radio-indicator {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--gold-dark);
  transform: rotate(45deg);
  margin-bottom: 0.5rem;
  position: relative;
  transition: all 0.3s;
}

.menu-item.selectable.selected .radio-indicator {
  border-color: var(--gold);
}

.menu-item.selectable.selected .radio-indicator::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  bottom: 3px;
  background: var(--gold);
}

.item-emoji {
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
  display: block;
}

.item-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: 0.05em;
}

.item-description {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-light);
  font-style: italic;
  margin-top: 0.3rem;
  line-height: 1.5;
}

.oder-divider {
  text-align: center;
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin: 0.2rem 0;
  position: relative;
}

.oder-divider::before,
.oder-divider::after {
  content: '—';
  margin: 0 0.5rem;
  color: var(--gold);
}

/* ---- Dietary Section ---- */
.dietary-section {
  text-align: center;
  margin-top: 1rem;
}

.dietary-input {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--cream-dark);
  background: var(--white);
  color: var(--text);
  width: 90%;
  max-width: 400px;
  outline: none;
  resize: vertical;
  transition: border-color 0.3s;
  border-radius: 0;
}

.dietary-input:focus {
  border-color: var(--gold);
}

.dietary-input::placeholder {
  color: #c4bda8;
  font-style: italic;
}

/* ---- Submit ---- */
.submit-section {
  text-align: center;
  margin-top: 2rem;
}

.submit-btn {
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--charcoal);
  border: 1px solid var(--gold);
  padding: 0.9rem 2.5rem;
  cursor: pointer;
  position: relative;
  transition: all 0.4s;
}

.submit-btn:hover {
  background: var(--gold-dark);
  color: var(--black);
  border-color: var(--gold-light);
}

.submit-btn:active {
  transform: scale(0.98);
}

.btn-ornament {
  font-size: 0.55rem;
  vertical-align: middle;
  opacity: 0.6;
}

.btn-ornament.left { margin-right: 0.6rem; }
.btn-ornament.right { margin-left: 0.6rem; }

/* ---- Confirmation Overlay ---- */
.confirmation-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 100;
  padding: 2rem;
}

.confirmation-overlay.active {
  display: flex;
}

.confirmation-card {
  background: var(--cream);
  border: 2px solid var(--gold);
  padding: 3rem 2.5rem;
  text-align: center;
  max-width: 480px;
  width: 100%;
  position: relative;
  animation: fadeInUp 0.5s ease-out;
}

.confirmation-card::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid var(--gold-dark);
  pointer-events: none;
}

.confirmation-card h2 {
  font-family: 'Poiret One', serif;
  font-size: 2.2rem;
  color: var(--charcoal);
  letter-spacing: 0.15em;
  margin: 0.8rem 0;
}

.confirm-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.confirm-summary {
  text-align: left;
  margin-bottom: 1.5rem;
  padding: 1rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--cream-dark);
}

.confirm-summary .summary-course {
  margin-bottom: 0.8rem;
}

.confirm-summary .summary-course:last-child {
  margin-bottom: 0;
}

.confirm-summary .summary-course-title {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.2rem;
}

.confirm-summary .summary-item {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: var(--text);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Footer ---- */
.menu-footer {
  text-align: center;
  padding: 1.5rem 0 1rem;
  color: var(--gold-dark);
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  font-style: italic;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  body {
    display: block;
    padding: 0.75rem;
    overflow-x: hidden;
  }

  .container {
    max-width: 100%;
  }

  .link-error-view {
    margin-top: 20vh;
    padding: 1.6rem 1.1rem;
  }

  .menu-header {
    padding: 1.25rem 0 1rem;
  }

  .couple-names {
    font-size: 2.2rem;
    letter-spacing: 0.1em;
  }

  .event-subtitle {
    font-size: 0.9rem;
    letter-spacing: 0.25em;
  }

  .event-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    line-height: 1.4;
  }

  .detail-separator {
    display: none;
  }

  .menu-inner {
    padding: 2rem 1.2rem;
  }

  .menu-title {
    font-size: 1.8rem;
    letter-spacing: 0.12em;
    padding-left: 0.12em;
  }

  .deadline-note {
    font-size: 0.76rem;
    letter-spacing: 0.04em;
    padding: 0.65rem 0.75rem;
  }

  .person-section {
    margin-bottom: 1.8rem;
    padding-top: 0.8rem;
  }

  .person-name {
    font-size: 1.5rem;
  }

  .course-title {
    font-size: 1.3rem;
    letter-spacing: 0.08em;
    padding-left: 0.08em;
  }

  .menu-item {
    padding: 1rem 0.7rem;
    margin-bottom: 0.9rem;
  }

  .dietary-input {
    width: 100%;
  }

  .submit-btn {
    width: 100%;
    max-width: 320px;
    padding: 0.9rem 1rem;
    letter-spacing: 0.12em;
    white-space: normal;
    line-height: 1.4;
  }

  .confirmation-overlay {
    align-items: flex-start;
    overflow-y: auto;
    padding: 1rem;
  }

  .confirmation-card {
    padding: 2rem 1.1rem;
  }

  .guest-input {
    width: 90%;
  }

  .corner-ornament {
    width: 50px;
    height: 50px;
  }

  .corner-ornament::before { width: 35px !important; }
  .corner-ornament::after { height: 35px !important; }
}

@media (max-width: 400px) {
  body {
    padding: 0.5rem;
  }

  .couple-names {
    font-size: 1.8rem;
  }

  .menu-inner {
    padding: 1.4rem 0.85rem;
  }

  .menu-title {
    font-size: 1.6rem;
  }

  .course-title {
    font-size: 1.15rem;
  }
}

/* ---- Validation ---- */
.error-shake {
  animation: shake 0.4s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.input-error {
  border-bottom-color: #c44 !important;
}

.choice-error .course-title {
  color: #c44;
}

/* ---- Personalized Guest Greeting ---- */
.guest-greeting {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--gold-light);
  margin-top: 0.5rem;
  letter-spacing: 0.05em;
}

/* ---- Already Submitted State ---- */
.already-submitted {
  text-align: center;
  padding: 1rem 0;
}

.submitted-text {
  font-family: 'Poiret One', serif;
  font-size: 1.4rem;
  color: var(--charcoal);
  margin-bottom: 0.3rem;
}

.submitted-subtext {
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  font-size: 0.8rem;
  color: var(--text-light);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.submitted-summary {
  display: inline-block;
  text-align: left;
  padding: 1rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--cream-dark);
  font-size: 1rem;
  line-height: 1.8;
}
