/**
 * Medexly doctor search form — AppointmentBD-style layout.
 * Stacked on mobile, 2-col tablet, single row on desktop.
 */

form.medexly-doctor-search-form {
  display: block;
  width: 100%;
  margin: 0;
}

.medexly-doctor-search-form-wrap,
.medexly-doctor-search-form,
.medexly-doctor-search-form__layout {
  width: 100%;
  max-width: 100%;
}

.medexly-doctor-search-form-wrap--hero {
  position: relative;
  z-index: 1;
}

.medexly-doctor-search-form select,
.medexly-doctor-search-form input[type="search"] {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  font-size: 0.9375rem;
  line-height: 1.4;
}

.medexly-doctor-search-form input[type="search"] {
  -webkit-appearance: none;
  appearance: none;
}

.medexly-doctor-search-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  padding-right: 2.25rem;
}

html.dark .medexly-doctor-search-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
}

.medexly-doctor-search-form select:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.medexly-doctor-search-form__submit {
  width: 100%;
  min-height: 2.75rem;
}

@media (min-width: 640px) and (max-width: 1023px) {
  .medexly-doctor-search-form__search,
  .medexly-doctor-search-form__submit {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .medexly-doctor-search-form__layout {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.5rem;
  }

  .medexly-doctor-search-form__cell {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
  }

  .medexly-doctor-search-form__search {
    flex: 1.4 1 0;
  }

  .medexly-doctor-search-form__submit {
    flex: 0 0 auto;
    width: auto;
    min-width: 7.5rem;
    max-width: 8.5rem;
  }
}
