

/* Start:/local/components/capovita/tasting/templates/.default/style.css?17649371644586*/
.callback-icon {
    font-size: 18px;
}

/* Модальное окно */
.callback-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: modalFadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
    overflow: hidden;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 0 24px;
}

.modal-title {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    color: #666;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

.modal-body {
    padding: 24px;
}

/* Стили формы */
.callback-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #46c9a6;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-group input.error,
.form-group textarea.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.error-message {
    color: #dc3545;
    font-size: 12px;
    display: none;
}

/* Кнопки */
.form-actions {
    margin-top: 8px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-height: 48px;
}

.form-agreement a:hover {
    text-decoration: underline;
}

.form-error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    border: 1px solid #f5c6cb;
    display: none;
}

/* Сообщение об успехе */
.success-message {
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.success-message h4 {
    margin: 0 0 12px 0;
    font-size: 20px;
    color: #28a745;
}

.success-message p {
    margin: 0 0 24px 0;
    color: #666;
    line-height: 1.5;
}

/* Состояние загрузки кнопки */
.btn-loading {
    display: none;
}

/* Состояние загрузки формы */
.callback-form.loading {
    opacity: 0.7;
    pointer-events: none;
}

.callback-form.loading .form-group input,
.callback-form.loading .form-group textarea,
.callback-form.loading button {
    cursor: wait;
}

/* Адаптивность */
@media (max-width: 768px) {
    .modal-content {
        margin: 10px;
        max-width: none;
        width: calc(100% - 20px);
    }

    .modal-header,
    .modal-body {
        padding: 20px;
    }

    .modal-title {
        font-size: 20px;
    }

    .callback-form {
        gap: 16px;
    }

    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Предотвращает зум на iOS */
    }
    .callback-modal{
        width: 100%;
    }
}

@media (max-width: 480px) {
    .modal-header,
    .modal-body {
        padding: 16px;
    }

    .callback-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
        min-height: 44px;
    }
}

.callback-modal.show .modal-backdrop {
    animation: modalFadeIn 0.3s ease;
}

.callback-modal.show .modal-content {
    animation: modalSlideIn 0.3s ease;
}
/* End */
/* /local/components/capovita/tasting/templates/.default/style.css?17649371644586 */
