:root {
  --primary-color: #d4af37; /* Gold/Champagne */
  --primary-hover: #b8972f;
  --bg-color: #ffffff;
  --text-main: #111111;
  --text-muted: #555555;
  --error-color: #d32f2f;
  --success-color: #2e7d32;
  
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* Layout */
.main-content {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Glassmorphism Card (Updated to Clean Light Card) */
.card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
  margin-bottom: 40px;
}

/* Form Styles */
.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

label {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: #333333;
  letter-spacing: 0.5px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

input::placeholder,
textarea::placeholder {
  color: #94a3b8;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

/* Select specific styling */
.select-wrapper {
  position: relative;
}

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 40px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23333333' stroke-opacity='0.7' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

select option {
  background-color: #ffffff;
  color: var(--text-main);
}

/* Radio Group specific styling */
.radio-group {
  display: flex;
  gap: 24px;
  margin-top: 4px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  color: var(--text-main);
  cursor: pointer;
  letter-spacing: normal;
}

.radio-label input[type="radio"] {
  width: 20px;
  height: 20px;
  margin: 0;
  cursor: pointer;
  accent-color: #d32f2f;
}

/* Buttons */
.btn-primary {
  background: var(--primary-color);
  color: #000000;
  border: none;
  border-radius: 12px;
  padding: 16px 32px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-red {
  background: #d32f2f;
  color: #ffffff;
}

.btn-red:hover {
  background: #b71c1c;
  box-shadow: 0 10px 20px rgba(211, 47, 47, 0.3);
}

.btn-secondary {
  background: #f1f5f9;
  color: var(--text-main);
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 20px;
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: #e2e8f0;
}

/* Loaders */
.loader {
  border: 3px solid rgba(0,0,0,0.1);
  border-top-color: #fff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
  margin-left: 10px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Success Section */
.success-content {
  text-align: center;
}

.success-icon {
  width: 64px;
  height: 64px;
  color: var(--primary-color);
  margin-bottom: 24px;
}

.success-content h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.success-content p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 30px;
}

/* Share Panel */
.share-panel {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid #e2e8f0;
}

.share-panel h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.share-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* Messages */
.status-box,
.error-box {
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 24px;
  text-align: center;
  font-weight: 600;
}

.status-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: var(--text-main);
}

.error-box {
  background: #fef2f2;
  border: 1px solid var(--error-color);
  color: #b91c1c;
}

/* Utilities */
.hidden {
  display: none !important;
}

#wbx-powered-by-slot {
  margin: auto 0 0 0;
  width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .card {
    padding: 30px 20px;
  }
  
  .share-actions {
    flex-direction: column;
  }
}
