/* Registration Form Styles - Namespaced to prevent conflicts */
/* All classes prefixed with .reg-form- */

.reg-form-wrapper {
  --reg-teal-50: #f0fdfa;
  --reg-teal-100: #ccfbf1;
  --reg-teal-200: #99f6e4;
  --reg-teal-300: #5eead4;
  --reg-teal-400: #2dd4bf;
  --reg-teal-500: #14b8a6;
  --reg-teal-600: #0d9488;
  --reg-teal-700: #0f766e;
  --reg-coral-50: #fff5f5;
  --reg-coral-500: #ef4444;
  --reg-coral-600: #dc2626;
  --reg-coral-700: #b91c1c;
  --reg-gray-50: #f9fafb;
  --reg-gray-100: #f3f4f6;
  --reg-gray-200: #e5e7eb;
  --reg-gray-300: #d1d5db;
  --reg-gray-400: #9ca3af;
  --reg-gray-500: #6b7280;
  --reg-gray-600: #4b5563;
  --reg-gray-700: #374151;
  --reg-gray-800: #1f2937;
  --reg-blue-50: #eff6ff;
  --reg-blue-200: #bfdbfe;
  --reg-blue-800: #1e40af;
  --reg-amber-600: #d97706;
}

.reg-form-wrapper {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  background: linear-gradient(135deg, var(--reg-teal-50) 0%, #ffffff 50%, var(--reg-coral-50) 100%);
  min-height: 100vh;
  padding: 2rem 1rem;
}

.reg-form-container {
  max-width: 1000px;
  margin: 0 auto;
}

/* Logo and Header */
.reg-form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.reg-form-logo {
  height: 48px;
  margin: 0 auto 1rem;
  display: block;
}

.reg-form-title {
  color: var(--reg-teal-600);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.reg-form-subtitle {
  color: var(--reg-gray-600);
  font-size: 1rem;
  margin: 0;
}

/* Progress Steps */
.reg-form-progress {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.reg-form-step-wrapper {
  display: flex;
  align-items: center;
}

.reg-form-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80px;
}

.reg-form-step-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.reg-form-step-circle.reg-completed {
  background-color: var(--reg-teal-500);
  color: white;
}

.reg-form-step-circle.reg-current {
  background-color: var(--reg-teal-500);
  color: white;
  box-shadow: 0 0 0 4px var(--reg-teal-100);
}

.reg-form-step-circle.reg-upcoming {
  background-color: var(--reg-gray-200);
  color: var(--reg-gray-400);
}

.reg-form-step-label {
  font-size: 0.75rem;
  color: var(--reg-gray-500);
  white-space: nowrap;
  text-align: center;
}

.reg-form-step-label.reg-current {
  color: var(--reg-teal-600);
  font-weight: 600;
}

.reg-form-step-connector {
  height: 4px;
  width: 48px;
  margin: 0 0.25rem;
  background-color: var(--reg-gray-200);
  transition: background-color 0.3s ease;
  align-self: flex-start;
  margin-top: 22px;
}

.reg-form-step-connector.reg-completed {
  background-color: var(--reg-teal-500);
}

/* Form Card */
.reg-form-card {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  border: none;
}

.reg-form-card-header {
  background: linear-gradient(to right, var(--reg-teal-500), var(--reg-teal-600));
  color: white;
  padding: 1.5rem;
}

.reg-form-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  margin-top: 0;
}

.reg-form-card-description {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  margin: 0;
}

.reg-form-card-body {
  padding: 2rem;
}

/* Form Controls */
.reg-form-group {
  margin-bottom: 1.5rem;
}

.reg-form-label {
  display: block;
  color: var(--reg-gray-700);
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.reg-form-control,
.reg-form-select {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--reg-gray-300);
  border-radius: 0.375rem;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  background-color: white;
  font-family: inherit;
}

.reg-form-control:focus,
.reg-form-select:focus {
  outline: none;
  border-color: var(--reg-teal-500);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.reg-form-control::placeholder {
  color: var(--reg-gray-400);
}

.reg-form-text {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--reg-gray-500);
}

/* Radio Buttons */
.reg-form-radio-group {
  display: flex;
  gap: 2rem;
  margin-top: 0.5rem;
}

.reg-form-radio-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.reg-form-radio-item input[type="radio"] {
  width: 1.125rem;
  height: 1.125rem;
  cursor: pointer;
  accent-color: var(--reg-teal-500);
  margin: 0;
}

.reg-form-radio-item label {
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--reg-gray-700);
  margin: 0;
}

/* Checkbox */
.reg-form-checkbox-wrapper {
  background-color: var(--reg-teal-50);
  border: 1px solid var(--reg-teal-100);
  border-radius: 0.5rem;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.reg-form-checkbox-wrapper input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
  accent-color: var(--reg-teal-500);
  margin: 0;
  flex-shrink: 0;
}

.reg-form-checkbox-wrapper label {
  cursor: pointer;
  color: var(--reg-gray-700);
  font-size: 0.95rem;
  margin: 0;
  flex: 1;
}

/* Telephone Input Group */
.reg-form-phone-input-group {
  display: flex;
  gap: 0.5rem;
}

.reg-form-phone-input-group .reg-form-select {
  width: 100px;
  flex-shrink: 0;
}

.reg-form-phone-input-group .reg-form-control {
  flex: 1;
}

/* Info Box */
.reg-form-info-box {
  background-color: var(--reg-blue-50);
  border: 1px solid var(--reg-blue-200);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.reg-form-info-box p {
  margin: 0;
  font-size: 0.875rem;
}

.reg-form-info-box a {
  color: var(--reg-teal-600);
  font-weight: 700;
  text-decoration: none;
}

.reg-form-info-box a:hover {
  text-decoration: underline;
}

/* Empty State */
.reg-form-empty-state {
  text-align: center;
  padding: 3rem 0;
}

.reg-form-empty-state-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  color: var(--reg-teal-200);
  opacity: 0.5;
}

.reg-form-empty-state-text {
  color: var(--reg-gray-500);
  font-size: 0.95rem;
  margin: 0;
}

/* reCAPTCHA Container */
.reg-form-recaptcha-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.reg-form-recaptcha-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--reg-gray-500);
  margin-top: 0.5rem;
}

.reg-form-recaptcha-warning {
  text-align: center;
  font-size: 0.75rem;
  color: var(--reg-amber-600);
  margin-top: 0.25rem;
}

/* Navigation Buttons */
.reg-form-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--reg-gray-200);
}

.reg-form-btn {
  padding: 0.625rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: inherit;
}

.reg-form-btn-outline-teal {
  background-color: white;
  border: 1px solid var(--reg-teal-300);
  color: var(--reg-teal-600);
}

.reg-form-btn-outline-teal:hover:not(:disabled) {
  background-color: var(--reg-teal-50);
}

.reg-form-btn-teal {
  background-color: var(--reg-teal-500);
  color: white;
  border: 1px solid var(--reg-teal-500);
}

.reg-form-btn-teal:hover:not(:disabled) {
  background-color: var(--reg-teal-600);
  border-color: var(--reg-teal-600);
}

.reg-form-btn-coral {
  background: linear-gradient(to right, var(--reg-coral-500), var(--reg-coral-600));
  color: white;
}

.reg-form-btn-coral:hover:not(:disabled) {
  background: linear-gradient(to right, var(--reg-coral-600), var(--reg-coral-700));
}

.reg-form-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Footer Note */
.reg-form-footer {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--reg-gray-500);
  font-size: 0.875rem;
}

/* Alert Messages */
.reg-form-alert {
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid;
}

.reg-form-alert-danger {
  background-color: #fee;
  border-color: #fcc;
  color: #c00;
}

.reg-form-alert-success {
  background-color: #efe;
  border-color: #cfc;
  color: #0c0;
}

/* Step Hidden State */
.reg-form-step-content {
  display: none;
}

.reg-form-step-content.reg-active {
  display: block;
  animation: regFormFadeIn 0.3s ease;
}

@keyframes regFormFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Grid System for form fields */
.reg-form-row-gap-4 {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .reg-form-row-gap-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .reg-form-wrapper {
    padding: 1rem 0.5rem;
  }

  .reg-form-title {
    font-size: 1.5rem;
  }

  .reg-form-progress {
    gap: 0.125rem;
  }

  .reg-form-step-item {
    width: 60px;
  }

  .reg-form-step-circle {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .reg-form-step-connector {
    width: 24px;
    margin-top: 18px;
  }

  .reg-form-step-label {
    font-size: 0.65rem;
  }

  .reg-form-card-body {
    padding: 1.5rem;
  }

  .reg-form-radio-group {
    gap: 1rem;
  }

  .reg-form-phone-input-group {
    flex-direction: column;
  }

  .reg-form-phone-input-group .reg-form-select {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .reg-form-wrapper {
    padding: 1rem 0.5rem;
  }

  .reg-form-card-body {
    padding: 1rem;
  }

  .reg-form-step-connector {
    width: 16px;
  }
}

/* Form Controls */
.reg-form-group {
  margin-bottom: 1.5rem;
}

.reg-form-label {
  display: block;
  color: var(--reg-gray-700);
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.reg-form-control,
.reg-form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--reg-gray-300);
  border-radius: 0.375rem;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  background-color: white;
  font-family: inherit;
  box-sizing: border-box;
  line-height: 1.5;
}

.btn-home {
    text-decoration: none;
}

.btn-home:hover {
    transform: translateY(-2px);
}