/* Вікно замовлення. Окремим файлом, щоб style.css лишався таким,
   як його віддав верстальник, і його нову версію можна було покласти поверх. */

.order {
  width: calc(100% - 32px); max-width: 358px;
  margin: auto; padding: 0; border: 0; border-radius: 24px;
  background: #fff; color: #000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}
.order::backdrop { background: rgba(0, 0, 0, .7); }

.order__form { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px 20px 22px; }
/* hidden — це лише display:none від браузера, і будь-яке правило класу
   сильніше; помилка інакше не ховалася б ніколи. */
.order [hidden] { display: none !important; }

.order__close {
  position: absolute; top: 10px; right: 12px;
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: var(--faq-bg); color: #000; font-size: 22px; line-height: 1; cursor: pointer;
}
.order__title { font-weight: 700; font-size: 24px; line-height: 1.1; letter-spacing: -1px; padding-right: 40px; }
.order__price { font-weight: 700; font-size: 20px; color: var(--blue); }
.order__old { margin-left: 6px; font-weight: 400; font-size: 16px; color: var(--gray); text-decoration: line-through; }

.order__field { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: 14px; }
.order__field input {
  height: 50px; padding: 0 14px;
  border: 1px solid #d9dee7; border-radius: 12px; background: #fff;
  font: inherit; font-size: 16px; font-weight: 400; color: #000;   /* 16px — iOS не збільшує сторінку при фокусі */
}
.order__field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-10); }
.order__hint { font-weight: 400; font-size: 13px; color: #6b7280; }

/* Помилка поля — під самим полем, а не однією плашкою внизу:
   людина бачить, що саме виправити, не шукаючи. */
.order__field input.is-invalid { border-color: #e5484d; background: #fff8f7; }
.order__field input.is-invalid:focus { box-shadow: 0 0 0 3px rgba(229, 72, 77, .15); }
.order__err { font-weight: 500; font-size: 13px; line-height: 1.3; color: #c62828; }
.order__suggest {
  align-self: flex-start; padding: 6px 10px; border: 0; border-radius: 8px;
  background: var(--blue-10); color: var(--blue); font: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; text-align: left;
}

.order__error { padding: 10px 12px; border-radius: 10px; background: #fff1ee; color: #b42318; font-size: 14px; line-height: 1.3; }
.order__submit { margin-top: 4px; font-size: 18px; font-weight: 600; cursor: pointer; border: 0; font-family: inherit; }
.order__submit:disabled { opacity: .6; cursor: wait; }
.order__note { font-size: 13px; line-height: 1.3; color: #6b7280; text-align: center; }
