/* Payment Form Styles - Stripe-inspired Design */

.payment-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  font-family: 'Lato';
}

.form-section {
  margin-bottom: 32px;
  background: #1a1a1a;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08);
  border: 1px solid #2a2a2a;
}

.form-section h3 {
  font-family: 'Lato', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 24px 0;
  color: #ffffff;
  letter-spacing: -0.02em;
  border-bottom: none;
  padding-bottom: 0;
}

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

.form-group:last-child {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: #d1d1d1;
  font-size: 14px;
  letter-spacing: -0.01em;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #3a3a3a;
  border-radius: 6px;
  font-size: 15px;
  font-family: 'Lato';
  color: #ffffff;
  background: #2a2a2a;
  transition: all 0.15s ease;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.03);
  -webkit-appearance: none;
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M1 1L5 5L9 1' stroke='%23d1d1d1' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-group input:hover,
.form-group select:hover {
  border-color: #ec691a;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #393939;
  box-shadow: 0 0 0 1px #ec691a, 0 1px 1px rgba(255, 255, 255, 0.03), 0 3px 6px rgba(255, 255, 255, 0.02);
}

.form-group input::placeholder {
  color: #6a6a6a;
}

/* Checkbox Group */
.checkbox-group {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #d1d1d1;
  font-size: 15px;
  font-family: 'Lato';
  padding: 10px 16px;
  border: 1px solid #3a3a3a;
  border-radius: 6px;
  background: #2a2a2a;
}

.checkbox-label input[type="checkbox"],
.checkbox-label input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #ec691a;
}

.checkbox-label input[type="checkbox"]:focus,
.checkbox-label input[type="radio"]:focus {
  outline: none !important;
  box-shadow: none !important;
  box-shadow: 0 0 0 1px #ec691a !important;
}

.checkbox-label input[type="radio"]:checked {
  border-color: #ec691a;
  background-color: #ec6a1a59;
}

.checkbox-label span {
  user-select: none;
}

/* Stripe Elements Styling */
#card-element-container {
  position: relative;
}

.stripe-element {
  padding: 12px 14px;
  border: 1px solid #3a3a3a;
  border-radius: 6px;
  background: #2a2a2a;
  transition: all 0.15s ease;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.03);
  min-height: 44px;
}

.stripe-element:hover {
  border-color: #ec691a;
}

.stripe-element.StripeElement--focus {
  border-color: #ec691a;
  box-shadow: 0 0 0 1px #ec691a, 0 1px 1px rgba(255, 255, 255, 0.03), 0 3px 6px rgba(255, 255, 255, 0.02);
}

.stripe-element.StripeElement--invalid {
  border-color: #df1b41;
}

.stripe-element.StripeElement--complete {
  border-color: #00d924;
}

.card-icons {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  opacity: 0.6;
}

.card-icon {
  width: 32px;
  height: 20px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.error-message {
  color: #df1b41;
  font-size: 13px;
  margin-top: 8px;
  min-height: 18px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* Payment Summary */
.payment-summary {
  background: #1a1a1a;
  padding: 24px;
  border-radius: 8px;
  margin: 24px 0 32px 0;
  border: 1px solid #2a2a2a;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 15px;
  color: #d1d1d1;
  letter-spacing: -0.01em;
}

.summary-row:last-child {
  margin-bottom: 0;
}

.summary-row.total {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #3a3a3a;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
}

/* Submit Button */
.payment-form .register-button {
  font-family: 'Lato', sans-serif;
  width: 100%;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background: #ffffff;
  color: #000000;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  letter-spacing: -0.01em;
  box-shadow: 0 1px 1px rgba(255, 255, 255, 0.1), 0 3px 6px rgba(255, 255, 255, 0.05);
  margin: 0;
}

.payment-form .register-button:hover:not(:disabled) {
  background: #262626;
  box-shadow: 0 2px 4px rgba(255, 255, 255, 0.15), 0 4px 12px rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
  color: white;
}

.payment-form .register-button:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 1px 1px rgba(255, 255, 255, 0.1);
}

.payment-form .register-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #ffffff;
}

.payment-form .register-button a {
  color: #000000;
  text-decoration: none;
}

/* Loading Spinner */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  border-top-color: #000000;
  animation: spin 0.6s linear infinite;
}

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

/* Payment Message */
.payment-message {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 6px;
  text-align: center;
  font-weight: 500;
  font-size: 14px;
  min-height: 18px;
  letter-spacing: -0.01em;
}

.payment-message:empty {
  padding: 0;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .form-section {
    padding: 24px;
    border-radius: 8px;
  }

  .form-section h3 {
    font-size: 20px;
  }

  #registration-form h2 {
    font-size: 24px;
    margin-bottom: 32px;
  }

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

  .form-row .form-group {
    margin-bottom: 0;
  }
}

@media (max-width: 480px) {
  #registration-form {
    padding: 40px 16px;
  }

  .form-section {
    padding: 20px;
    margin-bottom: 24px;
  }

  .form-group input,
  .form-group select,
  .stripe-element {
    padding: 11px 12px;
    font-size: 15px;
  }

  .form-section h3 {
    font-size: 18px;
  }

  .payment-summary {
    padding: 20px;
  }

  .summary-row {
    font-size: 14px;
  }

  .summary-row.total {
    font-size: 16px;
  }

  .payment-form .register-button {
    padding: 13px 20px;
    font-size: 15px;
  }
}

.camps-button-container button a {
  font-size: 1rem !important;
}

/* Integration with existing register.css */
#registration-form {
  background: #000000;
  padding: 80px 20px;
}

#registration-form .registration-section-container {
  max-width: 700px;
  margin: 0 auto;
}

#registration-form h2 {
  font-family: 'Lato', sans-serif;
  text-transform: none;
  text-align: center;
  margin-bottom: 48px;
  font-size: 28px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.02em;
}

/* Secure payment badge */
.secure-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  color: #9ca3af;
  font-size: 13px;
  letter-spacing: -0.01em;
}

.secure-badge svg {
  width: 16px;
  height: 16px;
}

/* Success state */
.payment-message.success {
  background-color: #ecfdf5;
  border: 1px solid #00d924;
  color: #065f46;
}

/* Error state */
.payment-message.error {
  background-color: #fef2f2;
  border: 1px solid #df1b41;
  color: #991b1b;
}

/* Two column layout for some fields */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.form-row .form-group {
  margin-bottom: 0;
}

/* Compact form section */
.form-section.compact {
  padding: 32px;
}

/* Expandable section */
.expandable-section {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.expandable-section.expanded {
  max-height: 1000px;
  padding-top: 20px;
}

.expand-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: transparent;
  border: 1px solid #3a3a3a;
  border-radius: 6px;
  color: #d1d1d1;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-top: 8px;
  font-family: 'Lato';
}

.expand-toggle:hover {
  background: #2a2a2a;
  border-color: #4a4a4a;
}

.expand-toggle .expand-icon {
  transition: transform 0.3s ease;
}

.expand-toggle.expanded .expand-icon {
  transform: rotate(180deg);
}

.expand-toggle .expand-text {
  letter-spacing: -0.01em;
}

@media (max-width: 768px) {
  .checkbox-group {
    flex-direction: column;
    gap: 12px;
  }
}

/* Discount Code Section */
.discount-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #3a3a3a;
}

.discount-input-wrapper {
  display: flex;
  gap: 8px;
}

.discount-input-wrapper input {
  flex: 1;
}

.apply-discount-btn {
  padding: 12px 20px;
  background: #2a2a2a;
  color: #ffffff;
  border: 1px solid #3a3a3a;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Lato';
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.apply-discount-btn:hover {
  background: #3a3a3a;
  border-color: #4a4a4a;
}

.apply-discount-btn:active {
  transform: scale(0.98);
}

.apply-discount-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.discount-message {
  margin-top: 8px;
  font-size: 13px;
  min-height: 18px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.discount-message.error {
  color: #df1b41;
}

.discount-message.success {
  color: #00d924;
}

.discount-applied {
  margin-top: 12px;
  padding: 12px 16px;
  background: #1a3a1a;
  border: 1px solid #00d924;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.discount-applied span {
  color: #00d924;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.remove-discount-btn {
  padding: 6px 12px;
  background: transparent;
  color: #00d924;
  border: 1px solid #00d924;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  font-family: 'Lato';
  cursor: pointer;
  transition: all 0.15s ease;
  letter-spacing: -0.01em;
}

.remove-discount-btn:hover {
  background: #00d924;
  color: #000000;
}

.remove-discount-btn:active {
  transform: scale(0.98);
}

@media (max-width: 480px) {
  .discount-input-wrapper {
    flex-direction: column;
  }

  .apply-discount-btn {
    width: 100%;
    margin: 0;
  }

  .discount-applied {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .remove-discount-btn {
    width: 100%;
  }
}

/* Additional Utility Classes - Refactored from Inline Styles */

.hidden {
  display: none !important;
}

.address-link {
  color: inherit;
  text-decoration: underline;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.expect-section-header {
  margin-top: 40px;
}

.standards-button-container {
  margin-top: 0;
}

.standards-view-button {
  margin-top: 10px;
  margin-bottom: 20px;
}

.standards-view-button:hover {
  background-color: #ec6a1ab1 !important;
}

#thank-you-section {
  display: none;
}

.thank-you-container {
  text-align: center;
  padding: 4rem 2rem;
}

.thank-you-title {
  font-family: 'Oswald', sans-serif;
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: white;
}

.thank-you-message {
  font-size: 1.3rem;
  line-height: 1.6;
  color: white;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   PAYMENT REQUEST BUTTON (Apple Pay / Google Pay)
   ============================================ */

.payment-request-container {
  margin-bottom: 32px;
}

.payment-request-container.hidden {
  display: none;
}

#payment-request-button {
  margin-bottom: 24px;
  min-height: 48px;
}

#payment-request-button.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Payment method divider */
.payment-divider {
  text-align: center;
  margin: 24px 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.payment-divider::before,
.payment-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #3a3a3a;
}

.payment-divider span {
  padding: 0 16px;
  color: #6a6a6a;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .payment-request-container {
    margin-bottom: 24px;
  }

  .payment-divider {
    margin: 20px 0;
  }

  .payment-divider span {
    font-size: 12px;
    padding: 0 12px;
  }
}

/* ============================================
   FORM VALIDATION MODAL
   ============================================ */

.validation-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.validation-modal.show {
  opacity: 1;
  visibility: visible;
}

.validation-modal.show .validation-modal-content {
  transform: scale(1);
  opacity: 1;
}

.validation-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.validation-modal-content {
  position: relative;
  background: #1a1a1a;
  border: 1px solid #3a3a3a;
  border-radius: 12px;
  padding: 40px 32px;
  max-width: 500px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 1;
}

.validation-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.validation-modal-close:hover {
  background: #2a2a2a;
  color: #ec691a;
}

.validation-modal-close:focus {
  outline: 2px solid #ec691a;
  outline-offset: 2px;
}

.validation-modal-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: rgba(236, 105, 26, 0.1);
  border-radius: 50%;
  color: #ec691a;
}

.validation-modal-icon svg {
  width: 48px;
  height: 48px;
}

.validation-modal-title {
  font-family: 'Oswald', sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
  margin: 0 0 16px 0;
  line-height: 1.2;
}

.validation-modal-message {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  color: #b0b0b0;
  text-align: center;
  margin: 0 0 24px 0;
  line-height: 1.5;
}

.validation-modal-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
}

.validation-modal-list li {
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  color: #ffffff;
  padding: 12px 16px;
  margin-bottom: 8px;
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-left: 3px solid #ec691a;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.validation-modal-list li::before {
  content: '•';
  color: #ec691a;
  font-size: 20px;
  font-weight: bold;
  flex-shrink: 0;
}

.validation-modal-button {
  width: 100%;
  padding: 14px 24px;
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #000000;
  background: #ffffff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.validation-modal-button:hover {
  background: #f5f5f5;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.15);
}

.validation-modal-button:active {
  transform: translateY(0);
}

.validation-modal-button:focus {
  outline: 2px solid #ec691a;
  outline-offset: 2px;
}

/* Mobile Responsive */
@media (max-width: 576px) {
  .validation-modal-content {
    padding: 32px 24px;
    width: 95%;
    max-height: 90vh;
    border-radius: 8px;
  }

  .validation-modal-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
  }

  .validation-modal-icon svg {
    width: 36px;
    height: 36px;
  }

  .validation-modal-title {
    font-size: 24px;
    margin-bottom: 12px;
  }

  .validation-modal-message {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .validation-modal-list li {
    font-size: 14px;
    padding: 10px 14px;
  }

  .validation-modal-button {
    padding: 12px 20px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .validation-modal-content {
    padding: 28px 20px;
  }

  .validation-modal-title {
    font-size: 22px;
  }
}

/* Scrollbar styling for modal content */
.validation-modal-content::-webkit-scrollbar {
  width: 8px;
}

.validation-modal-content::-webkit-scrollbar-track {
  background: #2a2a2a;
  border-radius: 4px;
}

.validation-modal-content::-webkit-scrollbar-thumb {
  background: #4a4a4a;
  border-radius: 4px;
}

.validation-modal-content::-webkit-scrollbar-thumb:hover {
  background: #5a5a5a;
}