.yis-search-form-wrapper {
            max-width: 800px;
            margin: 20px auto;
            font-family: sans-serif;
        }
        .yis-search-form {
            display: flex;
            align-items: stretch; /* Makes all items the same height */
            background-color: #ffffff;
            border-radius: 12px;
            padding: 10px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
            gap: 10px; /* Space between items */
        }
        .yis-search-form select,
        .yis-search-form input[type="date"],
        .yis-search-form button {
            border: none;
            background-color: transparent;
            padding: 10px;
            font-size: 16px;
            color: #333;
        }
        .yis-search-form .yis-form-group {
            flex: 1; /* Each field group takes up equal space */
            display: flex;
            align-items: center;
            border-right: 1px solid #e0e0e0;
        }
        .yis-search-form .yis-form-group:last-of-type {
            border-right: none;
        }
        .yis-search-form select {
            width: 100%;
            cursor: pointer;
            -webkit-appearance: none;
            appearance: none;
            background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23444444%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
            background-repeat: no-repeat;
            background-position: right 15px top 50%;
            background-size: .65em auto;
        }
        .yis-search-form input[type="date"] {
            width: 100%;
        }
        .yis-search-form button {
            flex-grow: 0;
            flex-shrink: 0;
            background-color: #4dd0e1; /* Your blue button color */
            color: white;
            border-radius: 8px;
            cursor: pointer;
            font-weight: bold;
            transition: background-color 0.2s;
        }
        .yis-search-form button:hover {
            background-color: #5bc8d6;
        }
        
        .select {
  display:flex;
  flex-direction: column;
  position:relative;
  width:250px;
  height:40px;
}

.option {
  padding:0 30px 0 10px;
  min-height:40px;
  display:flex;
  align-items:center;
  background:#333;
  border-top:#222 solid 1px;
  position:absolute;
  top:0;
  width: 100%;
  pointer-events:none;
  order:2;
  z-index:1;
  transition:background .4s ease-in-out;
  box-sizing:border-box;
  overflow:hidden;
  white-space:nowrap;
  
}

.option:hover {
  background:#666;
}

.select:focus .option {
  position:relative;
  pointer-events:all;
}

.boat-reservation-form .form-control {
    background: transparent !important;
    box-shadow: none;
    border: none;
    border-bottom: 2px solid #f9f9f9;
    padding: 5px;
    color: #f9f9f9;
}

.yis-search-form select {
  appearance: none;
  outline: none;
  @supports (appearance: base-select) {
    &,
    &::picker(select) {
      appearance: base-select;
    }
  }
}

select {
  display: flex;
  justify-content: space-between;
  min-width: 300px;
  align-items: center;
  color: white;
  padding-block: 10px;
  padding-inline: 10px 30px;
  border-radius: 5px;
  border: 2px solid #1c2a3a;
  cursor: pointer;
  font-weight: 700;
  background: #1c2a3a
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='%23FFF' class='size-6'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m19.5 8.25-7.5 7.5-7.5-7.5' /%3E%3C/svg%3E%0A")
    right 10px center / 20px no-repeat;
  @supports (appearance: base-select) {
    padding-inline: 10px;
    background-image: none;
    &::picker-icon {
      content: "";
      width: 20px;
      height: 20px;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='%23FFF' class='size-6'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m19.5 8.25-7.5 7.5-7.5-7.5' /%3E%3C/svg%3E%0A");
      transition: rotate 0.2s ease-out;
    }
    &:open::picker-icon {
      rotate: 180deg;
    }
    &::picker(select) {
      padding: 0;
      margin-top: 5px;
      border: 2px solid #1c2a3a;
      background: white;
      border-radius: 5px;
      font-weight: 400;

      opacity: 0;
      height: 0;
      overflow: clip;
      transition: height 0.5s ease-out, opacity 0.5s ease-out, overlay 0.5s,
        display 0.5s;

      transition-behavior: allow-discrete;
    }
    &:open::picker(select) {
      opacity: 1;
      height: calc-size(auto, size);
      overflow: auto;
      @starting-style {
        opacity: 0;
        height: 0;
      }
    }
    option {
      padding: 10px;
      border-top: 1px solid #44c6f4;
      cursor: pointer;
      transition-property: color, background;
      transition-duration: 0.2s;
      transition-timing-function: ease-out;
      &:where(:hover, :focus, :active) {
        background: #44c6f4;
        color: white;
      }
      &:checked {
        background: #1c2a3a;
        color: white;
      }
      &::checkmark {
        display: none;
      }
      &:first-child {
        border: 0;
      }
    }
  }
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
.overflow-visible {
    overflow: visible;
}

        /* --- Responsive Styles --- */
        @media (max-width: 768px) {
            .yis-search-form { flex-direction: column; gap: 0; }
            .yis-search-form .yis-form-group { border-right: none; border-bottom: 1px solid #e0e0e0; padding-bottom: 10px; margin-bottom: 10px; }
            .yis-search-form .yis-form-group:last-of-type { border-bottom: none; margin-bottom: 0; }
            .yis-search-form button { margin-top: 10px; width: 100%; }
        }

/* ============================================= */
/* == CSS Fix for Flatpickr Year Display      == */
/* ============================================= */

/* These styles are universally applied where Flatpickr is used */
.flatpickr-current-month {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}
.flatpickr-current-month .numInputWrapper {
    display: block !important;
    width: auto;
    margin-left: 53%;
    margin-top: -24px;
    z-index: 1;
    height: 61px;
    position: relative;
}
.flatpickr-current-month .numInput.cur-year {
    display: inline;
    width: 55px;
    font-size: inherit;
    font-weight: bold;
    color: inherit;
    background: transparent;
    border: none;
    padding: 0;
}
.flatpickr-current-month .arrowUp,
.flatpickr-current-month .arrowDown {
    display: none;
}

/* WPForms specific styling adjustments (taken from your provided HTML's inline style) */
/* This ensures the hidden field_5 container remains hidden as per WPForms' design */
#wpforms-400-field_5-container {
    position: absolute !important;
    overflow: hidden !important;
    display: inline !important; /* WPForms uses inline, let's keep it consistent */
    height: 1px !important;
    width: 1px !important;
    z-index: -1000 !important;
    padding: 0 !important;
}
#wpforms-400-field_5 {
    visibility: hidden !important;
}

/* General form styling (applies to elements within .boat-reservation-form for both mobile & desktop) */
.boat-reservation-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}
.boat-reservation-form .form-group {
    flex: 1;
}
.boat-reservation-form .form-group.full-width {
    flex-basis: 100%;
}
.boat-reservation-form .duration-options {
    display: flex;
    gap: 25px;
    margin-top: 10px;
}
/* Inputs and Selects: targeting by type and ensuring Flatpickr input styles */
.boat-reservation-form input[type="text"].flatpickr-input, /* Flatpickr's visible input */
.boat-reservation-form input[type="text"].ui-timepicker-input, /* Timepicker's visible input */
.boat-reservation-form select { /* Your custom select styles */
    background: transparent;
    box-shadow: none;
    border: none;
    border-bottom: 2px solid #f9f9f9;
    padding: 5px;
    color: #f9f9f9;
    width: 100%;
}
.form-group label {
    font-family: 'Poppins';
    color: #f9f9f9;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
}
p.guest-count-display {
    font-family: 'Poppins';
    color: #f9f9f9;
    font-size: 14px;
    font-weight: 500;
    line-height: 0px;
}
.boat-reservation-form-wrapper {
    font-family: sans-serif;
    max-width: 500px; /* This max-width should typically apply to desktop form */
    margin: 0 auto; /* Centering for desktop form */
}
.boat-reservation-form label {
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    display: block;
    margin-bottom: 12px;
}
/* Calendar/Time Picker Icon styling */
.boat-reservation-form input[type="text"]::-webkit-calendar-picker-indicator,
.boat-reservation-form input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
}
.boat-reservation-form .radio-option {
    position: relative;
    display: flex;
    align-items: center;
}
.boat-reservation-form .radio-option input[type="radio"] {
    opacity: 0;
    position: absolute;
    width: 1px;
    height: 1px;
}
.boat-reservation-form .radio-option label {
    cursor: pointer;
    margin-bottom: 0;
    padding-left: 30px;
    text-transform: none;
    font-size: 16px;
}
.boat-reservation-form .radio-option label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background-color: transparent;
}
.boat-reservation-form .radio-option input[type="radio"]:checked + label::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background-color: #ffffff;
    border-radius: 50%;
}
.boat-reservation-form .guest-count-display {
    color: white;
    margin-top: 18px;
    font-size: 16px;
}
.boat-reservation-form input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: #ffffff;
    outline: none;
    margin-top: 10px;
}
.boat-reservation-form input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #0073e6;
    cursor: pointer;
    border: 3px solid white;
}
.boat-reservation-form input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #0073e6;
    cursor: pointer;
    border: 3px solid white;
}
.boat-reservation-form .submit-button {
    background-color: #4dd0e1;
    color: white;
    border: none;
    width: 100%;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 20px;
}
.boat-reservation-form .submit-button:hover {
    background-color: #5bc8d6;
}
.boat-reservation-form select#reservation-time {
    width: 20%; /* Keep this for your standard select, if used */
    min-width: 150px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url(data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23FFF%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E);
    background-repeat: no-repeat;
    background-position: right 0px top 50%;
    padding-bottom: 11px;
    background-size: .65em auto;
    border-radius: 0;
    font-weight: 500;
    font-size: 15px;
}
.boat-reservation-form select { /* General select styles, adjust if specific ID styling is needed */
    appearance: none;
    outline: none;
}
.boat-reservation-form select#rental-duration {
    width: 100%;
}
div.dynamic-price-display { /* Original price display area */
    color: #f9f9f9;
    font-family: 'Bebas Neue';
    font-size: 20px;
    font-weight: 400;
    text-align: center;
    width: 100%;
    background: #1c2a3b;
    padding: 5px;
    border-radius: 8px;
}
.boat-reservation-form .submit-button:disabled {
    background-color: #999;
    cursor: not-allowed;
    opacity: 0.7;
}

/* --- NEW: Main Widget Wrapper and responsive display of its contents --- */
#yif-main-booking-widget {
    /* Set overarching styles here if needed, e.g., max-width, margin:auto for centering */
    /* By default, this will be block, and we control its children based on screen size */
}

/* --- Mobile Sliding Form Container --- */
#yif-booking-form-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    max-height: 90vh;
    background-color: #1c2a3b;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(100%); /* Hidden below viewport */
    transition: transform 0.3s ease-out;
    z-index: 1001; /* Above button */
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
    display: none; /* Hidden by default; controlled by JS and media queries */
}
#yif-booking-form-container.is-open {
    transform: translateY(0); /* Slides up */
    display: block; /* Becomes visible */
}
#yif-booking-form-container.is-closed {
    transform: translateY(100%); /* Slides down */
}

/* --- Fixed "Book Now" Button --- */
#yif-book-now-button {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000; /* Below form, above other content */
    background-color: #4dd0e1;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: none; /* Hidden by default; controlled by JS and media queries */
    width: calc(100% - 40px);
    max-width: 400px;
}

/* --- Close Button for Sliding Form --- */
#yif-close-form-button {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: 2px solid white;
    color: white;
    font-size: 1.2em;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    line-height: 1;
    display: none; /* Hidden by default; controlled by JS and media queries */
}
#yif-close-form-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* --- Media Queries for Responsive Behavior --- */

/* Mobile-specific styles (e.g., up to 768px width) */
@media (max-width: 768px) {
    /* Hide the static desktop content on mobile */
    .desktopview-content { /* Targeting the new class */
        display: none !important;
    }

    /* Show the fixed "Book Now" button on mobile */
    #yif-book-now-button {
        display: block;
    }

    /* Ensure the mobile sliding form container is managed by JS/classes */
    #yif-booking-form-container {
        /* Initial display handled by JS and .is-closed class */
    }
    #yif-booking-form-container.is-open {
        display: block; /* Explicitly show when open */
    }

    /* Show the close button when the form is open on mobile */
    #yif-booking-form-container.is-open #yif-close-form-button {
        display: block;
    }

    /* Ensure all elements within the mobile sliding form are visible when it's open */
    #yif-booking-form-container.is-open .boat-reservation-form-wrapper,
    #yif-booking-form-container.is-open .boat-reservation-form,
    #yif-booking-form-container.is-open .wpforms-container,
    #yif-booking-form-container.is-open .wpforms-field-container,
    #yif-booking-form-container.is-open .wpforms-field,
    #yif-booking-form-container.is-open .wpforms-field-label,
    #yif-booking-form-container.is-open .wpforms-field-row,
    #yif-booking-form-container.is-open .wpforms-field-row-block,
    #yif-booking-form-container.is-open .wpforms-submit-container,
    #yif-booking-form-container.is-open .dynamic-price-display, /* Targeting the price display */
    #yif-booking-form-container.is-open label,
    #yif-booking-form-container.is-open input:not([type='hidden']),
    #yif-booking-form-container.is-open select,
    #yif-booking-form-container.is-open button {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        width: auto !important;
    }

    /* Mobile specific layout adjustments for the form fields */
    .boat-reservation-form-wrapper {
        padding: 0;
        max-width: 100%;
    }
    .boat-reservation-form .form-row {
        flex-direction: column;
        gap: 15px;
    }
    .boat-reservation-form .form-group {
        width: 100%;
    }
}

/* Desktop/Larger Screens styles (e.g., above 769px width) */
@media (min-width: 769px) {
    /* Show the static desktop content on desktop */
    .desktopview-content { /* Targeting the new class */
        display: block !important; /* Or flex, grid, etc. */
    }

    /* Hide the mobile-specific elements on desktop */
    #yif-book-now-button,
    #yif-booking-form-container,
    #yif-close-form-button {
        display: none !important;
    }

    /* Ensure desktop form content displays normally */
    .boat-reservation-form-wrapper {
        max-width: 500px; /* Restore desktop max-width */
        margin: 0 auto; /* Center on desktop */
    }
    .boat-reservation-form .form-row {
        flex-direction: row;
        gap: 20px;
    }
}
        