.fca-booking-wrap { max-width: 1100px; margin: 0 auto; }
.fca-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 900px) { .fca-grid { grid-template-columns: 1fr; } }

.fca-card {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

.fca-calendar-controls { display: grid; grid-template-columns: 90px 1fr 90px; align-items: center; gap: 10px; margin-bottom: 10px; }
.fca-month-title { text-align: center; font-weight: 700; }

.fca-btn {
  border: 1px solid #ccc;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.fca-btn-primary { background: #1e73be; color: #fff; border-color: #1e73be; }
.fca-btn-primary:hover { filter: brightness(0.95); }
.fca-btn:focus-visible {
  outline: 3px solid #1e73be;
  outline-offset: 2px;
}

.fca-notice { margin: 10px 0; padding: 10px; border-radius: 8px; }
.fca-notice.ok { background: #e8f6ea; border: 1px solid #bfe6c6; }
.fca-notice.err { background: #fdeaea; border: 1px solid #f2b8b8; }

.fca-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fca-muted { opacity: .75; font-size: 13px; }

#fcaBookingForm label { display: block; margin-bottom: 10px; font-weight: 600; }
#fcaBookingForm input, #fcaBookingForm select, #fcaBookingForm textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-weight: 400;
  margin-top: 5px;
}

#fcaBookingForm fieldset {
  margin-bottom: 20px;
}

.fca-form-row { display: grid; gap: 10px; margin-bottom: 10px; }
.fca-form-row-2 { grid-template-columns: 1fr 1fr; }
.fca-form-row-3 { grid-template-columns: 1fr 1fr 1fr; }

@media (max-width: 600px) {
  .fca-form-row-2, .fca-form-row-3 { grid-template-columns: 1fr; }
}

.fca-summary { background: #fafafa; border: 1px solid #eee; border-radius: 10px; padding: 12px; margin: 12px 0; }

.fca-cal-grid { border: 1px solid #eee; border-radius: 10px; overflow: hidden; }
.fca-cal-header, .fca-cal-body { display: grid; grid-template-columns: repeat(7, 1fr); }
.fca-cal-cell { border-bottom: 1px solid #f1f1f1; border-right: 1px solid #f1f1f1; min-height: 62px; position: relative; padding: 8px; }
.fca-cal-header .fca-cal-cell { min-height: auto; padding: 8px; background: #fafafa; font-weight: 700; text-align: center; }
.fca-cal-header .fca-cal-cell:last-child, .fca-cal-body .fca-cal-cell:nth-child(7n) { border-right: none; }

.fca-cal-empty { background: #fff; }
.fca-cal-day { cursor: pointer; display: flex; align-items: center; justify-content: center; position: relative; }
.fca-cal-day.is-available { background: #fff; border: 1px solid #e8e8e8; }
.fca-cal-day.is-available:hover { background: #f9f9f9; }
.fca-cal-day.is-booked { background: #f8d7da; cursor: not-allowed; }
.fca-cal-day:focus-visible {
  outline: 3px solid #1e73be;
  outline-offset: -3px;
  z-index: 1;
}
.fca-day-num { font-weight: 700; font-size: 18px; }

.is-disabled .fca-day-num,
.is-booked .fca-day-num {
    text-decoration: line-through;
}

/* Range fill between start and end */
.fca-cal-day.is-selected,
.fca-cal-day.is-selected-range {
  background: #0f4f88;
  border-radius: 0;
  width: 100%;
}

.fca-cal-day.is-selected .fca-day-num,
.fca-cal-day.is-selected-range .fca-day-num {
  color: #fff;
}

/* Optional: show a hover cue */
.fca-cal-day.is-available:hover {
  background: #f9f9f9;
  filter: brightness(1);
}


.fca-cal-day.is-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: #fff;
  border: 1px solid #e8e8e8;
}

/* Multi-step UI */
.fca-step {
  display: none;
  padding: 20px 0;
  animation: fadeIn 0.2s ease-in;
}

.fca-step.active {
  display: block;
}

.fca-step h2 {
  margin-bottom: 20px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Step 1: Type Selection */
.fca-type-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.fca-type-option {
  position: relative;
}

.fca-type-option input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.fca-type-card {
  border: 2px solid #ddd;
  border-radius: 10px;
  padding: 25px 15px;
  text-align: center;
  cursor: pointer;
  background: #f9f9f9;
  transition: all 0.2s ease;
}

.fca-type-card:hover {
  border-color: #1e73be;
  background: #f0f6ff;
}

.fca-type-card p {
    margin-bottom: 0;
}

.fca-type-option input[type="radio"]:checked + .fca-type-card {
  border-color: #1e73be;
  background: #e8f2ff;
  box-shadow: 0 0 0 3px rgba(30, 115, 190, 0.1);
}

.fca-type-option input[type="radio"]:focus-visible + .fca-type-card {
  outline: 3px solid #1e73be;
  outline-offset: 2px;
}

.fca-type-card .fca-type-label {
  display: block;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 5px;
}

.fca-type-card .fca-type-desc {
  display: block;
  font-size: 12px;
  color: #666;
}

.fca-type-card .fca-type-price {
  display: block;
  font-weight: 600;
  color: #1e73be;
  margin-top: 8px;
}

.fca-step1-rate-line {
  margin: 4px 0;
  font-size: 14px;
}

/* Step 2: Calendar & Date Selection */
.fca-calendar-section {
  margin-bottom: 20px;
}

.fca-step2-rates {
  background: #f3f8ff;
  border: 1px solid #bdd8ff;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 15px;
}

.fca-step2-selection-rates {
  margin: 10px 0 14px;
  padding: 10px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #c6e7c9;
}

.fca-step2-selection-total {
  margin: 0 0 8px;
  font-weight: 700;
  color: #1f5b24;
}

#fca-step2-selection-list {
  margin: 0;
  padding-left: 20px;
}

#fca-step2-selection-list li {
  margin: 3px 0;
  font-size: 14px;
}

.fca-help-text {
  font-size: 13px;
  color: #666;
  margin-top: 8px;
  font-style: italic;
}

/* Step 3: Summary & Customer Details */
.fca-price-summary {
  background: #fffbea;
  border: 1px solid #ffc107;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
}

.fca-summary-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 14px;
}

.fca-summary-row.fca-total {
  font-weight: 700;
  font-size: 16px;
  border-top: 2px solid #ffc107;
  padding-top: 10px;
  margin-top: 10px;
}

.fca-summary-row.fca-due-now {
  color: #d63638;
  font-weight: 600;
}

.fca-half-day-section {
  margin: 15px 0;
  padding: 12px;
  background: #fafafa;
  border-radius: 8px;
  border-left: 3px solid #1e73be;
}

.fca-half-day-section label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.fca-customer-details {
  margin-top: 20px;
}

.fca-customer-details .fca-section-title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #eee;
}

.fca-form-group {
  margin-bottom: 15px;
}

.fca-form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  font-size: 14px;
}

.fca-form-group input,
.fca-form-group textarea,
.fca-form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
}

.fca-form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.fca-form-group input:focus,
.fca-form-group textarea:focus,
.fca-form-group select:focus {
  outline: 2px solid #1e73be;
  outline-offset: 1px;
  border-color: #1e73be;
  box-shadow: 0 0 0 3px rgba(30, 115, 190, 0.1);
}

#fcaBookingForm input:focus-visible,
#fcaBookingForm select:focus-visible,
#fcaBookingForm textarea:focus-visible {
  outline: 2px solid #1e73be;
  outline-offset: 1px;
}

/* Step Navigation */
.fca-step-nav {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  margin-top: 20px;
}

.fca-step-nav.full {
  grid-template-columns: 1fr;
}

.fca-btn-secondary {
  background: #e0e0e0;
  color: #333;
  border-color: #ccc;
}

.fca-btn-secondary:hover {
  background: #d0d0d0;
}

.fca-payment-step {
  display: none;
  background: #f0f7ff;
  border: 2px solid #1e73be;
  border-radius: 8px;
  padding: 20px;
  margin-top: 20px;
}

.fca-payment-step.active {
  display: block;
}

.fca-payment-step .fca-payment-title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 12px;
  color: #1e73be;
}

.fca-payment-step .fca-payment-amount {
  font-size: 24px;
  font-weight: 700;
  color: #d63638;
  margin-bottom: 12px;
}

.fca-payment-step .fca-payment-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 12px;
}

.fca-step-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 12px;
}

.fca-terms-wrap {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px;
  margin: 12px 0;
  background: #fff;
}

.fca-terms-scroll-notice {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 6px;
  background: #eef6ff;
  border: 1px solid #b8d7f3;
  color: #0f4f88;
  font-weight: 600;
}

.fca-terms-scroll-notice.is-complete {
  background: #e8f6ea;
  border-color: #bfe6c6;
  color: #1f5b24;
}

.fca-terms-content {
  max-height: 220px;
  overflow-y: scroll;
  scrollbar-gutter: stable;
  border: 2px solid #b8d7f3;
  border-radius: 6px;
  padding: 10px;
  background: #fafafa;
  margin-bottom: 10px;
  box-shadow: inset 0 -18px 18px -18px rgba(15, 79, 136, 0.55);
}

.fca-terms-content::-webkit-scrollbar {
  width: 12px;
}

.fca-terms-content::-webkit-scrollbar-track {
  background: #e6eef7;
  border-left: 1px solid #c9d8e8;
}

.fca-terms-content::-webkit-scrollbar-thumb {
  background: #7ca6cf;
  border-radius: 999px;
  border: 2px solid #e6eef7;
}

.fca-terms-content::-webkit-scrollbar-thumb:hover {
  background: #5f90bf;
}

.fca-terms-content p {
  margin: 0 0 1em;
}

.fca-terms-content p:last-child {
  margin-bottom: 0;
}

.fca-terms-agree {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
  font-weight: 600;
}

.fca-terms-agree input[type="checkbox"] {
  margin-top: 3px;
}

#fca-terms-signature {
  width: 100%;
  max-width: 440px;
}

.fca-success-message {
  display: none;
  background: #e8f5e9;
  border: 2px solid #4caf50;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}

.fca-success-message.active {
  display: block;
}

.fca-success-message .fca-success-title {
  font-weight: 700;
  font-size: 18px;
  color: #2e7d32;
  margin-bottom: 8px;
}

.fca-success-message .fca-success-details {
  font-size: 14px;
  color: #555;
  margin-bottom: 12px;
}

.fca-success-message .fca-success-id {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px;
  font-weight: 600;
  font-family: monospace;
  margin: 12px 0;
}

/* Responsive */
@media (max-width: 600px) {
  .fca-type-options {
    grid-template-columns: 1fr;
  }

  .fca-summary-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .fca-step-nav {
    grid-template-columns: 1fr;
  }

  .fca-payment-step .fca-payment-actions {
    grid-template-columns: 1fr;
  }
}
