/* ========================================
   CYO Funnel Styles
   ======================================== */


/* ----------------------------------------
   Two-Column Desktop Layout
   ---------------------------------------- */

/* Override body grid from old layout system */
html body.page-create-your-own-itinerary {
  display: block !important;
  grid-template-columns: none !important;
  grid-template-areas: none !important;
  padding-top: 0 !important;
}

/* Hide footer on CYO funnel pages */
.page-create-your-own-itinerary .section-accolades,
.page-create-your-own-itinerary > footer {
  display: none !important;
}

/* Override base.css .section padding within CYO layout */
.cyo-right-panel .section {
  padding: 0;
}

/* Disable Lenis smooth scroll on CYO pages — desktop only */
@media screen and (min-width: 1024px) {
  html:has(body.page-create-your-own-itinerary) {
    overflow: hidden !important;
  }

  html:has(body.page-create-your-own-itinerary) .lenis,
  html:has(body.page-create-your-own-itinerary) .lenis-smooth {
    scroll-behavior: auto !important;
  }
}

/* Fixed layout — pinned to viewport, immune to Lenis scroll */
.cyo-layout {
  position: fixed;
  top: 45px;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  overflow: hidden;
  z-index: 1;
}

.cyo-left-panel {
  position: relative;
  width: 45%;
  flex-shrink: 0;
  overflow: hidden;
}

.cyo-left-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Gradient overlay for testimonial readability */
.cyo-left-panel::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.55));
  z-index: 1;
  pointer-events: none;
}

.cyo-left-badge {
  display: none;
  position: absolute;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.cyo-left-badge img {
  max-width: 279px;
  height: auto;
}

.cyo-left-testimonial {
  position: absolute;
  bottom: 42px;
  left: 30px;
  right: 30px;
  z-index: 2;
}

.cyo-left-testimonial img {
  width: 100%;
  height: auto;
  display: block;
  top: -15px;
  position: relative;
}

.cyo-right-panel {
  flex: 1;
  padding: 40px 95px 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin-top: 55px;
}

/* Headers stay fixed at top — never scroll */
.cyo-stepper,
.cyo-step-label,
.cyo-step-heading,
.cyo-step-body {
  flex-shrink: 0;
}

/* Make form grow to fill remaining space; internal scroll wrapper handles overflow */
.cyo-right-panel .cyo-form {
  flex: 1;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden;
  min-height: 0;
}

/* Scrollable area inside form — everything except buttons */
.cyo-form-scroll {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  padding-bottom: 8px;
}


/* ----------------------------------------
   Progress Stepper
   ---------------------------------------- */

.cyo-stepper {
  display: flex;
  align-items: center;
  margin-bottom: 28px;
}

.cyo-step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.cyo-step-circle.completed {
  background: #6B7A0E;
  color: #fff;
}

.cyo-step-circle.active {
  background: #c0603a;
  color: #fff;
}

.cyo-step-circle.future {
  background: #d9d9d9;
  border: none;
  color: #1a1a1a;
}

.cyo-step-line {
  flex: 1;
  height: 1px;
  background: #ddd;
}

.cyo-step-line.completed {
  background: #6B7A0E;
}


/* ----------------------------------------
   Step Header
   ---------------------------------------- */

.cyo-step-label {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: #d54d33;
  /* OLD: font-size: 2em; */
  font-size: 2.3em;
  margin: 0 0 2px;
  font-weight: 400;
}

.cyo-step-heading {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  /* OLD: font-size: 2rem; */
  font-size: 2.3rem;
  line-height: 1.25;
  margin: 0 0 14px;
  color: #1a1a1a;
}

.cyo-step-body {
  /* OLD: font-size: 1.05rem; */
  font-size: 1.1rem;
  line-height: 1.65;
  color: #444;
  margin: 0 0 28px;
}

.cyo-price-highlight {
  color: #c0603a;
  font-weight: 600;
}


/* ----------------------------------------
   Form Styles
   ---------------------------------------- */

.cyo-form {
  max-width: 480px;
}

/* Form row — side-by-side fields on desktop */
.cyo-form-row {
  display: flex;
  gap: 16px;
}

/* Scroll wrapper — mirrors right-panel flex column for its children.
   On short viewports, becomes the scroll container (not the right panel,
   which would trigger WP header scroll detection). */
.cyo-right-scroll {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

@media screen and (max-height: 650px) {
  .cyo-step-body {
    margin-bottom: 0;
  }
  .cyo-right-panel {
    margin-top: 0;
    padding-top: 57px;
  }
  /* Enable scrolling inside the wrapper — right panel stays overflow:hidden */
  .cyo-right-scroll {
    overflow-y: auto;
  }
  /* Form must size to content inside scroll wrapper so overflow triggers */
  .cyo-right-scroll .cyo-form {
    flex: 0 0 auto !important;
    overflow: visible !important;
    min-height: auto !important;
  }
}

.cyo-form-row > .cyo-input-group {
  flex: 1;
  min-width: 0;
}

/* Override base.css .input-group display:table, float, and width rules */
.page-create-your-own-itinerary .cyo-form .input-group,
.page-create-your-own-itinerary .cyo-form .cyo-input-group {
  display: block !important;
  float: none !important;
  clear: none !important;
  margin-bottom: 0;
  position: relative;
  text-align: left;
  border-collapse: unset !important;
}

/* Respect inline display:none on JS-toggled fields (e.g. referral_name) */
.page-create-your-own-itinerary .cyo-form [style*="display:none"],
.page-create-your-own-itinerary .cyo-form [style*="display: none"] {
  display: none !important;
}

.cyo-form .cyo-input-group label {
  display: none;
}

/* Override base.css .input-group-select width: 200px */
.page-create-your-own-itinerary .cyo-form .input-group-select {
  display: block !important;
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
}

/* Override base.css .form-control display:table-cell and float */
.page-create-your-own-itinerary .cyo-form .form-control,
.page-create-your-own-itinerary .cyo-form input.form-control,
.page-create-your-own-itinerary .cyo-form select.form-control {
  display: block !important;
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
}

/* Override base.css .select-icon positioning for CYO page */
.page-create-your-own-itinerary .cyo-form .select-icon {
  position: absolute !important;
  z-index: 5;
}

.cyo-input-group {
  margin-bottom: 16px;
  position: relative;
}

.cyo-input {
  width: 100%;
  padding: 18px 20px;
  font-size: 1.1rem;
  color: #333;
  /* OLD: border: 1px solid #ddd; */
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  box-sizing: border-box;
  font-family: inherit;
}

.cyo-input::placeholder {
  color: #aaa;
  font-size: 1.1rem;
}

.cyo-input:focus,
.cyo-select:focus {
  outline: none;
  border-color: #c0603a;
}

.cyo-select-group {
  position: relative;
}

.cyo-select {
  width: 100%;
  height: auto;
  padding: 9px 20px;
  padding-right: 80px;
  font-size: 1.1rem !important;
  color: #333;
  /* OLD: border: 1px solid #ddd; */
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  font-family: inherit;
  box-sizing: border-box;
}

.cyo-select option[value=""] {
  color: #aaa;
}

/* Arrow icon — rightmost position, anchored to select not wrapper */
html body.page-create-your-own-itinerary .cyo-form .cyo-select-icon {
  position: absolute !important;
  right: 16px !important;
  top: 0 !important;
  bottom: 7px !important;
  transform: none !important;
  display: flex !important;
  align-items: center !important;
  color: #999;
  pointer-events: none;
  font-size: 0.9rem;
  z-index: 5;
}

/* Info (i) icon — left of arrow icon, centered vertically */
.cyo-info-icon {
  position: absolute;
  right: 42px;
  top:50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  background: #595750;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  font-style: italic;
  font-family: serif;
  cursor: pointer;
  z-index: 8;
  transition: background 0.2s ease;
}

.cyo-info-icon:hover {
  background: #c0603a;
}

/* Info icon — inline variant (step 3 price row) */
.cyo-info-icon.cyo-info-icon-inline {
  position: relative;
  right: auto;
  top: auto;
  transform: none;
  display: inline-flex;
  vertical-align: middle;
  margin-left: 6px;
  width: 18px;
  height: 18px;
  font-size: 0.65rem;
  color: #fff !important;
}

/* Popover / Tooltip — black bg, white text
   base.css has .popover .popover-content { background-color: #FFF; border: 1px solid #6B7A0E }
   and arrow colors with !important — must override aggressively */
.page-create-your-own-itinerary .popover {
  background: #1a1a1a !important;
  border: none !important;
  border-radius: 8px !important;
  max-width: 280px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.page-create-your-own-itinerary .popover .popover-content {
  color: #fff !important;
  font-family: 'General Sans', sans-serif !important;
  font-weight: 500 !important;
  font-size: 16px !important;
  line-height: 1.5;
  padding: 12px 16px;
  background-color: #1a1a1a !important;
  border: none !important;
  border-radius: 8px !important;
}

.page-create-your-own-itinerary .popover .popover-content p {
  color: #fff !important;
  font-family: 'General Sans', sans-serif !important;
  font-weight: 500 !important;
  font-size: 16px !important;
}

/* Arrow colors — must use !important to beat base.css */
.page-create-your-own-itinerary .popover.top > .arrow,
.page-create-your-own-itinerary .popover.top > .arrow::after {
  border-top-color: #1a1a1a !important;
}

.page-create-your-own-itinerary .popover.right > .arrow,
.page-create-your-own-itinerary .popover.right > .arrow::after {
  border-right-color: #1a1a1a !important;
}

.page-create-your-own-itinerary .popover.bottom > .arrow,
.page-create-your-own-itinerary .popover.bottom > .arrow::after {
  border-bottom-color: #1a1a1a !important;
}

.page-create-your-own-itinerary .popover.left > .arrow,
.page-create-your-own-itinerary .popover.left > .arrow::after {
  border-left-color: #1a1a1a !important;
}

/* Override branding.scss border on all CYO form inputs and selects (steps 1, 2, 6) */
html body.page-create-your-own-itinerary .form-itinerary .input-group input[type=text],
html body.page-create-your-own-itinerary .form-itinerary .input-group input[type=email],
html body.page-create-your-own-itinerary .form-itinerary .input-group select,
html body.page-create-your-own-itinerary .form-standard .input-group input[type=text],
html body.page-create-your-own-itinerary .form-standard .input-group input[type=email],
html body.page-create-your-own-itinerary .form-standard .input-group select {
  border: 1px solid #ccc !important;
  border-radius: 4px;
}

/* Override base.css .form-standard italic + font on inputs and selects */
html body.page-create-your-own-itinerary .cyo-form input[type=text],
html body.page-create-your-own-itinerary .cyo-form input[type=email],
html body.page-create-your-own-itinerary .cyo-form input[type=password],
html body.page-create-your-own-itinerary .form-itinerary .input-group input[type=text],
html body.page-create-your-own-itinerary .form-itinerary .input-group input[type=email],
html body.page-create-your-own-itinerary .form-standard .input-group input[type=text],
html body.page-create-your-own-itinerary .form-standard .input-group input[type=email] {
  font-family: 'General Sans', sans-serif !important;
  font-weight: 500 !important;
  font-style: normal !important;
  font-size: 1.1rem !important;
}

/* Placeholder color */
html body.page-create-your-own-itinerary .form-itinerary .input-group input[type=text]::placeholder,
html body.page-create-your-own-itinerary .cyo-form input::placeholder {
  /* OLD: color: #BEBCAA !important; */
  color: #8a8872 !important;
  font-family: inherit !important;
  font-weight: inherit !important;
  font-style: normal !important;
  opacity: 1;
}

/* Selects: dark text when a value is chosen, placeholder style for default */
html body.page-create-your-own-itinerary .form-itinerary .input-group select,
html body.page-create-your-own-itinerary .cyo-form select {
  color: #333 !important;
  font-family: 'General Sans', sans-serif !important;
  font-weight: 500 !important;
  font-style: normal !important;
}

html body.page-create-your-own-itinerary .cyo-form select:has(option[value=""]:checked) {
  /* OLD: color: #BEBCAA !important; */
  color: #8a8872 !important;
}


/* ----------------------------------------
   Buttons
   ---------------------------------------- */

/* Override base.css .button-group and WP theme padding — full-width border */
html body.page-create-your-own-itinerary .cyo-button-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  margin-top: auto;
  margin-left: -95px;
  margin-right: -95px;
  padding: 15px 95px 0;
  border-top: 1px solid #e0e0e0;
  flex-shrink: 0;
  text-align: right;
  clear: both;
  position: relative;
}

/* Override base.css .button-group .btn (width: 45%, max-width: 142px, margin: 0 10px 15px 0) */
html body.page-create-your-own-itinerary .cyo-button-group .btn {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
}

/* Hide loader inside button group — it shifts layout and appears out of place */
html body.page-create-your-own-itinerary .cyo-button-group .action-loading {
  display: none !important;
}

/* When error is present, move border from button group to error's bottom edge */
html body.page-create-your-own-itinerary .cyo-button-group:has(.action-error) {
  border-top: none !important;
  padding-top: 0 !important;
}

html body.page-create-your-own-itinerary .cyo-button-group .action-error {
  order: -1 !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding-bottom: 15px !important;
  border-bottom: 1px solid #e0e0e0 !important;
  text-align: left !important;
}

.cyo-btn-next,
.cyo-btn-next.btn.btn-accent {
  background: #d54d33;
  color: #fff;
  border: none;
  padding: 13.6px 44px;
  border-radius: 9999em;
  font-family: 'General Sans', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  letter-spacing: normal;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: color 0.2s cubic-bezier(0.7, 0, 0.3, 1);
}

.cyo-btn-next:hover {
  background: #b8432b;
}

.cyo-btn-back,
.cyo-btn-back.btn {
  background: #fff;
  color: #3f3d39;
  border: 1px solid #d0cec8;
  padding: 13.6px 44px;
  border-radius: 9999em;
  font-family: 'General Sans', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  letter-spacing: normal;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: border-color 0.2s cubic-bezier(0.7, 0, 0.3, 1);
}

.cyo-btn-back:hover {
  border-color: #999;
}


/* ----------------------------------------
   Layout offset for steps 3-6 (header2 sets body margin-top: 88px)
   ---------------------------------------- */

.cyo-layout.cyo-layout-step3,
.cyo-layout.cyo-layout-step4,
.cyo-layout.cyo-layout-step5,
.cyo-layout.cyo-layout-step6 {
  top: 88px;
}

/* iPad / narrow desktop — secondary top nav hidden, header is only ~45px */
@media screen and (min-width: 1024px) and (max-width: 1249px) {
  .cyo-layout.cyo-layout-step3,
  .cyo-layout.cyo-layout-step4,
  .cyo-layout.cyo-layout-step5,
  .cyo-layout.cyo-layout-step6 {
    top: 45px;
  }
}

/* Step 3: compact top */
.cyo-layout-step3 .cyo-right-panel {
  margin-top: 0;
  padding-top: 45px;
}

.cyo-layout-step3 .cyo-step-body {
  margin-bottom: 0;
}

/* Step 4: less top margin on right panel */
.cyo-layout-step4 .cyo-right-panel {
  margin-top: 5px;
}

@media screen and (min-width: 1024px) {
  .cyo-layout-step4 .cyo-form {
    padding-top: 0 !important;
  }
}

/* Step 5: compact top */
.cyo-layout-step5 .cyo-right-panel {
  margin-top: 0;
  padding-top: 45px;
}

.cyo-layout-step5 .cyo-step-body {
  margin-bottom: 0;
}


/* ----------------------------------------
   Safari Persona Cards (Step 3) — Radio Select
   ---------------------------------------- */

.safari-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.safari-card {
  display: flex;
  align-items: stretch;
  border: 1.4px solid #e0e0e0;
  border-radius: 0;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: #fff;
}

@media (hover: hover) {
  .safari-card:hover {
    border-color: #d4775a;
    box-shadow: 0 2px 8px rgba(192, 96, 58, 0.1);
  }
}

.safari-card:has(input:checked) {
  border-color: #c0603a;
  background: rgba(213, 77, 51, 0.05);
  box-shadow: 0 2px 12px rgba(192, 96, 58, 0.15);
}

.safari-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.safari-card img {
  width: 200px;
  height: 112px;
  object-fit: cover;
  flex-shrink: 0;
  margin: 12px;
  margin-right: 0;
  align-self: flex-start;
}

.safari-card:has(.view-details-expand[open]) img {
  align-self: stretch;
  height: auto;
}

.card-content {
  flex: 1;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-title {
  /* font-family: 'Playfair Display', serif; */
  font-family: 'General Sans', sans-serif;
  font-size: 1.25rem;
  /* font-weight: 700; */
  font-weight: 600;
  margin-bottom: 2px;
}

.card-subtitle {
  /* color: #666; */
  font-size: 0.95rem;
  margin-bottom: 8px;
  margin-top: 2px;
}

.card-price {
  font-size: 1rem;
  color: #BEBCAA;
  font-weight: 600;
  margin-bottom: 6px;
}

.card-price span {
  font-size: 1.15rem;
  color: #c0603a;
  font-weight: 625;
}

.view-details {
  background: none;
  border: none;
  border-top: 1px solid #ddd;
  cursor: pointer;
  padding: 0;
  padding-top: 12px;
  font-size: 0.8rem;
  font-weight: 400;
  color: #000;
  text-align: left;
  font-family: inherit;
}

.view-details:hover {
  text-decoration: none;
}

.view-details-arrow {
  font-size: 0.5em;
  vertical-align: middle;
  margin-left: 4px;
  display: inline-block;
  transform: scaleX(1.5);
}

/* Details expand — native HTML toggle, no JS needed */
.view-details-expand {
  margin-top: 4px;
}

.view-details-expand summary {
  list-style: none;
}

.view-details-expand summary::-webkit-details-marker {
  display: none;
}

.view-details-text {
  font-size: 0.8rem;
  line-height: 1.5;
  color: #555;
  margin: 8px 0 0;
}

.radio-indicator {
  width: 22px;
  height: 22px;
  border: 2px solid #e0e0e0;
  border-radius: 50%;
  position: absolute;
  top: 14px;
  right: 14px;
  flex-shrink: 0;
  transition: border-color 0.2s ease;
}

.safari-card:has(input:checked) .radio-indicator {
  border-color: #c0603a;
  background: radial-gradient(circle, #c0603a 38%, transparent 40%);
}

/* Video badge — green play icon + text (Hemingway, Stanley) */
a.cyo-video-badge {
  color: #2a7d2a;
  font-size: 0.8rem;
  font-weight: 600;
  position: absolute;
  bottom: 14px;
  right: 16px;
  text-decoration: none;
  z-index: 5;
}

a.cyo-video-badge:hover {
  text-decoration: underline;
  color: #1e5e1e;
}

a.cyo-video-badge .fa {
  margin-right: 3px;
}


/* ----------------------------------------
   Occasion Grid Cards (Step 4) — Checkbox Select
   ---------------------------------------- */

.occasion-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

/* Row 1: 3 cards */
.occasion-card:nth-child(1),
.occasion-card:nth-child(2),
.occasion-card:nth-child(3) {
  grid-column: span 4;
}

/* Row 2: 4 cards */
.occasion-card:nth-child(4),
.occasion-card:nth-child(5),
.occasion-card:nth-child(6),
.occasion-card:nth-child(7) {
  grid-column: span 3;
}

.occasion-card {
  cursor: pointer;
  overflow: hidden;
  /* OLD: border: none; */
  border: 1.4px solid #e0e0e0;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  background: #fff;
}

.occasion-footer {
  /* OLD: border on footer only — now on full card
  border-left: 1px solid #e0e0e0;
  border-right: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  */
  transition: border-color 0.2s ease;
}

@media (hover: hover) {
  /* OLD: .occasion-card:hover .occasion-footer { border-color: #d4775a; } */
  .occasion-card:hover {
    border-color: #d4775a;
    box-shadow: 0 2px 8px rgba(192, 96, 58, 0.1);
  }
}

/* OLD: .occasion-card:has(input:checked) .occasion-footer { border-color: #c0603a; } */
.occasion-card:has(input:checked) {
  border-color: #c0603a;
  box-shadow: 0 2px 12px rgba(192, 96, 58, 0.15);
  background: rgba(213, 77, 51, 0.05);
}

.occasion-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.occasion-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  position: relative;
}

.occasion-label {
  font-size: 1rem;
  font-weight: 500;
  color: #1a1a1a;
}

.occasion-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.occasion-card .checkbox-indicator {
  width: 20px;
  height: 20px;
  border: 2px solid #ccc;
  border-radius: 4px;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.occasion-card:has(input:checked) .checkbox-indicator {
  background: #c0603a;
  border-color: #c0603a;
}

.occasion-card:has(input:checked) .checkbox-indicator::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}


/* ----------------------------------------
   Extras Grid Cards (Step 5) — Checkbox Select
   ---------------------------------------- */

.extras-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.extras-card {
  display: flex;
  align-items: stretch;
  border: 1.4px solid #e0e0e0;
  border-radius: 0;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: #fff;
}

@media (hover: hover) {
  .extras-card:hover {
    border-color: #d4775a;
    box-shadow: 0 2px 8px rgba(192, 96, 58, 0.1);
  }
}

.extras-card:has(input:checked) {
  border-color: #c0603a;
  box-shadow: 0 2px 12px rgba(192, 96, 58, 0.15);
  background: rgba(213, 77, 51, 0.05);
}

.extras-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.extras-card img {
  width: 120px;
  height: 115px;
  object-fit: cover;
  flex-shrink: 0;
  background: #d9d1c7;
  margin: 8px;
  margin-right: 0;
}

.extras-content {
  flex: 1;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
}

.extras-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid #ddd;
  margin-bottom: 8px;
}

.extras-title {
  font-family: 'General Sans', sans-serif;
  font-size: .95em;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}

.extras-price {
  font-size: 0.95rem;
  margin: 0;
}

.extras-price.complimentary {
  color: #666;
}

.extras-price.additional {
  color: #c0603a;
  font-weight: 600;
}

.extras-details {
  font-size: 0.8rem;
  color: #888;
  cursor: pointer;
}

.extras-details:hover {
  color: #333;
  text-decoration: underline;
}

/* OLD: margin-top auto pushed View Details to bottom, caused it to shift on adjacent cards
.extras-card .view-details-expand {
  margin-top: auto;
}
*/
.extras-card .view-details-expand {
  margin-top: 4px;
}

.extras-card .view-details {
  border-top: none;
  padding-top: 0;
}

.extras-card .checkbox-indicator {
  width: 20px;
  height: 20px;
  border: 2px solid #000;
  border-radius: 3px;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.extras-card:has(input:checked) .checkbox-indicator {
  background: #c0603a;
  border-color: #c0603a;
}

.extras-card:has(input:checked) .checkbox-indicator::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Step 5 — image scale-up when View Details is open (matches Step 3 behavior) */
.extras-card img {
  transition: height 0.3s ease;
}

.extras-card:has(.view-details-expand[open]) img {
  height: calc(100% - 16px);
}


/* Steps 4 & 5 — tighter cards at iPad landscape / narrow desktop widths */
@media screen and (min-width: 1024px) and (max-width: 1300px) {
  /* Step 4 — occasion cards */
  .occasion-grid {
    gap: 10px;
  }

  .occasion-label {
    font-size: 0.85rem;
  }

  .occasion-footer {
    padding: 8px 6px;
  }

  /* Step 5 — extras cards */
  .extras-card img {
    width: 90px;
    height: 90px;
  }

  .extras-price {
    font-size: 0.85rem;
  }

  .extras-title {
    font-size: 0.9em;
  }
}


/* ----------------------------------------
   Step 6 Contact Form
   ---------------------------------------- */

/* Steps 3-6 need wider form for cards / side-by-side fields */
.cyo-layout-step3 .cyo-form,
.cyo-layout-step4 .cyo-form,
.cyo-layout-step5 .cyo-form,
.cyo-layout-step6 .cyo-form {
  max-width: none;
}

.cyo-form .cyo-form-row-double {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Referral name input — when visible, wrap below the select on desktop.
   order: 1 pushes it after the captcha (order: 0) in visual flex order,
   so line 1 = Select + Captcha, line 2 = Referral name */
#input-group-referral-name {
  flex: 0 0 calc(50% - 8px) !important;
  order: 1;
}

.cyo-form .cyo-form-row-double > .cyo-input-group {
  flex: 1;
  min-width: 0;
}

.cyo-math-captcha {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

/* Referral select — match State field width above */
.cyo-form .cyo-form-row-double > .cyo-select-group {
  flex: 0 0 calc(50% - 8px) !important;
}

/* Captcha group — shrink to content, flush left */
.cyo-form .cyo-form-row-double > .cyo-captcha-group {
  flex: 0 0 auto !important;
  min-width: auto !important;
  /* OLD: margin-left: auto; */
  margin-left: 0;
}

.cyo-math-captcha p {
  font-size: 1.1rem;
  font-weight: 500;
  /* OLD: color: #BEBCAA; */
  color: #8a8872;
  margin: 0;
  white-space: nowrap;
  line-height: 1.4;
}

.cyo-math-captcha input {
  width: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  padding: 5px !important;
  font-size: 1.1rem !important;
  /* OLD: border: 1px solid #ddd !important; */
  border: 1px solid #ccc !important;
  border-radius: 4px !important;
  text-align: center !important;
  box-sizing: content-box !important;
}

.cyo-btn-submit,
.cyo-btn-submit.btn.btn-accent {
  background: #d54d33;
  color: #fff;
  border: none;
  padding: 13.6px 44px;
  border-radius: 9999em;
  font-family: 'General Sans', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  letter-spacing: normal;
  text-transform: uppercase;
  text-decoration: none;
  display: block;
  width: 100%;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: color 0.2s cubic-bezier(0.7, 0, 0.3, 1);
}

.cyo-btn-submit:hover {
  background: #b8432b;
}

.cyo-layout-step6 .cyo-button-group .cyo-btn-submit {
  flex: none;
  padding: 15px 21px;
  border-radius: 30px;
  font-size: 1rem;
  white-space: nowrap;
}

/* Step 6: no form border, compact layout — everything visible without scrolling */
.cyo-layout-step6 .cyo-right-panel {
  margin-top: 0;
  padding-top: 45px;
}

.cyo-layout-step6 .cyo-form,
.cyo-layout-step6 #form-free-planning-kit {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0 !important;
}

/* OLD: compact step 6 header spacing — increased to match other steps
.cyo-layout-step6 .cyo-stepper {
  margin-bottom: 12px;
}
.cyo-layout-step6 .cyo-step-heading {
  margin-bottom: 8px;
}
.cyo-layout-step6 .cyo-step-body {
  margin-bottom: 12px;
}
*/

.cyo-layout-step6 .cyo-step-body {
  margin-bottom: 15px;
}

.cyo-layout-step6 .cyo-input-group {
  margin-bottom: 8px;
}

.cyo-layout-step6 .cyo-input,
.cyo-layout-step6 input.form-control {
  padding: 14px 16px !important;
}

.cyo-layout-step6 .cyo-select,
.cyo-layout-step6 select.form-control {
  padding: 7px 16px !important;
  padding-right: 40px !important;
  height: auto !important;
  font-size: 1.1rem !important;
}

.cyo-layout-step6 .cyo-form-row-double {
  gap: 12px;
}

.cyo-layout-step6 .cyo-form-row-double + .cyo-form-row-double {
  margin-top: 5px;
}

.cyo-layout-step6 .cyo-math-captcha {
  margin-bottom: 0;
}

@media (min-width: 1024px) {
  .cyo-layout-step6 .cyo-math-captcha {
    position: relative;
    top: -4px;
  }
}

html body.page-create-your-own-itinerary .cyo-layout-step6 .cyo-button-group {
  padding-top: 12px;
  align-items: center;
}

@media screen and (min-width: 1024px) {
  .cyo-layout-step6 .cyo-form-scroll {
    overflow-y: auto;
  }
}


/* ----------------------------------------
   Mobile Awards Strip
   ---------------------------------------- */

.cyo-awards-strip {
  display: none;
}

@keyframes scroll-awards {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* ----------------------------------------
   Error Display
   ---------------------------------------- */

.cyo-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}


/* ========================================
   Responsive — Large Screens
   ======================================== */

@media screen and (min-width: 1800px) {
  .cyo-left-testimonial img {
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
  }
}


/* ========================================
   Responsive — Tablet & Mobile
   ======================================== */

@media screen and (max-width: 1023px) {

  /* Override body margin-top for steps 3-6 (header2 sets 88px, too much on mobile) */
  html body.page-create-your-own-itinerary {
    margin-top: 45px !important;
  }

  /* Undo position:fixed — mobile needs normal scroll flow */
  .cyo-layout {
    position: static;
    flex-direction: column;
    height: auto;
    overflow: visible;
  }

  .cyo-left-panel {
    display: none;
  }

  /* Match header bg to beige background */
  .page-create-your-own-itinerary .site-header,
  .page-create-your-own-itinerary .main-navigation__top,
  .page-create-your-own-itinerary .main-navigation__bottom,
  body.page-create-your-own-itinerary.at-top .main-navigation__bottom {
    background: #EBEAE4 !important;
    background-color: #EBEAE4 !important;
  }

  /* Fix mobile nav menu item alignment — override WP theme space-between */
  .main-navigation .menu-item--level-0 > .menu-item__link {
    justify-content: flex-start !important;
  }

  /* Beige header section behind stepper + heading + body text */
  .cyo-right-panel {
    padding: 0;
    margin-top: 0 !important;
    overflow: visible;
    display: block;
    background-color: #EBEAE4;
    background-image: url(/web/imgs/cyo-mobile-map-vector-1.png), url(/web/imgs/cyo-mobile-map-vector-2.png);
    background-position: right -2px top 47px, left -1px top -25px;
    background-repeat: no-repeat, no-repeat;
    background-size: 65px auto, 77px auto;
  }

  /* Beige intro area */
  .cyo-stepper,
  .cyo-step-label,
  .cyo-step-heading,
  .cyo-step-body {
    padding-left: 24px;
    padding-right: 24px;
  }

  .cyo-stepper {
    max-width: 100%;
    padding-top: 16px;
    margin-bottom: 12px;
  }

  /* Reset desktop step-specific padding-top so all steps match on mobile */
  .cyo-layout-step3 .cyo-right-panel,
  .cyo-layout-step5 .cyo-right-panel,
  .cyo-layout-step6 .cyo-right-panel {
    padding-top: 0 !important;
  }

  .cyo-step-label {
    font-size: 2.3em;
  }

  .cyo-step-heading {
    font-size: 2.3rem;
  }

  .cyo-step-body {
    padding-bottom: 24px;
    margin-bottom: 0;
    font-size: 1.1rem;
    line-height: 1.3;
  }

  /* Form area — white bg, padded, extra bottom for fixed buttons */
  .cyo-form {
    max-width: 100%;
    padding: 24px;
    padding-bottom: 140px;
    background: #fff;
  }

  .cyo-right-panel .cyo-form {
    display: block !important;
    overflow: visible;
  }

  /* Undo scroll wrappers on mobile — normal flow */
  .cyo-form-scroll {
    overflow: visible;
    flex: none;
  }
  .cyo-right-scroll {
    display: block;
    overflow: visible;
  }

  /* Slightly more gap between form fields on mobile */
  .cyo-input-group {
    margin-bottom: 20px;
  }

  /* Stack form fields on mobile */
  .cyo-form-row {
    flex-direction: column;
    gap: 20px;
  }

  .cyo-form-row + .cyo-form-row {
    margin-top: 20px;
  }

  .cyo-form-row > .cyo-input-group {
    margin-bottom: 20px;
  }

  /* Hide spacer divs on mobile */
  .cyo-form-row > [style*="visibility: hidden"] {
    display: none;
  }

  .cyo-step-circle {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }

  /* Fixed bottom button on mobile — override WP theme */
  html body.page-create-your-own-itinerary .cyo-button-group {
    position: fixed;
    bottom: 63px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 16px 24px;
    margin: 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
    z-index: 101;
    justify-content: center;
    border-top: none;
    overflow: visible;
  }


  .cyo-btn-next,
  .cyo-btn-next.btn.btn-accent {
    flex: 1;
    padding: 16px;
    max-width: none;
    margin: 0 !important;
    width: auto;
    box-sizing: border-box;
  }

  .cyo-btn-back,
  .cyo-btn-back.btn {
    flex: 1;
    padding: 16px;
    max-width: none;
    margin: 0 !important;
    width: auto;
    box-sizing: border-box;
  }

  /* Hide video badges on mobile */
  a.cyo-video-badge {
    display: none !important;
  }
}

/* Hide video badges on tablet at desktop widths (touch devices) */
@media (pointer: coarse) and (min-width: 1024px) {
  a.cyo-video-badge {
    display: none !important;
  }
}

@media screen and (max-width: 1023px) {
  /* OLD: Step 5 View Details — dark popover on mobile (matches info icon style)
  .extras-card {
    position: relative;
    overflow: visible;
  }

  .extras-card .view-details-expand[open] .view-details {
    color: #c0603a;
  }

  .extras-card .view-details-expand[open] .view-details-text {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a1a;
    color: #fff;
    font-family: 'General Sans', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    line-height: 1.5;
    padding: 14px 36px 14px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    z-index: 20;
    margin-top: 4px;
  }

  .extras-card .view-details-expand[open] .view-details-text::after {
    content: '\00d7';
    position: absolute;
    top: 8px;
    right: 12px;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
  }
  END OLD */

  /* Step 5 View Details — inline expand like Step 3 */
  .extras-card .view-details-expand[open] .view-details-text {
    font-size: 0.8rem;
    line-height: 1.5;
    color: #555;
    margin: 8px 0 0;
  }

  /* Safari cards — mobile: image on top, full width, flush with text */
  .safari-card img {
    width: calc(100% - 32px);
    min-height: 160px;
    margin: 16px 16px 0 16px;
  }

  .safari-card {
    flex-direction: column;
  }

  .safari-card .card-content {
    position: relative;
  }

  .safari-card .radio-indicator {
    top: 14px;
    right: 16px;
  }

  .card-title {
    font-size: 1.1rem;
  }

  /* Occasion grid — mobile: 2 columns */
  .occasion-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .occasion-card:nth-child(n) {
    grid-column: span 1;
  }

  .occasion-label {
    font-size: 0.9rem;
  }

  /* Extras grid — mobile: single column, horizontal cards */
  .extras-grid {
    grid-template-columns: 1fr;
  }

  /* Step 6 — stack side-by-side fields on mobile */
  .cyo-form .cyo-form-row-double {
    flex-direction: column;
  }

  /* Keep State + Zip side-by-side on mobile */
  .cyo-form .cyo-form-row-state-zip {
    flex-direction: row;
  }

  /* Step 6 — restore form padding on mobile (desktop rule sets padding: 0 !important) */
  .cyo-layout-step6 .cyo-form,
  .cyo-layout-step6 #form-free-planning-kit {
    padding: 24px !important;
    padding-bottom: 280px !important;
  }

  /* Step 6 — flatten form structure on mobile: stack fields vertically
     (was display:contents — causes scroll bugs on Android/Samsung) */
  .cyo-layout-step6 .cyo-form-row-double {
    display: block;
    margin: 0;
    padding: 0;
    gap: 0;
  }

  /* State + Zip stays side-by-side */
  .cyo-layout-step6 .cyo-form-row-state-zip {
    display: flex;
    flex-direction: row;
    gap: 12px;
  }

  /* Referral row — block stacking on mobile (no flex, no gap) */
  .cyo-layout-step6 .cyo-form-row-referral {
    display: block !important;
  }

  /* All fields get uniform spacing (margin-top won't work due to margin collapsing in block flow) */
  html body .cyo-layout-step6 .cyo-input-group {
    margin-bottom: 14px !important;
    margin-top: 0 !important;
    padding-bottom: 0 !important;
  }

  /* Referral name — extra top spacing when revealed on mobile */
  html body .cyo-layout-step6 #input-group-referral-name {
    margin-top: 15px !important;
  }

  /* Captcha — left-aligned below referral on mobile */
  html body .cyo-layout-step6 .cyo-captcha-group {
    width: fit-content !important;
    margin-left: 0 !important;
    margin-top: 10px !important;
  }

  /* Step 6 — restore input borders + sizing on mobile (base.css .form-standard input strips border to bottom-only) */
  .cyo-layout-step6 .cyo-input,
  .cyo-layout-step6 input.form-control {
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    padding: 16px !important;
  }

  .cyo-layout-step6 .cyo-select,
  .cyo-layout-step6 select.form-control {
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    padding: 10px !important;
    padding-right: 40px !important;
  }

  /* Step 6 — D3: inline buttons on mobile (not stacked) */
  html body.page-create-your-own-itinerary .cyo-layout-step6 .cyo-button-group {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    gap: 8px !important;
    bottom: 0px !important;
  }

  /* Step 6 — hide awards strip on mobile */
  .cyo-layout-step6 ~ .cyo-awards-strip {
    display: none !important;
  }

  html body.page-create-your-own-itinerary .cyo-layout-step6 .cyo-button-group .cyo-btn-submit {
    order: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: auto !important;
    max-width: none !important;
    flex: 1 !important;
    padding: 16px 12px !important;
    font-size: 1rem !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    text-align: center !important;
  }

  html body.page-create-your-own-itinerary .cyo-layout-step6 .cyo-button-group .cyo-btn-back {
    order: 0 !important;
    display: block !important;
    width: auto !important;
    max-width: none !important;
    flex: 1 !important;
    padding: 16px 20px !important;
    font-size: 1rem !important;
    box-sizing: border-box !important;
  }

  /* D3: Hide "MASTERPIECE" on mobile phones to shorten CTA to one line */
  .cyo-masterpiece-text {
    display: none;
  }

  /* D3: Reduce step 6 subhead size on mobile to fit one line */
  .cyo-layout-step6 .cyo-step-heading {
    font-size: 2rem !important;
  }

  /* Awards strip visible on mobile — pinned to very bottom */
  .cyo-awards-strip {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0;
    overflow: hidden;
    background-color: #595750;
  }

  .cyo-awards-track {
    display: flex;
    width: 200%;
    animation: scroll-awards 20s linear infinite;
  }

  .cyo-awards-track img {
    width: 100%;
    flex-shrink: 0;
    height: auto;
    display: block;
  }
}

/* Large phones / small tablets — awards strip clearance */
@media screen and (min-width: 481px) and (max-width: 767px) {
  html body.page-create-your-own-itinerary .cyo-button-group {
    bottom: 125px;
  }

  /* D2: More bottom padding so content clears fixed buttons + awards strip */
  .cyo-form {
    padding-bottom: 200px !important;
  }
}

/* D2: Surface Duo (540px) — button group lower to show more content */
@media screen and (min-width: 481px) and (max-width: 600px) {
  html body.page-create-your-own-itinerary .cyo-button-group {
    bottom: 90px;
  }
}

/* ========================================
   TABLET ONLY (768px – 1023px)
   Overrides mobile rules back toward desktop
   ======================================== */
@media screen and (min-width: 768px) and (max-width: 1023px) {

  /* T1 + T2: Button group — clear awards strip, fix thick border */
  html body.page-create-your-own-itinerary .cyo-button-group {
    bottom: 125px;
    box-shadow: none;
    border-top: 1px solid #e0e0e0;
  }

  /* D2: More bottom padding so content clears fixed buttons + awards strip */
  .cyo-form {
    padding-bottom: 260px !important;
  }

  /* D3: Restore "MASTERPIECE" on tablet */
  .cyo-masterpiece-text {
    display: inline !important;
  }


  /* T4: Step 3 — horizontal card layout like desktop */
  .safari-card {
    flex-direction: row;
  }

  .safari-card img {
    width: 150px;
    height: calc(100% - 24px);
    min-height: auto;
    align-self: flex-start;
    margin: 12px;
    margin-right: 0;
  }

  .safari-card .card-content {
    position: static;
  }

  .card-price {
    margin-bottom: 10px;
  }

  .safari-card .radio-indicator {
    top: 12px;
    right: 12px;
  }

  /* T7: Step 5 — 2-up enhancement cards */
  .extras-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* T8: Step 6 — restore two-column form rows */
  .cyo-layout-step6 .cyo-form-row-double {
    display: flex;
    flex-direction: row;
    gap: 16px;
  }

  /* T8: Step 6 — inline buttons (not stacked) */
  html body.page-create-your-own-itinerary .cyo-layout-step6 .cyo-button-group {
    flex-direction: row !important;
    align-items: center !important;
  }

  html body.page-create-your-own-itinerary .cyo-layout-step6 .cyo-button-group .cyo-btn-submit {
    order: 0 !important;
    width: auto !important;
    flex: none !important;
    white-space: nowrap !important;
  }

  html body.page-create-your-own-itinerary .cyo-layout-step6 .cyo-button-group .cyo-btn-back {
    width: auto !important;
    flex: none !important;
  }
}

@media screen and (max-width: 480px) {

  .cyo-stepper,
  .cyo-step-label,
  .cyo-step-heading,
  .cyo-step-body {
    padding-left: 18px;
    padding-right: 18px;
  }

  .cyo-form {
    padding-top: 20px;
    padding-left: 18px;
    padding-right: 18px;
  }

  .cyo-step-heading {
    font-size: 2.3rem;
  }

  .cyo-step-body {
    font-size: 1.1rem;
  }
}

/* ========================================
   MOBILE LANDSCAPE OVERLAY
   ======================================== */
@media screen and (orientation: landscape) and (max-height: 500px) {
  .cyo-layout::before {
    content: 'Please rotate your device to portrait mode';
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #1a1a1a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'General Sans', sans-serif;
    font-weight: 500;
    font-size: 1.2rem;
    text-align: center;
    padding: 24px;
  }
}
