/* ============================================================
   Wedding Guest Page — Romantic Style
   Палитра: пыльная роза, кремовый, шалфей, золотистый
   ============================================================ */

:root {
  --color-bg: #fdf8f4;
  --color-bg-alt: #f5ebe0;
  --color-text: #4a3f3a;
  --color-text-light: #7a6e66;
  --color-accent: #c9918a;
  --color-accent-dark: #a06b64;
  --color-gold: #c9b99a;
  --color-sage: #a3b899;
  --color-white: #ffffff;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Montserrat', 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ SECTION COMMON ============ */

.section {
  padding: 80px 0;
}

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

.divider {
  width: 60px;
  height: 1px;
  background: var(--color-accent);
  margin: 12px auto 40px;
}

/* ============ FADE-IN ANIMATION ============ */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ HERO ============ */

.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, #e8d5c4 0%, #f2e0d0 30%, #d4a5a5 70%, #c9918a 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.15);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 20px;
}

.hero-date-top {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 16px;
  opacity: 0.9;
}

.hero-names {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 400;
  color: var(--color-white);
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.hero-names .amp {
  font-style: italic;
  font-weight: 300;
  display: inline-block;
  margin: 0 12px;
  opacity: 0.8;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--color-white);
  opacity: 0.9;
  max-width: 500px;
  margin: 0 auto;
}

.hero-scroll-hint {
  margin-top: 50px;
  font-size: 1.5rem;
  color: var(--color-white);
  opacity: 0.6;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* ============ TIMER ============ */

.timer-section {
  background: var(--color-white);
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--color-bg-alt);
  border-radius: 16px;
  padding: 24px 20px;
  min-width: 100px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.countdown-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 600;
  color: var(--color-accent-dark);
  line-height: 1;
}

.countdown-label {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: 8px;
  font-weight: 400;
}

/* ============ INVITATION ============ */

.invitation-section {
  background: var(--color-bg);
}

.invitation-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.invitation-photo {
  flex-shrink: 0;
}

.photo-placeholder {
  width: 260px;
  height: 340px;
  background: var(--color-bg-alt);
  border-radius: 180px 180px 20px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: 0.9rem;
  border: 2px dashed var(--color-accent);
  opacity: 0.7;
}

.invitation-text p {
  font-size: 1.05rem;
  margin-bottom: 16px;
  color: var(--color-text);
}

/* ============ SCHEDULE / TIMELINE ============ */

.schedule-section {
  background: var(--color-white);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-accent), var(--color-sage));
  border-radius: 1px;
}

.timeline-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -33px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 3px solid var(--color-white);
  box-shadow: 0 0 0 2px var(--color-accent);
}

.timeline-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 36px;
  text-align: center;
}

.timeline-time {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-accent-dark);
  min-width: 55px;
}

.timeline-desc {
  font-size: 1.05rem;
  color: var(--color-text);
}

/* ============ LOCATION ============ */

.location-section {
  background: var(--color-bg);
}

.location-info {
  text-align: center;
  margin-bottom: 30px;
}

.location-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}

.location-address {
  font-size: 1rem;
  color: var(--color-text-light);
}

.map-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* ============ DRESSCODE ============ */

.dresscode-section {
  background: var(--color-white);
}

.dresscode-text {
  text-align: center;
  font-size: 1.05rem;
  color: var(--color-text);
  margin-bottom: 30px;
}

.color-palette {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.color-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid var(--color-white);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  cursor: default;
}

.color-circle:hover {
  transform: scale(1.15);
}

.dresscode-note {
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text-light);
  font-style: italic;
}

/* ============ RSVP ============ */

.rsvp-section {
  background: var(--color-bg-alt);
}

.rsvp-subtitle {
  text-align: center;
  color: var(--color-text-light);
  margin-bottom: 36px;
  font-size: 1rem;
}

.rsvp-form {
  max-width: 520px;
  margin: 0 auto;
}

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

.form-group label {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 8px;
}

.form-group .optional {
  font-weight: 300;
  color: var(--color-text-light);
  font-size: 0.85rem;
}

.form-group input[type="text"],
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color 0.3s;
  outline: none;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
}

.form-group textarea {
  resize: vertical;
}

/* Radio cards */
.radio-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.radio-card {
  flex: 1;
  min-width: 130px;
  cursor: pointer;
}

.radio-card input[type="radio"] {
  display: none;
}

.radio-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 12px;
  border: 2px solid #ddd;
  border-radius: 12px;
  background: var(--color-white);
  transition: all 0.3s ease;
  text-align: center;
}

.radio-card input:checked + .radio-card-inner {
  border-color: var(--color-accent);
  background: rgba(201, 145, 138, 0.08);
  box-shadow: 0 0 0 1px var(--color-accent);
}

.radio-icon {
  font-size: 1.5rem;
}

.radio-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
}

.btn-submit {
  display: block;
  width: 100%;
  padding: 16px;
  background: var(--color-accent);
  color: var(--color-white);
  border: none;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  letter-spacing: 0.5px;
}

.btn-submit:hover {
  background: var(--color-accent-dark);
}

.btn-submit:active {
  transform: scale(0.98);
}

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

.rsvp-message {
  text-align: center;
  margin-top: 20px;
  padding: 16px;
  border-radius: 10px;
  font-size: 1rem;
}

.rsvp-message.success {
  background: rgba(163, 184, 153, 0.2);
  color: #5a7a50;
  border: 1px solid rgba(163, 184, 153, 0.4);
}

.rsvp-message.error {
  background: rgba(201, 145, 138, 0.15);
  color: var(--color-accent-dark);
  border: 1px solid rgba(201, 145, 138, 0.3);
}

/* ============ FOOTER ============ */

.footer {
  background: var(--color-text);
  color: var(--color-bg-alt);
  text-align: center;
  padding: 50px 0;
}

.footer-names {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 6px;
}

.footer-date {
  font-size: 0.95rem;
  opacity: 0.7;
  margin-bottom: 16px;
}

.footer-contact {
  font-size: 0.9rem;
  opacity: 0.6;
}

.footer-contact a {
  color: var(--color-bg-alt);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.footer-contact a:hover {
  opacity: 1;
  border-bottom-color: var(--color-bg-alt);
}

/* ============ RESPONSIVE ============ */

@media (max-width: 768px) {
  .hero-names {
    font-size: 2.6rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .invitation-content {
    flex-direction: column;
    text-align: center;
  }

  .photo-placeholder {
    width: 200px;
    height: 260px;
  }

  .countdown-item {
    min-width: 75px;
    padding: 16px 12px;
  }

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

  .radio-group {
    flex-direction: column;
  }

  .radio-card {
    min-width: unset;
  }
}

@media (max-width: 480px) {
  .hero-names {
    font-size: 2rem;
  }

  .countdown {
    gap: 10px;
  }

  .countdown-item {
    min-width: 65px;
    padding: 12px 8px;
  }

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

  .color-circle {
    width: 48px;
    height: 48px;
  }
}
