/* create_task_quiz.css */

/* Основные стили */
:root {
  --primary-color: #000;
  --background-color: #fff;
  --gray-light: #f2f2f2;
  --gray-medium: #e0e0e0;
  --gray-dark: #666;
  --border-color: #ddd;
  --error-color: #ff3b30;
  --success-color: #34c759;
  --transition-time: 0.3s;
}

/* Split layout */
.task-split-outer {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.task-split-wrapper {
  display: flex;
  width: 960px;
  max-width: 100%;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  z-index: 1;
}

.task-split-left {
  width: 300px;
  flex-shrink: 0;
  background: #1a1a1a;
  color: #fff;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  border-radius: 16px 0 0 16px;
}

.task-split-left-content {
}

.task-split-left-content {
  position: sticky;
  top: 40px;
}

.task-left-step h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 24px;
  color: #fff;
  line-height: 1.3;
}

.task-left-hint {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  padding: 8px 0;
  line-height: 1.5;
}

.task-split-right {
  flex: 1;
  min-width: 0;
  padding: 32px 40px;
  position: relative;
  border-radius: 0 16px 16px 0;
  overflow: hidden;
}

/* =============================================
   TABLET & MOBILE — 768px and below
   ============================================= */
@media (max-width: 768px) {
  /* --- Layout --- */
  .task-split-outer {
    min-height: auto;
    padding: 0;
    align-items: stretch;
  }
  .task-split-wrapper {
    flex-direction: column;
    border-radius: 0;
    box-shadow: none;
    width: 100%;
    margin: 0;
    min-height: auto;
  }
  .task-split-left {
    display: none;
  }
  .task-split-right {
    padding: 16px 16px 24px;
  }

  /* --- Quiz step height --- */
  .quiz-step {
    min-height: 300px;
  }

  /* --- Progress bar touch target --- */
  #cancel-creation {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* --- Commission (moved from below) --- */
  .commission-option {
    flex-direction: column;
    gap: 8px;
  }
  .commission-calculation {
    padding: 12px;
  }
  .calculation-row {
    font-size: 13px;
  }
  .calculation-row.total-row {
    font-size: 15px;
  }

  /* --- Dates row (moved from below) --- */
  .dates-row {
    flex-direction: column;
    gap: 12px;
  }

  /* --- AI Robot Overlay: fullscreen on mobile --- */
  #ai-analysis-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 10010 !important;
    border-radius: 0 !important;
  }
  .ai-robot-container .robot-face {
    width: 250px !important;
    height: 250px !important;
  }
  .ai-robot-container .robot-face canvas {
    width: 250px !important;
    height: 250px !important;
  }

  /* --- Google Places above bottom bar --- */
  .pac-container {
    z-index: 10003 !important;
  }
}

.quiz-container {
  max-width: 800px;
  margin: 40px auto;
  background-color: var(--background-color);
  border-radius: 12px;
  overflow: hidden;
}

/* Прогресс-бар */
.quiz-progress {
  padding: 20px 20px 0;
}

.progress-bar {
  height: 4px;
  background-color: var(--gray-medium);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background-color: var(--primary-color);
  width: 0;
  transition: width 0.3s ease;
}

.step-indicator {
  text-align: right;
  font-size: 14px;
  color: var(--gray-dark);
}

/* Стили шагов */
.quiz-step {
  padding: 24px;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--primary-color);
}

.step-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.step-title-row .step-title {
  margin-bottom: 0;
}

.budget-input-inline {
  position: relative;
  flex-shrink: 0;
}

.budget-input-inline .quiz-input {
  width: 140px;
  text-align: right;
  font-size: 20px;
  font-weight: 700;
  padding-right: 50px;
}

.budget-input-inline .currency-symbol {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: #999;
  font-weight: 500;
  pointer-events: none;
}

.form-group {
  margin-bottom: 24px;
  position: relative;
}

/* Инпуты и текстовые поля */
.quiz-input,
.quiz-textarea {
  width: 100%;
  padding: 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 16px;
  transition: all var(--transition-time);
  background-color: var(--gray-light);
}

.quiz-input:focus,
.quiz-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: var(--background-color);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.quiz-textarea {
  min-height: 120px;
  resize: vertical;
}

.quiz-input.error,
.quiz-textarea.error {
  border-color: var(--error-color);
}

.error-message {
  color: var(--error-color);
  font-size: 14px;
  margin-top: 6px;
}

.small-hint {
  font-size: 12px;
  color: var(--gray-dark);
  margin-top: 6px;
}

/* Загрузка фотографий */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.photo-item {
  position: relative;
  aspect-ratio: 1/1;
}

.photo-label {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
}

/* Drop zone text centering */
#photo-drop-zone {
  text-align: center;
}
#photo-drop-zone p {
  text-align: center;
}

.photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: var(--gray-light);
  color: var(--gray-dark);
  border: 1px dashed var(--border-color);
  border-radius: 8px;
  transition: all var(--transition-time);
}

.photo-placeholder:hover {
  background-color: var(--gray-medium);
}

.img-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* Переключатели */
.switch-container {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
  margin-right: 16px;
}

.switch-container input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--gray-medium);
  transition: var(--transition-time);
  border-radius: 34px;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: var(--transition-time);
  border-radius: 50%;
}

input:checked + .switch-slider {
  background-color: var(--primary-color);
}

input:checked + .switch-slider:before {
  transform: translateX(24px);
}

/* Стили для опций оплаты и выполнения */
.payment-option,
.performance-option {
  display: flex;
  align-items: center;
}

.payment-info,
.performance-info {
  flex: 1;
}

.payment-label,
.performance-label,
.address-label,
.budget-label {
  font-weight: 500;
  font-size: 16px;
  margin-bottom: 4px;
}

/* Бюджет */
.budget-input-container {
  position: relative;
}

.currency-symbol {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 500;
}

/* Кнопки */
.step-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  padding: 30px 0;
  border-top: none;
}

.quiz-step {
  display: flex;
  flex-direction: column;
  min-height: 450px;
  padding: 8px 0 0;
}

.quiz-step .step-actions {
  margin-top: auto;
}

.cancel-creation-btn {
  background: rgba(220,38,38,0.08) !important;
  color: #dc2626 !important;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}

.cancel-creation-btn:hover {
  background: rgba(220,38,38,0.15) !important;
}

.next-btn,
.back-btn,
.submit-btn {
  padding: 14px 24px;
  border-radius: 8px;
  border: none;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-time);
}

.next-btn {
  background-color: var(--primary-color);
  color: white;
  margin-left: auto;
}

.next-btn:hover {
  background-color: #333;
}

.back-btn {
  background-color: transparent;
  color: var(--gray-dark);
}

.back-btn:hover {
  color: var(--primary-color);
}

.submit-btn {
  background-color: var(--primary-color);
  color: white;
  margin-left: auto;
}

.submit-btn:hover {
  background-color: #333;
}

/* Анимации для показа/скрытия адреса */
#address_container {
  transition: opacity var(--transition-time), transform var(--transition-time);
}

#address_container.fade-out {
  opacity: 0;
  transform: translateY(-10px);
}

/* Скрытые поля */
.hidden-fields {
  display: none;
}

/* Адаптивность */
@media (max-width: 640px) {
  .quiz-container {
    margin: 20px;
    border-radius: 8px;
  }

  .step-title {
    font-size: 20px;
  }

  .photo-grid {
    grid-template-columns: 1fr;
  }
}

/* Дополнение к create_task_quiz.css для адресов и маршрутных точек */

/* Основные стили для маршрутных точек */
.route-points {
  margin-top: 16px;
}

.route-point {
  margin-top: 16px;
  padding: 16px;
  border-radius: 8px;
  background-color: var(--gray-light);
  animation: fadeIn 0.3s ease;
  position: relative;
  border-left: 3px solid var(--primary-color);
}

.route-point-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.route-point .address-label {
  margin-bottom: 0;
}

/* Кнопка удаления точки */
.remove-point-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--gray-dark);
  cursor: pointer;
  padding: 0 8px;
  border-radius: 50%;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  width: 24px;
}

.remove-point-btn:hover {
  color: var(--error-color);
  background-color: rgba(255, 59, 48, 0.1);
}

/* Кнопка добавления точки */
.add-point-btn {
  margin-top: 16px;
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background-color: transparent;
  border: 1px dashed var(--gray-dark);
  color: var(--gray-dark);
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.add-point-btn svg {
  margin-right: 8px;
}

.add-point-btn:hover {
  background-color: var(--gray-light);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.add-point-btn:hover svg path {
  stroke: var(--primary-color);
}

/* Google Places Autocomplete */
.pac-container {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  font-family: inherit;
  margin-top: 4px;
}

.pac-item {
  padding: 8px 10px;
  cursor: pointer;
}

.pac-item:hover {
  background-color: var(--gray-light);
}

.pac-item-query {
  font-size: 14px;
}

/* Состояние отключения маршрутных точек, когда выбрана онлайн-работа */
#address_container.fade-out .route-points,
#address_container.fade-out .add-point-btn {
  opacity: 0;
  pointer-events: none;
}


/* Добавить в create_task_quiz.css */

/* Стили для карты */
.address-map {
  display: none;
  width: 100%;
  height: 0;
  margin-top: 10px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #ddd;
}

/* Стили для кнопки поиска */
.search-button {
  display: inline-block;
  padding: 8px 16px;
  background-color: #333;
  color: white;
  border-radius: 4px;
  margin-top: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
}

.search-button:hover {
  background-color: #444;
}

/* Улучшенные стили для полей адреса */
.quiz-input:focus {
  outline: none;
  border-color: #333;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.quiz-input.error {
  border-color: #ff3b30;
}

/* Стили для контейнера адресов */
.route-point {
  position: relative;
  padding: 16px;
  background-color: #f9f9f9;
  border-radius: 8px;
  border-left: 3px solid #333;
  margin-top: 16px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Стили для заголовка точки маршрута */
.route-point-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

/* Улучшенные стили для кнопки удаления */
.remove-point-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #f0f0f0;
  border: none;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: #666;
}

.remove-point-btn:hover {
  background-color: #ff3b30;
  color: white;
}

/* Улучшенные стили для кнопки добавления точки */
.add-point-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  background-color: #f0f0f0;
  border: 1px dashed #aaa;
  border-radius: 6px;
  color: #333;
  margin-top: 16px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
}

.add-point-btn svg {
  margin-right: 8px;
}

.add-point-btn:hover {
  background-color: #e0e0e0;
  border-color: #333;
}

/* Стили для сообщений об ошибках */
.error-message {
  color: #ff3b30;
  font-size: 12px;
  margin-top: 4px;
  animation: fadeIn 0.3s ease;
}

/* Убираем стрелки с полей ввода чисел */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Дополнительные стили для подсказок при вводе адреса */

/* Контейнер для поля адреса */
.address-input-container {
  position: relative;
  width: 100%;
}

/* Список подсказок */
.address-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
  background-color: white;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 4px 4px;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  display: none;
}

/* Отдельная подсказка */
.address-suggestion {
  padding: 10px 16px;
  cursor: pointer;
  transition: background-color 0.2s;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
  line-height: 1.4;
  color: #333;
}

.address-suggestion:hover,
.address-suggestion.active {
  background-color: #f5f5f5;
}

.address-suggestion:last-child {
  border-bottom: none;
}

/* Выделение совпадений в подсказках */
.address-suggestion .highlight {
  font-weight: bold;
  color: #000;
}

/* Анимация появления подсказок */
@keyframes fadeInSuggestions {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.address-suggestions.show {
  display: block;
  animation: fadeInSuggestions 0.2s ease-out;
}

/* Модификации существующих стилей */
.search-button {
  display: none; /* Скрываем кнопку "Поиск", т.к. подсказки появляются автоматически */
}

.address-map {
  margin-top: 16px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #ddd;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Улучшенный стиль для полей ввода адреса */
.quiz-input {
  transition: border-color 0.3s, box-shadow 0.3s;
}

.quiz-input:focus {
  border-color: #333;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
  outline: none;
}

/* Индикатор загрузки внутри поля ввода */
.address-loading {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #333;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: translateY(-50%) rotate(0deg); }
  100% { transform: translateY(-50%) rotate(360deg); }
}

/* Добавить в create_task_quiz.css */

.commission-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.commission-info {
  flex: 1;
}

.commission-label {
  font-size: 16px;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.commission-calculation {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
}

.calculation-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calculation-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.calculation-row.total-row {
  border-top: 1px solid #dee2e6;
  padding-top: 8px;
  margin-top: 4px;
  font-weight: 600;
  font-size: 16px;
}

.calculation-row.executor-row {
  color: #28a745;
  font-weight: 500;
}

.calculation-label {
  color: #6c757d;
}

.calculation-value {
  color: #1a1a1a;
  font-weight: 500;
}

/* Commission mobile styles — consolidated into main 768px block above */

/* Payment choice cards */
.payment-choice-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.payment-choice-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: #f5f5f5;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
}

.payment-choice-card:hover {
    background: #eee;
}

.payment-choice-card.active {
    border-color: #1a1a1a;
    background: #fff;
}

.payment-choice-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #555;
    flex-shrink: 0;
}

.payment-choice-card.active .payment-choice-icon {
    background: #1a1a1a;
    color: #fff;
}

.payment-choice-text {
    flex: 1;
}

.payment-choice-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 2px;
}

.payment-choice-desc {
    font-size: 12px;
    color: #999;
    line-height: 1.3;
}

.payment-choice-card > .bx-chevron-right,
.payment-choice-card > .bx-check {
    font-size: 20px;
    color: #ccc;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 2px;
}

.payment-choice-card.active > .bx-check {
    color: #126e4d;
}

.payment-choice-calc {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 6px 10px;
    background: #f0f0f0;
    border-radius: 6px;
    font-size: 12px;
    color: #666;
}

.payment-choice-card.active .payment-choice-calc {
    background: #f0fdf4;
}

.payment-choice-calc strong {
    color: #1a1a1a;
    font-weight: 700;
}

.payment-choice-calc .calc-green {
    color: #126e4d;
}

.payment-choice-calc .calc-arrow {
    color: #ccc;
    font-size: 14px;
}

/* Dates row */
.dates-row {
    display: flex;
    gap: 16px;
}

.dates-col {
    flex: 1;
    min-width: 0;
}

/* Dates mobile styles — consolidated into main 768px block above */

/* Date/Time Picker */
.date-picker-row {
    display: flex;
    align-items: center;
    gap: 0;
    background: #f5f5f5;
    border-radius: 10px;
    padding: 8px 6px;
}

.date-picker-group {
    display: flex;
    flex-direction: column;
}

.date-picker-month-group {
    flex: 1;
    min-width: 0;
}

.date-picker-label {
    display: none;
}

.date-picker-input {
    border: none;
    background: #fff;
    border-radius: 10px;
    outline: none;
    font-family: inherit;
    transition: box-shadow 0.15s;
}

.date-picker-input:focus {
    box-shadow: 0 0 0 2px #1a1a1a;
}

.date-picker-num {
    width: 36px;
    height: 34px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    padding: 0;
    -moz-appearance: textfield;
}

.date-picker-num::-webkit-inner-spin-button,
.date-picker-num::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.date-picker-month {
    height: 34px;
    font-size: 12px;
    font-weight: 600;
    color: #1a1a1a;
    padding: 0 20px 0 8px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 6px center;
    min-width: 0;
}

.date-picker-sep {
    width: 1px;
    height: 22px;
    background: #ddd;
    margin: 0 4px;
}

.date-picker-colon {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    padding: 0 1px;
}

.date-picker-stepper {
    display: flex;
    align-items: center;
    gap: 0;
}

.date-picker-stepper .date-picker-num {
    border-radius: 0;
    width: 48px;
}

.date-step-btn {
    width: 20px;
    height: 34px;
    border: none;
    background: #e8e8e8;
    color: #555;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    user-select: none;
    line-height: 1;
}

.date-step-btn:first-child {
    border-radius: 8px 0 0 8px;
}

.date-step-btn:last-child {
    border-radius: 0 8px 8px 0;
}

.date-step-btn:hover {
    background: #ddd;
}

.date-step-btn:active {
    background: #ccc;
}

/* =============================================
   PHONE — 480px and below
   ============================================= */
@media (max-width: 480px) {
  /* --- Step titles --- */
  .step-title {
    font-size: 18px;
  }

  /* --- Textarea --- */
  .quiz-textarea {
    min-height: 100px;
  }

  /* --- Quiz step min height --- */
  .quiz-step {
    min-height: 200px;
  }

  /* --- Step 2: Photos --- */
  #photo-drop-zone {
    padding: 28px 16px !important;
  }
  #photo-previews {
    gap: 6px !important;
  }

  /* --- Step 3: Budget & Payment --- */
  .step-title-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .budget-input-inline {
    width: 100%;
  }
  .budget-input-inline .quiz-input {
    width: 100%;
    text-align: center;
    font-size: 22px;
  }
  .payment-choice-card {
    padding: 14px;
    min-height: 56px;
  }
  .payment-choice-calc {
    flex-wrap: wrap;
  }

  /* --- Step 4: Dates touch-friendly --- */
  .date-picker-row {
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px;
  }
  .date-step-btn {
    width: 28px;
    height: 40px;
    font-size: 16px;
  }
  .date-picker-num {
    height: 40px;
  }
  .date-picker-stepper .date-picker-num {
    width: 42px;
    height: 40px;
  }
  .date-picker-month {
    height: 40px;
    font-size: 13px;
  }

  /* --- Step 4: Address suggestions touch-friendly --- */
  .address-suggestion {
    padding: 14px 16px;
    font-size: 15px;
  }
  .address-suggestions {
    max-height: 240px;
  }

  /* --- Step 4: Route points touch-friendly --- */
  .remove-point-btn {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
  .add-point-btn {
    padding: 14px 16px;
    width: 100%;
    justify-content: center;
    font-size: 15px;
  }

  /* --- Step 5: Summary card --- */
  #task-summary-name {
    font-size: 16px !important;
  }
  #task-summary-price {
    font-size: 20px !important;
  }
  #task-summary-photos {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  #task-summary-photos img {
    min-width: 200px;
    height: 160px;
    scroll-snap-align: start;
  }

  /* --- Step Actions: stack buttons, primary first --- */
  .step-actions {
    flex-direction: column;
    gap: 10px;
    padding: 20px 0;
  }
  .next-btn,
  .submit-btn {
    width: 100%;
    padding: 16px;
    font-size: 17px;
    order: -1;
    text-align: center;
  }
  .back-btn {
    width: 100%;
    padding: 12px;
    text-align: center;
    order: 1;
  }
  .cancel-creation-btn {
    order: 2;
    text-align: center;
    width: 100%;
  }

  /* --- AI Robot Overlay (phone) --- */
  #ai-analysis-overlay {
    padding: 16px;
  }
  #ai-analysis-overlay .robot-face {
    width: 200px !important;
    height: 200px !important;
  }
  #ai-analysis-overlay .robot-face canvas {
    width: 200px !important;
    height: 200px !important;
  }
}
