:root {
    /* Background Colors */
    /* --bg-gradient-start: #0A0B0B; --bg-gradient-end: #262626; */
    --bg-gradient-start: #ffffff;
    --bg-gradient-end: #ffffff;
    --form-bg: #292929;
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #999999;
    --text-label: #dddddd;
    --error-text: #dc2626;
    /* Form Container */
    --form-border: #404040;
    --form-border-radius: 12px;
    --form-border-width: 2px;
    /* Input Variables */
    --input-bg: #404040;
    --input-bg-hover: #4a4a4a;
    --input-border: #404040;
    --input-border-hover: #555555;
    --input-border-focus: #d4d4d4;
    --input-border-radius: 8px;
    --input-border-width: 2px;
    --input-text: #ffffff;
    --input-placeholder: #999999;
    /* Radio Variables */
    --radio-bg: transparent;
    --radio-bg-hover: #262626;
    --radio-border: #404040;
    --radio-border-hover: #d4d4d4;
    --radio-border-radius: 8px;
    --radio-border-width: 2px;
    --radio-text: #cccccc;
    --radio-text-hover: #ffffff;
    --radio-accent: #d4d4d4;
    /* Button Primary Variables */
    --btn-primary-bg: #ffffff;
    --btn-primary-bg-hover: #d4d4d4;
    --btn-primary-border: transparent;
    --btn-primary-border-hover: transparent;
    --btn-primary-border-radius: 8px;
    --btn-primary-border-width: 2px;
    --btn-primary-text: #0A0B0B;
    /* Button Secondary Variables */
    --btn-secondary-bg: #404040;
    --btn-secondary-bg-hover: #555555;
    --btn-secondary-border: transparent;
    --btn-secondary-border-hover: transparent;
    --btn-secondary-border-radius: 8px;
    --btn-secondary-border-width: 2px;
    --btn-secondary-text: #ffffff;
  }
  .form-container {
    background: var(--form-bg);
    border-radius: var(--form-border-radius);
    border: var(--form-border-width) solid var(--form-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width:650px;
    margin-inline:auto;
  }
  .header {
    text-align: center;
    margin-bottom: 40px;
  }
  .header .rsvp-title {
    font-size: var(--h1);
    color: var(--text-primary);
    margin-bottom: 15px;
  }
  /* Visually hidden but accessible to screen readers */
  .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
  }
  .step {
    display: none;
    animation: fadeIn 0.3s ease-in;
  }
  .step.active {
    display: block;
  }
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  .form-group {
    margin-bottom: 25px;
  }
  .form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-label);
    font-weight: 500;
  }
  .form-group input[type="text"], .form-group input[type="email"] {
    width: 100%;
    padding: 15px;
    border: var(--input-border-width) solid var(--input-border);
    border-radius: var(--input-border-radius);
    font-size: 16px;
    transition: all 0.3s;
    outline: none;
    background: var(--input-bg);
    color: var(--input-text);
  }
  .form-group input[type="text"]::placeholder, .form-group input[type="email"]::placeholder {
    color: var(--input-placeholder);
  }
  .form-group input[type="text"]:hover, .form-group input[type="email"]:hover {
    border-color: var(--input-border-hover);
    background: var(--input-bg-hover);
  }
  .form-group input[type="text"]:focus, .form-group input[type="email"]:focus {
    border-color: var(--input-border-focus);
  }
  .radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 2rem;
  }
  .radio-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: var(--radio-border-width) solid var(--radio-border);
    border-radius: var(--radio-border-radius);
    cursor: pointer;
    transition: all 0.3s;
    color: var(--radio-text);
    background: var(--radio-bg);
  }
  .radio-option:hover {
    background: var(--radio-bg-hover);
    border-color: var(--radio-border-hover);
    color: var(--radio-text-hover);
  }
  .radio-option input[type="radio"] {
    margin-right: 12px;
    accent-color: var(--radio-accent);
  }
  .radio-option:has(input[type="radio"]:checked) {
    border-color: #d4d4d4;
  }
  .btn {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    text-align:center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
  /* Loading Spinner */
  .spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-top-color: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
  }
  @keyframes spin {
    to { transform: rotate(360deg); }
  }
  .btn-primary {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border: var(--btn-primary-border-width) solid var(--btn-primary-border);
    border-radius: var(--btn-primary-border-radius);
  }
  .btn-primary:hover {
    background: var(--btn-primary-bg-hover);
    border-color: var(--btn-primary-border-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  .btn-secondary {
    background: var(--btn-secondary-bg);
    color: var(--btn-secondary-text);
    border: var(--btn-secondary-border-width) solid var(--btn-secondary-border);
    border-radius: var(--btn-secondary-border-radius);
    margin-right: 10px;
    width: calc(50% - 5px);
  }
  /* Desktop button layout */
  @media (min-width: 769px) {
    .btn-primary {
      width: 100%;
    }
    /* Only apply 50% width to buttons in button-group (not the first continue button) */
    .button-group .btn-primary {
      width: calc(50% - 5px);
    }
  }
  .btn-secondary:hover {
    background: var(--btn-secondary-bg-hover);
    border-color: var(--btn-secondary-border-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  .btn-secondary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  .button-group {
    display: flex;
    gap: 10px;
  }
  .error {
    color: var(--error-text);
    font-size: 14px;
    margin-top: 8px;
  }
  .welcome-message {
    text-align: center;
    margin-bottom: 30px;
  }
  .welcome-message h2 {
    font-size: var(--h5);
    color: var(--text-primary);
    margin-bottom: 0;
  }
  .welcome-message h3 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    margin-top: 20px;
  }
  .welcome-message p {
    color: var(--text-secondary);
    font-size: 16px;
  }
  .confirmation {
    text-align: center;
  }
  .confirmation .emoji {
    font-size: 4rem;
    margin-bottom: 20px;
  }
  .confirmation h2 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 15px;
  }
  .confirmation p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.5;
  }
  .spam-reminder {
    margin-top: 20px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: var(--text-s);
    border-left: 3px solid var(--primary-color);
  }
  .food-section {
    margin-top: 25px;
  }
  .food-section:first-child {
    margin-top: 0;
  }
  /* Summary Page Styles */
  .summary-container {
    background: var(--form-bg);
    border-radius: var(--form-border-radius);
    border: var(--form-border-width) solid var(--form-border);
    padding: 20px;
    margin-bottom: 30px;
  }
  .summary-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--form-border);
  }
  .summary-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
  }
  .summary-section h3 {
    color: var(--text-primary);
    font-size: var(--h5);
    margin-bottom: 10px;
  }
  .summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .summary-item:last-child {
    border-bottom: none;
  }
  .summary-label {
    color: var(--text-secondary);
    font-weight: 500;
  }
  .summary-value {
    color: var(--text-primary);
    font-weight: 600;
  }
  .summary-value.attending {
    color: #10b981;
  }
  .summary-value.not-attending {
    color: #ef4444;
  }
  /* Email Preview */
  .email-preview {
    margin-top: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 14px;
    display: none;
  }
  .email-preview.show {
    display: block;
    animation: slideDown 0.3s ease;
  }
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  .email-confirmation {
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    text-align: center;
    display: none;
  }
  .email-confirmation.show {
    display: block;
    animation: fadeIn 0.4s ease;
  }
  /* Mobile Responsive Styles */
  @media (max-width: 768px) {
    .button-group {
      flex-direction: column;
      gap: 15px;
    }
    .btn-secondary {
      width: 100% !important;
      margin-right: 0;
      margin-bottom: 0;
      order: 2; /* Back button goes second */
    }
    .btn-primary {
      width: 100% !important;
      order: 1; /* Continue button goes first */
    }
    .form-container {
      padding: 20px;
      margin: 10px;
    }
    /* .header h1 { } .welcome-message h2 { } */
  }
