/* RSVP PAGE SPECIFIC STYLES ONLY */

/* MAIN CONTENT */
main.rsvp-content {
  min-height: calc(100vh - 160px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px 80px;
  position: relative;
  z-index: 2;
}

.page-title {
  font-family: "Playfair Display", serif;
  font-size: 42px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.95);
  text-transform: uppercase;
  margin-bottom: 10px;
  text-align: center;
}

.page-subtitle {
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  margin-bottom: 50px;
  max-width: 600px;
  line-height: 1.6;
}

/* RSVP FORM */
.rsvp-form-container {
  background: rgba(20, 20, 20, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 60px 70px;
  width: 100%;
  max-width: 800px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.rsvp-form-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

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

.form-label {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 19px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 12px;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: #fff;
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  transition: all 0.3s ease;
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: rgba(232, 195, 158, 0.5);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 2px rgba(232, 195, 158, 0.1);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* ATTENDANCE OPTIONS - UPDATED STYLING */
.attendance-section {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.attendance-section h3 {
  font-family: "Playfair Display", serif;
  font-size: 24px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 20px;
  text-align: center;
  position: relative;
}

.attendance-section h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #c49a6c, transparent);
}

.attendance-options {
  display: flex;
  gap: 25px;
  margin-top: 15px;
}

.attendance-option {
  flex: 1;
}

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

.attendance-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  height: 100%;
}

.attendance-label:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.attendance-option input[type="radio"]:checked + .attendance-label {
  background: rgba(196, 154, 108, 0.15);
  border-color: rgba(196, 154, 108, 0.4);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.attendance-icon {
  font-size: 32px;
  margin-bottom: 15px;
  display: block;
  color: #e8c39e;
}

/* WELCOME PARTY OPTION - SHOWS ONLY WHEN ACCEPTING */
.welcome-party-section {
  margin-top: 30px;
  padding: 25px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: none;
}

.welcome-party-section h4 {
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 15px;
  text-align: center;
}

.welcome-party-options {
  display: flex;
  gap: 20px;
  margin-top: 15px;
}

.welcome-party-option {
  flex: 1;
}

.welcome-party-option input[type="radio"] {
  display: none;
}

.welcome-party-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  height: 100%;
}

.welcome-party-label:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.welcome-party-option input[type="radio"]:checked + .welcome-party-label {
  background: rgba(196, 154, 108, 0.15);
  border-color: rgba(196, 154, 108, 0.4);
}

.welcome-party-icon {
  font-size: 26px;
  margin-bottom: 10px;
  display: block;
  color: #e8c39e;
}

/* GUEST INFORMATION SECTION */
.guest-section {
  margin-top: 20px;
  display: none;
}

.guest-section h3 {
  font-family: "Playfair Display", serif;
  font-size: 24px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 25px;
  text-align: center;
  position: relative;
}

.guest-section h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #c49a6c, transparent);
}

/* Custom checkbox styling - UPDATED COLORS */
.checkbox-container {
  display: flex;
  align-items: center;
  margin-top: 20px;
  margin-bottom: 25px;
  cursor: pointer;
}

.custom-checkbox {
  position: relative;
  width: 26px;
  height: 26px;
  margin-right: 15px;
  flex-shrink: 0;
}

.custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  width: 26px;
  height: 26px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.custom-checkbox:hover input ~ .checkmark {
  border-color: rgba(232, 195, 158, 0.6);
  background-color: rgba(232, 195, 158, 0.1);
}

.custom-checkbox input:checked ~ .checkmark {
  background-color: rgba(196, 154, 108, 0.2);
  border-color: rgba(232, 195, 158, 0.8);
  box-shadow: 0 0 10px rgba(232, 195, 158, 0.3);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
  display: block;
}

.custom-checkbox .checkmark:after {
  left: 8px;
  top: 4px;
  width: 6px;
  height: 12px;
  border: solid #e8c39e;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-label {
  font-family: "Cormorant Garamond", serif;
  font-size: 19px;
  color: rgba(255, 255, 255, 0.9);
  user-select: none;
  font-weight: 500;
}

.guest-details, .children-details {
  margin-top: 25px;
  display: none;
}

/* Number input with arrows - UPDATED COLORS */
.number-input-container {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.number-input-container label {
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
}

.number-input-wrapper {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  overflow: hidden;
  width: 150px;
}

.number-input {
  width: 60px;
  padding: 12px 0;
  text-align: center;
  background: transparent;
  border: none;
  color: #fff;
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  font-weight: 500;
  outline: none;
}

.number-btn {
  width: 45px;
  height: 100%;
  background: rgba(232, 195, 158, 0.1);
  border: none;
  color: #e8c39e;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.number-btn:hover {
  background: rgba(232, 195, 158, 0.2);
  color: #fff;
}

.number-btn:active {
  background: rgba(232, 195, 158, 0.3);
}

.number-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* SEPARATOR LINE - UPDATED COLOR */
.form-section-separator {
  margin: 40px 0;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.form-section-separator::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196, 154, 108, 0.4), transparent);
}

/* Optional Message Section */
.message-section {
  margin-top: 30px;
}

.submit-button {
  display: block;
  width: 100%;
  padding: 22px;
  background: rgba(196, 154, 108, 0.15);
  border: 1px solid rgba(196, 154, 108, 0.3);
  border-radius: 10px;
  color: #e8c39e;
  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s ease;
  margin-top: 40px;
  position: relative;
  overflow: hidden;
  font-weight: 500;
}

.submit-button:hover {
  background: rgba(196, 154, 108, 0.25);
  border-color: rgba(196, 154, 108, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  color: #fff;
}

.submit-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(232, 195, 158, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.submit-button:focus:not(:active)::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(50, 50);
    opacity: 0;
  }
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .rsvp-form-container { padding: 40px 35px; }
  .attendance-options, .welcome-party-options { flex-direction: column; }
}

@media (max-width: 768px) {
  .page-title { font-size: 36px; }
  .rsvp-form-container { padding: 35px 25px; }
  .number-input-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .number-input-wrapper {
    width: 100%;
    max-width: 200px;
  }
}

@media (max-width: 480px) {
  .page-title { font-size: 30px; }
  .page-subtitle { font-size: 16px; }
  .form-label, .checkbox-label { font-size: 17px; }
}