/* Styles for the form on the flexible page template */

/* Container adjustments */


/* Gravity Forms general styling */
.gform_wrapper {
  font-family: Arial, Helvetica, sans-serif;
  color: #333; /* Darker text for readability */
}


.gform_wrapper fieldset {
  padding: unset;
  border: none;
}

.gform_wrapper .gfield_label {
  font-weight: bold;
  margin-bottom: 5px;
  display: block;
  color: #222; /* Even darker for labels */
}

#gform_wrapper_2 .gfield input,
#gform_wrapper_2 .gfield textarea,
#gform_wrapper_2 .gfield select {
    width: 100% !important;
    padding: 10px !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    box-sizing: border-box !important;
    margin-bottom: 15px !important;
    font-size: 16px !important;
}

.gform_wrapper .ginput_container textarea {
  min-height: 100px;
}

/* Specifically for name fields if they are complex */
.gform_wrapper .ginput_container_name input[type="text"] {
  width: calc(100% - 10px); /* Adjust width if labels are inline or if there's padding issue */
  margin-right: 10px;
}
.gform_wrapper .ginput_container_name span {
  margin-bottom:10px; /* Add some space below each part of the name field */
  display:inline-block; /* ensure spans behave well */
}

.gform_wrapper .ginput_container_name .name_first,
.gform_wrapper .ginput_container_name .name_last {
    width: 48%; /* two column layout for first and last name */
    display: inline-block; /* allow side-by-side */
}

.gform_wrapper .ginput_container_name .name_first {
    margin-right: 4%; /* space between first and last name */
}


.gform_wrapper .gform_button {
  background-color: #0073aa; /* A standard WordPress blue for example */
  color: white;
  border: none;
  padding: 12px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.gform_wrapper .gform_button:hover {
  background-color: #005a87; /* Darker blue on hover */
}

/* Clear floats */
.gform_wrapper .gform_fields::after,
.fishing_right::after {
  content: "";
  display: table;
  clear: both;
}

/* Responsive adjustments */
@media (max-width: 768px) {


    .hero_section {
          position: relative;
          height: 50vh;
          min-height: unset;
    }
  
  .gform_wrapper .ginput_container_name .name_first,
  .gform_wrapper .ginput_container_name .name_last {
      width: 100%; /* Stack name fields on mobile */
      margin-right: 0;
      margin-bottom:15px;
  }
}

/* Ensure form elements have some breathing room */
.gform_wrapper .gfield {
    margin-bottom: 15px;
}

/* Adjust labels within complex fields like name for better alignment */
.gform_wrapper .ginput_complex .ginput_container label {
    font-size: 0.85em;
    color: #555;
}

/* Style fieldset legends if used */
.gform_wrapper fieldset legend.gfield_label {
    font-size: 1.2em; /* Make legend slightly larger */
    margin-bottom: 10px;
}

/* jQuery UI Datepicker Styles */
.ui-datepicker {
    width: auto;
    padding: 15px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    color: #333;
}

.ui-datepicker-header {
    background-color: #0073aa;
    color: #fff;
    padding: 10px;
    border-bottom: 1px solid #005a87;
    border-radius: 4px 4px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ui-datepicker-title {
    font-weight: bold;
    color: #fff;
}

.ui-datepicker-prev,
.ui-datepicker-next {
    color: #fff;
    text-decoration: none;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.ui-datepicker-prev:hover,
.ui-datepicker-next:hover {
    background-color: #005a87;
}

.ui-datepicker-prev span,
.ui-datepicker-next span {
    display: block;
    width: 16px;
    height: 16px;
    text-indent: -9999px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="white" class="bi bi-chevron-left" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
}

.ui-datepicker-next span {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="white" class="bi bi-chevron-right" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"/></svg>');
}

.ui-datepicker-month,
.ui-datepicker-year {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin: 0 5px;
}

.ui-datepicker-calendar {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.ui-datepicker-calendar th {
    padding: 8px;
    text-align: center;
    font-weight: bold;
    color: #0073aa;
}

.ui-datepicker-calendar td {
    padding: 2px;
    text-align: center;
}

.ui-state-default {
    display: block;
    padding: 8px;
    text-decoration: none;
    color: #333;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.ui-state-default:hover {
    background-color: #0073aa;
    color: #fff;
}

.ui-state-highlight,
.ui-state-active {
    background-color: #0073aa;
    color: #fff;
    border-color: #005a87;
}

.ui-datepicker-other-month .ui-state-default {
    color: #aaa;
    background-color: #fff;
}

/* Booking Form Specific Styles */

/* Progress Bar */
#gf_progressbar_wrapper_2 {
    border: 1px solid #ccc;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    padding: 0;
}

#gf_progressbar_wrapper_2 .gf_progressbar {
    background-color: #0073aa;
    height: 20px;
    line-height: 20px;
    text-align: center;
    color: white;
    font-weight: bold;
    border-radius: 10px;
    width: 0%; /* Initial width, will be updated by Gravity Forms JS */
}

#gf_progressbar_wrapper_2 .gf_progressbar_percentage {
    display: inline;
}

/* Dropdown styling */
#gform_wrapper_2 .gfield_select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    margin-bottom: 15px;
    font-size: 16px;
    background-color: white;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-down" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px 16px;
}

/* Next/Previous Buttons */
#gform_wrapper_2 .gform_previous_button.button,
#gform_wrapper_2 .gform_next_button.button {
    color: white !important;
    border: none !important;
    padding: 12px 20px !important;
    text-align: center !important;
    text-decoration: none !important;
    display: inline-block !important;
    font-size: 16px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease !important;
    margin-right: 10px !important;
}

#gform_wrapper_2 .gform_next_button.button {
    background-color: #0073aa !important;
}

#gform_wrapper_2 .gform_previous_button.button {
    background-color: #9ea8ad !important;
}

#gform_wrapper_2 .gform_previous_button.button:hover,
#gform_wrapper_2 .gform_next_button.button:hover {
    background-color: #005a87 !important;
}

#gfield_description_2_22 {
  font-size: 14px;
  color: gray;
}

#gform_wrapper_2 #choice_2_22_0 {
  width: unset !important;
  margin-top: 10px;
}
