/**
 * Book an Appointment page styles.
 *
 * Mobile-first: a single-column form that stays comfortable to fill out on a
 * 320px viewport and constrains its width on larger screens.
 */

.book-appointment {
    max-width: 640px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
}

.book-appointment__title {
    margin-bottom: 0.5rem;
}

.book-appointment__intro {
    margin-bottom: 1.5rem;
    color: #444;
}

.book-appointment__field {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.25rem;
}

.book-appointment__field label {
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.book-appointment__field .required {
    color: #c0392b;
}

.book-appointment__field input,
.book-appointment__field select,
.book-appointment__field textarea {
    width: 100%;
    padding: 0.65rem 0.75rem;
    font-size: 1rem;
    border: 1px solid #c4c4c4;
    border-radius: 4px;
    box-sizing: border-box;
}

.book-appointment__field input:focus,
.book-appointment__field select:focus,
.book-appointment__field textarea:focus {
    outline: 2px solid #2c6fb3;
    outline-offset: 1px;
    border-color: #2c6fb3;
}

.book-appointment__field [aria-invalid="true"] {
    border-color: #c0392b;
}

.book-appointment__error {
    margin-top: 0.35rem;
    color: #c0392b;
    font-size: 0.875rem;
}

.book-appointment__form-error {
    margin-bottom: 1.25rem;
    padding: 0.75rem 1rem;
    border: 1px solid #c0392b;
    border-radius: 4px;
    background: #fdecea;
    color: #8a1f14;
}

.book-appointment__submit button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: #2c6fb3;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.book-appointment__submit button:hover,
.book-appointment__submit button:focus {
    background: #225a92;
}

.book-appointment__confirmation {
    padding: 1.25rem 1.5rem;
    border: 1px solid #2e7d32;
    border-radius: 4px;
    background: #eaf5ea;
    color: #1b5e20;
}

.book-appointment__confirmation-message {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
}

.book-appointment__back {
    color: #2c6fb3;
    font-weight: 600;
}

@media (min-width: 768px) {
    .book-appointment {
        padding-top: 2.5rem;
    }
}
