/* Custom Date Picker Styles for Morocco Blue Taxi - Separated Fields Version */

/* Container for the three date picker fields */
.date-picker-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
  }
  
  /* Common styles for all date picker selects */
  .date-picker-group select {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    font-size: 14px;
    color: #495057;
    background-color: #fff;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px;
    cursor: pointer;
  }
  
  /* Style for day select - narrower */
  .date-picker-group .date-day {
    width: 70px;
    flex: 0 0 auto;
  }
  
  /* Style for month select - wider for text month names */
  .date-picker-group .date-month {
    width: 130px;
    flex: 1 0 auto;
  }
  
  /* Style for year select - medium width */
  .date-picker-group .date-year {
    width: 90px;
    flex: 0 0 auto;
  }
  
  /* Focus state for individual selects */
  .date-picker-group select:focus {
    border-color: #3a5199;
    box-shadow: 0 0 0 0.2rem rgba(28, 52, 116, 0.25);
    outline: none;
  }
  
  /* Hover state */
  .date-picker-group select:hover {
    border-color: #a0a6ab;
  }
  
  /* Error state */
  .date-picker-group select.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23dc3545' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  }
  
  /* Hidden input for storing actual date value */
  .date-picker-group input[type="hidden"] {
    display: none;
  }
  
  /* Help text styling */
  .form-text {
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #6c757d;
  }
  
  /* Error message */
  .date-error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
  }
  
  .date-error-message.show {
    display: block;
  }
  
  /* Placeholder styling */
  .date-picker-group select option:first-child {
    color: #6c757d;
  }
  
  /* Responsive styling for small screens */
  @media (max-width: 576px) {
    .date-picker-group {
      flex-wrap: wrap;
    }
    
    .date-picker-group .date-day,
    .date-picker-group .date-month,
    .date-picker-group .date-year {
      padding: 6px 8px;
      font-size: 13px;
    }
    
    .date-picker-group .date-day {
      width: 60px;
    }
    
    .date-picker-group .date-month {
      width: 110px;
    }
    
    .date-picker-group .date-year {
      width: 80px;
    }
  }