/* Основной контейнер виджета */
.consultation-widget {
  background: white;
  border-radius: 24px;
  padding: 40px;
  max-width: 1000px;
  width: 100%;
  position: relative;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  animation: widgetAppear 0.4s ease-out;
}
.consultation-widget.mb-40 {
  margin: 50px auto;
}

/* Левая часть */
.widget-left {
  padding-right: 40px;
  border-right: 1px solid #e0e0e0;
}

/* Правая часть */
.widget-right {
  padding-left: 20px;
}

.title {
  font-size: 32px;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
  line-height: 1.2;
}

.subtitle {
  font-size: 16px;
  color: #666;
  margin-bottom: 32px;
}

/* Фото */
.doctors-grid {
  margin-bottom: 32px;
}

.doctor-item {
  width: 100%;
}

.doctor-photo {
  width: 100%;
  height: 280px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 12px 24px rgba(39, 102, 110, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.doctor-photo:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(39, 102, 110, 0.25);
}

/* Форма */
.form-section {
  margin-bottom: 16px;
}

.phone-input {
  width: 100%;
  padding: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  margin-bottom: 12px;
}

.submit-btn {
  width: 100%;
  background: #27666e;
  color: white;
  border: none;
  padding: 15px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

/* Чекбокс согласия */
.consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: #666;
}

.consent input[type='checkbox'] {
  margin-top: 3px;
}

.consent a {
  color: #27666e;
  text-decoration: none;
}

.consent a:hover {
  text-decoration: underline;
}

/* Правая часть - преимущества */
.benefits-container {
  background: white;
  border-radius: 16px;
}

.benefits-title {
  font-size: 22px;
  color: #333;
  margin-bottom: 32px;
  line-height: 1.4;
}

.highlight {
  color: #27666e;
}

.benefits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.benefit-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.benefit-check {
  color: #27666e;
  font-size: 18px;
  font-weight: bold;
  margin-top: 2px;
}

.benefit-content {
  flex: 1;
  font-size: 16px;
  color: #333;
  line-height: 1.4;
}

.benefit-content strong {
  color: #333;
}

.benefit-note {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
}

@keyframes widgetAppear {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Кнопка закрытия */
.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.close-btn:hover {
  background: #f5f5f5;
  color: #333;
}

/* Заголовок виджета */
.widget-header {
  text-align: left;
  margin-bottom: 24px;
  width: 100%;
  padding: 0;
  position: relative;
  z-index: 1;
}

.widget-header::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -12px;
  width: 80px;
  height: 4px;
  background: #27666e;
  border-radius: 2px;
}

/* Основной контент */
.widget-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 40px;
}

/* Левая часть */
.left-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.title {
  font-size: 36px;
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
  line-height: 1.3;
  max-width: 100%;
}

.subtitle {
  font-size: 16px;
  color: #666;
  margin-bottom: 32px;
}

/* Превью преимуществ */
.benefits-preview {
  background: linear-gradient(135deg, #f0f8f8, #e6f4f4);
  border: 2px solid #27666e;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 12px 30px rgba(39, 102, 110, 0.12);
  flex: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefits-preview:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 35px rgba(39, 102, 110, 0.18);
}

.benefits-preview-title {
  font-size: 22px;
  color: #333;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 600;
}

.benefits-preview-title .highlight {
  color: #27666e;
  font-weight: 700;
}

.benefits-preview-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.benefit-preview-item {
  display: flex;
  align-items: center;
  font-size: 16px;
  color: #333;
  padding: 8px 0;
}

.benefit-preview-icon {
  color: #27666e;
  margin-right: 8px;
  font-weight: bold;
}

/* Фото врача */
.doctor-photo-section {
  height: 100%;
  display: flex;
  align-items: flex-start;
}

.doctor-photo-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.contact-text {
  font-size: 16px;
  color: #333;
  margin-bottom: 20px;
  line-height: 1.4;
}

/* Форма */
.form-section {
  margin-bottom: 24px;
}

.phone-input {
  width: 100%;
  padding: 18px 24px;
  border: 2px solid #e0e0e0;
  border-radius: 14px;
  font-size: 16px;
  margin-bottom: 16px;
  transition: all 0.3s ease;
  color: #333;
  background: white;
}

.phone-input:hover {
  border-color: #27666e;
  box-shadow: 0 2px 8px rgba(39, 102, 110, 0.08);
}

.phone-input:focus {
  outline: none;
  border-color: #27666e;
  box-shadow: 0 0 0 4px rgba(39, 102, 110, 0.15);
  background: white;
}

.submit-btn {
  width: 100%;
  background: linear-gradient(135deg, #27666e, #1e4d54);
  color: white;
  border: none;
  padding: 18px 32px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: none;
  position: relative;
  overflow: hidden;
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(39, 102, 110, 0.35);
}

.submit-btn:hover::before {
  transform: translateX(100%);
}

.submit-btn:active {
  transform: translateY(1px);
  box-shadow: 0 8px 20px rgba(39, 102, 110, 0.25);
}

/* Согласие */
.consent {
  font-size: 12px;
  color: #666;
  text-align: center;
  margin-top: 12px;
  line-height: 1.4;
}

.consent a {
  color: #1976d2;
  text-decoration: none;
}

.consent a:hover {
  text-decoration: underline;
}

/* Правая часть - блоки с преимуществами и акцией */
.right-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: space-between;
  height: 100%;
}

/* Форма записи внизу */
.form-section-bottom {
  background: linear-gradient(135deg, #f8f9fa, #f0f2f5);
  border-radius: 24px;
  padding: 48px;
  text-align: center;
  width: 100%;
  display: grid;
  grid-template-columns: 2fr 3fr 2fr;
  gap: 40px;
  align-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(39, 102, 110, 0.1);
}

.form-section-bottom .contact-text {
  text-align: right;
}

.form-section-bottom form {
  width: 100%;
  display: flex;
  gap: 20px;
}

.form-section-bottom .consent {
  text-align: left;
}

/* Акционный блок */
.promo-block {
  background: linear-gradient(135deg, #27666e, #1e4d54);
  color: white;
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(39, 102, 110, 0.3);
  flex-shrink: 0;
}

.promo-text {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}

.promo-highlight {
  color: #ffd700;
  font-weight: 700;
  font-size: 20px;
}

/* Адаптивность */
@media (max-width: 768px) {
  .consultation-widget {
    grid-template-columns: 1fr;
    padding: 32px;
    gap: 32px;
  }

  .widget-left {
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 32px;
  }

  .widget-right {
    padding-left: 0;
  }

  .title {
    font-size: 28px;
    text-align: center;
  }

  .subtitle {
    text-align: center;
  }

  .doctors-grid {
    justify-content: center;
  }

  .contact-text {
    text-align: center;
  }

  .benefits-list {
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .consultation-widget {
    padding: 24px;
    gap: 24px;
  }

  .title {
    font-size: 24px;
  }

  .subtitle {
    font-size: 14px;
  }

  .doctor-photo {
    height: 200px;
  }

  .benefits-title {
    font-size: 20px;
  }

  .benefit-content {
    font-size: 14px;
  }

  .benefit-note {
    font-size: 11px;
  }

  .phone-input,
  .submit-btn {
    padding: 12px;
    font-size: 14px;
  }
}

/* Стили для блока с акцией */
.promo-block {
  background: linear-gradient(135deg, #27666e, #1e4d54);
  border-radius: 16px;
  padding: 24px;
  margin-top: 32px;
  box-shadow: 0 8px 24px rgba(39, 102, 110, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.promo-block:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(39, 102, 110, 0.25);
}

.promo-text {
  color: white;
  font-size: 18px;
  line-height: 1.5;
  text-align: center;
  font-weight: 500;
}

.promo-date,
.promo-price {
  color: #ffd700;
  font-weight: 700;
}

@media (max-width: 768px) {
  .promo-block {
    margin-top: 24px;
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .promo-text {
    font-size: 16px;
  }
}

.whatsapp-btn {
  width: 100%;
  background: #25d366;
  color: white;
  border: none;
  padding: 15px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-btn:hover {
  background: #22c55e;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(37, 211, 102, 0.2);
}

.whatsapp-btn:active {
  transform: translateY(0);
}

.whatsapp-icon {
  width: 20px;
  height: 20px;
}

@media (max-width: 480px) {
  .whatsapp-btn {
    padding: 12px;
    font-size: 14px;
  }

  .whatsapp-icon {
    width: 18px;
    height: 18px;
  }
}

.widget-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #27666e, #1e4d54);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(39, 102, 110, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
}

.consultation-widget-fix {
  z-index: 1;
  position: fixed;

  bottom: 90px;
  left: 0;
  width: 100%;
}

.consultation-widget-fix__wrap {
  width: 900px;
  max-width: 90vw;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background-color: #b2d0d5;
  border-radius: 5px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border: 1px solid #27666e;
  padding: 5px 10px;
  font-weight: 600;
  color: #27666e;
  font-size: 14px;
}

.consultation-widget-fix__btn {
  display: inline-flex;
  padding: 5px;
  border-radius: 5px;
  border: 1px solid transparent;
  background-color: #27666e;
  color: #fff;
  text-decoration: none;
  font-weight: 400;
}

.consultation-widget-fix__btn:hover {
  color: #27666e;
  border-color: #27666e;
  background-color: #fff;
}

@media screen and (min-width: 768px) {
  .consultation-widget-fix {
    bottom: 10px;
  }
  .consultation-widget-fix__wrap {
    flex-direction: row;
    gap: 20px;
    font-size: 18px;
    padding: 10px 30px;
  }
}

.consultation-widget-fix__close {
  border: 0;
  background-color: #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  padding: 0;
  cursor: pointer;
}

.consultation-widget-fix__close svg {
  width: 19px;
  height: 19px;
}

.consultation-widget-fix__close svg,
.consultation-widget-fix__close svg path {
  fill: #333;
}

.consultation-widget-fix__close:hover {
  background-color: #fff;
}
