/* BOOK APPOINTMENT / SEND MESSAGE SECTION STYLES */

.book-appointment-section {
    padding-top: 10vh;
    padding-bottom: 10vh;
}

.book-appointment-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 100px;
}

.book-appointment-info {
    flex: 1; /* Takes up about 40-45% of the space */
    max-width: 450px; /* Max width for the text content */
}

.book-appointment-title {
    font-size: 48px; /* Large title */
    font-weight: 500;
    margin-bottom: 25px;
    line-height: 1.2;
}

.book-appointment-description {
    font-size: 16px;
    margin-bottom: 30px;
}

.info-image {
    /* Optional image styling */
    width: 100%;
    border-radius: 15px;
    margin-top: 20px;
}

.book-appointment-form-area {
    flex: 1.2; /* Takes up slightly more space than the info */
    padding: 0px; /* No extra padding if inputs handle it */
    border-radius: 15px; /* If you want the whole form area to have a border */
}

.lmnglass-message-form .form-row {
    display: flex;
    gap: 20px; /* Space between half-width fields */
    margin-bottom: 20px;
}
.lmnglass-message-form .form-row:last-of-type {
    /* No bottom margin for last row before textarea */
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 25px; /* Space below full-width fields and textarea */
    position: relative; /* For floating label effect */
}
.form-group:last-of-type {
    margin-bottom: 30px; /* More space before button */
}

.form-group-half {
    flex: 1; /* Each half takes equal space */
    margin-bottom: 0; /* Remove bottom margin as form-row handles it */
}

.form-group label {
    display: block;
    font-size: 0.9em;
    color: #777; /* Lighter label color */
    margin-bottom: 8px;
    font-weight: normal; /* Labels in your image are not bold */
}

.required-asterisk {
    color: #e53935; /* Red asterisk */
    margin-left: 2px;
}

/* Styling for input fields to match the template */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,            /* Apply base styles to select as well */
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background-color: #f0f0f0;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-sizing: border-box;
    font-size: 1em;
    font-family: inherit;
    color: #333;
    transition: border-color 0.3s ease, box-shadow 0.3s ease,
        background-color 0.3s ease; /* Added background-color transition */
}

/* Specific styling for the SELECT element to customize the arrow */
.form-group select {
    appearance: none; /* Remove default browser styling for select */
    -webkit-appearance: none; /* For Safari/Chrome */
    -moz-appearance: none; /* For Firefox */

    /* Add padding-right to make space for our custom arrow */
    padding-right: 40px; /* Adjust this value as needed */

    /* Custom arrow using an SVG background image */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23555555'%3E%3Cpath d='M8 11.293l-4.646-4.647a.5.5 0 0 1 .708-.708L8 9.879l4.939-4.939a.5.5 0 0 1 .707.707L8 11.293z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center; /* Position arrow: from right edge, vertically centered */
    background-size: 12px 12px; /* Size of the arrow icon */
}

/* For Firefox, sometimes an extra rule is needed to hide the arrow completely */
.form-group select::-ms-expand {
    display: none;
}

.form-group input:focus,
.form-group select:focus, /* Ensure select focus state is consistent */
.form-group textarea:focus {
    outline: none;
    border-color: #795548;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(121, 85, 72, 0.15);
}
.form-group textarea {
    resize: vertical;
    min-height: 120px; /* Good starting height for message box */
}

.submit-button {
    display: inline-block;
    padding: 14px 35px;
    background-color: #3a3232; /* Dark brown button */
    color: #ffffff;
    border: none;
    border-radius: 10px; /* Slightly less rounded than inputs */
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-transform: capitalize; /* "Send Message" not uppercase */
}

.submit-button:hover {
    background-color: #5d4037; /* Lighter brown on hover */
}

@media only screen and (max-width: 800px) {
    .book-appointment-container {
        grid-template-columns: 1fr;
        gap: 5vh;
    }

    .book-appointment-title {
        font-size: 32px;
    }

    .lmnglass-message-form .form-row {
        flex-direction: column;
        margin-bottom: 0;
    }
}
