/* Agent Registration Styles */
:root {
  --primary-color: #a51c36; 
  --primary-dark: #951a3d;
  --primary-hover: #a51d3a;
  --secondary-color: #444444;
  --light-gray: #f8f9fa;
  --border-color: #e7e7e7;
  --success-color: #28a745;
  --accent-color: #e5e5e5;
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
}

body {
  font-family: 'Poppins', Arial, sans-serif;
  background-color: var(--light-gray);
  color: var(--secondary-color);
  line-height: 1.6;
}

/* Registration Container */
.registration-container {
  max-width: 900px;
  margin: 0 auto;
}

.card {
  border-radius: 0.5rem;
  border: none;
  overflow: hidden;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.card:hover {
  box-shadow: var(--shadow-lg);
}

.card-title {
  color: var(--primary-color);
  font-weight: 700;
  font-size: calc(1.35rem + 0.6vw);
}

.lead {
  font-size: calc(0.95rem + 0.2vw);
  color: var(--secondary-color);
}

/* Form Elements */
.form-select, .form-control {
  border: 1px solid var(--border-color);
  padding: 0.75rem;
  border-radius: 0.375rem;
  font-size: 1rem;
  height: 3.125rem;
  transition: all 0.2s ease;
}

.form-select:focus, .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(184, 32, 75, 0.25);
}

/* Mobile Responsive Group - replacement for input-group to work better on mobile */
.mobile-responsive-group {
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .mobile-responsive-group {
    flex-direction: row;
  }
  
  .mobile-responsive-group .form-select {
    border-radius: 0.375rem 0 0 0.375rem;
    flex: 1;
  }
  
  .mobile-responsive-group .btn {
    border-radius: 0 0.375rem 0.375rem 0;
    height: 3.125rem;
  }
}

/* Buttons */
.btn-primary, #select-btn {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  height: 3.125rem;
  padding: 0.625rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-primary:hover, #select-btn:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary:active, #select-btn:active {
  transform: translateY(1px);
  box-shadow: none;
}

.btn-primary:focus, #select-btn:focus {
  box-shadow: 0 0 0 0.25rem rgba(184, 32, 75, 0.25);
}

#select-btn i {
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

#select-btn:hover i {
  transform: translateX(4px);
}

/* Selection feedback container */
#selection-feedback {
  min-height: 60px;
}

/* Animation for alerts */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.alert {
  animation: fadeIn 0.4s ease-out forwards;
  border-radius: 0.375rem;
}

/* Add style for the spinner */
.spinner-border {
  width: 1.25rem;
  height: 1.25rem;
  border-width: 0.15em;
}

/* Custom Select Styling */
select option, select optgroup {
  font-size: 1rem;
  padding: 0.5rem;
}

select optgroup {
  font-weight: 600;
  color: var(--primary-color);
}

select option {
  padding: 0.75rem;
}

select option:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Support text */
.text-muted a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

.text-muted a:hover {
  color: var(--primary-dark);
  text-decoration: underline !important;
}

/* Touch optimizations */
@media (hover: none) {
  .btn-primary:hover, #select-btn:hover {
    transform: none;
    box-shadow: none;
  }
  
  select, button, .form-select, input {
    font-size: 16px !important; /* Prevents zoom on iOS */
  }
}

/* Additional responsive adjustments */
@media (max-width: 991.98px) {
  .card-body {
    padding: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .card-title {
    font-size: 1.5rem;
  }
  
  .lead {
    font-size: 1rem;
  }
  
  .btn-primary, #select-btn {
    margin-top: 0.5rem;
    height: 3rem;
  }
  
  .card-body {
    padding: 1.25rem;
  }
}

@media (max-width: 575.98px) {
  .card-title {
    font-size: 1.35rem;
  }
  
  .lead {
    font-size: 0.95rem;
  }
  
  .form-select {
    font-size: 0.95rem;
  }
  
  #select-btn {
    font-size: 0.9rem;
  }
}
