/*
   Окно «Получить {тип}» на странице чужой работы (livewire/projects/acquire):
   опрос об уровне обучения, выбор структуры, вход или регистрация.

   Само окно — .edu-modal из livewire/projects/partials/modal-styles, те же
   опросы, что перед созданием работы. Их стили написаны под лендинг
   (assets2/css/style.css: переменные --prime/--bg/--gray/--white и кнопки
   .btn/.btn-gray/.btn-magenta), а на странице работы подключена тема
   Bootstrap без них — здесь тот же набор задаётся внутри окна, чтобы окно
   выглядело как на лендинге. Префикс своих классов — acq-.
*/

.edu-modal {
    --prime: #673ab7;
    --white: #fff;
    --bg: #f1f4f9;
    --gray: #e1e6f0;
    font-family: 'Rubik', var(--bs-font-sans-serif, sans-serif);
    color: #000;
}

/* Кнопки вариантов в опросах: геометрия лендинга поверх .btn Bootstrap */
.edu-modal .edu__option,
.edu-modal .struct__confirm {
    font-weight: 600;
    line-height: 1;
    color: var(--white);
    border: 0;
    border-radius: 10px;
    background-color: var(--prime);
}

.edu-modal .btn-gray:not(:hover) {
    color: #000;
    background-color: #ededed;
}

.edu-modal .btn-magenta,
.edu-modal .btn-magenta:hover {
    color: var(--white);
    background-color: var(--prime);
}

.edu-modal .edu__option:hover,
.edu-modal .struct__confirm:hover {
    color: var(--white);
    background-color: var(--prime);
}

.edu-modal .btn:disabled {
    background-color: #e7e7f0;
    cursor: progress;
}

/* Мобильная панель «Получить» внизу экрана (right-sidebar, initMobileWidget)
   лежит выше окна и перекрывала бы форму — пока окно открыто, её нет. */
body.edu-modal-open .mobile-widget-host {
    display: none;
}

/* ---------- Окно входа ---------- */

.acq-auth {
    max-width: 480px;
}

.acq-auth__title {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -.01em;
}

.acq-auth__lead {
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.45;
    color: #000;
    opacity: .55;
}

.acq-auth__price {
    display: inline-block;
    margin-left: 6px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--prime);
    background-color: rgba(103, 58, 183, .09);
    vertical-align: 2px;
    white-space: nowrap;
}

.acq-auth .form-control {
    height: 48px;
    border-radius: 10px;
    border-color: var(--gray);
    font-size: 15px;
}

.acq-auth .form-control:focus {
    border-color: var(--prime);
    box-shadow: 0 0 0 3px rgba(103, 58, 183, .15);
}

.acq-auth__submit {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    background-color: var(--prime);
    transition: opacity ease .3s;
}

.acq-auth__submit:hover,
.acq-auth__submit:focus {
    color: var(--white);
    background-color: var(--prime);
    opacity: .9;
}

.acq-auth__submit:disabled {
    opacity: .6;
    cursor: progress;
}

.acq-auth__terms {
    font-size: 12.5px;
    line-height: 1.4;
    color: #000;
    opacity: .6;
}

.acq-auth__terms a {
    color: inherit;
    text-decoration: underline;
}

.acq-auth__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 16px;
    margin-top: 16px;
    font-size: 14px;
}

.acq-auth__link {
    padding: 0;
    border: 0;
    background: none;
    color: var(--prime);
    text-decoration: underline;
    cursor: pointer;
    transition: opacity ease .3s;
}

.acq-auth__link:hover {
    opacity: .65;
}

.acq-auth__link--muted {
    color: #000;
    opacity: .45;
}

.acq-auth__error {
    margin-top: 6px;
    font-size: 13px;
    color: #e61717;
}

/* Разделитель «или по почте» — как у social-auth__divider */
.acq-auth__divider {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 18px 0 14px;
    font-size: 13px;
    color: #000;
    opacity: .5;
}

.acq-auth__divider::before,
.acq-auth__divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray);
}

/* ---------- Ошибка копии ---------- */

.acq-note {
    max-width: 440px;
    text-align: center;
}

.acq-note__icon {
    font-size: 30px;
    color: var(--prime);
    margin-bottom: 12px;
}

.acq-note__text {
    font-size: 15px;
    line-height: 1.5;
    margin: 0 0 18px;
}

/* ---------- Пока копия готовится ---------- */

.acq-busy {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10020;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(28, 34, 61, .5);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

.acq-busy__card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 26px;
    border-radius: 16px;
    background: #fff;
    font-size: 15px;
    font-weight: 500;
    color: #1b1725;
    box-shadow: 0 30px 70px rgba(28, 34, 61, .28);
}

.acq-busy__spinner {
    width: 22px;
    height: 22px;
    border: 3px solid rgba(103, 58, 183, .2);
    border-top-color: #673ab7;
    border-radius: 50%;
    animation: acqSpin .8s linear infinite;
}

@keyframes acqSpin {
    to { transform: rotate(360deg); }
}

@media (max-width: 600px) {
    .acq-auth__title {
        font-size: 20px;
    }
}
