/* ============================================================
   Vacation Booking Widget — refined natural aesthetic
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600&family=Jost:wght@300;400;500&display=swap');

:root {
  --vb-sand:     #f7f3ee;
  --vb-parchment:#ede8e0;
  --vb-stone:    #c9bfb0;
  --vb-earth:    #7c6a55;
  --vb-forest:   #2a4a35;
  --vb-dark:     #1c1c1c;
  --vb-white:    #ffffff;
  --vb-red:      #c0392b;
  --vb-radius:   10px;
  --vb-shadow:   0 8px 40px rgba(0,0,0,.10);
  --vb-font-body: 'Jost', sans-serif;
  --vb-font-head: 'Playfair Display', serif;
  --vb-transition: .22s ease;
}

.vb-widget {
  font-family: var(--vb-font-body);
  max-width: 640px;
  margin: 0 auto;
  background: var(--vb-white);
  border-radius: var(--vb-radius);
  box-shadow: var(--vb-shadow);
  overflow: visible;
  color: var(--vb-dark);
}

.vb-step {
  padding: 36px 40px 40px;
}

.vb-heading {
  font-family: var(--vb-font-head);
  font-size: 22px;
  font-weight: 600;
  color: var(--vb-forest);
  margin: 0 0 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--vb-parchment);
}

.vb-back {
  background: none;
  border: none;
  font-family: var(--vb-font-body);
  font-size: 13px;
  color: var(--vb-earth);
  cursor: pointer;
  padding: 0 0 20px;
  display: block;
  letter-spacing: .02em;
  transition: color var(--vb-transition);
}
.vb-back:hover { color: var(--vb-forest); }

/* ---- Fields ---- */
.vb-field { display: flex; flex-direction: column; gap: 7px; flex: 1; }
.vb-field label {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--vb-earth);
}
.vb-req { color: var(--vb-red); }

.vb-field input,
.vb-field select,
.vb-field textarea {
  font-family: var(--vb-font-body);
  font-size: 15px;
  padding: 12px 14px;
  border: 1.5px solid var(--vb-parchment);
  border-radius: 7px;
  background: var(--vb-sand);
  color: var(--vb-dark);
  transition: border-color var(--vb-transition), box-shadow var(--vb-transition);
  outline: none;
  width: 100%;
  box-sizing: border-box;
}
.vb-field input:focus,
.vb-field select:focus,
.vb-field textarea:focus {
  border-color: var(--vb-forest);
  box-shadow: 0 0 0 3px rgba(42,74,53,.10);
  background: var(--vb-white);
}

.vb-date-input { cursor: pointer; }

/* ---- Date row ---- */
.vb-dates-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 20px;
}
.vb-arrow {
  font-size: 18px;
  color: var(--vb-stone);
  padding-bottom: 12px;
  flex-shrink: 0;
}

/* ---- Guests inline ---- */
.vb-field--inline {
  flex-direction: row;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.vb-field--inline label { white-space: nowrap; margin: 0; }
.vb-field--inline select { width: auto; }

/* ---- Quote ---- */
.vb-quote {
  background: var(--vb-sand);
  border: 1px solid var(--vb-parchment);
  border-radius: var(--vb-radius);
  padding: 18px 20px;
  margin-bottom: 24px;
  animation: vbFadeIn .3s ease;
}
.vb-quote__breakdown { font-size: 14px; color: #555; margin-bottom: 12px; }
.vb-quote__breakdown div { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px dashed var(--vb-parchment); }
.vb-quote__breakdown div:last-child { border-bottom: none; }
.vb-quote__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  border-top: 1.5px solid var(--vb-stone);
  padding-top: 12px;
  margin-top: 4px;
}
.vb-quote__total strong { font-size: 20px; color: var(--vb-forest); font-family: var(--vb-font-head); }

/* ---- Form rows ---- */
.vb-form-row { display: flex; gap: 16px; margin-bottom: 16px; }
.vb-form-row .vb-field { flex: 1; }
.vb-field { margin-bottom: 16px; }
.vb-form-row .vb-field { margin-bottom: 0; }
.vb-field:last-child { margin-bottom: 0; }

/* ---- Summary ---- */
.vb-summary {
  background: var(--vb-sand);
  border-radius: 7px;
  padding: 14px 18px;
  font-size: 14px;
  color: #555;
  margin-bottom: 24px;
  line-height: 1.7;
}
.vb-summary strong { color: var(--vb-dark); }

/* ---- Buttons ---- */
.vb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--vb-font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .04em;
  padding: 14px 32px;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  transition: background var(--vb-transition), transform var(--vb-transition);
  width: 100%;
}
.vb-btn--primary {
  background: var(--vb-forest);
  color: var(--vb-white);
}
.vb-btn--primary:hover {
  background: #1e3829;
  transform: translateY(-1px);
}
.vb-btn--primary:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}
.vb-btn--pay { margin-top: 20px; font-size: 16px; padding: 16px; }

/* ---- Spinner ---- */
.vb-spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: vbSpin .7s linear infinite;
}
@keyframes vbSpin { to { transform: rotate(360deg); } }

/* ---- Message ---- */
.vb-message {
  font-size: 13.5px;
  border-radius: 6px;
  margin-bottom: 16px;
  padding: 0;
  min-height: 0;
  transition: all .2s ease;
}
.vb-message.is-error   { background: #fce8e6; color: #a42724; padding: 11px 14px; }
.vb-message.is-success { background: #e6f4ea; color: #2a6041; padding: 11px 14px; }

/* ---- Stripe payment element container ---- */
.vb-payment-element {
  border: 1.5px solid var(--vb-parchment);
  border-radius: 7px;
  padding: 16px;
  background: var(--vb-sand);
  margin-bottom: 4px;
  min-height: 60px;
}

/* ---- Secure note ---- */
.vb-secure-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #aaa;
  margin-top: 12px;
  text-align: center;
  justify-content: center;
}

/* ---- Confirmation ---- */
.vb-confirmation { text-align: center; padding: 8px 0 16px; }
.vb-confirmation__icon {
  width: 60px; height: 60px;
  background: var(--vb-forest);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 20px;
  animation: vbPop .4s cubic-bezier(.175,.885,.32,1.275);
}
.vb-confirmation h2 { font-family: var(--vb-font-head); font-size: 24px; color: var(--vb-forest); margin: 0 0 12px; }
.vb-confirm-email { font-size: 14px; color: #666; margin-bottom: 20px; }
.vb-confirmation .vb-summary { text-align: left; }

@keyframes vbFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes vbPop    { from { opacity: 0; transform: scale(.5); }       to { opacity: 1; transform: scale(1); } }

/* ---- Responsive ---- */
@media (max-width: 520px) {
  .vb-step { padding: 24px 20px 28px; }
  .vb-dates-row { flex-direction: column; }
  .vb-arrow { display: none; }
  .vb-form-row { flex-direction: column; }
}

/* ---- Flatpickr overrides to match theme ---- */
.flatpickr-calendar { font-family: var(--vb-font-body) !important; border-radius: var(--vb-radius) !important; box-shadow: var(--vb-shadow) !important; }
.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange { background: var(--vb-forest) !important; border-color: var(--vb-forest) !important; }
.flatpickr-day.inRange { background: var(--vb-parchment) !important; border-color: var(--vb-parchment) !important; color: var(--vb-dark) !important; box-shadow: -5px 0 0 var(--vb-parchment), 5px 0 0 var(--vb-parchment) !important; }
.flatpickr-day:hover { background: var(--vb-sand) !important; }

/* ---- Theme compatibility: force parent containers to expand with widget ---- */
.vb-widget,
.vb-widget * {
  box-sizing: border-box;
}

/* Override any theme section that clips the widget */
.vb-widget {
  position: relative;
  z-index: 10;
  height: auto !important;
  min-height: 0 !important;
}

/* Force all ancestor wrappers that Elementor / WPBakery / block editor
   commonly constrain to expand naturally */
.elementor-widget-shortcode,
.elementor-widget-container,
.elementor-section,
.elementor-column,
.elementor-column-wrap,
.elementor-widget-wrap,
.wp-block-shortcode,
.entry-content > *,
.fl-module-content {
  overflow: visible !important;
  height: auto !important;
  min-height: 0 !important;
}
