/* Forms Component Styles */ 
/* Forms Styling */
.form-group {
    margin-bottom: var(--spacing-md);
  }
  
  .form-group label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--text-charcoal);
  }
  
  .form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius-md);
    font-size: var(--font-size-md);
    font-family: var(--font-family);
    transition: all 0.2s ease;
    color: var(--text-charcoal);
    background-color: white;
  }
  
  .form-control:focus {
    border-color: var(--dentist-blue);
    box-shadow: 0 0 0 3px rgba(33, 147, 176, 0.2);
    outline: none;
  }
  
  .form-control:disabled {
    background-color: var(--background-light);
    cursor: not-allowed;
  }
  
  .form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius-md);
    font-size: var(--font-size-md);
    font-family: var(--font-family);
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    transition: all 0.2s ease;
    color: var(--text-charcoal);
    background-color: white;
  }
  
  .form-select:focus {
    border-color: var(--dentist-blue);
    box-shadow: 0 0 0 3px rgba(33, 147, 176, 0.2);
    outline: none;
  }
  
  .input-group {
    display: flex;
    margin-bottom: var(--spacing-md);
  }
  
  .input-group .form-control {
    border-radius: var(--border-radius-md) 0 0 var(--border-radius-md);
    flex: 1;
  }
  
  .input-group .btn {
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
  }
  
  .range-slider {
    margin-bottom: var(--spacing-md);
  }
  
  .range-slider input[type="range"] {
    width: 100%;
    height: 8px;
    background-color: var(--background-gray);
    border-radius: 4px;
    outline: none;
    -webkit-appearance: none;
    margin-bottom: var(--spacing-xs);
  }
  
  .range-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--dentist-blue);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
  }
  
  .range-slider input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--dentist-blue);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
  }
  
  .range-label {
    display: flex;
    justify-content: space-between;
    font-size: var(--font-size-xs);
    color: var(--text-gray);
  }
  
  .checkbox-group {
    margin-bottom: var(--spacing-md);
  }
  
  .check-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: var(--spacing-xs);
    font-size: var(--font-size-sm);
  }
  
  .check-label input[type="checkbox"] {
    margin-right: var(--spacing-sm);
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--dentist-blue);
    border-radius: 3px;
    position: relative;
    transition: all 0.2s ease;
  }
  
  .check-label input[type="checkbox"]:checked {
    background-color: var(--dentist-blue);
  }
  
  .check-label input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 5px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
  }
  
  .radio-group {
    margin-bottom: var(--spacing-md);
  }
  
  .radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: var(--spacing-xs);
    font-size: var(--font-size-sm);
  }
  
  .radio-label input[type="radio"] {
    margin-right: var(--spacing-sm);
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--dentist-blue);
    border-radius: 50%;
    position: relative;
    transition: all 0.2s ease;
  }
  
  .radio-label input[type="radio"]:checked::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--dentist-blue);
  }
  
  /* Calculator forms styling */
  .calculator-form {
    background-color: var(--background-light);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-md);
    margin-bottom: var(--spacing-lg);
  }
  
  .calculator-form .btn {
    margin-top: var(--spacing-sm);
  }
  
  /* Validation styling */
  .form-group.has-error .form-control {
    border-color: #dc3545;
  }
  
  .form-group.has-error .form-label {
    color: #dc3545;
  }
  
  .error-feedback {
    color: #dc3545;
    font-size: var(--font-size-xs);
    margin-top: var(--spacing-xs);
  }
  
  .form-group.has-success .form-control {
    border-color: #28a745;
  }
  
  /* Form variations */
  .form-inline {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
  }
  
  .form-inline .form-group {
    flex: 1;
    min-width: 200px;
  }
  
  .form-search {
    position: relative;
  }
  
  .form-search .form-control {
    padding-right: 50px;
  }
  
  .form-search .search-btn {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    border: none;
    background: none;
    padding: 0 var(--spacing-md);
    color: var(--dentist-blue);
    cursor: pointer;
  }
  
  @media (max-width: 768px) {
    .form-inline {
      flex-direction: column;
    }
    
    .form-inline .form-group {
      width: 100%;
    }
  }