/* Попап «Запись к врачу» (2026). Основа — .modal из css/header-new.css */

.zapis-popup {
    max-width: 560px;
    gap: 24px;
}

.zapis-popup .modal__close {
    top: 20px;
    right: 20px;
}

.zapis-popup .modal__header {
    padding-right: 40px;
}

.zapis-popup .modal__title {
    font-size: 24px;
}

.zapis-popup .modal__content {
    gap: 20px;
}

/* Сводка записи */
.zapis-popup__summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.zapis-popup__summary-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 10px;
    background-color: #F6F7F7;
    min-width: 0;
}

.zapis-popup__summary-item_wide {
    grid-column: 1 / -1;
}

.zapis-popup__summary-icon {
    display: flex;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.zapis-popup__summary-text {
    display: flex;
    flex-flow: column;
    gap: 2px;
    min-width: 0;
}

.zapis-popup__summary-label {
    font-weight: 500;
    font-size: 13px;
    line-height: 135%;
    color: #757575;
}

.zapis-popup__summary-value {
    font-weight: 600;
    font-size: 16px;
    line-height: 140%;
    color: #222;
    overflow-wrap: anywhere;
}

/* Поля */
.zapis-popup .modal__form-row-input {
    font-family: inherit;
    color: #222;
    background-color: #fff;
    transition: border-color 0.2s ease-in-out;
}

.zapis-popup .modal__form-row-input:focus {
    outline: none;
    border-color: #26AC6E;
}

.zapis-popup .modal__form-row-input_error,
.zapis-popup .modal__form-row-input_error:focus {
    border-color: #f00;
}

.zapis-popup .modal__form-row-title sup {
    color: #ED6A23;
}

.zapis-popup__select {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 44px;
    cursor: pointer;
    text-overflow: ellipsis;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23757575' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.zapis-popup__select:disabled {
    cursor: default;
    color: #757575;
}

.zapis-popup__hint {
    font-weight: 400;
    font-size: 13px;
    line-height: 135%;
    color: #757575;
}

.zapis-popup .modal__form-row_checkbox {
    font-size: 14px;
    line-height: 140%;
    cursor: pointer;
}

.zapis-popup .modal__form-row_checkbox a {
    color: #26AC6E;
}

.zapis-popup .modal__form-button {
    margin-top: 4px;
    user-select: none;
}

.zapis-popup .modal__form-button:focus-visible {
    outline: 2px solid #1A8957;
    outline-offset: 2px;
}

.zapis-popup .modal__error {
    font-size: 14px;
    line-height: 140%;
    padding: 12px 16px;
    border-radius: 10px;
    background-color: rgba(255, 0, 0, 0.06);
}

.zapis-popup .modal__error a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
    white-space: nowrap;
}

/* Успех */
.zapis-popup.modal_success {
    max-width: 480px;
}

.zapis-popup .modal__success-subtitle {
    color: #757575;
    line-height: 145%;
}

.zapis-popup .modal__success-subtitle b {
    color: #222;
    font-weight: 600;
}

@media screen and (max-width: 540px) {
    .zapis-popup {
        gap: 20px;
    }

    .zapis-popup .modal__title {
        font-size: 22px;
    }

    .zapis-popup .modal__close {
        top: 16px;
        right: 16px;
    }

    .zapis-popup__summary-item {
        padding: 12px 14px;
    }

    .zapis-popup__summary-value {
        font-size: 15px;
    }
}

@media screen and (max-width: 340px) {
    .zapis-popup__summary {
        grid-template-columns: 1fr;
    }
}
