
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* === Базовые стили и сброс === */
.doctor-appointment-widget {
    --primary: #EA594D;
    --primary-dark: #d44a3f;
    --primary-light: #fff0ef;
    --primary-gradient: linear-gradient(135deg, #EA594D 0%, #c0392b 100%);
    --success: #27ae60;
    --warning: #f39c12;
    --text: #2c3e50;
    --text-light: #7f8c8d;
    --bg: #ffffff;
    --bg-secondary: #f8f9fa;
    --border: #e9ecef;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(234, 89, 77, 0.15);
    --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.2);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    
    max-width: 900px;
    margin: 40px auto;
    font-family: 'Ubuntu, 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    position: relative;
}

/* Декоративный градиент сверху */
.doctor-appointment-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    z-index: 1;
}

/* === Заголовок виджета === */
.doctor-appointment-widget h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 15px 0;
    letter-spacing: -0.5px;
    position: relative;
}

.doctor-appointment-widget h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin-top: 10px;
    border-radius: 2px;
}

.daw-step[data-step="5"] h3::after {
    display: none;
}

/* === Шаги === */
.daw-step {
    display: none;
    padding: 40px;
    animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.daw-step.active {
    display: block;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Индикатор шагов === */
.daw-step::before {
    content: 'Шаг ' attr(data-step) ' из 5';
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Прогресс-бар */
.daw-progress {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    padding: 0 40px;
}

.daw-progress-bar {
    flex: 1;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.daw-progress-bar.completed {
    background: var(--primary);
}

.daw-progress-bar.active {
    background: var(--primary);
    box-shadow: 0 0 12px rgba(234, 89, 77, 0.4);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* === Блок выбранной информации === */
.daw-selected-info {
    background: linear-gradient(135deg, #fff5f5 0%, #fff0ef 100%);
    padding: 20px;
    border-radius: var(--radius-md);
    margin-bottom: 25px;
    border-left: 4px solid var(--primary);
    font-size: 15px;
    line-height: 1.8;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.daw-selected-info::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: var(--primary);
    opacity: 0.05;
    border-radius: 50%;
}

/* === Загрузка === */
.daw-loading {
    text-align: center;
    padding: 60px;
    color: var(--text-light);
    font-size: 16px;
}

.daw-loading::before {
    content: '';
    display: block;
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.smart-captcha {
    margin-bottom: 20px;
    min-height: 100px;
}

/* =============================================
   ШАГ 1: СПЕЦИАЛЬНОСТИ
   ============================================= */

.daw-specialties-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.daw-specialty-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    overflow: hidden;
}

/*.daw-specialty-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 0;
    background: var(--primary);
    transition: height 0.3s ease;
    border-radius: 0 0 0 4px;
}*/

.daw-specialty-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(234, 89, 77, 0.1);
    transform: translateY(-4px);
}

.daw-specialty-card:hover::after {
    height: 100%;
}

.daw-specialty-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.daw-specialty-card:hover .daw-specialty-icon {
    /*background: var(--primary);*/
    color: white;
}

.daw-specialty-info {
    flex: 1;
    min-width: 0;
}

.daw-specialty-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    transition: color 0.2s ease;
}

.daw-specialty-card:hover .daw-specialty-info h4 {
    color: var(--primary);
}

.daw-specialty-info p {
    font-size: 12px;
    color: var(--text-light);
    margin: 4px 0 0 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.daw-doctors-count {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    background: var(--bg-secondary);
    color: var(--text-light);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    margin-top: 6px;
    transition: all 0.2s ease;
}

.daw-specialty-card:hover .daw-doctors-count {
    background: var(--primary);
    color: white;
}

@media (max-width: 480px) {
    .daw-specialties-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   ШАГ 2: ВРАЧИ
   ============================================= */
.daw-doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding-bottom: 1em;
}

.daw-doctor-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--border);
    position: relative;
    overflow: hidden;
}

.daw-doctor-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

/*.daw-doctor-card::after {
    content: 'Выбрать';
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 20px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}*/

.daw-doctor-card:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.daw-doctor-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 16px;
    border: 3px solid var(--primary-light);
    transition: all 0.3s ease;
}

.daw-doctor-card:hover .daw-doctor-avatar {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.daw-doctor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.daw-doctor-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.daw-doctor-info h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 6px 0;
}

.daw-doctor-specialty {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
}

.daw-doctor-experience {
    color: var(--text-light);
    font-size: 13px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.daw-doctor-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: #fff9e6;
    color: #f39c12;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
}

/*.daw-doctor-price {
    position: absolute;
    width: 100px;
    text-align: center;
    top: 50px;
    left: 120px;
    font-size: 15px;
    font-weight: 600;
    color: #EA594D;
    background: #fdf2f1;
    padding: 6px 14px;
    border-radius: 20px;
    white-space: nowrap;
}*/

.daw-doctor-price {
    position: absolute;
    width: 100px;
    text-align: center;
    top: 20px;
    right: 20px;
    font-size: 15px;
    font-weight: 500;
    color: white;
    background: var(--primary-gradient);
    padding: 8px 20px;
    border-radius: 25px;
    white-space: nowrap;
}

.daw-doctor-rating::before {
    content: '★';
    font-size: 16px;
}

/* =============================================
   ШАГ 3: ВЫБОР ДАТЫ И ВРЕМЕНИ
   ============================================= */

/* Выбранная информация о враче */
.daw-selected-info {
    background: #fdf2f1;
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.6;
    border-left: 3px solid #EA594D;
    color: #2c3e50;
}

.daw-selected-info strong {
    color: #2c3e50;
    font-weight: 600;
}

/* Блок выбора даты */
.daw-date-picker {
    margin-bottom: 24px;
}

.daw-date-picker label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.daw-date-picker input[type="date"] {
    width: 100%;
    max-width: 280px;
    padding: 12px 16px;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Ubuntu, 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #2c3e50;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.daw-date-picker input[type="date"]:hover {
    border-color: #d0d0d0;
}

.daw-date-picker input[type="date"]:focus {
    outline: none;
    border-color: #EA594D;
    box-shadow: 0 0 0 3px rgba(234, 89, 77, 0.1);
}

/* Календарь в webkit */
.daw-date-picker input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: invert(0.5);
    transition: filter 0.2s ease;
}

.daw-date-picker input[type="date"]:hover::-webkit-calendar-picker-indicator {
    filter: invert(0.4) sepia(1) saturate(5) hue-rotate(330deg);
}

/* Контейнер времени */
.daw-time-slots {
    position: relative;
    min-height: 60px;
    margin-bottom: 20px;
}

/* Состояние загрузки */
.daw-time-slots-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    gap: 12px;
}

.daw-time-slots-loading::before {
    content: '';
    width: 24px;
    height: 24px;
    border: 3px solid #e9ecef;
    border-top-color: #EA594D;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.daw-time-slots-loading::after {
    content: 'Загрузка расписания...';
    color: #7f8c8d;
    font-size: 14px;
}

@keyframes spin {
    to { 
        transform: rotate(360deg); 
    }
}

/* Пустое состояние */
.daw-time-slots-empty {
    text-align: center;
    padding: 32px 20px;
    color: #7f8c8d;
    font-size: 14px;
    background: #f8f9fa;
    border-radius: 10px;
}

.daw-time-slots-empty::before {
    content: '📅';
    display: block;
    font-size: 32px;
    margin-bottom: 8px;
}

/* Заглушка */
.daw-time-slots-placeholder {
    text-align: center;
    padding: 32px 20px;
    color: #7f8c8d;
    font-size: 14px;
    background: #f8f9fa;
    border-radius: 10px;
}

/* Сетка слотов */
.daw-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

/* Карточка времени */
.daw-slot-card {
    padding: 14px 12px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
    font-weight: 500;
    color: #2c3e50;
    user-select: none;
}

.daw-slot-card:hover:not(.daw-slot-disabled) {
    border-color: #EA594D;
    background: #fdf2f1;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(234, 89, 77, 0.1);
}

/* Выбранный слот */
.daw-slot-selected {
    background: linear-gradient(135deg, #EA594D 0%, #c0392b 100%) !important;
    color: white !important;
    border-color: transparent !important;
    box-shadow: 0 2px 12px rgba(234, 89, 77, 0.25);
}

/* Недоступный слот */
.daw-slot-disabled {
    background: #f8f9fa;
    color: #ccc;
    cursor: not-allowed;
    opacity: 0.5;
    text-decoration: line-through;
}

/* Информация о слоте */
.daw-slot-info {
    font-size: 11px;
    color: #7f8c8d;
    margin-top: 4px;
}

.daw-slot-selected .daw-slot-info {
    color: rgba(255, 255, 255, 0.8);
}

/* Навигация по датам */
.daw-date-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.daw-date-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    background: white;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.daw-date-btn:hover:not(:disabled) {
    border-color: #EA594D;
    color: #EA594D;
    background: #fdf2f1;
}

.daw-date-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.daw-date-btn svg {
    pointer-events: none;
}

.daw-date-picker input[type="date"] {
    flex: 1;
}

/* Адаптивность */
@media (max-width: 768px) {
    .daw-date-picker input[type="date"] {
        max-width: 100%;
    }
    
    .daw-slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 8px;
    }
    
    .daw-slot-card {
        padding: 12px 8px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .daw-slots-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* =============================================
   ШАГ 4: ФОРМА ДАННЫХ ПАЦИЕНТА
   ============================================= */

/* Выбранная информация */
.daw-selected-datetime {
    margin-bottom: 24px;
}

.daw-selected-datetime .daw-selected-info {
    background: #fdf2f1;
    padding: 16px 20px;
    border-radius: 12px;
    border-left: 3px solid #EA594D;
    font-size: 14px;
    line-height: 1.6;
    color: #2c3e50;
}

.daw-selected-datetime .daw-selected-info strong {
    font-weight: 600;
    color: #2c3e50;
}

/* Форма */
#patient-form {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 32px;
}

/* Группа полей */
.daw-form-group {
    margin-bottom: 20px;
}

.daw-form-group:last-of-type {
    margin-bottom: 0;
}

/* Метки */
.daw-form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 16px;
    font-weight: 500;
    color: #2c3e50;
}

/* Поля ввода */
.daw-form-group input,
.daw-form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Ubuntu, 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #2c3e50;
    background: #fafbfc;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.daw-form-group input:hover,
.daw-form-group textarea:hover {
    border-color: #d0d0d0;
    background: #fff;
}

.daw-form-group input:focus,
.daw-form-group textarea:focus {
    outline: none;
    border-color: #EA594D;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(234, 89, 77, 0.08);
}

.daw-form-group input::placeholder,
.daw-form-group textarea::placeholder {
    color: #bdc3c7;
}

/* Текстовое поле */
.daw-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.daw-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.daw-form-row:first-child {
    grid-template-columns: 1fr 1fr 1fr;
}

@media (max-width: 768px) {
    .daw-form-row {
        gap: unset;
    }   
    .daw-form-row,
    .daw-form-row:first-child {
        grid-template-columns: 1fr;
    }
}

/* Контейнер кнопок */
.daw-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
}

/* Адаптивность */
@media (max-width: 768px) {
    #patient-form {
        padding: 24px 20px;
        border-radius: 14px;
    }
    
    .daw-form-actions {
        flex-direction: column-reverse;
        gap: 12px;
    }
    
    .daw-form-actions .daw-btn {
        width: 100%;
    }
}

/* =============================================
   КНОПКИ
   ============================================= */

/* Сброс всех стандартных стилей */
.doctor-appointment-widget button,
.doctor-appointment-widget .daw-btn,
.doctor-appointment-widget .daw-btn-back,
.doctor-appointment-widget .daw-btn-submit,
.doctor-appointment-widget .daw-btn-new {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 10px !important;
    outline: none !important;
}

/* Основной стиль всех кнопок */
.daw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #EA594D 0%, #c0392b 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Ubuntu, 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    transition: all 0.3s ease;
    text-decoration: none;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(234, 89, 77, 0.2);
}

.daw-btn:hover {
    background: linear-gradient(135deg, #d44a3f 0%, #a93226 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(234, 89, 77, 0.3);
    color: white;
}

/* Кнопка Назад */
.daw-btn-back {
    margin-top: 5px;
    background: #ffffff !important;
    color: #2c3e50 !important;
    border: 1px solid #e9ecef !important;
    border-radius: 10px !important;
    padding: 12px 24px !important;
    box-shadow: none !important;
}

.daw-btn-back:hover {
    background: #f8f9fa !important;
    border-color: #dee2e6 !important;
    color: #EA594D !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

/* Стрелка в кнопке назад */
.daw-btn-back {
    background: #ffffff !important;
    color: #2c3e50 !important;
    border: 1px solid #e9ecef !important;
    border-radius: 10px !important;
    padding: 12px 24px !important;
    box-shadow: none !important;
}

.daw-btn-back:hover {
    background: #f8f9fa !important;
    border-color: #dee2e6 !important;
    color: #EA594D !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}
/* Кнопка отправки */
.daw-btn-submit {
    min-width: 160px;
    padding: 12px 32px;
    font-weight: 600;
    border-radius: 10px;
}

.daw-btn-submit:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* Кнопка "Записаться ещё раз" */
.daw-btn-new {
    background: #ffffff;
    color: #EA594D;
    border: 1px solid #EA594D;
    border-radius: 10px;
    box-shadow: none;
}

.daw-btn-new:hover {
    background: #EA594D;
    color: #ffffff;
}

/* Чекбокс согласия */
.daw-consent {
    margin-bottom: 20px;
}

.daw-checkbox-label {
    display: flex !important;
    align-items: baseline;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #7f8c8d;
    user-select: none;
}

.daw-checkbox-label input[type="checkbox"] {
    display: none;
}

.daw-checkbox-custom {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    border: 2px solid #d0d0d0;
    border-radius: 6px;
    transition: all 0.2s ease;
    position: relative;
    box-sizing: border-box;
    align-self: center; 
}

.daw-checkbox-label input:checked + .daw-checkbox-custom {
    background: #EA594D;
    border-color: #EA594D;
}

.daw-checkbox-label input:checked + .daw-checkbox-custom::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.daw-consent-text {
    /* line-height: 20px; */
}

.daw-consent-text a {
    color: #EA594D;
    text-decoration: none;
}

.daw-consent-text a:hover {
    text-decoration: underline;
}

/* Контейнер кнопок */
.daw-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
}

.daw-form-actions .daw-btn-back {
    padding: 12px 24px;
    font-size: 16px;
}

.daw-form-actions .daw-btn-submit {
    padding: 14px 36px;
    font-size: 16px;
    min-width: 180px;
}

/* Мобильная версия */
@media (max-width: 480px) {
    .daw-form-actions {
        flex-direction: column-reverse;
    }
    
    .daw-btn-back,
    .daw-form-actions .daw-btn,
    .daw-form-actions .daw-btn-back {
        width: 100%;
    }
}

/* Круглая кнопка с пульсацией */
.daw-floating-btn {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 96px;
    height: 96px;
    background: linear-gradient(135deg, #f07065 0%, #d44a3f 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    z-index: 9999;
    animation: dawPulse 3s ease-in-out infinite;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.daw-floating-btn:hover {
    color: #fff;
    text-decoration: none;
}

.daw-floating-btn:active,
.daw-floating-btn:focus-visible {
    outline: none;
}

@keyframes dawPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(234, 89, 77, 0.6);
        width: 116px;
        height: 116px;
    }
    50% {
        box-shadow: 0 0 0 15px rgba(234, 89, 77, 0);
        width: 96px;
        height: 96px;
        margin: 10px;
    }
    100% {
        box-shadow: 0 0 0 0 rgba(234, 89, 77, 0);
        width: 116px;
        height: 116px;
    }
}

/* Мобильная версия */
@media (max-width: 768px) {
    .daw-floating-btn {
        width: 80px;
        height: 80px;
        font-size: 18px;
    }

    @keyframes dawPulseMobile {
        0% {
            box-shadow: 0 0 0 0 rgba(234, 89, 77, 0.6);
            width: 96px;
            height: 96px;
        }
        50% {
            box-shadow: 0 0 0 16px rgba(234, 89, 77, 0);
            width: 80px;
            height: 80px;
            margin: 8px;
        }
        100% {
            box-shadow: 0 0 0 0 rgba(234, 89, 77, 0);
            width: 96px;
            height: 96px;
        }
    }

    .daw-floating-btn {
        animation: dawPulseMobile 3s ease-in-out infinite;
    } 
}

/* =============================================
   УВЕДОМЛЕНИЯ
   ============================================= */
.daw-error-message {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe0e0 100%);
    color: #c0392b;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    border-left: 4px solid #c0392b;
    animation: shake 0.5s ease;
}

.daw-error-message::before {
    content: '⚠️';
    font-size: 20px;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Успех */
.daw-success-message {
    text-align: center;
    padding: 60px 40px;
    animation: scaleIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.daw-success-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    color: white;
    box-shadow: 0 8px 30px rgba(234, 89, 77, 0.3);
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.daw-appointment-details {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 24px;
    border-radius: var(--radius-lg);
    margin: 30px 0;
    text-align: left;
    border: 1px solid var(--border);
}

.daw-appointment-details p {
    padding: 10px 0;
    margin: 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 15px;
    display: flex;
    justify-content: space-between;
}

.daw-appointment-details p:last-child {
    border-bottom: none;
}

.daw-appointment-details strong {
    color: var(--text);
    font-weight: 600;
}

/* =============================================
   СТАТУС ЗАПИСИ
   ============================================= */
.daw-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.daw-status-confirmed {
    background: #e8f5e9;
    color: #27ae60;
}

.daw-status-pending {
    background: #fff3e0;
    color: #f39c12;
}

/* =============================================
   АДАПТИВНЫЙ ДИЗАЙН
   ============================================= */
@media (max-width: 768px) {
    .doctor-appointment-widget {
        margin: 20px 10px;
        border-radius: var(--radius-lg);
    }
    
    .daw-step {
        padding: 24px 20px;
    }
    
    .daw-specialties-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }
    
    .daw-doctors-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .daw-slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }
    
    .daw-specialty-card {
        padding: 20px;
    }
    
    .daw-date-picker {
        padding: 20px;
    }
    
    .daw-form-actions {
        flex-direction: column-reverse;
        gap: 12px;
    }
    
    .daw-form-actions .daw-btn {
        width: 100%;
    }
    
    .daw-success-message {
        padding: 40px 20px;
    }
    
    .daw-success-icon {
        width: 80px;
        height: 80px;
        font-size: 40px;
    }
    
    .daw-progress {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .doctor-appointment-widget h3 {
        font-size: 20px;
    }
    
    .daw-specialties-grid {
        grid-template-columns: 1fr;
    }
    
    .daw-step::before {
        font-size: 11px;
        padding: 4px 12px;
    }
    
    .daw-doctor-avatar {
        width: 60px;
        height: 60px;
    }
 
    .daw-doctor-card::after {
        top: 16px;
        right: 16px;
        padding: 6px 16px;
        font-size: 16px;
    }

    .smart-captcha {
        min-width: unset !important;
    }
}

/* === ДОПОЛНИТЕЛЬНЫЕ УЛУЧШЕНИЯ === */

/* Плавная прокрутка */
html {
    scroll-behavior: smooth;
}

/* Выделение текста */
.doctor-appointment-widget ::selection {
    background: var(--primary-light);
    color: var(--primary);
}

/* Кастомный скроллбар */
.doctor-appointment-widget ::-webkit-scrollbar {
    width: 8px;
}

.doctor-appointment-widget ::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.doctor-appointment-widget ::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.doctor-appointment-widget ::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Tooltip */
.daw-tooltip {
    position: relative;
}

.daw-tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 16px;
    background: var(--text);
    color: white;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    margin-bottom: 8px;
    box-shadow: var(--shadow-md);
}