/* =============================================
   RSVP — Form Styles
   ============================================= */

.section-rsvp {
  background: linear-gradient(180deg, var(--blush-light) 0%, var(--ivory) 100%);
  padding-bottom: 10px;
}

.rsvp-message {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--dusty-rose);
  margin-bottom: 36px;
  line-height: 1.6;
}

/* ===== FORM ===== */
.rsvp-form {
  max-width: 400px;
  margin: 0 auto;
  text-align: left;
}

.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--brown-light);
  margin-bottom: 8px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 14px 18px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: var(--brown);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--champagne);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(212, 145, 142, 0.12);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--champagne);
  font-style: italic;
}

.form-textarea {
  resize: none;
  min-height: 80px;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C9A96E' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
}

/* ===== ATTENDANCE TOGGLE ===== */
.attendance-hint {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.0rem;
  color: var(--brown-light);
  opacity: 0.7;
  margin-bottom: 12px;
  transition: opacity 0.4s ease;
}

.attendance-hint.hidden {
  opacity: 0;
  height: 0;
  margin: 0;
  overflow: hidden;
}

.attendance-toggle {
  display: flex;
  gap: 12px;
}

.attendance-option {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 16px 12px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.5);
  border: 1.5px solid var(--champagne);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.4s ease;
  color: var(--brown-light);
  user-select: none;
  transform: scale(1);
}

@media (hover: hover) {
  .attendance-option:hover {
    border-color: var(--rose);
  }
}

.attendance-option.selected {
  background: linear-gradient(135deg, var(--blush) 0%, var(--rose) 100%);
  border-color: var(--rose);
  color: white;
  box-shadow: 0 4px 16px rgba(212, 145, 142, 0.25);
  transform: scale(1.05);
}

.attendance-option.selected.decline {
  background: linear-gradient(135deg, var(--lavender-light) 0%, var(--lavender) 100%);
  border-color: var(--lavender);
  box-shadow: 0 4px 16px rgba(200, 184, 224, 0.25);
}

.attendance-option.unselected {
  transform: scale(0.92);
  opacity: 0.5;
}

/* ===== TRANSPORT TOGGLE ===== */
.transport-toggle {
  display: flex;
  gap: 16px;
  max-width: 90%;
  margin: 0 auto;
}

.transport-option {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 8px 10px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.5);
  border: 1.5px solid var(--champagne);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--brown-light);
  user-select: none;
}

@media (hover: hover) {
  .transport-option:hover {
    border-color: var(--sage);
  }
}

.transport-option.selected {
  background: linear-gradient(135deg, var(--sage-light) 0%, var(--sage) 100%);
  border-color: var(--sage);
  color: white;
  box-shadow: 0 3px 12px rgba(130, 160, 130, 0.25);
  transform: scale(1.03);
}

.transport-option.unselected {
  transform: scale(0.94);
  opacity: 0.5;
}

/* ===== RSVP FIELDS (hidden until attendance chosen) ===== */
.rsvp-fields {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.6s ease, opacity 0.5s ease;
}

.rsvp-fields.show {
  max-height: 800px;
  opacity: 1;
}

/* ===== CONDITIONAL FIELDS ===== */
.conditional-fields {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.conditional-fields.show {
  max-height: 500px;
}

/* ===== SUBMIT BUTTON ===== */
.rsvp-submit {
  width: 100%;
  padding: 18px;
  margin-top: 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: white;
  background: linear-gradient(135deg, var(--rose) 0%, var(--dusty-rose) 100%);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 18px rgba(201, 138, 135, 0.25);
}

.rsvp-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(201, 138, 135, 0.35);
}

.rsvp-submit:active {
  transform: translateY(0);
}

.rsvp-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.rsvp-submit:disabled:hover {
  transform: none;
  box-shadow: none;
}

.rsvp-submit.error {
  background: linear-gradient(135deg, #e8a0a0 0%, #d47e7e 100%);
  font-size: 0.55rem;
  letter-spacing: 2px;
}

/* ===== SUCCESS MESSAGE ===== */
.rsvp-success {
  display: none;
  text-align: center;
  padding: 48px 24px;
}

.rsvp-success.show {
  display: block;
  animation: revealUp 0.6s var(--ease-out-expo) forwards;
}

.rsvp-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border: 2px solid var(--sage);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage-dark);
  font-size: 1.6rem;
}

.rsvp-success h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--brown);
  margin-bottom: 12px;
}

.rsvp-success p {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--brown-light);
  line-height: 1.7;
}
