/* Shortcode form styling */
.custom-booking-form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 800px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

.custom-booking-form .form-group {
    position: relative;
    flex: 1;
}

.custom-booking-form .form-group i,.custom-booking-form .form-group .icon {
    position: absolute;
    top: 54%;
    left: 15px;
    transform: translateY(-50%);
    font-size: 18px;
    color: #999;
    pointer-events: none; /* Prevent clicks on the icon */
}
.custom-booking-form .icon svg {
  width: 25px;
  height: 25px;
}
.custom-booking-form select,
.custom-booking-form input {
    width: 100%;
    padding: 25px 25px 25px 57px;
  border-radius: 5px;
  border: 0;
  background: transparent;
  font-size: 18px;
}
.custom-booking-form select:focus-visible {
    outline: 0;
}
.custom-contact-btn {
    background-color: #fdbd16;
    color: #fff;
    border: none;
    padding: 27px 20px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  text-transform: uppercase;
  margin-right: 10px;
}

.custom-booking-form select,.custom-booking-form input,.custom-booking-form .custom-contact-btn, .custom-modal-body .gform_button.button, .custom-modal-content .gfield--input-type-html, .custom-modal-header h2, .custom-modal-content .custom-modal-header p, .custom-modal-body div  {
    font-family: 'Roboto', sans-serif;
}
.custom-booking-form select,
.gform_wrapper.gravity-theme select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

#postcode {
  border-left: 1px solid #fdbd16;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.form-group.postcode {
  flex: none;
  width: 27%;
}

/* Modal styling */
.custom-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

/* Modal Content: Fix header and make body scrollable */
.custom-modal-content {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    margin: auto;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 8px;
    width: 90%;
    max-width: 1400px;
    max-height: 90%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    overflow: hidden; /* Ensures only the body scrolls */
}

.custom-modal-body {
    flex: 1; /* Takes the remaining space */
    padding: 30px;
    overflow-y: auto; /* Enables vertical scrolling inside the modal body */
    box-sizing: border-box;
}
.custom-modal-content .gform_heading {
  display: none;
}

.bf-form-wrapper form:not(.bf-search) .gfield_label,.bf-form-wrapper form:not(.bf-search) label:not(.search-postcode-label),.gform_wrapper.gravity-theme form:not(.bf-search) .gfield_label,.gform_wrapper.gravity-theme form:not(.bf-search) label:not(.search-postcode-label) {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ed1b2f;
    margin-bottom: 15px;
    color: #7e8181;
}
.custom-modal-content .gform_wrapper.gravity-theme .gform_fields .gfield select, .custom-booking-form select {
    background-image: url("data:image/svg+xml,%3Csvg id='Layer_1' data-name='Layer 1' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 442.9 253.3'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%2328348a;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M439.3,23.3,419.5,3.5a12,12,0,0,0-17,0L221.4,184.2,40.3,3.5a12,12,0,0,0-17,0L3.5,23.3a12,12,0,0,0,0,17L212.9,249.7a12,12,0,0,0,17,0L439.3,40.3a12,12,0,0,0,0-17Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 22px);
    background-size: 18px
}
.bf-form-wrapper form .gfield, .gform_wrapper form .gfield, #field_7_7 {
    padding: 10px 15px;
}
.bf-form-wrapper form:not(.bf-search) select,.bf-form-wrapper form:not(.bf-search) input:not(.btn, [type="checkbox"], [type="file"], [type="radio"]),.bf-form-wrapper form:not(.bf-search) textarea,.gform_wrapper.gravity-theme form:not(.bf-search) select,.gform_wrapper.gravity-theme form:not(.bf-search) input:not(.btn, [type="checkbox"], [type="file"], [type="radio"]),.gform_wrapper.gravity-theme form:not(.bf-search) textarea {
    outline: 0;
    border: none;
    box-shadow: none;
    border-radius: 5px;
    position: relative;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    color: #333;
    margin-bottom: 2.1875rem;
    margin: 0 !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-shadow: -3px 3px 25px -5px rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: -3px 3px 25px -5px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: -3px 3px 25px -5px rgba(0, 0, 0, 0.2);
    background-color: #fff;
	padding: 8px;
}

.custom-modal-content 
.custom-modal-header {
    background-color: #999999;
    color: #fff;
    padding: 20px;
    text-align: center;
    font-size: 20px;
    position: sticky; /* Keeps the header fixed at the top of the modal */
    top: 0;
    z-index: 10;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1); /* Optional: Adds a slight shadow for distinction */
}

.custom-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 48px;
  color: #fff;
  cursor: pointer;
  font-weight: lighter;
  z-index: 999;
}

.custom-close:hover {
    color: #fdbd16;
}
.custom-modal-content form {
  max-width: 950px;
  margin: 0 auto;
}
.custom-modal-content .custom-modal-header strong {
  display: block;
  font-size: 30px;
  padding-top: 20px;
  color: #fdbd16;
}
.custom-modal-content .gform_button {
  padding: 15px 50px !important;
  background: #fdbd16 !important;
  color: white !important;
    transition: 0.3s;
}
.custom-modal-content .gform_button:hover {
  background: #f2b514 !important;
  transform: scale(1.05);
  box-shadow: none;
}
.custom-modal-content .gfield--input-type-html {
  font-size: 16px;
  font-weight: 400;
}
.custom-modal-header h2 {
  margin-bottom: 10px;
  color: white;
  font-weight: 600;
}

.custom-modal-content .gform_wrapper.gravity-theme .gfield_required {
  font-size: 20px;
}
.custom-modal-content .gform_footer.top_label {
  padding-left: 16px !important;
}

.custom-booking-form select option:first-child {
    color: #a3a3a3; /* Adjust this color as needed */
}

.custom-booking-form select {
    color: #666; /* This will be the initial color, matching the placeholder */
}

.custom-booking-form select:focus {
    color: #666; /* This will change the color when the dropdown is opened */
}
input#gform_submit_button_7 {
    font-weight: bold;
}
/** Placeholders **/
/* Custom Booking Form Placeholder Color */
.custom-booking-form select,
.custom-booking-form input::placeholder {
    color: #a3a3a3;
}

/* Gravity Forms Placeholder Color */
.gform_wrapper.gravity-theme input::placeholder,
.gform_wrapper.gravity-theme textarea::placeholder,
.gform_wrapper.gravity-theme select {
    color: #a3a3a3;
}

/* Ensure placeholder color for select elements */
.gform_wrapper.gravity-theme select option:first-child {
    color: #a3a3a3;
}

/* Style for when select is closed (showing placeholder) */
.gform_wrapper.gravity-theme select:not(:focus) {
    color: #a3a3a3;
}

body .gform_wrapper.gravity-theme input::placeholder,
body .gform_wrapper.gravity-theme textarea::placeholder,
body .custom-modal-body input::placeholder,
body .custom-modal-body textarea::placeholder {
    color: #a3a3a3 !important;
    opacity: 1; /* Ensure full visibility across all browsers */
}

/* Default color for dropdown text */
#custom-modal select {
    color: #333; /* Default color for selected options */
	padding: 8px;
}

/* Color for the placeholder when it's selected */
#custom-modal select.placeholder-active {
    color: #a3a3a3; /* Lighter gray for the placeholder */
}

/* Ensure dropdown options remain default */
#custom-modal select option {
    color: #333; /* Dark gray for dropdown options */
}

/* Specific color for the placeholder option */
#custom-modal select option.gf_placeholder {
    color: #a3a3a3; /* Lighter gray for the placeholder */
}

/** Error Messages Handling **/
#custom-modal .gform_validation_errors:focus {
    border: 0 !important;
    outline: 0 !important;
}
#custom-modal span.gform-icon.gform-icon--circle-error {
    display: none !important;
}
#custom-modal .gform_wrapper.gravity-theme .gfield_validation_message, .gform_wrapper.gravity-theme .validation_message {
    background: transparent;
    border: 0;
    padding-left: 4px;
    padding-top: 2px;
    color: #ed1b2f;
    padding-bottom: 0;
    font-family: 'Roboto', sans-serif;
}

#custom-modal .gform_wrapper.gravity-theme .gform_validation_errors {
    border: 0;
    box-shadow: none;
    color: #ed1b2f;
    text-align: center;
    max-width: 927px;
    margin: 0 auto;
    background: rgba(237, 27, 47, 0.2);
    margin-bottom: 15px;
    padding: 25px 0;
    font-family: 'Roboto', sans-serif;
}
#custom-modal .gform_wrapper.gravity-theme .gfield_error [aria-invalid=true] {
    border: 0;
}
#custom-modal .gform_wrapper.gravity-theme .gform_validation_errors>h2.hide_summary {
    font-size: 18px;
    font-weight: 400;
    font-family: 'Roboto', sans-serif;
}
#custom-modal .gfield_error .validation_message {
    padding-bottom: 0px !important;
    margin-bottom: -13px;
    font-family: 'Roboto', sans-serif;
}
/* Media query for responsive mode */
@media (max-width: 768px) {
    /* Make the booking form full width */
    .custom-booking-form {
        flex-direction: column; /* Stack fields vertically */
        align-items: stretch; /* Ensure full width alignment */
        gap: 0; /* Add spacing between rows */
    }

    /* Make form groups full width */
    .custom-booking-form .form-group {
        width: 100%; /* Full width */
    }

    /* Adjust input, select, and button for full width */
    .custom-booking-form select,
    .custom-booking-form input,
    .custom-contact-btn {
        width: 100%;
        padding: 18px 48px;
        font-size: 18px;
    }
    
    .custom-booking-form #postcode {
        border-top: 1px solid #fdbd16;
        border-left: 0;
    }

    /* Adjust the button */
    .custom-contact-btn {
        text-align: center; /* Center the button text */
        padding: 25px 20px; /* Uniform padding */
        font-size: 18px; /* Adjust button font size */
    }

    /* Align icons properly */
    .custom-booking-form .form-group .icon {
        left: 10px; /* Adjust icon position */
    }

    /* Adjust the postcode field */
    .form-group.postcode {
        width: 100%; /* Full width for postcode */
    }
    
    
    /** Gravity Forms Settings ***/
    .bf-form-wrapper form .gfield, .gform_wrapper form .gfield, #field_7_7 {
        padding: 4px 2px;
    }
    .bf-form-wrapper form:not(.bf-search) select, .bf-form-wrapper form:not(.bf-search) input:not(.btn, [type="checkbox"], [type="file"], [type="radio"]), .bf-form-wrapper form:not(.bf-search) textarea, .gform_wrapper.gravity-theme form:not(.bf-search) select, .gform_wrapper.gravity-theme form:not(.bf-search) input:not(.btn, [type="checkbox"], [type="file"], [type="radio"]), .gform_wrapper.gravity-theme form:not(.bf-search) textarea {
        padding: 6px 12px;
        font-size: 14px;
    }
    html, body {
        overflow-x: hidden; /* Prevent horizontal scrolling */
    }
    .bf-form-wrapper form:not(.bf-search) .gfield_label, .bf-form-wrapper form:not(.bf-search) label:not(.search-postcode-label), .gform_wrapper.gravity-theme form:not(.bf-search) .gfield_label, .gform_wrapper.gravity-theme form:not(.bf-search) label:not(.search-postcode-label) {
        font-size: 14px;
    }
    .gfield--type-html {
        padding-left: 10px !important;
        font-size: 14px !important;
    }
    .gfield--type-html a{
        text-decoration: underline;
    }
}

