/* ===============================
   ENQUIRY FORM — PREMIUM DESIGN
================================ */

.enquiry-box {
  background: #fff;
  border-radius: 18px;
  padding: 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  position: relative;
  overflow: hidden;
  border: 2px solid #48bb78;
}

/* ===== ENQUIRY HEADER ===== */
.enquiry-head {
  background: linear-gradient(135deg, #1a365d 0%, #234876 100%);
  padding: 20px 20px 18px;
  text-align: center;
}

.enquiry-head h2 {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px;
}

.enquiry-head p {
  color: #48bb78;
  font-size: 13px;
  font-weight: 600;
  margin: 0;
}

/* ===== FORM BODY ===== */
#enquiryForm {
  padding: 20px;
}

/* ===== FORM CONTAINER ===== */
#enquiryForm {
  position: relative;
  overflow: visible; /* 🔑 allow errors to expand */
}

/* ===== FORM STEPS ===== */
.form-step {
  position: relative;              /* 🔑 KEY FIX */
  width: 100%;
  opacity: 0;
  transform: translateX(40px);
  pointer-events: none;
  transition: transform .35s ease, opacity .35s ease;
}

/* Hide inactive step from layout & clicks */
.form-step:not(.active) {
  height: 0;
  overflow: hidden;
}

.form-step.active {
  position: relative;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.form-step.exit-left {
  transform: translateX(-40px);
  opacity: 0;
}

.form-step.exit-right {
  transform: translateX(40px);
  opacity: 0;
}

/* ===== FIELDS ===== */
.form-group {
  margin-bottom: 14px;
  position: relative;
}

.form-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
}

label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

input,
textarea,
select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  font-size: 14px;
  background: #fff;
}

textarea {
  min-height: 80px;
}

/* ===== BUTTONS ===== */
.btn-primary {
  width: 100%;
  height: 48px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: 600;
}

.form-back {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 12px;
  cursor: pointer;
}

/* ===== COUNTRY DROPDOWN ===== */
.country-dropdown-wrapper {
  position: relative;
  overflow: visible !important;
}

.country-dropdown-wrapper .dropdown-arrow {
  position: absolute;
  right: 14px;
  top: 38px;
  color: #94a3b8;
  pointer-events: none;
  font-size: 12px;
}

.enquiry-box .country-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 180px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  z-index: 9999;
  display: none !important;
}

.enquiry-box .country-dropdown.open {
  display: block !important;
}

.country-dropdown .country-option {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 13px;
  border-bottom: 1px solid #f0f0f0;
}

.country-dropdown .country-option:hover,
.country-dropdown .country-option.highlighted {
  background: #f0fdf4;
}

.country-dropdown .country-option:last-child {
  border-bottom: none;
}

.country-dropdown .country-option.no-results {
  color: #94a3b8;
  cursor: default;
}

/* ===== PHONE ROW ===== */
.phone-row {
  display: flex !important;
  gap: 10px;
}

.phone-row .code-field {
  width: 85px;
  min-width: 85px;
  flex-shrink: 0;
}

.phone-row .code-field select {
  width: 100%;
  padding: 10px 6px;
  font-size: 13px;
  -webkit-appearance: none;
  appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='%2394a3b8' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E") no-repeat right 8px center;
  background-size: 10px;
  padding-right: 24px;
}

.phone-row .phone-field {
  flex: 1;
}

/* ===== OLD COUNTRY AUTOCOMPLETE (LEGACY) ===== */
.country-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  background: #fff;
  border-radius: 10px;
  list-style: none;
  padding: 6px;
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
  z-index: 9999;
  display: none;
}

/* ===== DATE ===== */
.date-wrap {
  position: relative;
}

#dateReal {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.flatpickr-calendar {
  z-index: 100000 !important;
}

/* ===== SKELETON ===== */
.form-skeleton {
  display: none;
  height: 260px;
  border-radius: 12px;
  background: linear-gradient(
    90deg,
    #f1f5f9 25%,
    #e5e7eb 37%,
    #f1f5f9 63%
  );
  background-size: 400% 100%;
  animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}


.enquiry-head {
  margin-bottom: 18px;
}

.enquiry-head h2 {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 6px;
}

.enquiry-head p {
  font-size: 14.5px;
  color: #475569;
  line-height: 1.55;
}


.form-trust {
  margin-top: 10px;
  font-size: 13px;
  color: #059669;
  text-align: center;
  font-weight: 500;
}

/* 🔒 HARD SAFETY: prevent hidden step from catching clicks */
.form-step:not(.active) {
  pointer-events: none;
}

/* ===== INPUT FOCUS UX ===== */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(37,99,235,.12);
}

/* ===== CTA MICRO-INTERACTION ===== */
.btn-primary {
  transition: transform .15s ease, box-shadow .15s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,.15);
}


/* ===============================
   STEP 2 — COUNTER LAYOUT FIX
================================ */

/* Row container */
.counter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

/* Label on left */
.counter-row > label {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}

/* Counter group */
.counter {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* + / - buttons */
.counter button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}

/* Number input */
.counter input {
  width: 48px;
  height: 34px;
  text-align: center;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: #f8fafc;
  font-weight: 600;
  pointer-events: none;
}

/* Hotel select spacing */
.form-step[data-step="2"] .form-group {
  margin-top: 16px;
}

/* Back button spacing */
.form-back {
  display: inline-block;
  margin-bottom: 14px;
}


/* ===============================
   FORM VALIDATION — INLINE ERRORS
================================ */

.form-group.error input,
.form-group.error textarea,
.form-group.error select {
  border-color: #dc2626;
  background: #fff5f5;
}

.form-group small.error {
  display: none;
  font-size: 12px;
  color: #dc2626;
  margin-top: 4px;
}

.form-group.error small.error {
  display: block;
}



/* ===============================
   MOBILE ZOOM PREVENTION (CRITICAL)
================================ */
@media (max-width: 1024px) {
  input,
  textarea,
  select {
    font-size: 16px; /* 🔑 Prevent mobile zoom */
  }
}

input,
textarea,
select {
  -webkit-appearance: none;
  appearance: none;
}





