/* ===========================================
   DRHQ SEARCH FORM
   =========================================== */

.drhq-search {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

/* Fields Container */
.drhq-search__fields {
    display: flex;
    flex: 1;
    gap: 8px;
}

/* Individual Field Button */
.drhq-search__field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #fff !important;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-align: left;
    transition: box-shadow 0.2s;
    min-width: 0;
}

.drhq-search__field:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background: #fff !important;
    color: inherit !important;
}

.drhq-search__field.is-active {
    box-shadow: 0 0 0 2px #3b5998;
}

/* Icon */
.drhq-search__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.6;
}

.drhq-search__icon--where {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b5998' stroke-width='2'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

.drhq-search__icon--care {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b5998' stroke-width='2'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E");
}

.drhq-search__icon--payment {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b5998' stroke-width='2'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/%3E%3Cpolyline points='22 4 12 14.01 9 11.01'/%3E%3C/svg%3E");
}

/* Text */
.drhq-search__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.drhq-search__label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #666;
    letter-spacing: 0.5px;
}

.drhq-search__value {
    font-size: 15px;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Submit Button */
.drhq-search__submit {
    padding: 14px 32px;
    background: #004066;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.drhq-search__submit:hover {
    background: #93ba33;
}

/* ===========================================
   DESKTOP DROPDOWNS
   =========================================== */

.drhq-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
    z-index: 1000;
    min-width: 300px;
    max-width: 400px;
    overflow: hidden;
}

.drhq-dropdown.is-open {
    display: block;
}

.drhq-dropdown[data-for="where"] {
    left: 0;
}

.drhq-dropdown[data-for="care"] {
    left: 33%;
}

.drhq-dropdown[data-for="payment"] {
    left: auto;
    right: 120px;
}

.drhq-dropdown__header {
    padding: 16px 20px 12px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #eee;
}

.drhq-dropdown__search {
    display: block;
    width: calc(100% - 32px);
    margin: 12px 16px;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.drhq-dropdown__search:focus {
    outline: none;
    border-color: #3b5998;
}

.drhq-dropdown__list {
    max-height: 280px;
    overflow-y: auto;
    padding: 8px 0;
}

.drhq-dropdown__body {
    max-height: 350px;
    overflow-y: auto;
    padding: 12px 16px;
}

.drhq-dropdown__footer {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-top: 1px solid #eee;
    background: #fafafa;
}

.drhq-dropdown__btn {
    flex: 1;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.drhq-dropdown__btn--clear {
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
}

.drhq-dropdown__btn--clear:hover {
    background: #f5f5f5;
    color: #333;
}

.drhq-dropdown__btn--apply {
    background: #3b5998;
    border: none;
    color: #fff;
}

.drhq-dropdown__btn--apply:hover {
    background: #2d4373;
    color: #fff;
}

/* ===========================================
   OPTIONS (shared)
   =========================================== */

.drhq-option {
    display: block;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.15s;
}

.drhq-option:hover {
    background: #f5f7fa;
}

.drhq-option--state {
    font-size: 15px;
    color: #333;
}

.drhq-option--state.is-selected {
    background: #e8f0fe;
    color: #3b5998;
    font-weight: 500;
}

.drhq-option--state.is-hidden {
    display: none;
}

.drhq-option--checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
}

.drhq-option--checkbox input[type="checkbox"] {
    margin-top: 2px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.drhq-option--checkbox span {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

.drhq-option-group {
    margin-bottom: 16px;
}

.drhq-option-group:last-child {
    margin-bottom: 0;
}

.drhq-option-group__title {
    font-size: 13px;
    font-weight: 600;
    color: #3b5998;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #eee;
}

/* ===========================================
   MOBILE MODALS
   =========================================== */

.drhq-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
}

.drhq-modal.is-open {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.drhq-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}

.drhq-modal__sheet {
    position: relative;
    background: #fff;
    border-radius: 16px 16px 0 0;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.drhq-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.drhq-modal__title {
    font-size: 17px;
    font-weight: 600;
    color: #333;
}

.drhq-modal__close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
}

.drhq-modal__close:hover {
    background: none;
    color: #333;
}

.drhq-modal__body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
}

.drhq-modal__subtitle {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin-bottom: 12px;
    text-align: center;
}

.drhq-modal__search {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
}

.drhq-modal__search:focus {
    outline: none;
    border-color: #3b5998;
}

.drhq-modal__list {
    max-height: 300px;
    overflow-y: auto;
}

.drhq-modal__footer {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid #eee;
    background: #fafafa;
}

.drhq-modal__btn {
    flex: 1;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.drhq-modal__btn--clear {
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
}

.drhq-modal__btn--clear:hover {
    background: #f5f5f5;
    color: #333;
}

.drhq-modal__btn--apply {
    background: #3b5998;
    border: none;
    color: #fff;
}

.drhq-modal__btn--apply:hover {
    background: #2d4373;
    color: #fff;
}

/* ===========================================
   RESPONSIVE
   =========================================== */

/* Desktop: show dropdowns, hide modals */
@media (min-width: 769px) {
    .drhq-modal {
        display: none !important;
    }
}

/* Mobile: hide dropdowns, show modals */
@media (max-width: 768px) {
    .drhq-search {
        flex-direction: column;
        max-width: 100%;
        width: 100%;
    }

    .drhq-search__fields {
        flex-direction: column;
        width: 100%;
    }

    .drhq-search__field {
        width: 100%;
    }

    .drhq-search__submit {
        width: 100%;
    }

    .drhq-dropdown {
        display: none !important;
    }
}
