/* =============================================
   ENQUIRY PAGE — CSS
   ============================================= */

/* SECTION */
.enquiry-section {
  background: #f0f2f5;
  padding: 48px 0 64px;
}

/* CARD */
.enquiry-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.10);
  overflow: hidden;
}

/* CARD HEADER */
.enquiry-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 32px 22px;
  flex-wrap: wrap;
}
.enquiry-card-title h2 {
  font-family: var(--font-heading);
  font-size: 20px; font-weight: 900;
  color: #1a1a2e; margin-bottom: 5px; line-height: 1.3;
}
.enquiry-card-title h2 span {
  font-size: 14px; font-weight: 600;
  color: var(--color-primary);
}
.enquiry-card-title p {
  font-size: 12.5px; font-weight: 600;
  color: #555;
}

/* TABS */
.journey-tabs {
  display: flex;
  border-radius: 6px;
  overflow: hidden;
  border: 1.5px solid #cdd3de;
  flex-shrink: 0;
  height: fit-content;
}
.journey-tab {
  padding: 9px 22px;
  font-family: var(--font-heading);
  font-size: 13px; font-weight: 700;
  background: #fff; color: #333;
  border: none; cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.journey-tab.active {
  background: #a5c615;
  color: #fff;
}

/* FORM */
.enquiry-form {
  padding: 20px 32px 28px;
}

.form-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.form-row-3 .form-group { flex: 1 1 160px; }
.form-row-2 .form-group { flex: 1 1 220px; }
.form-group { position: relative; }
.fg-wide  { flex: 1 1 300px; }
.fg-date  { flex: 0 0 185px; position: relative; min-width: 0; }
.fg-time  { flex: 0 0 140px; position: relative; min-width: 0; }
.fg-sel   { position: relative; }

/* INPUTS */
.form-input {
  width: 100%;
  padding: 11px 15px;
  border: 1.5px solid #d0d5e0;
  border-radius: 6px;
  font-size: 13.5px;
  color: #333;
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
  box-sizing: border-box;
}
.form-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(245,166,35,0.12);
}
.form-input::placeholder { color: #aab0bf; }

.form-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 42px;
}
.form-textarea { resize: vertical; min-height: 90px; }

/* ── DATE PICKER INPUT ──────────────────────────
   FIX: padding-right so text isn't hidden under icon button
   FIX: pre-filled auto-date has a subtle green tint
   ────────────────────────────────────────────── */
.date-picker-input {
  cursor: pointer;
  padding-right: 46px;
  /* subtle indicator that a date is auto-set */
  color: #333;
}
/* When a value is present (auto-set or user-picked) show it clearly */
.date-picker-input:not(:placeholder-shown) {
  border-color: #b8d44a;
  background: #fafff0;
}
.date-picker-input:not(:placeholder-shown):focus {
  border-color: var(--color-primary);
  background: #fff;
}

/* ── DATE / TIME ICON STRIP ─────────────────────
   General fi-icon: pointer-events none (decoration only)
   Exception: .date-icon-btn must be clickable
   ────────────────────────────────────────────── */
.fg-date .fi-icon,
.fg-time .fi-icon {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 40px;
  background: var(--color-primary);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  border-radius: 0 6px 6px 0;
  color: #fff;
  font-size: 13px;
  pointer-events: none;   /* default: decoration */
  gap: 1px;
  z-index: 1;
}

/* FIX: calendar toggle button must be clickable */
.date-icon-btn {
  pointer-events: all !important;
  cursor: pointer;
}

.fi-date { padding-right: 46px; }
.fi-sel  { padding-right: 46px; }

/* SELECT arrow strip */
.fg-sel .fi-icon,
.form-row-3 .fg-sel .fi-icon {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 36px;
  background: var(--color-primary);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  border-radius: 0 6px 6px 0;
  color: #fff;
  font-size: 10px;
  pointer-events: none;
  gap: 1px;
}
.fi-icon-sel {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 36px;
  background: var(--color-primary);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  border-radius: 0 6px 6px 0;
  color: #fff;
  font-size: 10px;
  pointer-events: none;
  gap: 1px;
}

/* VIA */
.via-wrap { margin-bottom: 12px; }
.via-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: #e0e3ea; color: #444;
  border: none; border-radius: 20px;
  padding: 7px 16px; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: background 0.2s;
}
.via-btn:hover { background: #d0d3dc; }
.via-input-row {
  display: flex; align-items: center; gap: 8px;
}
.via-input-row .form-input { flex: 1; }
.via-remove {
  width: 32px; height: 32px; border-radius: 50%;
  border: none; background: #eee; color: #666;
  cursor: pointer; display: flex; align-items: center;
  justify-content: center; font-size: 12px; flex-shrink: 0;
}
.via-remove:hover { background: #e0e0e0; }

/* DIVIDER */
.form-divider {
  height: 3px;
  background: linear-gradient(90deg, #7db72f 0%, #a5c615 50%, #7db72f 100%);
  border-radius: 2px;
  margin: 18px 0;
}

/* TOGGLES */
.form-toggles {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}
.toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.toggle-switch {
  position: relative;
  width: 42px; height: 22px;
  flex-shrink: 0;
}
/* .toggle-switch input {
  opacity: 0; width: 0; height: 0;
} */

.toggle-switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 22px;
  transition: background 0.25s;
  cursor: pointer;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s;
}
.toggle-switch input:checked + .toggle-slider {
  background: var(--color-primary);
}
.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
}
.toggle-label {
  font-size: 13px;
  color: #444;
  line-height: 1.5;
}
.toggle-link {
  color: #2563eb;
  text-decoration: underline;
}
.toggle-extra {
  padding-left: 54px;
  margin-top: -6px;
}

/* FORM FOOTER */
.form-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 4px;
}
.form-notice {
  font-size: 13px; color: #333;
}
.btn-submit {
  background: #8ab820;
  color: #fff;
  border: none;
  padding: 13px 34px;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-size: 14px; font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 4px 14px rgba(138,184,32,0.35);
}
.btn-submit:hover {
  background: #79a518;
  transform: translateY(-2px);
}

/* ============================================
   RESPONSIVE — TABLET  (≤ 992px)
   ============================================ */
@media (max-width: 992px) {
  .enquiry-section { padding: 36px 0 52px; }

  .enquiry-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 24px 24px 18px;
  }
  .journey-tabs { align-self: flex-start; }
  .enquiry-form { padding: 18px 24px 26px; }

  .fg-wide { flex: 1 1 100%; }
  .fg-date { flex: 1 1 calc(58% - 5px); }
  .fg-time { flex: 1 1 calc(42% - 5px); }

  .form-row-3 .form-group { flex: 1 1 calc(50% - 6px); }
  .form-row-2 .form-group { flex: 1 1 calc(50% - 6px); }
}

/* ============================================
   RESPONSIVE — MOBILE  (≤ 640px)
   ============================================ */
@media (max-width: 640px) {
  .enquiry-section { padding: 20px 0 36px; }
  .enquiry-card { border-radius: 8px; }

  .enquiry-card-header { padding: 16px 16px 12px; gap: 10px; }
  .enquiry-card-title h2 { font-size: 16px; }
  .enquiry-card-title h2 span { font-size: 13px; }
  .journey-tabs { width: 100%; }
  .journey-tab { flex: 1; text-align: center; padding: 9px 8px; font-size: 12.5px; }

  .enquiry-form { padding: 14px 16px 20px; }
  .form-row { gap: 8px; margin-bottom: 9px; }

  .fg-wide { flex: 1 1 100%; }
  .fg-date { flex: 1 1 calc(58% - 4px); }
  .fg-time { flex: 1 1 calc(42% - 4px); }

  .form-row-3 .form-group { flex: 1 1 100%; }
  .form-row-2 .form-group { flex: 1 1 100%; }

  .form-input { padding: 12px 13px; font-size: 14px; }
  .form-select { padding-right: 40px; }

  .cal-popup {
    width: calc(100vw - 40px);
    max-width: 270px;
    left: 0;
  }

  .via-btn { font-size: 12.5px; padding: 6px 13px; }

  .toggle-extra { padding-left: 0; }
  .toggle-label { font-size: 12.5px; }

  .form-footer-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .btn-submit { text-align: center; width: 100%; }

  .enq-info-section { padding: 40px 0 48px; }
  .enq-info-grid { gap: 32px; }
  .enq-features { gap: 16px; }
  .enq-contact-items { gap: 16px; }
  .enq-call-btn { width: 100%; justify-content: center; }
}

/* ============================================
   RESPONSIVE — MOBILE SMALL  (≤ 380px)
   ============================================ */
@media (max-width: 380px) {
  .enquiry-card-header { padding: 14px 12px 10px; }
  .enquiry-form { padding: 10px 12px 16px; }
  .enquiry-card-title h2 { font-size: 15px; }
  .journey-tab { font-size: 12px; padding: 8px 4px; }
  .form-input { font-size: 13.5px; padding: 11px 11px; }

  .cal-popup { width: calc(100vw - 28px); max-width: 250px; }

  .enq-feature-icon,
  .enq-contact-icon { width: 38px; height: 38px; font-size: 15px; }
}

/* ============================================
   ENQ INFO SECTION (Why Choose Us + Contact)
   ============================================ */
.enq-info-section {
  background: var(--color-light, #f5f6fa);
  padding: 72px 0 80px;
  border-top: 1px solid #e8eaf0;
}

.enq-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.enq-info-label {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.enq-info-label::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}

.enq-info-title {
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 800;
  color: var(--color-dark);
  line-height: 1.2;
  margin-bottom: 14px;
}
.enq-info-title span { color: var(--color-primary); }

.enq-info-desc {
  font-size: 14.5px;
  color: var(--color-text-muted, #666);
  line-height: 1.75;
  margin-bottom: 32px;
}

.enq-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.enq-feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.enq-feature-icon {
  width: 46px;
  height: 46px;
  background: var(--color-orange-light, #fff4e0);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 18px;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}
.enq-feature-item:hover .enq-feature-icon {
  background: var(--color-primary);
  color: #fff;
}
.enq-feature-item strong {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-dark);
  display: block;
  margin-bottom: 3px;
}
.enq-feature-item p {
  font-size: 13px;
  color: var(--color-text-muted, #777);
  line-height: 1.55;
  margin: 0;
}

.enq-contact-items {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 32px;
}
.enq-contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.enq-contact-icon {
  width: 46px;
  height: 46px;
  background: var(--color-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 17px;
  flex-shrink: 0;
}
.enq-contact-label {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 3px;
}
.enq-contact-value {
  font-size: 14px;
  color: var(--color-dark);
  font-weight: 500;
  display: block;
  transition: color 0.2s;
}
a.enq-contact-value:hover { color: var(--color-primary); }

.enq-call-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-primary);
  color: #fff;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(245,166,35,0.35);
}
.enq-call-btn:hover {
  background: var(--color-primary-dark, #d48c00);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,166,35,0.4);
}

@media (max-width: 992px) {
  .enq-info-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* ============================================
   CUSTOM CALENDAR POPUP
   ============================================ */
.cal-popup {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 9999;
  background: #fff;
  border: 1px solid #e0e3ea;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  width: 242px;
  padding: 0;
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: calFadeIn 0.16s ease;
}
.cal-popup.open { display: flex; }

@keyframes calFadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cal-month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 8px;
  border-bottom: 1px solid #f0f2f5;
}
.cal-month-label {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: #1a2540;
}
.cal-nav-btn {
  width: 26px; height: 26px;
  border: none; background: none;
  cursor: pointer; border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  color: #555; font-size: 11px;
  transition: background 0.15s;
}
.cal-nav-btn:hover { background: #f0f2f5; }

.cal-day-names {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 6px 8px 2px;
}
.cal-day-name {
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  color: #bbb;
  padding: 2px 0;
}

.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 2px 8px 10px;
  gap: 1px;
}
.cal-day {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.cal-day:hover:not(.disabled):not(.other-month) { background: #f0f2f5; }
.cal-day.today {
  border: 2px solid #a5c615;
  color: #1a2540;
  font-weight: 700;
}
.cal-day.selected {
  background: #a5c615;
  color: #fff;
  font-weight: 700;
}
.cal-day.selected.today { border-color: transparent; }
.cal-day.other-month { color: #ddd; pointer-events: none; }
.cal-day.disabled { color: #e0e0e0; pointer-events: none; cursor: default; }

.fg-date { position: relative; }