/**
 * Plan My Dream Vacation Widget Styles
 *
 * Preserves the authentic design from design-inputs/09-plan-my-vacation-form.html:
 * Flight-plan progress track with gliding airplane marker, multi-step transition,
 * destination chips, budget option cards, month selector, traveler stepper,
 * occasion icons, contact inputs, and success screen.
 *
 * @package Universal_Elementor_Engine\Widgets\Plan_My_Vacation
 */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,600;1,9..144,500&family=Manrope:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

.pdv-section {
  --pdv-white: #ffffff;
  --pdv-bg: #fbfcfe;
  --pdv-ink: #0a2540;
  --pdv-ink-soft: #5b6b7d;
  --pdv-blue: #0064c1;
  --pdv-blue-deep: #004a91;
  --pdv-blue-tint: #eaf3fc;
  --pdv-orange: #f8753a;
  --pdv-orange-deep: #d95f28;
  --pdv-orange-tint: #fff1e9;
  --pdv-line: #e4ebf3;

  --pdv-font-display: 'Fraunces', 'Georgia', serif;
  --pdv-font-body: 'Manrope', -apple-system, sans-serif;
  --pdv-font-mono: 'Space Mono', monospace;

  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--pdv-bg);
  color: var(--pdv-ink);
  font-family: var(--pdv-font-body);
  padding: clamp(48px, 6vw, 84px) 20px;
  box-sizing: border-box;
}

.pdv-section * {
  box-sizing: border-box;
}

/* ==========================================================================
   Width Modes
   ========================================================================== */
.pdv-section.pdv-width-full {
  width: 100vw !important;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  max-width: 100vw !important;
}

.pdv-section.pdv-width-viewport {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.pdv-section.pdv-width-boxed {
  max-width: var(--pdv-max-width, 680px);
  margin-left: auto !important;
  margin-right: auto !important;
}

/* ==========================================================================
   Height Modes
   ========================================================================== */
.pdv-section.pdv-height-auto {
  min-height: auto;
}

.pdv-section.pdv-height-viewport {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pdv-section.pdv-height-custom {
  min-height: var(--pdv-min-height, 680px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ==========================================================================
   Ambient Glows & Layout Wrapper
   ========================================================================== */
.pdv-glow {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}

.pdv-glow-a {
  width: 480px;
  height: 480px;
  top: -220px;
  left: -140px;
  background: radial-gradient(circle, rgba(0, 100, 193, 0.13), transparent 70%);
}

.pdv-glow-b {
  width: 420px;
  height: 420px;
  bottom: -200px;
  right: -120px;
  background: radial-gradient(circle, rgba(248, 117, 58, 0.12), transparent 70%);
}

.pdv-wrap {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 0 auto;
  width: 100%;
}

/* ==========================================================================
   Card Container & Headings
   ========================================================================== */
.pdv-card {
  background: var(--pdv-white);
  border: 1px solid var(--pdv-line);
  border-radius: 22px;
  padding: clamp(28px, 4vw, 44px);
  box-shadow: 0 20px 50px rgba(10, 37, 64, 0.07);
}

.pdv-card-head {
  text-align: center;
  margin-bottom: 28px;
}

.pdv-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--pdv-font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pdv-blue);
  margin-bottom: 14px;
}

.pdv-eyebrow::before {
  content: "";
  width: 16px;
  height: 1px;
  background: linear-gradient(90deg, var(--pdv-blue), var(--pdv-orange));
}

.pdv-title {
  font-family: var(--pdv-font-display);
  font-weight: 500;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--pdv-ink);
}

.pdv-title em {
  font-style: italic;
  color: var(--pdv-orange);
  font-weight: 500;
}

.pdv-sub {
  margin-top: 8px;
  margin-bottom: 0;
  font-size: 14px;
  color: var(--pdv-ink-soft);
  line-height: 1.5;
}

/* ==========================================================================
   Flight-Plan Progress Track & Plane Marker
   ========================================================================== */
.pdv-progress {
  margin-bottom: 32px;
}

.pdv-progress-track {
  position: relative;
  height: 3px;
  background: var(--pdv-line);
  border-radius: 2px;
}

.pdv-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 16.666%;
  background: linear-gradient(90deg, var(--pdv-blue), var(--pdv-orange));
  border-radius: 2px;
  transition: width 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.pdv-progress-plane {
  position: absolute;
  top: 50%;
  left: 16.666%;
  transform: translate(-50%, -50%) rotate(90deg);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pdv-orange);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(248, 117, 58, 0.35);
  transition: left 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ==========================================================================
   Multi-Step Question Containers & Animation
   ========================================================================== */
.pdv-form {
  position: relative;
}

.pdv-step {
  display: none;
}

.pdv-step.is-active {
  display: block;
  animation: pdv-fade 0.35s ease;
}

@keyframes pdv-fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pdv-step-label {
  font-family: var(--pdv-font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pdv-ink-soft);
}

.pdv-q {
  font-family: var(--pdv-font-display);
  font-weight: 500;
  font-size: clamp(19px, 2.4vw, 23px);
  margin: 8px 0 20px;
  line-height: 1.3;
  color: var(--pdv-ink);
}

/* Inputs */
.pdv-input {
  width: 100%;
  font-family: var(--pdv-font-body);
  font-size: 15px;
  padding: 13px 16px;
  border: 1.5px solid var(--pdv-line);
  border-radius: 12px;
  color: var(--pdv-ink);
  background: var(--pdv-bg);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pdv-input::placeholder {
  color: #9aa8b6;
}

.pdv-input:focus {
  border-color: var(--pdv-blue);
  box-shadow: 0 0 0 3px rgba(0, 100, 193, 0.12);
}

/* Step 1: Destination Chips */
.pdv-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.pdv-chip {
  font-family: var(--pdv-font-body);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1.5px solid var(--pdv-line);
  background: var(--pdv-white);
  color: var(--pdv-ink-soft);
  cursor: pointer;
  transition: all 0.2s ease;
}

.pdv-chip:hover {
  border-color: var(--pdv-blue);
  color: var(--pdv-blue);
}

.pdv-chip.is-selected {
  background: var(--pdv-blue);
  border-color: var(--pdv-blue);
  color: #fff;
}

/* Step 2: Budget Option Cards */
.pdv-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pdv-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
  padding: 16px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--pdv-line);
  background: var(--pdv-white);
  cursor: pointer;
  transition: all 0.2s ease;
}

.pdv-option:hover {
  border-color: var(--pdv-blue);
}

.pdv-option.is-selected {
  border-color: var(--pdv-orange);
  background: var(--pdv-orange-tint);
}

.pdv-option-title {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--pdv-ink);
}

.pdv-option-desc {
  font-size: 12.5px;
  color: var(--pdv-ink-soft);
}

/* Step 3: Month Matrix & Flexible Check */
.pdv-months {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.pdv-month {
  font-family: var(--pdv-font-mono);
  font-size: 12.5px;
  font-weight: 700;
  padding: 12px 4px;
  border-radius: 10px;
  border: 1.5px solid var(--pdv-line);
  background: var(--pdv-white);
  color: var(--pdv-ink-soft);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.pdv-month:hover {
  border-color: var(--pdv-blue);
  color: var(--pdv-blue);
}

.pdv-month.is-selected {
  background: var(--pdv-blue);
  border-color: var(--pdv-blue);
  color: #fff;
}

.pdv-flex-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--pdv-ink-soft);
  cursor: pointer;
}

.pdv-flex-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--pdv-blue);
  cursor: pointer;
}

/* Step 4: Travelers Stepper */
.pdv-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 12px 0;
}

.pdv-stepper-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--pdv-line);
  background: var(--pdv-blue-tint);
  color: var(--pdv-blue);
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.pdv-stepper-btn:hover {
  background: var(--pdv-blue);
  color: #fff;
}

.pdv-stepper-value {
  font-family: var(--pdv-font-mono);
  font-size: 30px;
  font-weight: 700;
  min-width: 40px;
  text-align: center;
  color: var(--pdv-ink);
}

.pdv-stepper-caption {
  display: block;
  text-align: center;
  font-size: 12.5px;
  color: var(--pdv-ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--pdv-font-mono);
}

/* Step 5: Trip Type Occasion Cards */
.pdv-options-icon {
  grid-template-columns: repeat(3, 1fr);
}

.pdv-options-icon .pdv-option {
  align-items: center;
  text-align: center;
}

.pdv-option-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--pdv-blue-tint);
  color: var(--pdv-blue);
  margin-bottom: 4px;
}

.pdv-option.is-selected .pdv-option-icon {
  background: var(--pdv-orange);
  color: #fff;
}

/* Step 6: Contact Inputs */
.pdv-field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.pdv-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--pdv-ink-soft);
  margin-bottom: 6px;
}

/* Error message */
.pdv-error {
  display: none;
  font-size: 13px;
  color: var(--pdv-orange-deep);
  margin: 12px 0 0;
  font-weight: 600;
  text-align: center;
}

.pdv-error.is-visible {
  display: block;
}

/* Form Navigation */
.pdv-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
}

.pdv-btn {
  font-family: var(--pdv-font-body);
  font-size: 14.5px;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pdv-btn-ghost {
  background: transparent;
  color: var(--pdv-ink-soft);
  padding-left: 8px;
}

.pdv-btn-ghost:hover {
  color: var(--pdv-ink);
}

.pdv-btn-ghost.is-hidden {
  visibility: hidden;
}

.pdv-btn-primary {
  background: var(--pdv-blue);
  color: #fff;
  margin-left: auto;
  box-shadow: 0 10px 24px rgba(0, 100, 193, 0.25);
}

.pdv-btn-primary:hover {
  background: var(--pdv-blue-deep);
}

.pdv-btn-primary.pdv-btn-submit {
  background: var(--pdv-orange);
  box-shadow: 0 10px 24px rgba(248, 117, 58, 0.3);
}

.pdv-btn-primary.pdv-btn-submit:hover {
  background: var(--pdv-orange-deep);
}

.pdv-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

/* ==========================================================================
   Success Step
   ========================================================================== */
.pdv-step-success {
  text-align: center;
  padding: 12px 0 4px;
}

.pdv-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--pdv-blue-tint);
  color: var(--pdv-blue);
  margin-bottom: 14px;
}

.pdv-step-success .pdv-q {
  margin-bottom: 8px;
}

.pdv-success-msg {
  font-size: 14.5px;
  color: var(--pdv-ink-soft);
  line-height: 1.6;
  margin: 0 0 16px;
}

.pdv-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25d366;
  color: #ffffff;
  font-family: var(--pdv-font-body);
  font-size: 14px;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: 100px;
  text-decoration: none;
  margin-top: 10px;
  transition: all 0.2s ease;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.3);
}

.pdv-whatsapp-btn:hover {
  background: #1ebc59;
  color: #ffffff;
  transform: translateY(-1px);
}

/* ==========================================================================
   Responsive Breakpoints & Accessibility
   ========================================================================== */
@media (max-width: 520px) {
  .pdv-card {
    padding: 24px 18px;
  }
  .pdv-options-icon {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .pdv-options-icon .pdv-option {
    padding: 12px 8px;
  }
  .pdv-options {
    grid-template-columns: 1fr;
  }
  .pdv-months {
    grid-template-columns: repeat(3, 1fr);
  }
  .pdv-nav {
    margin-top: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pdv-step.is-active {
    animation: none;
  }
  .pdv-progress-fill,
  .pdv-progress-plane {
    transition: none;
  }
}
