﻿h3 {
    font-size: 2em; /* Increase the font size */
    color: #175E33; /* Use a professional color */
    text-align: center; /* Center the text */
    margin-bottom: 20px; /* Add some space below the heading */
    font-weight: bold; /* Make the text bold */
    text-transform: uppercase; /* Transform text to uppercase */
    letter-spacing: 1px; /* Add some letter spacing */
}

.req-form {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 10px;
}

fieldset {
    border: none;
    margin-bottom: 20px;
}

legend {
    font-size: 1.4em;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
}

div {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

input[type="text"],
input[type="date"],
input[type="time"],
input[type="tel"],
select,
textarea {
    width: calc(100% - 0px);
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1em;
    color: #333;
    background-color: #F6F9FF;
}

.custom-textbox input{
    width: calc(100% - 10px);
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1em;
    color: #333;
    background-color: #F6F9FF;
}

/* Style the Patient Information section */
fieldset:nth-of-type(2) {
    max-width: 1000px; /* Limit the width */
    margin: 0 auto; /* Center the section */
}

textarea {
    height: 100px;
    background-color: #F6F9FF;
}

.button-container {
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
    align-items: center; /* Center align buttons */
    margin-top: 20px; /* Add some space above the buttons */
}

.book-now-button {
    width: 20%; /* Full width */
    padding: 12px;
    background-color: #175E33;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 10px; /* Space between buttons */
}

    .book-now-button:hover {
        background-color: #26814a;
    }

.cancel-button {
    width: 20%; /* Full width */
    padding: 12px;
    background-color: #FF0000; /* Red color for cancel button */
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .cancel-button:hover {
        background-color: #cc0000;
    }

a {
    color: #3BB128;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hospital-location {
    max-width: 1000px; /* Limit the width */
    margin: 0 auto; /* Center the section */
    display: block; /* Ensure it behaves as a block element */
}

.flex-container {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping for better responsiveness */
    justify-content: space-between; /* Add spacing between items */
    max-width: 1000px; /* Limit the maximum width of the container */
    margin: 0 auto; /* Center the container */
    gap: 20px; /* Add spacing between items */
}

    .flex-container > div {
        flex: 1 1 calc(50% - 20px); /* Adjust width to 50% with spacing */
        min-width: 300px; /* Ensure a minimum width for smaller screens */
    }

    .flex-container input {
        flex: 1;
    }

.account-info {
    text-align: center;
    margin-top: 20px;
    font-size: 1em;
    color: #555;
}

    .account-info a {
        font-weight: bold;
    }

.checkbox-container {
    display: flex;
    align-items: center;
}

.checkbox {
    margin-right: 10px; /* Adjust the spacing as needed */
}

.checkbox-label {
    font-weight: bold;
    color: #555;
}

/* Checkbox styling */
input[type="checkbox"] {
    appearance: none;
    width: 20px; /* Adjust the size as needed */
    height: 20px; /* Adjust the size as needed */
    border: 2px solid #ccc;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
}

    input[type="checkbox"]:checked {
        background-color: #0E5B36; /* Green color when checked */
        border-color: #0E5B36; /* Green border when checked */
    }

        input[type="checkbox"]:checked::before {
            content: '✔';
            display: block;
            color: white;
            font-size: 14px;
            text-align: center;
            line-height: 20px; /* Adjust to match the checkbox size */
        }

/*TIME*/
.time-selection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.time-button {
    padding: 20px 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #E3ECE4;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
}

    .time-button:hover {
        background-color: #a6c7aa;
    }

    .time-button.selected {
        background-color: #0E5B36;
        color: white;
        border-color: #5d7e6e;
    }

    .time-button.unavailable {
        background-color: #FF0000; /* Red color for unavailable times */
        color: white;
        border-color: #FF0000;
        cursor: not-allowed;
    }

    .time-button.blocked {
        background-color: #212121; /* Dark color for blocked times */
        color: #fff;
        border-color: #212121;
        cursor: not-allowed;
    }

.calendar-day.unavailable {
    background-color: #FF0000; /* Red color for unavailable dates */
    color: white;
    cursor: not-allowed;
}

/*LEGEND*/
legend {
    font-size: 1.6em; /* Increase the font size */
    font-weight: bold; /* Make the text bold */
    color: #175E33; /* Use a professional color */
    text-align: center; /* Center the text */
    margin-bottom: 10px; /* Add some space below the legend */
    padding: 5px 10px; /* Add padding for better spacing */
}

.legend {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center; /* Center horizontally */
    gap: 20px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
}

.legend-color {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 5px;
    border-radius: 3px;
}

    .legend-color.available {
        background-color: #E3ECE4; /* Green */
    }

    .legend-color.unavailable {
        background-color: #FF0000; /* Red */
    }

    .legend-color.blocked {
        background-color: #212121; /* Dark */
    }


/* PAYMENT */
.radio-container {
    display: flex;
    align-items: center;
    gap: 10px; /* Adjust the spacing as needed */
    margin-bottom: 10px; /* Add some margin for spacing */
}

    .radio-container input[type="radio"] {
        appearance: none;
        width: 20px; /* Adjust the size as needed */
        height: 20px; /* Adjust the size as needed */
        border: 2px solid #ccc;
        border-radius: 50%;
        outline: none;
        cursor: pointer;
        transition: background-color 0.3s, border-color 0.3s;
    }

        .radio-container input[type="radio"]:checked {
            background-color: #0E5B36; /* Green color when checked */
            border-color: #0E5B36; /* Green border when checked */
        }

            .radio-container input[type="radio"]:checked::before {
                content: '';
                display: block;
                width: 10px; /* Adjust the size as needed */
                height: 10px; /* Adjust the size as needed */
                background-color: white;
                border-radius: 50%;
                margin: auto;
                position: relative;
                top: 50%;
                transform: translateY(-50%);
            }

@media (max-width: 600px) {
    .flex-container {
        flex-direction: column; /* Stack items vertically */
    }

        .flex-container > div {
            width: 100%; /* Full width for each item */
        }

    /* Ensure Hospital Location, Specialty, and Doctor are in one vertical line */
    .hospital-location, .specialty, .doctor {
        display: block;
        width: 100%;
        margin-bottom: 10px; /* Add some space between sections */
    }

    .book-now-button {
        width: 80%; /* Full width */
    }

    .cancel-button {
        width: 80%; /* Full width */
    }
}

.validation-error {
    color: #FF0000; /* Red color for error messages */
    font-size: 0.9em;
    margin-top: 5px;
    display: block;
}

.required {
    color: red;
    font-weight: bold;
    margin-left: 4px;
}