/* PR53 — compact booking modal on mobile (<=768px). Desktop unchanged. */

@media (max-width: 768px) {
  #modalCalendar .modal-content,
  #modalSlots .modal-content,
  #modalContact .modal-content,
  #modalConfirm .modal-content {
    width: min(100%, 420px);
    max-height: 90vh;
    overflow-y: auto;
    padding: 14px 16px 18px;
    margin: 8px auto;
  }

  #modalCalendar h2,
  #modalSlots h3,
  #modalContact h3,
  #modalConfirm h2 {
    font-size: 1.15rem;
    line-height: 1.3;
    margin: 0 36px 8px 0;
    padding-right: 0;
  }

  #modalCalendar .close-modal,
  #modalSlots .close-modal:not(.btn-back-step),
  #modalContact .close-modal:not(.btn-back-step),
  #modalConfirm .close-modal {
    top: 10px;
    right: 10px;
    font-size: 22px;
  }

  #modalSlots .progress-info,
  #modalContact .progress-info,
  #modalCalendar .progress-info {
    margin: 0 0 10px;
    font-size: 0.85rem;
  }

  #step-indicator.progress-info {
    position: static;
    margin-bottom: 10px;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .slot-btn {
    padding: 8px 10px;
    margin: 4px 0;
    font-size: 0.95rem;
    font-weight: 500;
    min-height: 40px;
    border-width: 1px;
    transform: none;
    box-shadow: none;
  }

  .slot-btn:hover,
  .slot-btn.available:hover {
    transform: none;
    box-shadow: none;
  }

  .boat-set-picker {
    margin-top: 10px;
    padding: 8px 10px;
  }

  .boat-set-picker-title {
    font-size: 0.9rem;
    margin-bottom: 6px;
  }

  .boat-set-buttons {
    gap: 6px;
  }

  .boat-set-btn {
    min-width: 36px;
    padding: 6px 10px;
    font-size: 0.9rem;
    border-width: 1px;
  }

  .boat-slot-summary {
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid #b2ebf2;
    border-radius: 8px;
    background: #f0fdff;
  }

  .boat-slot-summary-count {
    margin: 0 0 4px;
    font-weight: 600;
    font-size: 0.95rem;
  }

  .boat-slot-summary-total {
    margin: 0;
    font-size: 0.95rem;
    color: #006064;
  }

  #confirmSlotBtn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
  }

  .btn-back-step {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
    padding: 6px 0;
    background: transparent;
    border: none;
    color: #0097a7;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: none;
    width: auto;
  }

  .btn-back-step:hover,
  .btn-back-step:focus {
    color: #00796b;
    background: transparent;
    text-decoration: underline;
  }

  #modalSlots .modal-actions-row,
  #modalContact .modal-actions-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
  }

  #modalSlots #confirmSlotBtn,
  #modalContact #confirmContactBtn {
    width: 100%;
  }

  .modal-content--compact {
    width: min(100%, 420px);
    padding: 16px;
  }

  .product-request-form input,
  .product-request-form textarea {
    width: 100%;
    margin-bottom: 8px;
  }

  .product-request-hint {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 12px;
  }
}

@media (min-width: 769px) {
  .btn-back-step {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 12px;
    margin-right: 8px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid #b2ebf2;
    border-radius: 6px;
    color: #0097a7;
    font-size: 0.95rem;
    cursor: pointer;
  }

  .btn-back-step:hover {
    background: #e0f7fa;
  }

  .boat-slot-summary {
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid #b2ebf2;
    border-radius: 8px;
    background: #f0fdff;
  }

  .boat-slot-summary-count {
    margin: 0 0 6px;
    font-weight: 600;
  }

  .boat-slot-summary-total {
    margin: 0 0 10px;
    color: #006064;
  }

  #confirmSlotBtn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
  }
}
