/**
 * Multistep Enquiry Form CSS with Popup Compatibility
 *
 * GLOBAL DESIGN SYSTEM:
 * - Titles: Oswald font, 20px, #2B2B2B, 700 weight, 32px line-height
 * - Labels: Inter font, 16px, #2B2B2B, 600 weight, 26px line-height
 * - Items: Inter font, 16px, 500 weight, 26px line-height
 *   - Unselected: #525252 color
 *   - Selected: #2B2B2B color
 * - Inputs: 20px border-radius, #71C8BC border, #FFF background
 * - Checkboxes: 4px border-radius, #71C8BC border, #FFF background
 * - SVG Icons: 20x20px, unselected (#525252, 0.24 opacity), selected (#0E92BA, 1.0 opacity)
 */

/* ==================== GLOBAL DESIGN SYSTEM FOR NEW MULTISTEP FORM ==================== */

/* CSS Variables for Design System */
:root {
  --6-grey-title: #2b2b2b;
  --7-grey-paragraphs: #525252;
  --5-mint: #71c8bc;
  --4-light-blue: #cff4ff;
}

/* Global Typography - Titles - Updated to Match Exact Specifications */
.hero-title,
.dynamic-header-section h2,
.form-section-title,
.step-title,
.student-section h3,
.multistep-form-container h1,
.multistep-form-container h2,
.multistep-form-container h3 {
  color: var(--6-grey-title, #2b2b2b) !important;
  font-family: Oswald, sans-serif !important;
  font-size: 22px !important;
  font-style: normal !important;
  font-weight: 700 !important;
  line-height: 44px !important;
}

/* Global Typography - Input Labels - Updated to Match Exact Specifications */
.multistep-form-container label,
.form-field-label,
.input-label,
label.block,
label.text-sm {
  color: var(--7-grey-paragraphs, #525252) !important;
  font-family: Inter, sans-serif !important;
  font-size: 14px !important;
  font-style: normal !important;
  font-weight: 400 !important;
  line-height: 24px !important; /* 171.429% */
  opacity: 0.8 !important;
  display: block !important;
  margin-bottom: 8px !important;
}

/* Step 1 Specific Label Styling */
.multistep-form-container .form-field-label-s1 {
  color: var(--6-grey-title, #2b2b2b) !important;
  font-family: Inter, sans-serif !important;
  font-size: 16px !important;
  font-style: normal !important;
  font-weight: 600 !important;
  line-height: 22px !important;
  display: block !important;
  margin-bottom: 8px !important;
}

/* Global Typography - Radio/Option Items (For my child, For myself, etc.) */
.radio-option-label,
.instrument-option p,
.checkbox-item label,
label.text-sm.text-gray-700,
label.cursor-pointer {
  font-family: Inter, sans-serif !important;
  font-size: 15px !important;
  font-style: normal !important;
  font-weight: 500 !important;
  line-height: 20px !important; /* 162.5% */
}

/* Radio/Option Text Color - Default (unselected) */
.radio-option-label,
.instrument-option:not(.selected) p,
.checkbox-item:not(.checked) label,
label.text-sm.text-gray-700:not(.checked),
label.cursor-pointer:not(.checked) {
  color: var(--7-grey-paragraphs, #525252) !important;
}

/* Radio/Option Text Color - Selected */
.radio-option-label.selected,
.instrument-option.selected p,
.checkbox-item.checked label,
label.text-sm.text-gray-700.checked,
label.cursor-pointer.checked {
  color: var(--6-grey-title, #2b2b2b) !important;
}

/* Global Input Field Styling - Updated with Decreased Height */
.multistep-form-container input[type="text"],
.multistep-form-container input[type="email"],
.multistep-form-container input[type="tel"],
.multistep-form-container input[type="number"],
.multistep-form-container select,
.multistep-form-container textarea {
  display: flex !important;
  height: 48px !important;
  padding: 12px 24px !important;
  align-items: center !important;
  gap: 10px !important;
  align-self: stretch !important;
  border-radius: 20px !important;
  border: 1px solid var(--5-mint, #71c8bc) !important;
  background: #fff !important;
  font-family: Inter, sans-serif !important;

  /* Input field text styling (when user types) */
  color: var(--6-grey-title, #2b2b2b) !important;
  font-size: 14px !important;
  font-style: normal !important;
  font-weight: 500 !important;
  line-height: 24px !important;

  /* Remove default styling */
  box-sizing: border-box !important;
  width: 100% !important;
  min-height: 48px !important;
  outline: none !important;
  transition: all 0.2s ease !important;
}

/* Special styling for select dropdowns */
.multistep-form-container select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M9.77594 13.7217L3.99805 8.34415L5.44226 7L10.498 11.7055L15.5538 7L16.998 8.34415L11.2202 13.7217C11.0286 13.8999 10.7689 14 10.498 14C10.2272 14 9.96747 13.8999 9.77594 13.7217Z' fill='%2371C8BC'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  background-size: 20px !important;
  padding-right: 40px !important;
}

/* Placeholder styling */
.multistep-form-container input[type="text"]::placeholder,
.multistep-form-container input[type="email"]::placeholder,
.multistep-form-container input[type="tel"]::placeholder,
.multistep-form-container input[type="number"]::placeholder,
.multistep-form-container select::placeholder,
.multistep-form-container textarea::placeholder {
  color: var(--7-grey-paragraphs, #525252) !important;
  font-family: Inter, sans-serif !important;
  font-size: 16px !important;
  font-style: normal !important;
  font-weight: 400 !important;
  line-height: 22px !important; /* 162.5% */
}

/* Input Field Wrapper for Floating Label Effect */
.input-field-wrapper {
  position: relative;
  margin-bottom: 1.5rem;
}

.input-with-label {
  position: relative;
  display: flex;
  flex-direction: column;
}

.input-with-label input,
.input-with-label select {
  order: 2;
}

.input-with-label label {
  order: 1;
  position: absolute;
  top: 12px;
  left: 24px;
  z-index: 1;
  pointer-events: none;
  transition: all 0.2s ease;
  background: transparent;
  padding: 0;
  margin: 0 !important;
}

/* When input has value or is focused, move label up */
.input-with-label input:focus + label,
.input-with-label input:not(:placeholder-shown) + label,
.input-with-label select:focus + label,
.input-with-label select:not([value=""]) + label {
  top: -8px;
  left: 20px;
  font-size: 12px !important;
  line-height: 16px !important;
  background: #fff;
  padding: 0 4px;
  opacity: 1 !important;
}

/* For select elements, check if option is selected */
.input-with-label select:not(:invalid) + label {
  top: -8px;
  left: 20px;
  font-size: 12px !important;
  line-height: 16px !important;
  background: #fff;
  padding: 0 4px;
  opacity: 1 !important;
}

/* Global Checkbox Styling */
.custom-checkbox,
.multistep-form-container input[type="checkbox"] {
  border: 1px solid var(--5-mint, #71c8bc) !important;
  border-radius: 4px !important;
  background: #fff !important;
  accent-color: var(--5-mint, #71c8bc) !important;
}

/* Global Focus States */
.multistep-form-container input:focus,
.multistep-form-container select:focus,
.multistep-form-container textarea:focus {
  border-color: var(--5-mint, #71c8bc) !important;
  box-shadow: 0 0 0 3px rgba(113, 200, 188, 0.1) !important;
}

/* Global Placeholder Styling */
.multistep-form-container input::placeholder,
.multistep-form-container textarea::placeholder {
  color: #999 !important;
  font-family: Inter, sans-serif !important;
}

/* SVG Icon System for Radio Options */
.radio-icon {
  width: 20px !important;
  height: 20px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  margin-right: 10px !important;
}

/* Default SVG color (unselected state) */
.radio-icon .music-note-unselected path {
  fill: #525252 !important;
  fill-opacity: 0.24 !important;
}

/* Selected SVG color */
.radio-icon .music-note-selected path {
  fill: #0e92ba !important;
  fill-opacity: 1 !important;
}

/* SVG Icon Switching Logic */
.radio-icon .music-note-unselected {
  display: block !important;
}

.radio-icon .music-note-selected {
  display: none !important;
}

/* When radio is checked - hide unselected, show selected */
.radio-option:checked + .radio-option-label .radio-icon .music-note-unselected,
.instrument-option.selected .radio-icon .music-note-unselected {
  display: none !important;
}

.radio-option:checked + .radio-option-label .radio-icon .music-note-selected,
.instrument-option.selected .radio-icon .music-note-selected {
  display: block !important;
}

/* Price Tag Styling (FROM £40, FROM £15) */
.price-tag {
  margin-left: 10px !important;
  font-family: Inter, sans-serif !important;
  font-size: 10px !important;
  font-weight: 500 !important;

  color: var(--6-grey-title, #2b2b2b) !important;
  line-height: 22px !important; /* 157.143% */
  letter-spacing: 0.56px !important;
}

/* Mobile-specific styling */
@media (max-width: 768px) {
  /* Ensure all containers are properly sized for mobile */
  .multistep-form-container {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  /* Mobile SVG sizing - both selected and unselected are 20x20 */
  .radio-icon .music-note-selected,
  .radio-icon .music-note-unselected {
    width: 20px !important;
    height: 20px !important;
  }

  /* Mobile radio options layout */
  .multistep-form-container .radio-option-label {
    padding: 10px 12px !important;
    font-size: 15px !important;
    /* Maintain default unselected state on mobile */
    color: var(--7-grey-paragraphs, #525252) !important;
    font-weight: 400 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Mobile selected state */
  .multistep-form-container .radio-option:checked + .radio-option-label {
    color: var(--6-grey-title, #2b2b2b) !important;
    font-weight: 500 !important;
  }

  .form-field-label {
    font-size: 15px !important;
    margin-bottom: 12px !important;
  }

  .form-section-title {
    font-size: 18px !important;
    line-height: 28px !important;
  }

  .price-tag {
    font-size: 10px !important;
    padding: 6px 10px !important;
  }

  /* Ensure all form elements are mobile-friendly */
  .radio-options-container,
  .checkbox-container,
  .form-field {
    width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  /* Mobile input styling */
  input,
  select,
  textarea {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Mobile button container spacing */
  .flex.justify-between {
    margin-bottom: 20px !important;
    padding-bottom: 20px !important;
  }

  /* Ensure proper bottom spacing for mobile forms */
  .multistep-form-container {
    padding-bottom: 20px !important;
  }
}

/* Override Tailwind classes to ensure design system takes precedence */
.multistep-form-container .text-gray-700,
.multistep-form-container .text-gray-600,
.multistep-form-container .text-gray-800 {
  color: var(--7-grey-paragraphs, #525252) !important;
}

.multistep-form-container .font-medium,
.multistep-form-container .font-semibold {
  font-weight: 600 !important;
}

.multistep-form-container .text-sm {
  font-size: 16px !important;
}

/* ========== RADIO OPTIONS STYLING ========== */
.radio-options-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.radio-option-item {
  position: relative;
  margin-bottom: 0 !important;
  margin-top: 0 !important;
}

/* Target specifically the NEW multistep enquiry form */
.multistep-form-container .radio-option-label {
  display: flex !important;
  align-items: center !important;
  padding: 4px 15px !important;
  border: none !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  background: transparent !important;
  width: 100% !important;
  justify-content: flex-start !important;
  margin: 0 !important;
  /* Default unselected state */
  color: var(--7-grey-paragraphs, #525252) !important;
  font-family: Inter, sans-serif !important;
  font-size: 15px !important;
  font-style: normal !important;
  font-weight: 400 !important;
  line-height: 20px !important; /* 162.5% */
}

/* Remove background on hover and selected states as requested */
.multistep-form-container .radio-option-label:hover {
  background: transparent !important;
}

/* Radio option selected state - no background */
.multistep-form-container .radio-option:checked + .radio-option-label {
  background: transparent !important;
  /* Selected state styling */
  color: var(--6-grey-title, #2b2b2b) !important;
  font-family: Inter, sans-serif !important;
  font-size: 15px !important;
  font-style: normal !important;
  font-weight: 500 !important;
  line-height: 20px !important; /* 162.5% */
}

/* Additional specificity for radio option text content */
.multistep-form-container
  .radio-option-label
  span:not(.radio-icon):not(.price-tag) {
  color: inherit !important;
  font-family: inherit !important;
  font-size: inherit !important;
  font-style: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
}

/* Price tag styling for lesson type options */
.radio-option-label .price-tag {
  margin-left: 10px !important;
  font-family: Inter, sans-serif !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  color: var(--7-grey-paragraphs, #525252) !important;
  background: var(--4-light-blue, #cff4ff) !important;
  padding: 6px 10px !important;
  border-radius: 23px !important;

  line-height: 22px !important; /* 157.143% */
  letter-spacing: 0.56px !important;
}

/* Ensure all form elements follow the design system */
.multistep-form-container * {
  box-sizing: border-box !important;
}

/* ========  Popup Things ============ */

/* COMPLETE Custom CSS for ALL Popup Maker Popups */

/* FORCE POPUP DIMENSIONS  */
/* Desktop Large (1200px+) */
@media only screen and (min-width: 1200px) {
  [id^="popmake-"] {
    width: 800px !important;
    height: auto !important;
    max-width: 800px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
  }
}

/* Desktop Medium (1025px-1199px) */
@media only screen and (min-width: 1025px) and (max-width: 1199px) {
  [id^="popmake-"] {
    width: 780px !important;
    height: auto !important;
    max-width: 780px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
  }
}

/* Tablet (768px-1024px) */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
  [id^="popmake-"] {
    width: 700px !important;
    height: auto !important;
    max-width: 700px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
  }
}

/* Mobile Large (481px-767px) */
@media only screen and (min-width: 481px) and (max-width: 767px) {
  [id^="popmake-"] {
    width: 90% !important;
    max-width: 90% !important;
    height: auto !important;
    max-height: 95% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }
}

/* Mobile Small (320px-480px) */
@media only screen and (min-width: 320px) and (max-width: 480px) {
  [id^="popmake-"] {
    width: 90% !important;
    max-width: 90% !important;
    height: auto !important;
    max-height: 95% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }
}

/* FORCE POPUP CONTAINER SETUP */

[id^="popmake-"] .pum-content {
  padding: 0 !important;
  margin: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  height: auto !important;
  max-height: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
  border-radius: 16px !important;
}

/*FORCE FORM CONTAINER CONTAINMENT*/

[id^="popmake-"] .multistep-form-container {
  height: auto !important;
  max-height: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 12px !important;
  overflow: visible !important;
  box-sizing: border-box !important;

  /* Override plugin CSS variables */
  --plugin-max-width: 100% !important;
  --container-max-height: 100% !important;
  --desktop-right-section-max-height: 100% !important;
  --mobile-form-height: auto !important;
}

[id^="popmake-"] .form-main-container {
  height: auto !important;
  max-height: 100% !important;
  width: 100% !important;
  border-radius: var(--container-border-radius) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

/* ========== CONTENT LAYOUT AREA ========== */
[id^="popmake-"] .form-content-layout {
  flex: 1 !important;
  overflow: visible !important;
  display: flex !important;
  height: auto !important;
  max-height: calc(90vh - 80px) !important;
  box-sizing: border-box !important;
}

@media only screen and (max-width: 767px) {
  [id^="popmake-"] .form-content-layout {
    flex-direction: column !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
}

/* ========== DESKTOP/TABLET RIGHT SECTION - CRITICAL FIXES ========== */
@media only screen and (min-width: 768px) {
  /* Left section for popups - 45% width, fixed position */
  [id^="popmake-"] .fixed-left-section {
    width: 45% !important;
    height: 100% !important;
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    background: #ffffff !important;
    padding: 0 !important;
    z-index: 10 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  [id^="popmake-"] .scrollable-right-section {
    width: 60% !important;
    height: 100% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    background: #ffffff !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
    flex: 1 !important;
    position: relative !important;
    margin-left: 45% !important;
  }

  /* Override plugin's .form-content height constraints */
  [id^="popmake-"] .form-content {
    height: 100% !important;
    max-height: 100% !important;
    min-height: auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    flex: 1 !important;
    box-sizing: border-box !important;
    /* Remove plugin's fixed height */
    position: relative !important;
  }

  /* Override plugin's .info-section-container */
  [id^="popmake-"] .info-section-container {
    height: calc(100% - 20px) !important;
    max-height: calc(100% - 20px) !important;
    min-height: auto !important;
    margin: 10px !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
    position: relative !important;
    /* Override plugin's height: 90% */
    flex: 1 !important;
  }

  /* Override plugin's .info-section-content absolute positioning */
  [id^="popmake-"] .info-section-content {
    flex: 1 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    position: relative !important;
    /* Override plugin's absolute positioning */
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    height: auto !important;
    max-height: none !important;
    min-height: auto !important;
    box-sizing: border-box !important;
    background-image: none !important;
    background-color: #ffffff !important;
    border-radius: 0 !important;
  }

  /* Content overlay with proper sizing */
  [id^="popmake-"] .content-overlay {
    padding: 1.25rem 1.5rem 2rem 1.5rem !important; /* top 20px */
    min-height: auto !important;
    height: auto !important;
    /* Remove plugin's min-height: 100% constraint */
    position: relative !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-radius: 0 !important;
  }

  /* Override popup content overlay top padding for desktop to add gap after right-top-music */
  @media (min-width: 768px) {
    [id^="popmake-"] .content-overlay {
      padding-top: calc(
        1.25rem + 40px
      ) !important; /* 20px + 200px = 220px total */
    }
  }

  /* Form step sizing */
  [id^="popmake-"] .form-step {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    position: relative !important;
    box-sizing: border-box !important;
  }

  /* Button container spacing */
  [id^="popmake-"] .flex.justify-between {
    margin-top: 1.5rem !important;
    margin-bottom: 1rem !important;
    flex-shrink: 0 !important;
  }
}

/* ========== MOBILE LAYOUT ========== */
@media only screen and (max-width: 767px) {
  /* Ensure popup container is properly sized for mobile */
  [id^="popmake-"] {
    box-sizing: border-box !important;
  }

  [id^="popmake-"] .pum-content {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  [id^="popmake-"] .multistep-form-container {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  [id^="popmake-"] .form-main-container {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  [id^="popmake-"] .form-content-layout {
    flex-direction: column !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding-bottom: 15px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  [id^="popmake-"] .fixed-left-section {
    width: 100% !important;
    height: auto !important;
    flex-shrink: 0 !important;
    min-height: auto !important; /* Reduced from 400px to auto for tighter spacing */
    overflow: visible !important;
    position: relative !important;
    left: auto !important;
    top: auto !important;
    box-sizing: border-box !important;
  }

  /* Ensure mobile music note section is visible in popup mode */
  [id^="popmake-"] .mobile-music-note-wrap {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    min-height: 80px !important; /* ensure mascot bottom is visible in popup */
    padding-bottom: 14px !important; /* small clearance at bottom */
    overflow: visible !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Align the overlay inside popup, so it doesn’t get cut */
  [id^="popmake-"] .mobile-music-note-overlay {
    top: -80px !important; /* raise higher */
    right: -15px !important; /* move closer to right edge */
    left: auto !important;
    z-index: 9999 !important; /* ensure above other elements */
  }

  [id^="popmake-"] .left-content {
    padding: 0 0.8rem 0.8rem 0.8rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Hide image for steps 2-4 on mobile */
  [id^="popmake-"] .multistep-form-container.mobile-step-2 .image-container,
  [id^="popmake-"] .multistep-form-container.mobile-step-3 .image-container,
  [id^="popmake-"] .multistep-form-container.mobile-step-4 .image-container {
    display: none !important;
  }

  [id^="popmake-"] .scrollable-right-section {
    width: 100% !important;
    height: auto !important;
    padding: 0 !important;
    margin-left: 0 !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  [id^="popmake-"] .form-content {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  [id^="popmake-"] .info-section-container {
    height: auto !important;
    margin: 8px !important;
    margin-bottom: 1.5rem !important;
    width: calc(100% - 16px) !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  [id^="popmake-"] .info-section-content {
    height: auto !important;
    overflow: visible !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  [id^="popmake-"] .content-overlay {
    padding: 0.8rem !important;
    padding-bottom: 1.5rem !important;
    min-height: 400px !important;
    height: auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Mobile button layout with extra padding below */
  [id^="popmake-"] .flex.justify-between {
    flex-direction: column !important;
    gap: 0.75rem !important;
    margin-bottom: 20px !important;
    margin-top: 1rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-bottom: 20px !important;
  }

  [id^="popmake-"] .flex.justify-between .next-step,
  [id^="popmake-"] .flex.justify-between #submit-form {
    order: 1 !important;
    width: 100% !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  [id^="popmake-"] .flex.justify-between .prev-step {
    order: 2 !important;
    width: 100% !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  /* Ensure all form elements are properly contained */
  [id^="popmake-"] .form-step {
    width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  [id^="popmake-"] .form-field,
  [id^="popmake-"] .radio-options-container,
  [id^="popmake-"] .checkbox-container {
    width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  /* Ensure inputs don't overflow */
  [id^="popmake-"] input,
  [id^="popmake-"] select,
  [id^="popmake-"] textarea {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Add extra bottom padding to the entire form container for mobile */
  [id^="popmake-"] .multistep-form-container {
    padding-bottom: 40px !important;
  }

  /* Ensure the last step has extra bottom spacing */
  [id^="popmake-"] .form-step:last-child {
    padding-bottom: 40px !important;
  }
}

/* ========== CHECKBOX FIXES ========== */
/* Popup checkbox styling enhanced by global design system */
[id^="popmake-"] .custom-checkbox {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 18px !important;
  height: 18px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  outline: none !important;
  transition: none !important;
  animation: none !important;
  margin-right: 8px !important;
  flex-shrink: 0 !important;
  position: relative !important;
  /* background, border, border-radius handled by global design system */
}

[id^="popmake-"] .custom-checkbox:checked {
  background-color: #0094ba !important;
  border-color: #0094ba !important;
}

[id^="popmake-"] .custom-checkbox:checked::after {
  content: "✓" !important;
  color: white !important;
  font-size: 12px !important;
  font-weight: bold !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  line-height: 1 !important;
}

/* ----- Customize Popup ----- */

/* CLOSE BUTTON  */
/* CLOSE BUTTON - Top Right Position */
[id^="popmake-"] .pum-close {
  position: absolute !important;
  top: 15px !important;
  right: 15px !important;
  z-index: 1000000 !important;
  background: transparent !important;
  border: none !important;
  width: 30px !important;
  height: 30px !important;
  text-align: center !important;
  font-size: 0 !important; /* Hide original text */
  font-weight: bold !important;
  color: #525252 !important;
  cursor: pointer !important;
  line-height: 30px !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  transition: color 0.2s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

[id^="popmake-"] .pum-close:hover {
  background: transparent !important;
  color: #000000 !important;
  border: none !important;
  box-shadow: none !important;
}

/* Replace original content with clean X */
[id^="popmake-"] .pum-close:before {
  content: "×" !important;
  font-size: 24px !important;
  line-height: 1 !important;
  color: inherit !important;
  display: block !important;
}

/* ========== OVERLAY STYLING ========== */
.pum-overlay {
  background-color: rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(5px) !important;
  -webkit-backdrop-filter: blur(5px) !important;
}

/* ========== FORCE PERFECT CENTERING ========== */
[id^="popmake-"].pum-container.pum-responsive,
[id^="popmake-"].pum-container {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
  z-index: 1999999999 !important;
}

[id^="popmake-"].pum-active {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

[id^="popmake-"] .pum-container.pum-active {
  display: block !important;
  box-sizing: border-box !important;
}

/* END */

/* Import Playfair Display font */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Lobster&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Tangerine:wght@900&display=swap");

/* ========== GLOBAL CONTROLS & COLOR PALETTE ========== */
:root {
  /* POPUP DETECTION - These will be overridden for popup mode */
  --plugin-max-width: 800px;
  --container-max-height: 60vh;
  --desktop-right-section-max-height: 480px;
  --mobile-form-height: 60vh;

  /* LAYOUT PERCENTAGES */
  --left-section-width: 45%;
  --right-section-width: 55%;

  /* RESPONSIVE BORDER RADIUS */
  --border-radius-large: 1rem;
  --border-radius-medium: 0.75rem;
  --border-radius-small: 0.5rem;
  --border-radius-btn: 1.5rem;
  --border-radius-input-field: 1.15rem;

  /* Single source of truth for the main container radius */
  --container-border-radius: 32px;
  /* Optionally use a larger radius for the right top corner */
  --right-corner-radius: 32px;
  /* How much the right-top band should overlap under the left section */
  --right-band-overlap-left: 24px;

  /* RESPONSIVE SPACING */
  --spacing-large: 2rem;
  --spacing-medium: 1.5rem;
  --spacing-small: 1rem;
  --right-section-margin: 10px;

  /* COLOR PALETTE */
  --cream-bg: #ffffff;
  --cream-secondary: #ffffff;
  --warm-beige: #ffffff;
  --primary: #8c4c47;
  --primary-dark: #6c3934;
  --primary-light: #f9eeec;

  --amber: #0094ba;
  --amber-light: #afe7f5;
  --amber-dark: #015367;
  --secondary: #344054;
  --gray-dark: #1f2937;
  --gray-light: #f3f4f6;
  --red: #ef4444;
  --red-light: #fee2e2;
  --green: #10b981;
  --green-light: #d1fae5;
  --blue: #3b82f6;
  --blue-light: #dbeafe;
  --gold: #a2643b;
  --label-color: #1f2937;
}

/* ========== BASE STYLING ========== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Playfair Display", "Segoe UI", Tahoma, Geneva, Verdana, serif;
  line-height: 1.6;
}

/* ========== MAIN LAYOUT STRUCTURE ========== */
.multistep-form-container {
  position: relative;
  width: 100%;
  max-width: var(--plugin-max-width);
  margin: 0 auto;
  padding: 0 1rem;
  max-height: var(--container-max-height);
}

/* Label styling is now handled by global design system above */

/* Main container */
.form-main-container {
  background: #ffffff;
  border-radius: var(--container-border-radius);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: row;
  width: 100%;
  height: var(--container-max-height);
  max-height: var(--container-max-height);
  padding: 0;
}
/* ===== New STEP INDICATOR BUBBLES (Desktop + Mobile) ===== */
.hidden-step-1 {
  display: none !important;
}

/* Ensure indicators are hidden by default until JavaScript shows them */
.right-top-step-indicators,
.mobile-step-indicators {
  display: none;
}

/* Only show when not hidden-step-1 */
.right-top-step-indicators:not(.hidden-step-1),
.mobile-step-indicators:not(.hidden-step-1) {
  display: block;
}

/* Shared base styles */
.right-top-step-indicators,
.mobile-step-indicators {
  position: absolute;
  display: flex;
  gap: 20px; /* horizontal gap for desktop and mobile */
  justify-content: flex-start;
  align-items: flex-end;
  pointer-events: none; /* purely decorative */
  z-index: 60; /* above right-top band */
}

/* Desktop placement: overlay inside right-top-music band */
@media (min-width: 768px) {
  .right-top-step-indicators:not(.hidden-step-1) {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 320px; /* 4 * 60px + 3 * 20px gaps */
    height: 120px;
    display: block;
    position: absolute;
  }
  .mobile-step-indicators {
    display: none !important;
  }
}

/* Mobile placement: overlay inside mobile music note image block */
@media (max-width: 767px) {
  .mobile-music-note-wrap {
    position: relative;
  }
  .mobile-step-indicators:not(.hidden-step-1) {
    bottom: 0;
    left: 0;
    right: auto;
    width: 280px; /* 4 * 50px + 3 * 20px gaps */
    height: 60px; /* enough height for bottom offsets */
    display: block;
    position: absolute;
  }
  .right-top-step-indicators {
    display: none !important;
  }
}

/* Indicator item and background container */
.right-top-step-indicators .indicator-item,
.mobile-step-indicators .indicator-item {
  position: absolute;
  width: 60px; /* desktop default; overridden for mobile below */
  height: 48px;
  display: block; /* Changed from flex to block for better positioning */
}

/* Background container SVG (desktop) */
.right-top-step-indicators .indicator-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 48px;
  flex-shrink: 0;
  z-index: 99;
}

/* Ensure indicator content centers over the oval */
.indicator-content {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 100 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  pointer-events: none !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Ensure both number and check content are properly positioned */
.indicator-number,
.indicator-check {
  position: relative !important;
  z-index: 101 !important;
}

/* Background container SVG (mobile) */
.mobile-step-indicators .indicator-item {
  width: 50px;
  height: 40px;
  display: block; /* Ensure block display for mobile too */
}
.mobile-step-indicators .indicator-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 50px;
  height: 40px;
  flex-shrink: 0;
  z-index: 99;
}

/* Check icon for previous steps - exact specifications */
.indicator-check svg {
  width: 28px !important;
  height: 28px !important;
  flex-shrink: 0 !important;
  aspect-ratio: 1/1 !important;
  z-index: 101 !important;
  display: block !important;
}

/* Force white fill for checkmark SVG */
.indicator-check svg path {
  fill: #ffffff !important;
}

/* Ensure checkmark is properly centered */
.indicator-check {
  width: 28px !important;
  height: 28px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Force visibility for previous step checkmarks */
.right-top-step-indicators .indicator-item.is-previous .indicator-check svg,
.mobile-step-indicators .indicator-item.is-previous .indicator-check svg {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Ensure SVG paths have white fill */
.right-top-step-indicators
  .indicator-item.is-previous
  .indicator-check
  svg
  path,
.mobile-step-indicators .indicator-item.is-previous .indicator-check svg path {
  fill: #ffffff !important;
}

/* Numbered steps typography - exact specifications */
.indicator-number {
  position: relative;
  color: #fff !important;
  text-align: center;
  -webkit-text-stroke-width: 3px;
  -webkit-text-stroke-color: #71c8bc !important;
  font-family: Oswald, sans-serif !important;
  font-size: 20px !important; /* desktop */
  font-style: normal;
  font-weight: 700 !important;
  line-height: 1;
  z-index: 101;
  width: auto;
  height: auto;
  display: block;
}

@media (max-width: 767px) {
  .indicator-number {
    color: #fff !important;
    text-align: center;
    -webkit-text-stroke-width: 3px;
    -webkit-text-stroke-color: #71c8bc !important;
    font-family: Oswald, sans-serif !important;
    font-size: 18px !important; /* mobile */
    font-style: normal;
    font-weight: 700 !important;
    line-height: 1;
    z-index: 101;
    width: auto;
    height: auto;
    display: block;
  }
}

/* Improve readability: white numbers with white stroke; weight/size handled per state */
.right-top-step-indicators .indicator-item.is-current .indicator-number,
.right-top-step-indicators .indicator-item.is-upcoming .indicator-number,
.mobile-step-indicators .indicator-item.is-current .indicator-number,
.mobile-step-indicators .indicator-item.is-upcoming .indicator-number {
  -webkit-text-stroke-color: #ffffff !important;
  color: #ffffff !important;
  font-weight: 300 !important;
  -webkit-text-stroke-width: 2px !important;
  font-size: 18px !important; /* desktop base; mobile override below */
}

@media (max-width: 767px) {
  .mobile-step-indicators .indicator-item.is-current .indicator-number,
  .mobile-step-indicators .indicator-item.is-upcoming .indicator-number {
    font-size: 16px !important;
  }
}

/* STEP INDICATOR STATE MANAGEMENT - NUCLEAR APPROACH */

/* FORCE DEFAULT STATE: Show numbers, hide checkmarks */
/* Current step: darker blue background SVG */
.right-top-step-indicators .indicator-item.is-current .indicator-bg path,
.mobile-step-indicators .indicator-item.is-current .indicator-bg path {
  fill: #0e92ba !important;
}

span.indicator-content.indicator-number {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 999 !important;
}

span.indicator-content.indicator-check {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  position: absolute !important;
  z-index: 998 !important;
}

/* FORCE PREVIOUS STEPS: Hide numbers, show checkmarks */
.indicator-item.is-previous span.indicator-content.indicator-number {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

.indicator-item.is-previous span.indicator-content.indicator-check {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 999 !important;
}

/* DESKTOP SPECIFIC OVERRIDE - MAXIMUM SPECIFICITY */
.right-top-step-indicators
  .indicator-item.is-previous
  span.indicator-content.indicator-check {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 1000 !important;
}

.right-top-step-indicators
  .indicator-item.is-previous
  span.indicator-content.indicator-number {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  position: absolute !important;
  z-index: 1 !important;
}

/* FORCE CURRENT AND UPCOMING: Show numbers, hide checkmarks */
.indicator-item.is-current span.indicator-content.indicator-number,
.indicator-item.is-upcoming span.indicator-content.indicator-number {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.indicator-item.is-current span.indicator-content.indicator-check,
.indicator-item.is-upcoming span.indicator-content.indicator-check {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* Desktop positioning - exact to spec: horizontal gap 20px; bottoms 0, 20, 10, 6px */
.right-top-step-indicators .indicator-item:nth-child(1) {
  left: 0;
  bottom: 5%;
}
.right-top-step-indicators .indicator-item:nth-child(2) {
  left: 80px; /* 60px width + 20px gap */
  bottom: 25%;
}
.right-top-step-indicators .indicator-item:nth-child(3) {
  left: 160px; /* 2 * (60px width + 20px gap) */
  bottom: 2%;
}
.right-top-step-indicators .indicator-item:nth-child(4) {
  left: 240px; /* 3 * (60px width + 20px gap) */
  bottom: 22%;
}

/* Mobile positioning - exact to spec: horizontal gap 20px; bottoms 0, 20, 10, 6px */
.mobile-step-indicators .indicator-item:nth-child(1) {
  left: 10px;
  bottom: 10%;
}
.mobile-step-indicators .indicator-item:nth-child(2) {
  left: 60px; /* 50px width + 20px gap */
  bottom: 70%;
}
.mobile-step-indicators .indicator-item:nth-child(3) {
  left: 120px; /* 2 * (50px width + 20px gap) */
  bottom: 40%;
}
.mobile-step-indicators .indicator-item:nth-child(4) {
  left: 180px; /* 3 * (50px width + 20px gap) */
  bottom: 95%;
}

/* ========== STEP INDICATOR ========== */
.step-indicator {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 2rem 1rem;
  background: #ffffff;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

/* Hide step indicator on step 1 but maintain spacing */
.step-indicator.hidden-step-1 {
  visibility: hidden;
}

/*  Better step indicator content centering */
.step-indicator-content {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  overflow-x: auto;
  width: auto;
  min-width: auto;
}

.step-item {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.step-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.step-dot.active {
  background: linear-gradient(to right, var(--amber), var(--amber-light));
  color: white;
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4);
  transform: scale(1.1);
}

.step-dot.completed {
  background: linear-gradient(to right, var(--amber), var(--amber-light));
  color: white;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

.step-dot:not(.active):not(.completed) {
  background-color: #d1d5db;
  color: #6b7280;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.step-line {
  width: 3rem;
  height: 4px;
  border-radius: 9999px;
  margin: 0 0.5rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.step-dot.active + .step-line,
.step-dot.completed + .step-line {
  background: linear-gradient(to right, var(--amber-dark), #d1d5db);
}

.step-dot:not(.active):not(.completed) + .step-line {
  background-color: #d1d5db;
}

/* ========== CONTENT LAYOUT - RESPONSIVE ========== */
.form-content-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
  height: 100vh;
  position: relative;
}

/* ========== LEFT SECTION ========== */
.fixed-left-section {
  width: var(--left-section-width);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  flex-shrink: 0;
  overflow: hidden;
  padding: 0;
  z-index: 200; /* ensure above right side */
  /* Round external left corners on desktop */
  border-top-left-radius: var(--container-border-radius);
  border-bottom-left-radius: var(--container-border-radius);

  align-items: center;
  justify-content: flex-start;
}

.left-content {
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1100; /* keep text above the image */
}

/* Desktop top hero image over left section */
.left-hero {
  display: none;
}

@media (min-width: 768px) {
  .fixed-left-section {
    overflow: visible; /* allow image to overflow to the right */
  }
  .left-hero {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    z-index: 1000; /* on top of right side */
    pointer-events: none; /* don't block interactions */
  }
  .scrollable-right-section,
  .form-content,
  .form-step,
  .info-section-content,
  .content-overlay {
    position: relative;
    z-index: 10;
  }
}

/* Mobile top image band for the right section */
@media (max-width: 767px) {
  .scrollable-right-section::before {
    content: none !important;
  }
}

/* Dynamic header section */
.dynamic-header-section {
  text-align: center;
  margin-top: 0;
  margin-bottom: 2rem;
  flex-shrink: 0;
  padding-top: 0;
}

.dynamic-header-section h2 {
  font-family: "Lobster", cursive;
  letter-spacing: 0.1rem;
  font-size: clamp(1.4rem, 3.2vw, 1.6rem);
  font-weight: 600;
  color: #374151;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.dynamic-header-section .form-subtitle {
  color: #6b7280;
  font-size: clamp(0.875rem, 2.5vw, 1rem);
  font-family: "Lobster", cursive;
  letter-spacing: 0.07rem;
  font-weight: 400;
  line-height: 1.4;
  margin: 0;
}

/* ========== IMAGE CONTAINER ========== */
.image-container {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 2rem;
  min-height: 280px;
  max-height: 60vh;
  position: relative;
  overflow: hidden;
}

#left-section-image {
  width: 80%;
  height: 260px;
  object-fit: cover;
  object-position: center;
  border-radius: 1.5rem !important;
  margin-top: 10px;
  transition: all 0.3s ease;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ========== RIGHT SECTION ========== */
.scrollable-right-section {
  width: var(--right-section-width);
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  background: #ffffff;
  position: relative; /* anchor for right-top band */
  /* Round external right corners on desktop */
  border-top-right-radius: var(
    --right-corner-radius,
    var(--container-border-radius)
  );
  border-bottom-right-radius: var(--container-border-radius);
}

/* Right-top band element inside the right section */
.right-top-band {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 140px;
  overflow: hidden;
}

/* Replace element band with pseudo-element (single source) */
@media (min-width: 768px) {
  .scrollable-right-section::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 0;
    right: 0;
    height: 140px;
    background-image: url("/wp-content/plugins/new-multistep-enquiry-form/assets/img/right-top-music.png");
    background-repeat: no-repeat;
    background-size: calc(100% + var(--right-band-overlap-left, 0px)) 100%;
    background-position: calc(-1 * var(--right-band-overlap-left, 0px)) top;
    z-index: 2;
    pointer-events: none;
    border-top-right-radius: var(
      --right-corner-radius,
      var(--container-border-radius)
    );
  }
}

/* ========== FORM CONTENT AREA ========== */
.form-content {
  position: relative;
  z-index: 10;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 0;
  flex: 1;
}

/* ========== FORM STEPS ========== */
.form-step {
  height: 100%;
  overflow: hidden;
  animation-duration: 0.5s;
  animation-fill-mode: both;
  transition: all 0.3s ease;
  position: relative;
}

.form-step.active {
  animation-name: fadeInUp;
}

.fade-in {
  animation-name: fadeInUp;
}

.fade-out {
  animation-name: fadeOutDown;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOutDown {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-30px);
  }
}

/* ========== INFO SECTION CONTAINER ========== */
.info-section-container {
  position: relative;
  box-shadow: none;
  overflow: hidden;
  height: 100%;
  background: transparent;
  margin: 0;
  border-radius: 0;
  flex: 1;
}

/* ========== CONTENT WITH BACKGROUND IMAGE ========== */
.info-section-content {
  position: relative;
  z-index: 0;
  border-radius: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background-image: none;
  background-color: #ffffff;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  height: 100%;
}

/* Content overlay for readability */
.content-overlay {
  position: relative;
  z-index: 5;
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: var(--spacing-large);
  padding-bottom: calc(var(--spacing-large) * 2);
  min-height: 100%;
  width: 100%;
  border-radius: 0;
}

/* ========== DESKTOP: GAP BETWEEN RIGHT-TOP-MUSIC AND EMAIL FIELD ========== */
/* Add gap between right-top-music.png section and email field section on desktop only */
@media (min-width: 768px) {
  .content-overlay,
  [id^="popmake-"] .content-overlay {
    padding-top: calc(
      var(--spacing-large) + 40px
    ) !important; /* 32px + 200px = 232px total - matches the provided image spacing */
  }
}

/* ========== INPUT STYLING ========== */
/* Base input styling - border, border-radius, background handled by global design system */
.multistep-form-container input[type="text"],
.multistep-form-container input[type="email"],
.multistep-form-container input[type="tel"],
.multistep-form-container input[type="number"],
.multistep-form-container select,
.multistep-form-container textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  padding-left: 2.75rem;
  font-size: clamp(0.875rem, 2vw, 1rem);
  color: #374151;
  transition: all 0.2s ease;
  min-height: 48px;
  /* border, border-radius, background, font-family handled by global design system */
}

/* Focus styling enhanced by global design system - keeping transform effect */
.multistep-form-container input:focus,
.multistep-form-container select:focus,
.multistep-form-container textarea:focus {
  outline: none;
  transform: translateY(-1px);
  /* border-color and box-shadow handled by global design system */
}

.input-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  z-index: 5;
  pointer-events: none;
}

/* ========== BUTTON STYLING ========== */
.btn-primary,
.btn-secondary {
  font-weight: 800;
  padding: 0.875rem 2rem;
  border-radius: var(--border-radius-btn);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-size: clamp(0.6rem, 1.6vw, 0.7rem);
  box-shadow: 0 4px 12px rgba(14, 146, 186, 0.15);
  font-family: inherit;
  height: 50px;
  white-space: nowrap;
}

.btn-primary svg path {
  fill: #ffffff;
}

.btn-secondary svg path {
  fill: #71c8bc;
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

.btn-secondary:hover svg {
  transform: translateX(-4px);
}

/* Submit/Trigger Button Styling */
.btn-primary,
.next-step,
#submit-form {
  border-radius: 20px;
  background: linear-gradient(97deg, #71c8bc 0%, #0e92ba 100%);
  box-shadow: 0 4px 15px 0 rgba(14, 146, 186, 0.3);
  color: #fff;
  text-align: center;
  font-family: Oswald, sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 32px; /* 160% */
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  height: 50px;
  white-space: nowrap;
}

.btn-primary:hover,
.next-step:hover,
#submit-form:hover {
  background: linear-gradient(97deg, #0e92ba 0%, #71c8bc 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(14, 146, 186, 0.45);
}

/* Back Button Styling */
.btn-secondary,
.prev-step {
  border-radius: 20px;
  border: 1px solid #71c8bc;
  background: #fff;
  color: #71c8bc;
  text-align: center;
  font-family: Oswald, sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 32px; /* 160% */
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  height: 50px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(113, 200, 188, 0.15);
}

.btn-secondary:hover,
.prev-step:hover {
  background: rgba(113, 200, 188, 0.05);
  border-color: #0e92ba;
  color: #0e92ba;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(113, 200, 188, 0.25);
}

/* SVG colors */
.btn-primary svg path,
.next-step svg path,
#submit-form svg path {
  fill: #ffffff;
}

.btn-secondary svg path,
.prev-step svg path {
  fill: #71c8bc;
}

/* Hover animations */
.btn-primary:hover svg,
.next-step:hover svg,
#submit-form:hover svg {
  transform: translateX(4px);
}

.btn-secondary:hover svg,
.prev-step:hover svg {
  transform: translateX(-4px);
}

/* ========== INSTRUMENT SELECTION STYLING ========== */

/* Step 3 Title Styling */
.form-section-title {
  font-family: "Oswald", sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--6-grey-title, #2b2b2b) !important;
  margin-top: -20px !important; /* Reduce gap from top vs Form section tittle */
  margin-bottom: 16px !important; /* This padding is applied */
  line-height: 36px !important;
}

/* Form Field Label Styling */
.form-field-label {
  font-family: "Inter", sans-serif !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  color: var(--6-grey-title, #2b2b2b) !important;
  margin-bottom: 12px !important;
  display: block !important;
}

/*  Primary instrument grid for main instruments (Piano, Violin, Guitar, Singing, Flute, Others) */
/* Responsive grid behavior:
     - Desktop: 2 columns initially → 3 columns when "Others" is selected
   - Mobile/Tablet: 2 columns always (3 columns would be too cramped)
*/
.primary-instrument-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /*  Start with 2 columns */
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease; /* Smooth transition when changing layout */
}

/*  Keep 2-column layout always, even when Others is selected */
.primary-instrument-grid.expanded {
  grid-template-columns: repeat(2, 1fr); /* Always 2 columns */
}

.instrument-option {
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 20px;
  overflow: hidden;
  background: white;
  border: 1px solid var(--5-mint, #71c8bc);
  padding: 12px 16px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.instrument-option:hover {
  border-color: var(--5-mint, #71c8bc);
  background: var(--4-light-blue, #cff4ff);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(113, 200, 188, 0.2);
}

.instrument-option.selected {
  border-color: var(--5-mint, #71c8bc);
  background: var(--4-light-blue, #cff4ff);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(113, 200, 188, 0.3);
}

/*  Special styling for "Others" button */
.instrument-option.others-button {
  border-style: dashed;
  border-color: var(--5-mint, #71c8bc);
  background: white;
}

.instrument-option.others-button:hover {
  border: 1px solid rgba(82, 82, 82, 0.12);
  border-style: solid;
  background: rgba(82, 82, 82, 0.04);
}

.instrument-option.others-button.selected {
  border: 1px solid rgba(82, 82, 82, 0.12);
  border-style: solid;
  background: rgba(82, 82, 82, 0.04);
}

/* Dropdown arrow styling for Others button */
.dropdown-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.dropdown-arrow svg {
  transition: opacity 0.3s ease;
}

/* Other dots icon styling */
.other-dots-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.instrument-option svg {
  transition: all 0.3s ease;
  margin-bottom: 0.25rem;
  width: clamp(2.25rem, 6vw, 2.75rem);
  height: clamp(2.25rem, 6vw, 2.75rem);
}

.instrument-option:hover svg,
.instrument-option.selected svg {
  transform: scale(1.1);
}

/* Instrument content container for horizontal layout */
.instrument-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

/* Instrument icon styling */
.instrument-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.instrument-option p {
  margin: 0;
  font-family: "Inter", sans-serif !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  color: var(--7-grey-paragraphs, #525252) !important;
  line-height: 1.2 !important;
}

.selection-indicator {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 1rem;
  height: 1rem;
  background: var(--5-mint, #71c8bc);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.instrument-option.selected .selection-indicator {
  opacity: 1;
}

/* ========== SECONDARY INSTRUMENTS SECTION ========== */
.secondary-instruments-section {
  margin-top: 1rem;
  transition: all 0.3s ease;
}

.secondary-instruments-section.hidden {
  display: none !important;
}

/* Secondary instruments container with curved design */
.secondary-instruments-container {
  background: rgba(82, 82, 82, 0.04) !important;
  border: 1px solid rgba(82, 82, 82, 0.12) !important;
  border-radius: 20px;
  padding: 20px;
  margin-top: 0;
  position: relative;
}

/*  Secondary checkbox grid */
.secondary-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 0;
}

/* ========== CUSTOM INSTRUMENT SECTION ========== */
.custom-instrument-section {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--border-radius-medium);
  background: rgba(0, 148, 186, 0.05);
  border: 1px solid rgba(0, 148, 186, 0.2);
  transition: all 0.3s ease;
}

.custom-instrument-section.hidden {
  display: none !important;
}

.custom-instrument-section label {
  color: var(--amber-dark);
  font-weight: 600;
}

.custom-instrument-section input {
  border: 1px solid var(--5-mint, #71c8bc) !important;
  border-radius: 20px !important;
  background: white !important;
  font-family: "Inter", sans-serif !important;
  font-size: 16px !important;
  padding: 12px 16px !important;
}

.custom-instrument-section input:focus {
  border-color: var(--5-mint, #71c8bc) !important;
  box-shadow: 0 0 0 3px rgba(113, 200, 188, 0.1) !important;
  outline: none !important;
}

/* ========== STEP 3 MULTI-STUDENT STYLING ========== */
.same-instrument-checkbox-container {
  margin-bottom: 1.5rem;
  padding: 0;
  background: none;
  border-radius: 0;
  border: none;
}

.same-instrument-checkbox-container .checkbox-item {
  margin: 0;
}

.same-instrument-checkbox-container .checkbox-label {
  font-family: "Inter", sans-serif !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  color: var(--6-grey-title, #2b2b2b) !important;
}

.student-instrument-section {
  margin-bottom: 2rem;
  padding: 0;
  background: none;
  border-radius: 0;
  border: none;
}

.student-instrument-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.student-instrument-header .student-avatar {
  width: 37px;
  height: 44px;
  margin-right: 12px;
  flex-shrink: 0;
}

.student-instrument-header h3 {
  font-family: "Inter", sans-serif !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  color: var(--6-grey-title, #2b2b2b) !important;
  margin: 0;
  line-height: 28px;
}

.student-instrument-header h3 .student-name-bold {
  font-weight: 700 !important;
}

/* ========== CHECKBOX STYLING ========== */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.checkbox-item {
  display: flex;
  align-items: flex-start;
  /*  Removed transition that was causing delay */
  /* transition: all 0.3s ease; */
  padding-left: 0rem;
  gap: 6px;
}

/*  Immediate visual feedback for checked state */
/* .checkbox-item.checked {
  background: rgba(82, 82, 82, 0.08);
  border-color: rgba(82, 82, 82, 0.2);
} */

/* ========== RADIO OPTIONS STYLING ========== */
.radio-options-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.radio-option-item {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.radio-option-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-family: "Inter", sans-serif !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  color: var(--7-grey-paragraphs, #525252) !important;
  transition: all 0.2s ease;
}

.radio-option:checked + .radio-option-label {
  font-weight: 500 !important;
  color: var(--6-grey-title, #2b2b2b) !important;
}

.radio-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  width: 20px;
  height: 20px;
}

.radio-icon svg {
  width: 20px;
  height: 20px;
  transition: all 0.2s ease;
}

/* Show selected icon when radio is checked */
.radio-option:checked + .radio-option-label .music-note-unselected {
  display: none;
}

.radio-option:checked + .radio-option-label .music-note-selected {
  display: block !important;
}

/*  Checkbox styling enhanced by global design system */
.custom-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
  position: relative;
  margin-right: 0;
  flex-shrink: 0;
  /* border, border-radius, background handled by global design system */
}

.custom-checkbox:checked {
  background-color: var(--5-mint, #71c8bc);
  border-color: var(--5-mint, #71c8bc);
  /*  Immediate visual change, no transition delay */
}

.custom-checkbox:checked::after {
  content: "✓";
  color: white;
  font-size: 0.875rem;
  font-weight: bold;
  /*  No transition for immediate appearance */
}

/* Checkbox labels styling */
.checkbox-label,
.checkbox-item label.text-sm.text-gray-700 {
  color: var(--6-grey-title, #2b2b2b) !important;
  font-family: Inter, sans-serif !important;
  font-size: 14px !important;
  font-style: normal !important;
  font-weight: 600 !important;
  cursor: pointer;
  margin: 0;
  line-height: 26px;
  margin-bottom: 1px;
  display: block;
}

.custom-checkbox:hover {
  background-color: rgba(113, 200, 188, 0.1);
  border-color: var(--5-mint, #71c8bc);
}

/* ========== VALIDATION STYLING ========== */
.validation-error.hidden {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.validation-error {
  color: var(--red);
  font-size: clamp(0.75rem, 2vw, 0.875rem);
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  font-weight: 500;
  transition: all 0.2s ease;
  padding: 0.75rem;
  background: var(--red-light);
  border-radius: var(--border-radius-small);
  border: 1px solid #fecaca;
}

.multistep-form-container input.border-red-500,
.multistep-form-container select.border-red-500,
.multistep-form-container textarea.border-red-500 {
  border-color: var(--red) !important;
  background-color: var(--red-light) !important;
}

/* ========== FORM MESSAGES ========== */
#form-messages.hidden {
  display: none !important;
  visibility: hidden !important;
}

.error-message,
.success-message,
.loading-message {
  padding: 1rem;
  border-radius: var(--border-radius-medium);
  text-align: center;
  margin-bottom: 0.5rem;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  font-size: clamp(0.875rem, 2vw, 1rem);
}

.error-message {
  background-color: rgba(254, 242, 242, 0.9);
  color: #dc2626;
  border: 1px solid #fecaca;
}

.success-message {
  background-color: rgba(240, 253, 244, 0.9);
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

/* Enhanced loading message styling for immediate visibility */
.loading-message {
  background-color: rgba(239, 246, 255, 0.95) !important;
  color: #2563eb !important;
  border: 1px solid #dbeafe !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 600 !important;
  min-height: 60px !important;
}

.loading-message.hidden {
  display: none !important;
}

/* ========== SCROLLBAR STYLING ========== */
.info-section-content::-webkit-scrollbar,
.form-content::-webkit-scrollbar {
  width: 8px;
}

.info-section-content::-webkit-scrollbar-track,
.form-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  margin: 4px;
}

.info-section-content::-webkit-scrollbar-thumb,
.form-content::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--amber), var(--amber-dark));
  border-radius: 4px;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.info-section-content::-webkit-scrollbar-thumb:hover,
.form-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, var(--amber-dark), var(--amber));
  opacity: 1;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

/* Firefox scrollbar */
.info-section-content,
.form-content {
  scrollbar-width: thin;
  scrollbar-color: var(--amber) rgba(255, 255, 255, 0.3);
}

/* ========== LOADING SPINNER ========== */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* ========== API STATUS TOAST ========== */
.api-status-toast {
  position: fixed;
  top: 1rem;
  right: 1rem;
  padding: 0.75rem;
  border-radius: var(--border-radius-small);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  z-index: 50;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  font-size: clamp(0.75rem, 2vw, 0.875rem);
}

.api-status-toast.bg-green-100 {
  background-color: rgba(220, 252, 231, 0.9);
  color: #065f46;
}

.api-status-toast.bg-red-100 {
  background-color: rgba(254, 226, 226, 0.9);
  color: #991b1b;
}

/* ========== DESKTOP LAYOUT FIXES ========== */
@media (min-width: 768px) {
  .form-main-container {
    flex-direction: row;
    height: 100vh;
    max-height: 100vh;
    border-radius: var(--container-border-radius);
  }

  .form-content-layout {
    height: 100vh;
  }

  .fixed-left-section {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: var(--left-section-width);
    padding: 0;
    justify-content: flex-start;
  }

  .left-content {
    padding: 0;
    width: 100%;
    margin-top: 0;
  }

  .dynamic-header-section {
    margin-top: 0;
    padding-top: 0;
  }

  .dynamic-header-section h2 {
    margin-top: 0;
    padding-top: 0;
  }

  /* Desktop/Tablet: full-width right-top decorative band */
  .scrollable-right-section::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 0;
    right: 0;
    height: 140px; /* increased per request */
    background-image: url("/wp-content/plugins/new-multistep-enquiry-form/assets/img/right-top-music.png");
    background-repeat: no-repeat;
    background-size: calc(100% + var(--right-band-overlap-left, 0px)) 100%;
    background-position: calc(-1 * var(--right-band-overlap-left, 0px)) top;
    pointer-events: none;
    z-index: 50; /* ensure above white content backgrounds */
    border-top-right-radius: var(
      --right-corner-radius,
      var(--container-border-radius)
    );
  }

  /* Ensure content sits above the decorative band */
  .scrollable-right-section .form-content {
    position: relative;
    z-index: 2;
  }
  /* Hide the desktop band on small screens to avoid double bands */
  @media (max-width: 767px) {
    .scrollable-right-section::before {
      content: none !important;
    }
  }

  /* Ensure external corners are rounded on desktop */
  .fixed-left-section {
    border-top-left-radius: var(--container-border-radius);
    border-bottom-left-radius: var(--container-border-radius);
  }
  .scrollable-right-section {
    border-top-right-radius: var(--container-border-radius);
    border-bottom-right-radius: var(--container-border-radius);
  }

  .scrollable-right-section {
    margin-left: var(--left-section-width);
    width: var(--right-section-width);
    height: 100vh;
  }
}

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 767px) {
  :root {
    --border-radius-large: var(--border-radius-small);
    --spacing-large: var(--spacing-small);
  }

  .multistep-form-container {
    padding: 0 0.5rem;
    height: var(--mobile-form-height);
    max-height: var(--mobile-form-height);
  }

  .form-main-container {
    border-radius: var(--container-border-radius);
    height: 100%;
    display: flex;
    flex-direction: column !important;
  }

  .step-indicator {
    padding: 1rem 1rem 0.75rem;
    flex-shrink: 0;
  }

  /* Step indicator centering */
  .step-indicator-content {
    padding: 0.5rem 1rem;
    width: auto;
    min-width: auto;
    justify-content: center;
  }

  .step-dot {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
  }

  .step-line {
    width: 1.5rem;
    margin: 0 0.25rem;
  }

  /* Mobile - Single scrolling container */
  .form-content-layout {
    flex-direction: column;
    flex: 1;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: calc(100% - 100px);
    background-color: #ffffff;
    position: relative;
    padding-bottom: 2rem;
  }

  .fixed-left-section {
    width: 100%;
    flex-shrink: 0;
    min-height: auto;
    height: auto;
    overflow: visible !important;
    background: transparent;
    position: relative !important;
    left: auto !important;
    top: auto !important;
    z-index: auto !important;
    margin-left: 0 !important;
  }

  .left-content {
    padding: 0 1rem 10px 1rem;
    flex-direction: column;
    min-height: auto;
    height: auto;
    overflow: visible !important;
  }

  .dynamic-header-section {
    text-align: center;
    margin-top: 0;
    margin-bottom: 0.5rem;
    flex-shrink: 0;
  }

  /* ========== MOBILE TITLE SPACING FOR STEPS 2, 3, 4 ========== */
  /* Default title margin for step 1 on mobile */
  .multistep-form-container.mobile-step-1 .dynamic-header-section h2 {
    margin-top: 0;
    margin-bottom: 0.75rem;
  }

  /* Increased margin for steps 2, 3, 4 on mobile only */
  .multistep-form-container.mobile-step-2 .dynamic-header-section h2,
  .multistep-form-container.mobile-step-3 .dynamic-header-section h2,
  .multistep-form-container.mobile-step-4 .dynamic-header-section h2 {
    margin-top: 0 !important;
    margin-bottom: 2rem !important;
  }

  /* Show image only for step 1 on mobile, hide for steps 2, 3, 4 */
  .multistep-form-container.mobile-step-2 .image-container,
  .multistep-form-container.mobile-step-3 .image-container,
  .multistep-form-container.mobile-step-4 .image-container {
    display: none !important;
  }

  .multistep-form-container.mobile-step-2 .dynamic-header-section,
  .multistep-form-container.mobile-step-3 .dynamic-header-section,
  .multistep-form-container.mobile-step-4 .dynamic-header-section {
    margin-bottom: 0.5rem;
  }

  /* Ensure image is visible for step 1 on mobile */
  .multistep-form-container.mobile-step-1 .image-container {
    display: flex !important;
  }

  /* MOBILE RESPONSIVE - Image containers */
  .image-container {
    flex: 0 0 auto;
    padding-bottom: 0;
    min-height: 140px;
    max-height: 35vh;
    align-items: center;
  }

  #left-section-image {
    width: 80%;
    height: 220px;
    margin-top: 10px;
    animation: none;
  }

  .scrollable-right-section {
    flex: 1;
    height: auto;
    max-height: none;
    overflow: visible !important;
    display: block;
    padding: 0;
    min-height: 300px;
    background: transparent;
    position: relative;
    width: 100% !important;
    margin-left: 0 !important;
  }

  .form-content {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    display: block;
    min-height: 300px;
    background: transparent;
    position: relative;
  }

  .info-section-container {
    margin: 10px;
    min-height: 400px;
    height: auto;
    overflow: visible !important;
    position: relative;
    background: transparent;
    margin-bottom: 2rem;
  }

  .info-section-content {
    position: relative !important;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    height: auto;
    overflow: visible !important;
    background-image: none;
    background-color: #ffffff;
    border-radius: 0;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }

  .content-overlay {
    padding: 1rem;
    min-height: 400px;
    height: auto;
    display: block;
    position: relative;
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
    padding-bottom: 2rem;
  }

  /*  Mobile instrument */
  .primary-instrument-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .primary-instrument-grid.expanded {
    grid-template-columns: repeat(2, 1fr);
  }

  .secondary-checkbox-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .checkbox-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-step {
    height: auto !important;
    min-height: 400px;
    display: block;
    overflow: visible !important;
    position: relative;
    padding-bottom: 1rem;
  }

  .form-step.active {
    display: block !important;
    height: auto !important;
  }

  .form-step.hidden {
    display: none !important;
  }

  .form-step:last-child {
    margin-bottom: 2rem;
  }

  .btn-primary,
  .btn-secondary {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
  }

  .flex.justify-between {
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .flex.justify-between .next-step,
  .flex.justify-between #submit-form {
    order: 1;
    width: 100%;
    justify-content: center;
    margin-bottom: 0;
  }

  .flex.justify-between .prev-step {
    order: 2;
    width: 100%;
    justify-content: center;
    margin-bottom: 0;
  }

  .flex.justify-between .btn-secondary,
  .flex.justify-between .btn-primary {
    width: 100%;
    justify-content: center;
  }

  #submit-form {
    margin-bottom: 1rem;
  }

  #form-messages {
    margin-bottom: 2rem;
  }

  .api-status-toast {
    top: 0.5rem;
    right: 0.5rem;
    left: 0.5rem;
    width: auto;
    text-align: center;
  }
}

/* Extra Small Mobile */
@media (max-width: 479px) {
  .multistep-form-container {
    padding: 0 0.25rem;
  }

  .step-indicator {
    padding: 0.5rem 0.5rem 0.25rem;
  }

  .step-dot {
    width: 28px;
    height: 28px;
    font-size: 0.6875rem;
  }

  .step-line {
    width: 1rem;
    height: 2px;
  }

  .form-content-layout {
    padding-bottom: 3rem;
  }

  .content-overlay {
    padding-bottom: 2.5rem;
  }

  .info-section-container {
    margin-bottom: 2.5rem;
  }

  .form-step {
    padding-bottom: 1.5rem;
  }

  #left-section-image {
    width: 90%;
    height: 200px;
    margin-top: 10px;
  }

  /*  Extra small mobile instrument grid */
  .primary-instrument-grid {
    grid-template-columns: repeat(
      2,
      1fr
    ); /* Keep 2 columns on extra small mobile */
    gap: 0.5rem;
  }

  /* On extra small mobile, always stay at 2 columns */
  .primary-instrument-grid.expanded {
    grid-template-columns: repeat(2, 1fr);
  }

  .secondary-checkbox-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  /* Mobile styling for secondary instruments container */
  .secondary-instruments-container {
    padding: 16px;
    margin-top: 12px;
  }

  /* Mobile checkbox items */
  .checkbox-item {
    padding: 10px;
    margin-bottom: 6px;
  }

  /* Mobile styling for Step 3 title */
  .form-section-title {
    font-size: 16px !important;
  }

  /* Mobile styling for instrument options */
  .instrument-option {
    padding: 10px 12px;
    min-height: 50px;
  }

  .instrument-option p {
    font-size: 14px !important;
  }

  /* Mobile selection indicator */
  .selection-indicator {
    width: 0.875rem;
    height: 0.875rem;
    top: 0.375rem;
    right: 0.375rem;
  }

  /* Mobile styling for radio options */
  .radio-option-label {
    font-size: 14px !important;
  }

  .checkbox-label {
    font-size: 14px !important;
  }

  /* ========== EXTRA SMALL MOBILE: ENHANCED TITLE SPACING ========== */
  /* Even more margin for extra small mobile devices on steps 2, 3, 4 */
  .multistep-form-container.mobile-step-2 .dynamic-header-section h2,
  .multistep-form-container.mobile-step-3 .dynamic-header-section h2,
  .multistep-form-container.mobile-step-4 .dynamic-header-section h2 {
    margin-top: 0 !important;
    margin-bottom: 2rem !important;
  }
}

/* ========== STEP 2 - STUDENT PROFILE SECTION ========== */
.student-section {
  margin-bottom: 2rem;
  padding: 0;
  border: none;
  background: transparent;
  position: relative;
}

.student-section:first-child {
  border: none;
  padding: 0;
  background: transparent;
  margin-bottom: 2rem;
}

#students-container .space-y-3 > div {
  margin-bottom: 1.5rem;
}

#students-container .space-y-3 > div:last-child {
  margin-bottom: 0;
}

/* Student Section Header with Remove Button */
.student-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.student-section h3 {
  margin: 0;
}

.add-student-button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--3-blue, #0e92ba);
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 26px; /* 162.5% */
  transition: all 0.2s ease;
  cursor: pointer;
  gap: 8px;
}

.add-student-button:hover {
  opacity: 0.8;
}

.add-student-button svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.remove-student-button {
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
  color: var(--5-mint, #71c8bc);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
  margin: 0;
}

.remove-student-button:hover {
  color: #5ba89f;
}

.remove-student-button svg {
  width: 20px;
  height: 20px;
}

/* ========== LESSON TYPE OPTIONS STYLING (Step 1) ========== */
.lesson-type-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* Third item spans both columns but left-aligned */
.lesson-type-options-grid .experience-option:nth-child(3) {
  grid-column: 1 / -1;
  max-width: 50%;
  justify-self: start;
}

/* Lesson type specific styling for horizontal layout */
.lesson-type-options-grid .experience-content {
  justify-content: flex-start !important;
  align-items: center !important;
  flex-direction: row !important;
  gap: 10px !important;
}

/* Text wrapper for text and price in same row */
.lesson-type-text-wrapper {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.lesson-type-text-wrapper p {
  margin: 0 !important;
  font-family: "Inter", sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--7-grey-paragraphs, #525252) !important;
  line-height: 1.2 !important;
  white-space: nowrap;
  flex-shrink: 0;
}

.lesson-type-price {
  background-color: #0e92ba;
  color: white;
  font-family: "Inter", sans-serif !important;
  font-size: 8px !important;
  font-weight: 600 !important;
  padding: 4px 6px;
  border-radius: 16px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 1;
  min-width: 0;
  margin-left: 4px;
  max-width: 60px;
}

/* Update selected state for lesson type text */
.lesson-type-options-grid
  .experience-option.selected
  .lesson-type-text-wrapper
  p {
  color: var(--6-grey-title, #2b2b2b) !important;
  font-weight: 500 !important;
}

/* Experience Options Styling - Similar to Instrument Selection */
.experience-section {
  margin-bottom: 1.5rem;
}

.experience-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.experience-option {
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(82, 82, 82, 0.04);
  border: 1px solid rgba(82, 82, 82, 0.12);
  padding: 0 10px;
  height: 40px;
  padding-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  box-sizing: border-box;
}

.experience-option:hover {
  border-color: var(--5-mint, #71c8bc);
  background: var(--4-light-blue, #cff4ff);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(113, 200, 188, 0.2);
}

.experience-option.selected {
  border-color: var(--5-mint, #71c8bc);
  background: var(--4-light-blue, #cff4ff);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(113, 200, 188, 0.3);
}

/* Custom Checkbox Indicator - HIDDEN */
.experience-radio-indicator {
  display: none !important;
}

/* Experience radio indicator styles removed */

.experience-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  height: 100%;
  padding-right: 0;
  min-height: 40px;
}

.experience-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.experience-option p {
  margin: 0;
  font-family: "Inter", sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--7-grey-paragraphs, #525252) !important;
  line-height: 1 !important;
}

.experience-option.selected p {
  color: var(--6-grey-title, #2b2b2b) !important;
  font-weight: 500 !important;
}

/* Experience selection indicator styles removed */

.experience-option.selected .experience-icon path {
  fill: #0e92ba !important;
  fill-opacity: 1 !important;
}

.experience-radio {
  display: none;
}

.experience-option-label {
  width: 100%;
  height: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  min-height: 40px;
}

/* Mobile responsive adjustments for lesson type grid */
@media (max-width: 767px) {
  .lesson-type-options-grid {
    gap: 8px;
  }

  .lesson-type-text-wrapper p {
    font-size: 13px !important;
  }

  .lesson-type-price {
    font-size: 7px !important;
    max-width: 50px;
  }
}

/* Mobile responsive adjustments for student section */
@media (max-width: 767px) {
  .student-section {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }

  .student-section h3 {
    font-size: 18px !important;
    line-height: 28px !important;
  }

  .add-student-button {
    padding: 10px 14px;
    font-size: 14px;
  }

  .remove-student-button {
    width: 20px;
    height: 20px;
  }

  .remove-student-button svg {
    width: 16px;
    height: 16px;
  }

  .experience-option {
    padding: 0 8px;
    height: 40px;
    padding-top: 8px;
  }

  .experience-option p {
    font-size: 13px !important;
  }

  .experience-icon {
    width: 12px;
    height: 12px;
  }

  /* Mobile experience radio indicator styles removed */

  .experience-content {
    gap: 6px;
    padding-right: 0;
  }
}

/* ========== STEP 4 - SET YOUR GOAL SECTION ========== */
.goal-section {
  margin-bottom: 2rem;
  margin-top: 0.75rem;
}

/* ========== STEP 4 - CHOOSE YOUR MUSICAL DREAM SECTION ========== */
.musical-dream-section {
  margin-bottom: 1.5rem;
  margin-top: 0.75rem;
}

/* Initially hide both sections - they will be shown conditionally based on student age */
.goal-section,
.musical-dream-section {
  display: none;
}

.goal-section.show,
.musical-dream-section.show {
  display: block;
}

/* Universal subtitle styling for Step 4 */
.goal-section .form-section-subtitle,
.musical-dream-section .form-section-subtitle,
.additional-info-subtitle {
  color: var(--7-grey-paragraphs, #525252) !important;
  font-family: Inter, sans-serif !important;
  font-size: 14px !important;
  font-style: normal !important;
  font-weight: 400 !important;
  line-height: 22px !important;
  margin-top: 0 !important;
  margin-bottom: 0.5rem !important;
  padding-bottom: 0.5rem;
  z-index: 9999;
}

.goal-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.goal-option {
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--5-mint, #71c8bc);
  padding: 10px;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.goal-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(113, 200, 188, 0.3);
}

.goal-option.selected {
  background: var(--4-light-blue, #cff4ff);
  border-color: var(--5-mint, #71c8bc);
}

.goal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 10px;
}

.goal-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.goal-option p {
  color: var(--6-grey-title, #2b2b2b) !important;
  text-align: center !important;
  font-family: Inter, sans-serif !important;
  font-size: 12px !important;
  font-style: normal !important;
  font-weight: 500 !important;
  line-height: 20px !important;
  margin: 0;
}

.goal-option.selected p {
  color: var(--6-grey-title, #2b2b2b) !important;
}

.goal-selection-indicator {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 1rem;
  height: 1rem;
  background: var(--5-mint, #71c8bc);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.goal-option.selected .goal-selection-indicator {
  opacity: 1;
}

/* Universal label title styling for Step 4 */
.additional-info-title,
.goal-section .form-section-title,
.musical-dream-section .form-section-title {
  color: var(--6-grey-title, #2b2b2b) !important;
  font-family: Oswald, sans-serif !important;
  font-size: 18px !important;
  font-style: normal !important;
  font-weight: 600 !important;
  line-height: 28px !important;
  margin-bottom: 0.5rem !important;
}

/* Additional Info Section */
.additional-info-section {
  margin-bottom: 1.2rem;
}

.additional-info-container {
  position: relative;
}

.additional-info-textarea {
  width: 100%;
  min-height: 150px !important;
  height: 150px !important;
  border: 1px solid var(--5-mint, #71c8bc) !important;
  border-radius: 20px !important;
  padding: 16px 20px !important;
  font-family: Inter, sans-serif !important;
  font-size: 14px !important;
  background: #fff !important;
  resize: none;
  outline: none;
  overflow-y: auto !important;
  display: block !important;
  line-height: 1.5 !important;
}

.additional-info-textarea:focus {
  border-color: var(--5-mint, #71c8bc) !important;
  box-shadow: 0 0 0 3px rgba(113, 200, 188, 0.1) !important;
}

.additional-info-textarea::placeholder {
  color: var(--7-grey-paragraphs, #525252) !important;
  opacity: 0.7;
}

.optional-text {
  color: var(--7-grey-paragraphs, #525252) !important;
  font-family: Inter, sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
}

/* Mobile responsive for goal options */
@media (max-width: 768px) {
  .goal-options-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .goal-option {
    padding: 10px;
    min-height: 80px;
  }

  .goal-option p {
    font-size: 12px !important;
  }

  .additional-info-title {
    font-size: 18px !important;
  }

  .additional-info-subtitle {
    font-size: 14px !important;
  }

  .additional-info-textarea {
    padding: 12px 16px !important;
    font-size: 14px !important;
  }
}

/* ========== ACCESSIBILITY ========== */
.instrument-option:focus,
.custom-checkbox:focus,
.goal-option:focus,
.btn-primary:focus,
.btn-secondary:focus {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

#left-section-image:focus {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary: #8b0000;
    --primary-dark: #660000;
    --amber: #ff8c00;
    --amber-light: #ffa500;
    --amber-dark: #ff6600;
  }

  .fixed-left-section {
    border: 2px solid #000;
  }

  .step-dot {
    border: 2px solid #000;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .info-section-content,
  .form-content {
    scroll-behavior: auto;
  }

  .form-step,
  .instrument-option,
  .btn-primary,
  .btn-secondary,
  .step-dot,
  .multistep-form-container input,
  .multistep-form-container select,
  .multistep-form-container textarea,
  svg {
    animation: none;
    transition: none;
  }

  .instrument-option:hover,
  .btn-primary:hover,
  .btn-secondary:hover {
    transform: none;
  }

  #left-section-image {
    animation: none;
  }

  #left-section-image:hover {
    transform: none;
  }
}

/* ========== PRINT STYLES ========== */
@media print {
  .multistep-form-container {
    max-width: 100%;
    box-shadow: none;
  }

  .form-main-container {
    box-shadow: none;
    border: 1px solid #000;
  }

  .step-indicator,
  .btn-primary,
  .btn-secondary,
  #submit-form,
  .fixed-left-section {
    display: none;
  }

  .form-content-layout {
    flex-direction: column;
  }

  .scrollable-right-section {
    width: 100%;
  }

  .form-step {
    display: block !important;
  }

  .info-section-content {
    background-image: none;
    max-height: none;
    overflow: visible;
  }

  .content-overlay {
    background: white;
    backdrop-filter: none;
  }
}

/* ===== Padding/Title fixes: real <img>, zero top/left gaps, no background ===== */
.multistep-form-container {
  padding: 0 !important;
}
.fixed-left-section {
  padding: 0 !important;
  margin: 0 !important;
}

/* Wrapper around the hero image. We hide the image's inherent transparent margins
   by shifting the bitmap inside an overflow-hidden box (no background usage). */
.left-hero-wrap {
  --img-shift-x: -10px; /* move image left to remove built-in transparent left space */
  --img-shift-y: -8px; /* move image up to remove built-in transparent top space */
  --img-extra: 80px; /* extra width to maintain coverage after shifting */
  position: relative;
  margin: 0;
  padding: 0;
  line-height: 0;
  overflow: visible; /* allow monkey SVG to show outside */
}

/* The image remains a regular element (not a background). We oversize it slightly
   and shift it so the visible artwork sits flush to the top-left. */
.left-hero {
  display: block !important;
  position: relative !important;
  width: calc(100% + var(--img-extra)) !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: translate(var(--img-shift-x), var(--img-shift-y));
  pointer-events: none;
}

/* Desktop: title placement left-aligned, 25% from top */
@media (min-width: 768px) {
  .hero-title {
    position: absolute;
    top: 18%;
    left: 25px;
    /* left: 50%;
    transform: translate(-55%, -55%); */
    margin: 0;
    padding: 0;
    /* horizontal 12px padding */
    text-align: left; /* left-align text within the padded area */
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
    z-index: 5000;
    width: 90%;
    line-height: 44px !important;
    /* color, font-family, font-size, font-weight, line-height handled by global design system */
  }

  .hero-subtitle {
    position: absolute;
    top: 38%;
    left: 16px;
    /* left: 50%;
    transform: translate(-55%, -55%); */
    margin: 0;
    padding: 0 10px;
    text-align: left;
    z-index: 5000;
    width: 90%;
    color: var(--7-grey-paragraphs, #525252) !important;
    font-family: Inter, sans-serif !important;
    font-size: 14px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 24px !important;
  }

  /* Ensure strong tags within hero-subtitle are bold on mobile */
  .hero-subtitle strong {
    font-weight: 700 !important;
  }
}

/* Ensure the left section content hugs the top-left (no centering offset) */
.fixed-left-section {
  align-items: flex-start !important;
  justify-content: flex-start !important;
}
.left-hero-wrap {
  width: 100%;
}

/* Desktop-only Monkey SVG positioned at bottom-center of hero section */
.desktop-monkey-wrap {
  position: absolute;
  bottom: -190px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  pointer-events: none;
}

.desktop-monkey-svg {
  width: 350px !important;
  height: 350px !important;
  visibility: visible !important;
  display: block !important;
  max-width: none !important;
  max-height: none !important;
}

/* Responsive sizing for tablets and smaller desktop screens */
@media (max-width: 1280px) and (min-width: 768px) {
  .desktop-monkey-wrap {
    bottom: -125px;
  }
  .desktop-monkey-svg {
    width: 250px !important;
    height: 250px !important;
  }
}

/* Mobile-only Monkey SVG */
.mobile-monkey-svg {
  width: 200px !important;
  height: 200px !important;
  visibility: visible !important;
  display: none !important; /* Hidden by default, shown only on mobile */
  max-width: none !important;
  max-height: none !important;
}

/* Show mobile monkey only on mobile devices */
@media (max-width: 767px) {
  .mobile-monkey-svg {
    display: block !important;
  }

  /* Hide desktop monkey on mobile */
  .desktop-monkey-wrap {
    display: none !important;
  }
}

/* Remove mobile pseudo background band to comply with no-background requirement */
@media (max-width: 767px) {
  .scrollable-right-section::before {
    content: none !important;
  }
}

/* Hide mobile-only blocks by default (desktop/tablet) */
/* Hide mobile-only music note section on desktop */
@media (min-width: 768px) {
  .mobile-music-note-wrap {
    display: none !important;
  }
}

/* === Mobile-only top banner without image, mobile-first === */
@media (max-width: 767px) {
  /* Hide LeftWithMuskot image on mobile */
  .left-hero {
    display: none !important;
  }

  /* Hide desktop monkey SVG on mobile */
  .desktop-monkey-wrap {
    display: none !important;
  }

  /* Full-width blue header with no side padding and rounded top corners */
  .left-hero-wrap {
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    overflow: visible; /* allow bottom shapes to render fully */
    background: var(--4-light-blue, #cff4ff);
    border-radius: 32px 32px 0 0;
    height: 200px; /* requested mobile height */
    display: flex; /* center title and subtitle vertically & horizontally */
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  /* Left-align title and apply requested paddings */
  .hero-title {
    position: static !important;
    width: 100%;
    margin: 0;
    text-align: left;
    padding: 10px 12px 5px; /* top 10, sides 12, bottom 5 (reduced for subtitle) */
    line-height: 44px; /* 138.889% */
    /* color, font-family, font-size, font-weight, line-height handled by global design system */
  }

  /* Left-align subtitle below title */
  .hero-subtitle {
    position: static !important;
    width: 100%;
    margin: 0;
    text-align: left;
    padding: 0 12px 16px; /* sides 12, bottom 15 */
    color: var(--7-grey-paragraphs, #525252) !important;
    font-family: Inter, sans-serif !important;
    font-size: 14px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 22px !important;
  }

  /* Ensure strong tags within hero-subtitle are bold */
  .hero-subtitle strong {
    font-weight: 700 !important;
  }

  /* Bottom cloud shapes: white fill ellipse and white stroke wave */
  .left-hero-wrap::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 9px;
    background: no-repeat bottom center/100% 100%
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 459 9' fill='none'%3E%3Cpath d='M-10 16.2233C-0.417181 21.9056 27.6855 33.4634 63.4336 34.2353C108.119 35.2002 133.742 9.99996 200.926 9.99996C255.298 9.99996 335.606 23.8355 359.043 34.2353' stroke='%23FFFFFF' stroke-width='20' stroke-linecap='round'/%3E%3C/svg%3E");
    pointer-events: none;
  }
  .left-hero-wrap::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 25px;
    background: no-repeat bottom center/100% 100%
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 459 25' fill='none'%3E%3Cpath d='M-10 16.2233C-0.417181 21.9056 27.6855 33.4634 63.4336 34.2353C108.119 35.2002 133.742 9.99996 200.926 9.99996C255.298 9.99996 335.606 23.8355 359.043 34.2353' stroke='%23FFFFFF' stroke-width='20' stroke-linecap='round'/%3E%3C/svg%3E");

    /* Mobile-only music note image block (after the blue header) */
    @media (max-width: 767px) {
      .mobile-music-note-wrap {
        display: block !important;
        width: 100%;
        margin: 10px 0 0 0; /* Reduced from 40px to 10px for tighter spacing */
        padding: 0 0 14px 0; /* add tiny bottom padding to avoid any clipping */
        position: relative;
        min-height: 80px; /* extra room so mascot bottom is always visible */
        overflow: visible; /* prevent clipping by wrapper */
        z-index: 1000; /* ensure it's above other elements */
      }
      .mobile-music-note-img {
        display: block;
        width: 100%;
        height: auto;
        margin: 0; /* Remove any default margins */
        padding: 0; /* Remove any default padding */
      }
      .mobile-music-note-overlay {
        position: absolute;
        top: -80px; /* raise more */
        right: -15px; /* closer to right edge */
        left: auto;
        pointer-events: none;
        z-index: 9999; /* ensure above everything */
      }
    }

    pointer-events: none;
  }
}

/* Strong mobile-only overlay positioning to ensure top-right placement */
@media (max-width: 767px) {
  .mobile-music-note-wrap {
    position: relative !important;
    display: block !important; /* Force visibility */
    visibility: visible !important;
    opacity: 1 !important;
  }
  .mobile-music-note-overlay {
    position: absolute !important;
    top: -80px !important; /* raise more */
    right: -15px !important; /* closer to right edge */
    left: auto !important;
    transform: none !important;
    z-index: 9999 !important;
  }

  /* Ensure mobile music note section is visible for ALL mobile steps */
  .multistep-form-container.mobile-step-1 .mobile-music-note-wrap,
  .multistep-form-container.mobile-step-2 .mobile-music-note-wrap,
  .multistep-form-container.mobile-step-3 .mobile-music-note-wrap,
  .multistep-form-container.mobile-step-4 .mobile-music-note-wrap {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    min-height: 20px !important;
  }

  /* Ensure the fixed-left-section has enough height to show the music note section */
  .fixed-left-section {
    min-height: auto !important; /* Reduced from 400px to auto for tighter spacing */
    height: auto !important;
    overflow: visible !important;
  }
}

/* ========== DESKTOP: Right section behavior and GO button spacing (requested update) ========== */
@media (min-width: 768px) {
  /* Ensure the plugin containers fill the plugin height */
  .multistep-form-container,
  .multistep-form-container .form-main-container,
  .multistep-form-container .form-content-layout {
    height: 100% !important;
    max-height: 100% !important;
  }

  /* Right section scrollable and full height of plugin */
  .multistep-form-container .scrollable-right-section {
    height: 100% !important;
    max-height: 100% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  /* Prevent nested scrolling */
  .multistep-form-container .form-content,
  .multistep-form-container .info-section-container,
  .multistep-form-container .info-section-content {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  /* Remove any overlay on the top band (image only) */
  .multistep-form-container .right-top-band {
    background: none !important;
  }
  .multistep-form-container .scrollable-right-section::before {
    background-color: transparent !important;
  }

  /* Ensure content clears the image area */
  .multistep-form-container .content-overlay {
    padding-top: 130px !important; /* >= band height to avoid covering the image */
  }

  /* GO button spacing on Step 1 */
  #step-1 .flex.justify-end {
    margin-bottom: 20px !important;
  }
  #step-1 .next-step {
    margin-bottom: 20px !important;
  }
}
