/* ── City Cat Hotel — Booking Form Styles ───────────────────────────────── */

/* ── FORM WRAPPER ────────────────────────────────────────────────────────── */
.cch-form-wrap {
  max-width: 760px;
  margin: 0 auto;
}

/* ── SECTION TITLES ──────────────────────────────────────────────────────── */
.cch-form-section-title {
  font-family: 'Cooper Black', serif;
  font-size: 1.1rem;
  color: var(--color-text, #1e2330);
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border, #e8e0d4);
}

.cch-form-section-title:first-child { margin-top: 0; }

/* ── FORM ROWS ───────────────────────────────────────────────────────────── */
.cch-form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

/* ── FORM GROUPS ─────────────────────────────────────────────────────────── */
.cch-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.cch-form-group label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--color-text, #1e2330);
}

.cch-required { color: var(--color-accent, #c8773a); }

.cch-form-group input,
.cch-form-group textarea {
  font-family: 'Quicksand', sans-serif;
  font-size: 0.95rem;
  color: var(--color-text, #1e2330);
  background: #fff;
  border: 1.5px solid var(--color-border, #e8e0d4);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
}

.cch-form-group input:focus,
.cch-form-group textarea:focus {
  border-color: var(--color-accent, #c8773a);
  box-shadow: 0 0 0 3px rgba(200, 119, 58, 0.15);
}

.cch-form-group textarea { resize: vertical; min-height: 100px; }

.cch-form-group.has-error input,
.cch-form-group.has-error textarea {
  border-color: #d32f2f;
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.12);
}

.cch-field-error {
  font-size: 0.8rem;
  color: #d32f2f;
  min-height: 1.1em;
}

.cch-field-hint,
.cch-form-hint {
  font-size: 0.8rem;
  color: var(--color-text-light, #7a7a8a);
  margin: 0;
}

/* ── STEPPER ─────────────────────────────────────────────────────────────── */
.cch-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--color-border, #e8e0d4);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  width: fit-content;
}

.cch-stepper-btn {
  background: var(--color-bg-alt, #f5f0e8);
  border: none;
  width: 40px;
  height: 42px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text, #1e2330);
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
  line-height: 1;
}

.cch-stepper-btn:hover { background: var(--color-border, #e8e0d4); }

.cch-stepper input[type="number"] {
  border: none;
  border-radius: 0;
  width: 56px;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.7rem 0.4rem;
  box-shadow: none;
  -moz-appearance: textfield;
}

.cch-stepper input[type="number"]::-webkit-outer-spin-button,
.cch-stepper input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; }

/* ── SERVICES GRID ───────────────────────────────────────────────────────── */
.cch-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.cch-service-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: #fff;
  border: 1.5px solid var(--color-border, #e8e0d4);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  user-select: none;
}

.cch-service-card:hover {
  border-color: var(--color-accent, #c8773a);
}

.cch-service-cb { display: none; }

.cch-service-card:has(.cch-service-cb:checked) {
  border-color: var(--color-accent, #c8773a);
  background: #fff8f4;
  box-shadow: 0 0 0 3px rgba(200, 119, 58, 0.12);
}

/* Fallback for browsers without :has() */
.cch-service-card.checked {
  border-color: var(--color-accent, #c8773a);
  background: #fff8f4;
  box-shadow: 0 0 0 3px rgba(200, 119, 58, 0.12);
}

.cch-service-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.cch-service-label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-text, #1e2330);
}

.cch-service-note {
  font-size: 0.78rem;
  color: var(--color-text-light, #7a7a8a);
}

.cch-service-price {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-accent, #c8773a);
  margin-top: 0.2rem;
}

/* Checkmark indicator */
.cch-service-card::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--color-border, #e8e0d4);
  border-radius: 4px;
  background: #fff;
  margin-top: 2px;
  transition: all 0.15s;
}

.cch-service-card:has(.cch-service-cb:checked)::before,
.cch-service-card.checked::before {
  background: var(--color-accent, #c8773a);
  border-color: var(--color-accent, #c8773a);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 5l3.5 3.5L11 1' stroke='%23fff' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 10px 8px;
  background-repeat: no-repeat;
  background-position: center;
}

/* ── PRICE ESTIMATE ──────────────────────────────────────────────────────── */
.cch-estimate {
  background: var(--color-bg-alt, #f5f0e8);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cch-estimate-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-light, #7a7a8a);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
  flex-shrink: 0;
}

.cch-estimate-value {
  font-family: 'Cooper Black', serif;
  font-size: 1.6rem;
  color: var(--color-accent, #c8773a);
  margin: 0;
  flex-shrink: 0;
}

.cch-estimate-note {
  font-size: 0.75rem;
  color: var(--color-text-light, #7a7a8a);
  margin: 0;
  flex: 1;
  min-width: 200px;
}

/* ── SUBMIT ──────────────────────────────────────────────────────────────── */
.cch-form-submit { margin-top: 1.5rem; }

.cch-submit-btn { width: 100%; justify-content: center; }

/* ── STATUS MESSAGES ─────────────────────────────────────────────────────── */
.cch-status {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  font-size: 0.95rem;
  display: none;
}

.cch-status:not(:empty) { display: block; }

.cch-status-success {
  background: #eef7f0;
  border: 1px solid #b2ddbf;
  color: #1a5c2a;
}

.cch-status-error {
  background: #fff0f0;
  border: 1px solid #ffb3b3;
  color: #b91c1c;
}

/* ── HONEYPOT ────────────────────────────────────────────────────────────── */
.cch-honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  pointer-events: none;
  tab-size: 0;
}

/* ── MODAL ───────────────────────────────────────────────────────────────── */
.cch-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(30, 35, 48, 0.7);
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(3px);
}

.cch-modal-overlay.open { display: flex; }

.cch-modal-box {
  background: var(--color-bg, #fdfaf6);
  border-radius: 16px;
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem 2rem 1.5rem;
  position: relative;
  box-shadow: 0 24px 64px rgba(30, 35, 48, 0.25);
}

.cch-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--color-bg-alt, #f5f0e8);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text, #1e2330);
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cch-modal-close:hover { background: var(--color-border, #e8e0d4); }

.cch-modal-title {
  font-family: 'Cooper Black', serif;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  padding-right: 2.5rem;
}

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .cch-form-row { grid-template-columns: 1fr; }
  .cch-services-grid { grid-template-columns: 1fr; }
  .cch-modal-box { padding: 1.5rem 1.25rem 1rem; }
  .cch-estimate { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
}

/* ── INFO CARD (non-selectable) ──────────────────────────────────────────── */
.cch-service-info-card {
  cursor: default;
  opacity: 0.75;
  background: var(--color-bg-alt, #f5f0e8);
  border-style: dashed;
}

.cch-service-info-card:hover {
  border-color: var(--color-border, #e8e0d4);
  box-shadow: none;
}

.cch-service-info-card::before {
  display: none;
}

.cch-service-action {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-light, #7a7a8a);
  font-style: italic;
  margin-top: 0.3rem;
  display: block;
}

/* ── TRANSPORT FORM ──────────────────────────────────────────────────────── */
.cch-transport-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--color-bg-alt, #f5f0e8);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
  color: var(--color-text, #1e2330);
}

.cch-transport-info-icon { font-size: 1.5rem; flex-shrink: 0; }

.cch-direction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  margin-top: 0.4rem;
}

.cch-dir-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: #fff;
  border: 1.5px solid var(--color-border, #e8e0d4);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  user-select: none;
}

.cch-dir-card:hover { border-color: var(--color-accent, #c8773a); }

.cch-dir-card:has(.cch-service-cb:checked) {
  border-color: var(--color-accent, #c8773a);
  background: #fff8f4;
  box-shadow: 0 0 0 3px rgba(200, 119, 58, 0.12);
}

.cch-dir-card::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--color-border, #e8e0d4);
  border-radius: 50%;
  background: #fff;
  margin-top: 2px;
  transition: all 0.15s;
}

.cch-dir-card:has(.cch-service-cb:checked)::before {
  background: var(--color-accent, #c8773a);
  border-color: var(--color-accent, #c8773a);
  box-shadow: inset 0 0 0 3px #fff;
}

@media (max-width: 600px) {
  .cch-direction-grid { grid-template-columns: 1fr; }
}

/* ── TRANSPORT TRIGGER INSIDE INFO CARD ─────────────────────────────────── */
.cch-service-info-card {
  flex-direction: column;
  align-items: flex-start;
}

.cch-transport-trigger {
  margin-top: 0.75rem;
  font-size: 0.82rem !important;
  padding: 0.5rem 1rem !important;
  align-self: flex-start;
}
