/**
 * Frontend Styles for SNHS Reunion
 * Place in: assets/frontend-style.css
 */

.snhs-registration-wrapper {
  min-height: 100vh;
}

.snhs-container {
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
  overflow: hidden;
}

.snhs-header {
  background: #05254b;
  color: white;
  padding: 40px 30px;
  text-align: center;
}

.snhs-header h1 {
  font-size: 2em;
  margin-bottom: 10px;
}

.snhs-form-content {
  padding: 40px 30px;
}

/* Form elements */
.snhs-form-group {
  margin-bottom: 25px;
}

.snhs-form-group label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-weight: 600;
  font-size: 14px;
}

.snhs-required::after {
  content: " *";
  color: #e74c3c;
}

.snhs-form-group input[type="text"],
.snhs-form-group input[type="tel"],
.snhs-form-group input[type="email"],
.snhs-form-group input[type="number"],
.snhs-form-group select,
.snhs-form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s;
  font-family: inherit;
  background: #fff;
}

.snhs-form-group input:focus,
.snhs-form-group select:focus,
.snhs-form-group textarea:focus {
  outline: none;
  border-color: #05254b;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.snhs-form-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* Radio buttons */
.snhs-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 10px;
}

.snhs-radio-option {
  position: relative;
}

.snhs-radio-option input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.snhs-radio-option label {
  display: inline-block;
  padding: 10px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 500;
  margin: 0;
}

.snhs-radio-option input[type="radio"]:checked + label {
  background: #05254b;
  color: white;
  border-color: #05254b;
}

/* Payment options */
.snhs-payment-options {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.snhs-payment-option {
  flex: 1;
  /* min-width: 150px; */
}

.snhs-payment-option input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.snhs-payment-option label {
  display: block;
  padding: 11px;
  border: 3px solid #e0e0e0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
  margin: 0;
}

.snhs-payment-option img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #f0f3ff;
  padding: 10px;
  border-radius: 8px !important;
}

.snhs-payment-option input[type="radio"]:checked + label {
  border-color: #05254b;
  background: #f0f3ff;
}

/* Guest items */
.snhs-guest-item {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 15px;
  position: relative;
}

.snhs-guest-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.snhs-guest-header h4 {
  color: #05254b;
  font-size: 16px;
}

.snhs-remove-guest {
  background: #e74c3c;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.3s;
}

.snhs-remove-guest:hover {
  background: #c0392b;
}

.snhs-add-guest {
  background: #05254b !important;
  color: white !important;
  border: none !important;
  padding: 12px 24px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  transition: all 0.3s !important;
  margin-top: 10px !important;
}

.snhs-add-guest:hover {
  background: #062852 !important;
  transform: translateY(-2px) !important;
}

/* Calculation box */
.snhs-calculation-box {
  background: linear-gradient(135deg, #05254b 0%, #764ba2 100%);
  color: white;
  padding: 25px;
  border-radius: 12px;
  margin: 25px 0;
}

.snhs-calculation-box h3 {
  margin-bottom: 15px;
  font-size: 20px;
}

.snhs-calc-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.snhs-calc-row:last-child {
  border-bottom: none;
  font-size: 20px;
  font-weight: bold;
  padding-top: 15px;
  margin-top: 10px;
  border-top: 2px solid rgba(255, 255, 255, 0.3);
}

/* Payment instructions */
.snhs-payment-instructions {
  background: #fff3cd;
  border: 2px solid #ffc107;
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
}

.snhs-payment-instructions h4 {
  color: #856404;
  margin-bottom: 15px;
  font-size: 18px;
}

.snhs-payment-instructions ol {
  margin-left: 0;
  color: #856404;
}

.snhs-payment-instructions li {
  margin-bottom: 8px;
}

.snhs-merchant-number {
  background: white;
  padding: 12px;
  border-radius: 6px;
  font-weight: bold;
  color: #05254b;
  margin: 10px 0;
  font-size: 18px;
  text-align: center;
}

/* Submit button */
.snhs-submit-btn {
  background: #05254b !important;
  color: white !important;
  border: none !important;
  padding: 16px 40px !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  width: 100% !important;
  transition: all 0.3s !important;
  margin-top: 20px !important;
}

.snhs-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
}

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

/* Error messages */
.snhs-error {
  color: #e74c3c;
  font-size: 12px;
  margin-top: 5px;
  display: none;
}

.snhs-input-error {
  border-color: #e74c3c !important;
}

/* Hidden class */
.snhs-hidden {
  display: none;
}

/* Success Modal */
.snhs-modal {
  display: none;
  position: fixed;
  z-index: 999999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
}

.snhs-modal-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 40px;
  border: 1px solid #888;
  width: 90%;
  max-width: 500px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.snhs-modal-content h2 {
  color: #05254b;
  margin-bottom: 20px;
}

.snhs-qr-preview {
  margin: 20px 0;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 10px;
}

.snhs-qr-preview img {
  max-width: 200px;
  height: auto;
}

.snhs-qr-preview p {
  margin-top: 10px;
  font-weight: 600;
  color: #05254b;
}

.snhs-btn-primary,
.snhs-btn-secondary {
  display: inline-block;
  padding: 12px 24px;
  margin: 5px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.snhs-btn-primary {
  background: linear-gradient(135deg, #05254b 0%, #764ba2 100%);
  color: white;
}

.snhs-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.snhs-btn-secondary {
  background: #6c757d;
  color: white;
}

.snhs-btn-secondary:hover {
  background: #5a6268;
}

/* Responsive */
@media (max-width: 768px) {
  .snhs-form-content {
    padding: 30px 20px;
  }

  .snhs-header {
    padding: 30px 20px;
  }

  .snhs-header h1 {
    font-size: 1.5em;
  }

  .snhs-radio-group {
    gap: 10px;
  }

  .gender .snhs-radio-option {
    width: calc(50% - 5px);
  }

  .religion .snhs-radio-option {
    width: calc(50% - 5px);
  }

  .occupation .snhs-radio-option {
    width: calc(50% - 5px);
  }

  .tshirtSize .snhs-radio-option {
    width: calc(34% - 9px);
  }

  .snhs-radio-option label {
    display: block;
    text-align: center;
  }

  /* .snhs-payment-options {
        flex-direction: column;
    } */

  .snhs-calc-row {
    font-size: 14px;
  }

  .snhs-calc-row:last-child {
    font-size: 18px;
  }
}
@media (max-width: 500px) {
  .snhs-payment-option label {
    padding: 5px;
    border-radius: 8px;
  }
  .snhs-payment-option img {
    padding: 5px;
    border-radius: 4px !important;
  }
}
