/* Основные стили для виджета записи на прием */ :root { --primary-color: #41bb4c; --primary-dark: #37a041; --secondary-color: #6c757d; --success-color: #28a745; --danger-color: #dc3545; --warning-color: #ffc107; --light-color: #f8f9fa; --dark-color: #343a40; --border-color: #dee2e6; --shadow: 0 4px 12px rgba(0, 0, 0, 0.08); --border-radius: 10px; --transition: all 0.3s ease; } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Inter', sans-serif; line-height: 1.6; color: #333; background-color: #f5f7ff; } #appointment-widget { max-width: 1000px; margin: 0 auto; padding: 24px; background: white; border-radius: var(--border-radius); box-shadow: var(--shadow); } /* Заголовок */ .widget-header { text-align: center; margin-bottom: 32px; padding-bottom: 20px; border-bottom: 2px solid var(--light-color); } .widget-header h1 { font-size: 28px; font-weight: 700; color: var(--dark-color); margin-bottom: 8px; } .widget-header h1 i { color: var(--primary-color); margin-right: 12px; } .widget-subtitle { font-size: 16px; color: var(--secondary-color); } /* Степпер */ .stepper { display: flex; justify-content: space-between; margin: 32px 0; position: relative; } .stepper::before { content: ''; position: absolute; top: 24px; left: 0; right: 0; height: 2px; background-color: var(--border-color); z-index: 1; } .step { display: flex; flex-direction: column; align-items: center; position: relative; z-index: 2; flex: 1; } .step-number { width: 48px; height: 48px; border-radius: 50%; background-color: white; border: 2px solid var(--border-color); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 18px; color: var(--secondary-color); margin-bottom: 12px; transition: var(--transition); } .step.active .step-number { background-color: var(--primary-color); border-color: var(--primary-color); color: white; } .step.completed .step-number { background-color: var(--success-color); border-color: var(--success-color); color: white; } .step-label { font-size: 14px; font-weight: 500; color: var(--secondary-color); text-align: center; max-width: 120px; } .step.active .step-label { color: var(--primary-color); font-weight: 600; } /* Контент шагов */ .step-content { display: none; animation: fadeIn 0.5s ease; } .step-content.active { display: block; } @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } .step-title { margin-bottom: 28px; padding-bottom: 16px; border-bottom: 1px solid var(--border-color); } .step-title h2 { font-size: 22px; font-weight: 600; color: var(--dark-color); margin-bottom: 8px; } .step-title h2 i { color: var(--primary-color); margin-right: 12px; } .step-title p { color: var(--secondary-color); font-size: 15px; } /* Секции */ .section { margin-bottom: 32px; padding: 24px; background-color: var(--light-color); border-radius: var(--border-radius); border: 1px solid var(--border-color); } .section h3 { font-size: 18px; font-weight: 600; margin-bottom: 20px; color: var(--dark-color); display: flex; align-items: center; } .section h3 i { color: var(--primary-color); margin-right: 10px; } /* Загрузка */ .loading { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; text-align: center; } .spinner { width: 40px; height: 40px; border: 4px solid rgba(0, 0, 0, 0.1); border-radius: 50%; border-top-color: var(--primary-color); animation: spin 1s linear infinite; margin-bottom: 16px; } /* Новая анимация стрелки/пальца */ .arrow-loader { font-size: 40px; color: var(--primary-color); animation: pulse-arrow 1.5s ease-in-out infinite; margin-bottom: 16px; } @keyframes spin { to { transform: rotate(360deg); } } @keyframes pulse-arrow { 0%, 100% { transform: translateX(0) scale(1); opacity: 0.7; } 50% { transform: translateX(10px) scale(1.2); opacity: 1; } } /* Сетка врачей */ .doctors-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 20px; max-height: 400px; overflow-y: auto; padding-right: 8px; } .doctors-grid::-webkit-scrollbar { width: 6px; } .doctors-grid::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 3px; } .doctors-grid::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 3px; } .doctors-grid::-webkit-scrollbar-thumb:hover { background: #a8a8a8; } .doctor-card { background: white; border-radius: var(--border-radius); padding: 20px; border: 2px solid var(--border-color); cursor: pointer; transition: var(--transition); display: flex; align-items: center; } .doctor-card:hover { border-color: var(--primary-color); transform: translateY(-4px); box-shadow: var(--shadow); } .doctor-card.selected { border-color: var(--primary-color); background-color: rgba(65, 187, 76, 0.05); } .doctor-avatar { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; margin-right: 18px; border: 3px solid var(--light-color); } .doctor-info h4 { font-size: 17px; font-weight: 600; margin-bottom: 6px; color: var(--dark-color); } .doctor-specialty { font-size: 14px; color: var(--secondary-color); line-height: 1.4; } /* Две колонки для шага 1 */ .two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 32px; } @media (max-width: 992px) { .two-columns { grid-template-columns: 1fr; } } /* Сетка услуг */ .services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 20px; max-height: 400px; overflow-y: auto; padding-right: 8px; } .services-grid::-webkit-scrollbar { width: 6px; } .services-grid::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 3px; } .services-grid::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 3px; } .services-grid::-webkit-scrollbar-thumb:hover { background: #a8a8a8; } .service-item { background: white; border-radius: var(--border-radius); padding: 18px; border: 2px solid var(--border-color); cursor: pointer; transition: var(--transition); display: flex; justify-content: space-between; align-items: center; } .service-item:hover { border-color: var(--primary-color); } .service-item.selected { border-color: var(--primary-color); background-color: rgba(65, 187, 76, 0.05); } .service-info h4 { font-size: 14px; font-weight: 500; margin-bottom: 4px; color: var(--dark-color); line-height: 1.4; } .service-price { font-size: 16px; font-weight: 600; color: var(--primary-color); white-space: nowrap; } /* Календарь */ .calendar-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; padding: 0 10px; } .calendar-header h4 { font-size: 18px; font-weight: 600; color: var(--dark-color); } .btn-icon { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-color); background: white; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--secondary-color); transition: var(--transition); } .btn-icon:hover { background-color: var(--light-color); color: var(--primary-color); } .calendar { background: white; border-radius: var(--border-radius); padding: 20px; border: 1px solid var(--border-color); } .calendar-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-weight: 600; color: var(--secondary-color); margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border-color); } .calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; } .calendar-day { height: 50px; display: flex; align-items: center; justify-content: center; border-radius: 8px; cursor: pointer; font-weight: 500; transition: var(--transition); border: 2px solid transparent; } .calendar-day:hover:not(.disabled) { background-color: var(--light-color); } .calendar-day.selected { background-color: var(--primary-color); color: white; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(65, 187, 76, 0.3); transform: scale(1.05); z-index: 2; position: relative; } .calendar-day.available:not(.disabled) { background-color: rgba(40, 167, 69, 0.1); color: var(--success-color); border-color: rgba(40, 167, 69, 0.2); } .calendar-day.disabled { color: #ccc; cursor: not-allowed; background-color: #f9f9f9; } /* Временные слоты */ .time-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; margin-top: 20px; } .time-slot { padding: 14px; text-align: center; border: 2px solid var(--border-color); border-radius: 8px; cursor: pointer; font-weight: 500; transition: var(--transition); background: white; } .time-slot:hover { border-color: var(--primary-color); transform: translateY(-2px); } .time-slot.selected { background-color: var(--primary-color); color: white; border-color: var(--primary-color); } .time-slot.disabled { opacity: 0.5; cursor: not-allowed; background-color: #f9f9f9; } /* Форма */ .contact-form { margin-top: 20px; } .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; } @media (max-width: 768px) { .form-row { grid-template-columns: 1fr; } } .form-group { margin-bottom: 20px; } .form-group label { display: block; font-weight: 500; margin-bottom: 8px; color: var(--dark-color); } .form-group label i { color: var(--primary-color); margin-right: 8px; width: 20px; } /* Красные звездочки для обязательных полей */ .form-group label.required::after { content: ' *'; color: #dc3545; font-weight: bold; } .form-group input, .form-group textarea, .form-group select { width: 100%; padding: 14px 16px; border: 2px solid var(--border-color); border-radius: 8px; font-family: 'Inter', sans-serif; font-size: 15px; transition: var(--transition); } .form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(65, 187, 76, 0.1); } .form-checkbox { display: flex; align-items: flex-start; margin-top: 24px; padding: 16px; background-color: rgba(65, 187, 76, 0.05); border-radius: 8px; } .form-checkbox input { margin-top: 4px; margin-right: 12px; } .form-checkbox label { font-size: 14px; line-height: 1.5; color: var(--secondary-color); } /* Сводка записи */ .appointment-summary { background-color: var(--light-color); border-radius: var(--border-radius); padding: 24px; border: 1px solid var(--border-color); } .summary-item { display: flex; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px dashed var(--border-color); } .summary-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; } .summary-label { font-weight: 600; color: var(--secondary-color); min-width: 180px; } .summary-value { color: var(--dark-color); font-weight: 500; } /* Сообщение об успехе */ .success-message { text-align: center; padding: 40px; background-color: rgba(40, 167, 69, 0.05); border-radius: var(--border-radius); border: 2px solid var(--success-color); } .success-icon { font-size: 64px; color: var(--success-color); margin-bottom: 20px; } .success-message h3 { font-size: 24px; margin-bottom: 12px; color: var(--dark-color); } .success-message p { color: var(--secondary-color); margin-bottom: 16px; font-size: 16px; } /* Навигация */ .widget-navigation { display: flex; justify-content: space-between; margin-top: 32px; padding-top: 24px; border-top: 2px solid var(--light-color); } .btn { padding: 14px 28px; border-radius: 8px; font-family: 'Inter', sans-serif; font-size: 16px; font-weight: 500; cursor: pointer; transition: var(--transition); border: none; display: flex; align-items: center; justify-content: center; gap: 10px; } .btn i { font-size: 16px; } .btn-primary { background-color: var(--primary-color); color: white !important;&nbsp;} .btn-primary:hover { background-color: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 12px rgba(65, 187, 76, 0.2); } .btn-secondary { background-color: white; color: var(--secondary-color); border: 2px solid var(--border-color); } .btn-secondary:hover { background-color: var(--light-color); border-color: var(--secondary-color); } .btn-success { background-color: var(--success-color); color: white !important;&nbsp;} .btn-success:hover { background-color: #218838; transform: translateY(-2px); } /* Сообщения об ошибках */ .error-message { padding: 16px; background-color: rgba(220, 53, 69, 0.1); border-radius: 8px; border-left: 4px solid var(--danger-color); color: var(--danger-color); font-weight: 500; margin-top: 20px; display: none; } .error-message.show { display: block; animation: fadeIn 0.3s ease; } /* Футер */ .widget-footer { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border-color); text-align: center; font-size: 14px; color: var(--secondary-color); } .widget-footer i { color: var(--primary-color); margin-right: 8px; } /* Адаптивность */ @media (max-width: 768px) { #appointment-widget { padding: 16px; } .stepper { flex-direction: column; align-items: flex-start; gap: 20px; } .stepper::before { display: none; } .step { flex-direction: row; width: 100%; align-items: center; } .step-number { margin-bottom: 0; margin-right: 16px; } .doctors-grid, .services-grid { grid-template-columns: 1fr; } .calendar-days { gap: 4px; } .calendar-day { height: 40px; font-size: 14px; } .time-slots { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); } .widget-navigation { flex-direction: column; gap: 12px; } .btn { width: 100%; } }<br>