/* ============================================================
   BeeBeauty — Модальна форма оптового клієнта
   ============================================================ */

/* Кнопка на сторінці «Оптовикам» */
.bee-wholesale-open {
    display: inline-block;
    padding: 15px 48px;
    background: #2B211C;
    color: #fff !important;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.03em;
    border-radius: 8px;
    text-decoration: none !important;
    transition: background 0.22s, transform 0.18s, box-shadow 0.22s;
    box-shadow: 0 6px 24px rgba(43, 33, 28, 0.18);
    cursor: pointer;
}

.bee-wholesale-open:hover {
    background: #CDB79E;
    color: #2B211C !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(43, 33, 28, 0.15);
}

/* Центрування обгортки */
.bee-wholesale-btn-wrap {
    text-align: center;
    margin: 36px 0;
}

/* Оверлей */
.bee-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(43, 33, 28, 0.55);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(2px);
}

.bee-modal-overlay.is-open {
    display: flex;
}

/* Вікно */
.bee-modal {
    background: #fff;
    border-radius: 12px;
    padding: 40px 36px 36px;
    max-width: 620px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 24px 64px rgba(43, 33, 28, 0.18);
    animation: bee-modal-in 0.28s ease;
}

@keyframes bee-modal-in {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Закрити */
.bee-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 18px;
    color: #A89880;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
    padding: 0;
}

.bee-modal__close:hover {
    background: #F5F1ED;
    color: #2B211C;
}

/* Заголовок */
.bee-modal__title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: #2B211C;
    margin: 0 0 6px;
}

.bee-modal__subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #A89880;
    margin: 0 0 28px;
}

/* Форма */
.bee-wholesale-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Ряд з двох полів */
.bee-wf__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Поле */
.bee-wf__field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.bee-wf__label {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #2B211C;
    letter-spacing: 0.02em;
}

.bee-wf__req {
    color: #c0392b;
}

.bee-wf__optional {
    color: #A89880;
    font-weight: 400;
}

.bee-wf__input {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #2B211C;
    background: #FDFBF9;
    border: 1px solid #E8DDD5;
    border-radius: 6px;
    padding: 9px 12px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.bee-wf__input:focus {
    border-color: #CDB79E;
    box-shadow: 0 0 0 3px rgba(205, 183, 158, 0.18);
}

.bee-wf__input::placeholder {
    color: #C4B5A8;
}

.bee-wf__input.is-error {
    border-color: #c0392b;
}

.bee-wf__textarea {
    resize: vertical;
    min-height: 72px;
}

.bee-wf__select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A89880' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    cursor: pointer;
}

/* Перемикач ФОП / Юридична особа */
.bee-wf__toggle-wrap {
    display: inline-flex;
    border: 1.5px solid #E8DDD5;
    border-radius: 8px;
    overflow: hidden;
    background: #FDFBF9;
}

.bee-wf__toggle-option {
    cursor: pointer;
    user-select: none;
}

.bee-wf__toggle-option input[type="radio"] {
    display: none;
}

.bee-wf__toggle-option span {
    display: block;
    padding: 9px 24px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #A89880;
    background: transparent;
    transition: background 0.18s, color 0.18s;
    border-right: 1.5px solid #E8DDD5;
    white-space: nowrap;
}

.bee-wf__toggle-option:last-child span {
    border-right: none;
}

.bee-wf__toggle-option input[type="radio"]:checked + span {
    background: #2B211C;
    color: #fff;
}

.bee-wf__toggle-option:hover input[type="radio"]:not(:checked) + span {
    background: #F5F1ED;
    color: #2B211C;
}

/* Чекбокс згоди */
.bee-wf__field--checkbox {
    margin-top: 4px;
}

.bee-wf__checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #2B211C;
    line-height: 1.5;
}

.bee-wf__checkbox-label input[type="checkbox"] {
    display: none;
}

.bee-wf__checkbox-box {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 1.5px solid #E8DDD5;
    border-radius: 4px;
    background: #FDFBF9;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s, border-color 0.18s;
    margin-top: 1px;
}

.bee-wf__checkbox-label input:checked ~ .bee-wf__checkbox-box {
    background: #2B211C;
    border-color: #2B211C;
}

.bee-wf__checkbox-label input:checked ~ .bee-wf__checkbox-box::after {
    content: '';
    display: block;
    width: 5px;
    height: 9px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translateY(-1px);
}

.bee-wf__checkbox-label a {
    color: #CDB79E;
    text-decoration: underline;
}

/* Повідомлення */
.bee-wf__message {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 6px;
    display: none;
}

.bee-wf__message.is-success {
    display: block;
    background: #f0faf4;
    color: #2d7a4f;
    border: 1px solid #b2dfcc;
}

.bee-wf__message.is-error {
    display: block;
    background: #fdf0ef;
    color: #c0392b;
    border: 1px solid #f5c6c2;
}

/* Кнопка */
.bee-wf__submit {
    width: 100%;
    padding: 13px;
    background: #2B211C;
    color: #fff;
    border: none;
    border-radius: 7px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 4px;
}

.bee-wf__submit:hover {
    background: #CDB79E;
    color: #2B211C;
}

.bee-wf__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Мобайл */
@media (max-width: 600px) {
    .bee-modal {
        padding: 28px 18px 24px;
    }

    .bee-wf__row {
        grid-template-columns: 1fr;
    }

    .bee-modal__title {
        font-size: 18px;
        padding-right: 28px;
    }
}
