/* ==========================================================================
   Airlife Care — Online Booking, Business Inquiry & OpenStreetMap Picker UI
   Clean Red & White Rounded Cards | Soft Shadows | Zero Emojis
   ========================================================================== */

.form-page-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: var(--space-8);
  align-items: start;
}

.form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-top: 4px solid var(--red-600);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--space-8);
}

.form-card__header {
  padding-bottom: var(--space-5);
  margin-bottom: var(--space-6);
  border-bottom: 1px solid var(--border-default);
}

.form-card__title {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.form-card__subtitle {
  font-size: 0.94rem;
  color: var(--text-secondary);
}

.required-mark {
  color: var(--red-600);
  font-weight: 700;
}

.field-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Honeypot invisible field */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* OpenStreetMap Interactive Picker Box */
.map-picker {
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-card);
  background: var(--bg-canvas);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  margin-top: 6px;
}

.map-picker__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-default);
}

.map-picker__search-wrap {
  display: flex;
  flex: 1 1 220px;
  gap: 6px;
}

.map-picker__search-input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-sm);
  background: var(--bg-canvas);
  font-size: 0.875rem;
}

.map-picker__search-input:focus {
  outline: none;
  border-color: var(--red-600);
  background: var(--bg-surface);
}

.map-picker__canvas {
  width: 100%;
  height: 300px;
  z-index: 1;
  background: #e2e8f0;
}

.map-picker__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 9px 12px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-default);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.map-coords-pill {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--red-700);
  background: var(--red-50);
  border: 1px solid var(--border-red);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

/* Status Banners */
.submit-alert {
  display: none;
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  font-size: 0.94rem;
  line-height: 1.55;
}

.submit-alert.is-visible {
  display: block;
}

.submit-alert--success {
  background: var(--status-live-bg);
  border: 1px solid #86efac;
  color: #14532d;
}

.submit-alert--error {
  background: var(--red-50);
  border: 1px solid var(--border-red);
  color: var(--red-800);
}

.submit-alert__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.02rem;
  margin-bottom: 4px;
}

.ref-code {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #86efac;
  padding: 2px 8px;
  border-radius: 6px;
  margin-top: 6px;
}

/* Submit Button Loading State */
.btn[disabled] {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
}

.btn-spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: alcSpin 0.7s linear infinite;
  display: none;
}

.btn.is-loading .btn-spinner {
  display: inline-block;
}

@keyframes alcSpin {
  to {
    transform: rotate(360deg);
  }
}

/* Sidebar Cards */
.form-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  position: sticky;
  top: calc(var(--header-height) + 20px);
}

.sidebar-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: var(--space-4);
}

.sidebar-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.sidebar-step__num {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-pill);
  background: var(--red-50);
  border: 1px solid var(--border-red);
  color: var(--red-700);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

@media (max-width: 980px) {
  .form-page-layout {
    grid-template-columns: 1fr;
  }
  .form-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .form-card {
    padding: var(--space-5);
  }
  .map-picker__canvas {
    height: 250px;
  }
}
