#form-progress {
    width: 0;
    height: 5px;
    background-color: #62b143;
    transition: width 0.3s;
}

.form-page {
    display: none;
}

.form-page:first-of-type {
    display: block;
}

.booking-options {
    display: flex;
    gap: 10px;
}

.option {
    flex: 1;
    padding: 10px;
    text-align: center;
    background-color: #d3d3d3;
    color: #4f4f4f;
    font-weight: normal;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s, font-weight 0.3s;
    font-size: 18px;
}

/* Selected option styles */
.option.selected {
    background-color: #62b143;
    /* Green background when selected */
    color: white;
    /* White text when selected */
    font-weight: bold;
}

.booking-options,
.yes-no-options {
    display: flex;
    gap: 10px;
}

#prev-btn {
    display: none;
}

.appointment-datetime {
    display: flex;
    gap: 20px;
}

.form-page .appointment-datetime {
    justify-content: space-between;
    margin-top: 15px;
}

.insurance-options label {
    display: block;
    margin-bottom: 10px;
    /* Add spacing between checkboxes for better readability */
}

.secondary-insurance-options .option {
    display: inline-block;
    width: 48%;
    /* Adjusts to make both options fit in one row */
    padding: 10px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
}

.secondary-insurance-options .option.selected {
    background-color: #62b143;
    color: white;
    font-weight: bold;
}


#next-btn {
    display: none;
}


.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    justify-items: center;
}

.location-option {
    position: relative;
    cursor: pointer;
    transition: transform 0.2s, outline-color 0.2s;
    width: 150px;
    /* Define a fixed square size */
    height: 150px;
    /* Define a fixed square size */
    max-width: 100%;
    /* Maintain responsive scaling if necessary */
}

.location-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures the image covers the area while preserving aspect ratio */
    display: block;
    border-radius: 5px;
    filter: grayscale(100%);
    transition: filter 0.2s ease-in-out;
}

.location-option.selected img {
    filter: grayscale(0%);
}

.location-option span {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 14px;
    width: 90%;
    text-align: center;
}

.location-option.selected {
    transform: scale(1.1);
    transition: transform 0.2s ease-in-out;
}

.greyed-out {
    color: gray;
    opacity: 0.5;
    cursor: not-allowed;
}

#greenwoods-contact-form {
    position: relative;
}

#preloader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.8);
    /* Semi-transparent overlay */
    z-index: 1000;
}

.corners {
    width: 60px;
    height: 60px;
    position: relative;
    transform-origin: center;
    animation: spin 3s infinite linear;
}

.corner {
    width: 100%;
    height: 100%;
    position: absolute;
}

.corner::before {
    display: block;
    width: 48%;
    height: 48%;
    border-radius: 0 40% 0 40%;
    background-color: #62b143;
    content: '';
}

.appointment-label {
    font-size: small;
    display: block;
}

/* Individual animations for each corner */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes spin1 {
    0% {
        transform: rotate(0deg);
    }

    30% {
        transform: rotate(0deg);
    }

    70% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes spin2 {
    0% {
        transform: rotate(0deg);
    }

    30% {
        transform: rotate(270deg);
    }

    70% {
        transform: rotate(270deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes spin3 {
    0% {
        transform: rotate(0deg);
    }

    30% {
        transform: rotate(180deg);
    }

    70% {
        transform: rotate(180deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes spin4 {
    0% {
        transform: rotate(0deg);
    }

    30% {
        transform: rotate(90deg);
    }

    70% {
        transform: rotate(90deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Assign animations to each corner */
.corner--1 {
    animation: spin1 3s infinite cubic-bezier(0.785, 0.135, 0.150, 0.860);
}

.corner--2 {
    animation: spin2 3s infinite cubic-bezier(0.785, 0.135, 0.150, 0.860);
}

.corner--3 {
    animation: spin3 3s infinite cubic-bezier(0.785, 0.135, 0.150, 0.860);
}

.corner--4 {
    animation: spin4 3s infinite cubic-bezier(0.785, 0.135, 0.150, 0.860);
}

/* Red border for required field */
.required-error {
    border: 2px solid red !important;
}

/* Shake animation */
@keyframes shake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }

    75% {
        transform: translateX(-5px);
    }

    100% {
        transform: translateX(0);
    }
}

.shake {
    animation: shake 0.3s ease;
}

#prev-btn,
#next-btn,
#submit-btn,
#find-appt-btn,
.submit-button {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    color: #4f4f4f;
    background-color: #d3d3d3;
    /* Light grey background when not selected */
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
    margin: 10px 5px;
    /* Add spacing between buttons */
}

#prev-btn:hover,
#next-btn:hover,
#submit-btn:hover,
#find-appt-btn:hover,
.submit-button:hover {
    background-color: #62b143;
    /* Green background when hovered */
    color: #fff;
    /* White text when hovered */
    transform: scale(1.05);
    /* Slightly enlarge the button on hover */
}

#prev-btn:active,
#next-btn:active,
#submit-btn:active,
#find-appt-btn:active,
.submit-button:active {
    transform: scale(0.98);
    /* Slightly shrink the button on click for feedback */
}

#prev-btn:disabled,
#next-btn:disabled,
#submit-btn:disabled,
#find-appt-btn:disabled,
.submit-button:disabled {
    background-color: #e0e0e0;
    /* Greyed out for disabled state */
    color: #a0a0a0;
    cursor: not-allowed;
    border-color: #ddd;
}

.field-label {
    font-size: 19px;
    padding-bottom: 10px;
    text-align: center;
    display: block;
}

#location,
.booking-field {
    width: 100% !important;
    padding: 20px !important;
    border-radius: 4px !important;
    border: 2px solid #000;
    font-size: 16px !important;
    height: auto !important;
    line-height: normal !important;
}

#form-navigation {
    margin-top: 20px;
}

/* Center the checkbox labels vertically with the checkboxes */
.insurance-options label {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 18px;
    color: #595959;
}

/* Style for the checkboxes */
.insurance-options input[type="checkbox"] {
    margin-right: 10px;
    /* Space between checkbox and label */
    width: 30px;
    /* Adjust size if needed */
    height: 30px;
    /* Adjust size if needed */
}

/* Change label color when checkbox is checked */
.insurance-options input[type="checkbox"]:checked+label {
    color: #62b143 !important;
    font-weight: bold;
    /* Optional: Make the label bold when selected */
}

/* Style for name selection options */
.name-option {
    padding: 10px;
    margin: 5px 0;
    border: 1px solid #ccc;
    cursor: pointer;
    text-align: center;
}

.name-option:hover {
    background-color: #f0f0f0;
}

.vertical-options .option {
    margin-bottom: 10px;
    text-align: center;
}

/* Location Grid Layout */
.location-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    /* Adjust gap as needed */
    margin-top: 20px;
    /* Space above the grid */
}

/* Ensure location-option-btn takes full width */
.location-option-btn {
    position: relative;
    cursor: pointer;
    width: 100%;
    /* Full width of the grid cell */
    height: auto;
    /* Adjust height based on content */
    border: 1px solid #ccc;
    /* Optional: Add border for clarity */
    border-radius: 5px;
    /* Rounded corners */
    overflow: hidden;
    /* Clip overflowing content */
}




/* Selected state styles */
.location-option-btn.selected {
    border-color: #62b143;
    /* Green border when selected */
}



/* Responsive Design: Single column on smaller screens */
@media (max-width: 768px) {
    .location-grid {
        grid-template-columns: 1fr;
    }
}



/* Styling for the personalized message */
.last-location-message {
    margin-top: 5px;
    font-size: 0.9em;
    color: #6c757d;
    /* Bootstrap's 'secondary' text color */
    text-align: center;
}

/* Modal Overlay */
.booking-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Semi-transparent background */
    display: none;
    /* Hidden by default */
    justify-content: center;
    align-items: flex-end;
    /* Align modal to the bottom */
    z-index: 2147483646;
}

/* Modal Content */
.booking-modal-content {
    background-color: #fff;
    width: 100%;
    height: 80%;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding: 0px;
    position: fixed;
    bottom: 0 !important;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
    /* Enable scrolling if content overflows */
}

/* Show modal */
.booking-modal-overlay.active .booking-modal-content {
    transform: translateY(0);
    padding: 60px;
}

/* Close Button */
.close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover {
    color: #000;
}

/* Optional: Responsive Adjustments */
@media (max-width: 600px) {
    .booking-modal-content {
        height: 90%;
    }
}

/* Result container styling */
#results-container {
    display: none;
    margin-top: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 100%;
    /* Make sure it stretches across the form */
}

/* Style for search results table */
#results-container .search-results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

#results-container .search-results-table th,
.search-results-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

#results-container .search-results-table th {
    background-color: #0073aa;
    color: #fff;
    font-weight: bold;
}

#results-container .search-results-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

#results-container .search-results-table tr:hover {
    background-color: #f1f1f1;
}

/* Style for the "No results found" message */
#results-container p {
    font-size: 16px;
    color: #666;
    text-align: center;
    font-weight: bold;
}

/* Add some space for mobile responsiveness */
@media screen and (max-width: 768px) {

    .search-results-table th,
    .search-results-table td {
        padding: 10px;
    }

    #results-container p {
        font-size: 14px;
    }
}

#success-message {
    background-color: #62b147;
    /* Green background */
    color: white;
    /* White text */
    border: 1px solid #62b147;
    /* Darker green border */
    border-radius: 5px;
    /* Rounded corners */
    padding: 15px;
    /* Add padding around the text */
    font-size: 16px;
    /* Increase font size */
    font-family: Arial, sans-serif;
    /* Set font family */
    text-align: center;
    /* Center the text */
    margin-bottom: 20px;
    /* Add space below the success message */
    box-shadow: 0 4px 8px rgba(0, 128, 0, 0.3);
    /* Add shadow for depth */
    transition: opacity 0.5s ease-in-out;
    /* Smooth fade-in transition */
}

#success-message p {
    margin: 0;
    /* Remove margin around the text */
    font-weight: bold;
    /* Make the text bold */
}

/* Optional: Add a subtle fade-in effect */
#success-message.show {
    opacity: 1;
}

#success-message.hide {
    opacity: 0;
}

.hidden {
    display: none;
}

.flatpickr-calendar {
    z-index: 9999999999 !important;
}

.uploadImagesTitle {
    font-size: 19px;
    display: block;
    width: 100%;
    text-align: center;
}

.uploadImagesHelpText {
    display: block;
    font-size: 13px;
    color: #313131;
    text-align: center;
    font-weight: normal;
}

.uploadImagesSection {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 15px;
    margin-top: 15px;
    column-gap: 25px;
}

@media screen and (max-width: 768px) {
    .uploadImagesTitle {
        font-size: 14px;
    }

    .uploadImagesHelpText {
        font-size: 11px;
        text-align: left;
    }
    .uploadImagesSection {
        gap: 12px;
    }
}