﻿.qbox-container {
    position: relative;
    padding: 62px;
    min-height: 630px;
    box-shadow: 10px 8px 21px 0px rgba(204, 204, 204, 0.75);
    -webkit-box-shadow: 10px 8px 21px 0px rgba(204, 204, 204, 0.75);
    -moz-box-shadow: 10px 8px 21px 0px rgba(204, 204, 204, 0.75);
    border-width: 2px;
}

@media(max-width: 992px){
    .qbox-container {
        padding: 10px;
    }
}

#steps-container {
    margin: auto;
    min-height: 420px;
    vertical-align: middle;
    align-items: center;
}

#q-box__buttons {
    text-align: center;
}

#success {
    display: none;
}

#success h4 {
    color: #DC3545;
}


#preloader-wrapper {
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
}

#preloader {
    width: 120px;
    height: 119px;
    border-top-color: #fff;
    border-radius: 100%;
    display: block;
    position: relative;
    top: 50%;
    left: 50%;
    margin: -75px 0 0 -75px;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
    z-index: 1001;
}


#preloader-wrapper .preloader-section {
    width: 51%;
    height: 100%;
    position: fixed;
    top: 0;
    background: #F7F9FF;
    z-index: 1000;
}

#preloader-wrapper .preloader-section.section-left {
    left: 0
}

#preloader-wrapper .preloader-section.section-right {
    right: 0;
}

.loaded #preloader-wrapper .preloader-section.section-left {
    transform: translateX(-100%);
    transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
}

.loaded #preloader-wrapper .preloader-section.section-right {
    transform: translateX(100%);
    transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
}

.loaded #preloader {
    opacity: 0;
    transition: all 0.3s ease-out;
}

.loaded #preloader-wrapper {
    visibility: hidden;
    transform: translateY(-100%);
    transition: all 0.3s 1s ease-out;
}

.accordion-body {
    display: none;
    background: transparent !important;
    padding: 0 !important;
}

.accordion-collapse.show .accordion-body {
    display: block;
    padding: 1rem !important;
    background: #fff;
    border-radius: 10px;
}

.accordion-button {
    background-color: #f8f7ff;
    border-radius: 10px !important;
    color: var(--color-dark-2);
}

.accordion-button:not(.collapsed) {
    background-color: #eae5ff;
    color: var(--color-dark-2);
}

/* When a category has at least one option selected */
.accordion-button.has-selection,
.accordion-button:not(.collapsed).has-selection {
    background-color: var(--color-dark-2);      /* brand purple */
    color: #fff;
    border-color: var(--color-dark-2);
}

/* Make the chevron visible on the dark background */
.accordion-button.has-selection::after,
.accordion-button:not(.collapsed).has-selection::after {
    filter: invert(1) brightness(2); /* white chevron */
    opacity: 1;
}

/* Hover/focus polish */
.accordion-button.has-selection:hover {
    background-color: var(--color-dark-2);
    color: #fff;
}
.accordion-button.has-selection:focus {
    box-shadow: 0 0 0 .25rem rgba(111, 71, 255, .25);
}

/* Optional: keep the label + count readable */
.accordion-button.has-selection .category-label,
.accordion-button.has-selection .category-count {
    color: #fff;
}

.therapist-search__field {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 54px;
    background: #fff;
    border: 1px solid rgba(39, 31, 61, 0.18);
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(39, 31, 61, 0.08);
}

.therapist-search__icon {
    position: absolute;
    left: 18px;
    color: var(--color-dark-2);
    font-size: 18px;
    pointer-events: none;
}

.therapist-search__input {
    width: 100%;
    min-height: 54px;
    padding: 0 52px 0 48px;
    color: var(--color-dark-1);
    background: transparent;
    border: 0;
    outline: 0;
}

.therapist-search__input::placeholder {
    color: rgba(39, 31, 61, 0.62);
}

.therapist-search__clear {
    position: absolute;
    right: 10px;
    width: 36px;
    height: 36px;
    color: var(--color-dark-2);
    background: transparent;
    border: 0;
    border-radius: 8px;
}

.therapist-search__clear:hover,
.therapist-search__clear:focus {
    background: rgba(39, 31, 61, 0.08);
}

.therapist-search__spinner {
    position: absolute;
    right: 18px;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(39, 31, 61, 0.16);
    border-top-color: var(--color-dark-2);
    border-radius: 50%;
    animation: therapist-search-spin 0.75s linear infinite;
}

.therapist-search__field.is-searching .therapist-search__clear {
    display: none !important;
}

.therapist-filter-toggle {
    display: none;
}

.therapist-filter-panel {
    display: contents;
}

@keyframes therapist-search-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 767.98px) {
    .therapist-filter-container {
        align-items: stretch;
        gap: 0;
        margin-inline: auto;
        max-width: 560px;
        padding: 0;
        transition: background-color .2s ease, border-color .2s ease, padding .2s ease;
    }

    .therapist-filter-toggle {
        align-items: center;
        background: var(--color-dark-2);
        border: 1.5px solid var(--color-dark-2);
        border-radius: 999px;
        color: var(--color-accent-dark-theme);
        display: grid;
        font-size: 1rem;
        font-weight: 500;
        grid-template-columns: 34px 1fr 34px;
        min-height: 46px;
        padding: 0 14px;
        text-align: center;
        width: 100%;
    }

    .therapist-filter-toggle i {
        font-size: 1.12rem;
        line-height: 1;
    }

    .therapist-filter-toggle__chevron {
        transition: transform .2s ease;
    }

    .therapist-filter-panel {
        display: none;
    }

    .therapist-filter-container.is-open {
        background: #fff;
        border: 1.5px solid var(--color-dark-2);
        border-radius: 22px;
        padding: 6px 12px 14px;
    }

    .therapist-filter-container.is-open .therapist-filter-toggle {
        background: transparent;
        border-color: transparent;
        color: var(--color-dark-2);
        margin-bottom: 8px;
    }

    .therapist-filter-container.is-open .therapist-filter-toggle__chevron {
        transform: rotate(180deg);
    }

    .therapist-filter-container.is-open .therapist-filter-panel {
        display: flex;
        flex-direction: column;
        gap: 9px;
    }

    .therapist-filter-container .filter-row,
    .therapist-filter-container .filter-row:nth-child(2) {
        flex-direction: column;
        gap: 9px;
        width: 100%;
    }

    .therapist-filter-container .filter-dropdown,
    .therapist-filter-container .filter-row:nth-child(2) .filter-dropdown {
        border: 1.5px solid var(--color-dark-2);
        border-radius: 999px;
        box-shadow: none;
        max-width: none;
        min-height: 42px;
        overflow: hidden;
        width: 100%;
    }

    .therapist-filter-container .bootstrap-select {
        width: 100% !important;
    }

    .therapist-filter-container .btn.dropdown-toggle {
        align-items: center;
        border-radius: 999px;
        color: var(--color-dark-2);
        display: flex;
        font-size: .86rem;
        min-height: 40px;
        padding: .5rem 2.5rem .5rem 1.1rem;
    }
}

.payment-methods-panel {
    width: min(100%, 600px);
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.payment-methods-title {
    margin-bottom: 18px;
    color: var(--color-dark-1);
    font-size: 27px;
    font-weight: 700;
    line-height: 1.2;
}

.payment-method-option {
    margin-bottom: 10px;
}

.payment-method-choice {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 76px;
    padding: 18px 18px 16px 10px;
    color: var(--color-dark-1);
    background: #fff;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.payment-method-choice:hover {
    border-color: var(--color-dark-2);
    background: #fff;
    border-color: color-mix(in srgb, var(--color-dark-2) 32%, transparent);
    background: color-mix(in srgb, var(--color-dark-2) 7%, #fff);
}

.payment-method-choice.is-selected,
.payment-method-choice:has(.payment-method-radio:checked) {
    border-color: var(--color-dark-2);
    background: #fff;
    box-shadow: 0 0 0 1px var(--color-dark-2);
    border-color: color-mix(in srgb, var(--color-dark-2) 42%, #fff);
    background: color-mix(in srgb, var(--color-dark-2) 9%, #fff);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-dark-2) 16%, transparent);
}

.payment-method-radio {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.payment-method-body {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.payment-method-logo {
    display: block;
    width: auto;
    max-width: 170px;
    height: 28px;
    object-fit: contain;
    object-position: center;
}

.payment-method-logo-wp {
    max-width: 190px;
    height: 25px;
}

.payment-method-logo-mp {
    max-width: 145px;
    height: 25px;
}

.payment-method-logo-skip-aapd {
    max-width: 120px;
    height: 32px;
}

.payment-method-name {
    color: var(--color-dark-2);
    font-size: 24px;
    line-height: 1;
}

.payment-method-description {
    display: block;
    color: var(--color-dark-1);
    font-size: 15px;
    line-height: 1.35;
}

.payment-method-badge {
    position: absolute;
    top: -10px;
    right: 18px;
    max-width: calc(100% - 56px);
    padding: 4px 10px;
    color: #fff;
    background: var(--color-dark-2);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.payment-method-badge:empty {
    display: none;
}

@media (max-width: 575.98px) {
    .payment-methods-title {
        font-size: 23px;
    }

    .payment-method-choice {
        min-height: 84px;
        padding-right: 12px;
    }

    .payment-method-badge {
        position: static;
        align-self: flex-start;
        margin-top: 2px;
        white-space: normal;
    }
}
