/* ==========================================================================
   HIREMATH FINVEST — PREFERRED TIME TO CONTACT COMPONENT
   Strictly follows design tokens: Space Grotesk, Manrope, #18231D, #245C3C
   ========================================================================== */

.preferred-time-group {
  margin-bottom: 16px;
  width: 100%;
  display: block;
}

.preferred-time-label {
  display: block;
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: 0.875rem; /* 14px */
  font-weight: var(--fw-semibold, 600);
  color: var(--color-text-primary, #18231D);
  margin-bottom: 8px;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.preferred-time-control-wrap {
  position: relative;
  width: 100%;
}

.preferred-time-select {
  display: block;
  width: 100%;
  height: 50px;
  min-height: 48px;
  max-height: 54px;
  padding: 12px 44px 12px 16px;
  font-family: var(--font-body, 'Manrope', sans-serif);
  font-size: 0.9375rem; /* 15px */
  font-weight: var(--fw-regular, 400);
  color: var(--color-text-primary, #18231D);
  background-color: #FAFCFA;
  border: 1px solid var(--color-border, #DCE5DB);
  border-radius: var(--radius-btn, 12px);
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23245C3C' stroke-width='2.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 16px center;
  background-size: 16px 16px;
  transition: border-color var(--transition-fast, 200ms ease),
              box-shadow var(--transition-fast, 200ms ease),
              background-color var(--transition-fast, 200ms ease);
}

/* Hover state */
.preferred-time-select:hover {
  border-color: var(--color-secondary-green, #3E8757);
}

/* Focus state */
.preferred-time-select:focus {
  outline: none;
  border-color: var(--color-primary-forest, #245C3C);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(36, 92, 60, 0.12);
}

/* Modal specific override to harmonize with modal inputs */
.modal-card .preferred-time-select {
  border-width: 1.5px;
  height: 48px;
}

/* Enquiry page specific override to harmonize with enquiry form inputs */
.enquiry-form-card .preferred-time-group {
  margin-bottom: 24px;
}

.enquiry-form-card .preferred-time-select {
  height: 54px;
  background-color: #FFFFFF;
  border: 1px solid var(--color-border, #DCE5DB);
  padding: 14px 44px 14px 18px;
}

/* Dropdown options styling */
.preferred-time-select option {
  font-family: var(--font-body, 'Manrope', sans-serif);
  font-size: 0.9375rem;
  color: #18231D;
  background-color: #FFFFFF;
  padding: 10px 14px;
}

.preferred-time-select option[value=""] {
  color: var(--color-text-muted, #8D9C93);
}

/* Mobile full width & safe touch target */
@media (max-width: 768px) {
  .preferred-time-group {
    width: 100%;
    margin-bottom: 20px;
  }

  .preferred-time-select {
    width: 100%;
    min-height: 48px;
    font-size: 1rem; /* 16px to prevent iOS auto-zoom */
    padding-right: 42px;
  }
}
