:root {
    --booking-ink: #515151;
    --booking-muted: #989898;
    --booking-line: #777777;
    --booking-panel-line: #eeeeee;
    --booking-accent: #6f6f6f;
    --booking-background: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--booking-background);
}

body {
    min-width: 320px;
    margin: 0;
    color: var(--booking-ink);
    background: var(--booking-background);
    font-family: "Public Sans", Arial, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.booking-header {
    width: 100%;
    height: 100px;
    min-height: 0;
    margin: 0 auto;
    padding: 0 clamp(24px, 3.5vw, 64px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--booking-background);
    box-shadow: none;
    transition: box-shadow 0.2s ease;
}

.booking-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -20px;
    height: 20px;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0));
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    -webkit-mask-image: linear-gradient(to bottom, #000000, transparent);
    mask-image: linear-gradient(to bottom, #000000, transparent);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.booking-header.is-scrolled {
    box-shadow: 0 12px 22px -20px rgba(20, 20, 20, 0.38);
}

.booking-header.is-scrolled::after {
    opacity: 1;
}

.booking-brand {
    display: inline-flex;
    align-items: center;
}

.booking-brand img {
    display: block;
    width: min(220px, 38vw);
    height: auto;
}

.booking-navigation {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #575757;
    font-size: 14px;
}

.booking-navigation a:hover,
.booking-navigation a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.booking-county {
    width: 125px;
    height: 35px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    color: #ffffff;
    background: var(--booking-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
}

.booking-main {
    width: min(100%, 1440px);
    margin: 0 auto;
    padding: clamp(60px, 9vw, 128px) 24px 20px;
    font-family: Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.booking-intro {
    max-width: 840px;
    margin: 0 auto;
    text-align: center;
}

.booking-intro h1 {
    margin: 0;
    color: #505050;
    font-size: clamp(33px, 3.4vw, 40px);
    font-weight: 400;
    letter-spacing: -0.6px;
    line-height: 1.2;
}

.booking-intro p {
    max-width: 720px;
    margin: 14px auto 0;
    color: #505050;
    font-size: clamp(16px, 1.8vw, 19px);
    font-weight: 400;
    line-height: 1.4;
}

.ride-booking-form {
    width: min(100%, 720px);
    margin: clamp(76px, 8vw, 108px) auto 0;
}

.booking-card {
    position: relative;
    min-width: 0;
    margin: 0;
    padding: 40px 40px 26px;
    border: 1px solid var(--booking-panel-line);
    border-top-color: transparent;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 1px rgba(0, 0, 0, 0.14);
}

.booking-card legend {
    width: min(244px, calc(100% - 34px));
    position: absolute;
    top: -12px;
    left: clamp(24px, 4vw, 50px);
    margin: 0;
    transform: none;
    padding: 8px 14px;
    border-radius: 8px;
    color: #ffffff;
    background: var(--booking-accent);
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}

.form-section-title {
    margin: -1px 0 12px;
    color: #575757;
    font-size: 14px;
    line-height: 1.4;
}

.optional-field-label {
    margin-left: 6px;
    color: #656565;
    font-size: 11px;
    font-style: italic;
    font-weight: 600;
    white-space: nowrap;
}

.passenger-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
}

.passenger-fields label {
    min-width: 0;
}

.passenger-fields input {
    width: 100%;
    height: 36px;
    padding: 6px 16px;
    border: 1px solid var(--booking-line);
    border-radius: 8px;
    outline: none;
    color: var(--booking-ink);
    background: #ffffff;
    font: inherit;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.passenger-fields input::placeholder {
    color: var(--booking-muted);
    opacity: 1;
}

.passenger-fields input:focus {
    border-color: #4f4f4f;
    box-shadow: 0 0 0 3px rgba(111, 111, 111, 0.16);
}

.email-field {
    grid-column: 1;
}

.service-history {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    color: #575757;
    font-size: 14px;
    line-height: 1.35;
}

.choice-buttons {
    display: flex;
    gap: 4px;
}

.choice-button {
    position: relative;
    min-width: 82px;
    height: 36px;
    cursor: pointer;
}

.choice-button input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.choice-button span {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    border: 1px solid var(--booking-line);
    border-radius: 8px;
    color: var(--booking-muted);
    background: #ffffff;
    font-size: 14px;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.choice-button input:checked + span {
    border-color: #555555;
    color: #ffffff;
    background: var(--booking-accent);
}

.choice-button input:focus-visible + span {
    box-shadow: 0 0 0 3px rgba(111, 111, 111, 0.22);
}

.ride-details-card {
    margin-top: 52px;
    padding: 34px 40px 46px;
}

.ride-details-card legend {
    width: 180px;
}

.ride-detail-section {
    margin-top: 2px;
}

.ride-detail-section + .ride-detail-section {
    margin-top: 34px;
}

.ride-address-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
}

.ride-address-fields label,
.appointment-field label {
    min-width: 0;
}

.ride-address-fields input,
.appointment-field input {
    width: 100%;
    height: 36px;
    padding: 6px 16px;
    border: 1px solid var(--booking-line);
    border-radius: 8px;
    outline: none;
    color: var(--booking-ink);
    background: #ffffff;
    font: inherit;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ride-address-fields input::placeholder,
.appointment-field input::placeholder {
    color: var(--booking-muted);
    opacity: 1;
}

.ride-address-fields input:focus,
.appointment-field input:focus {
    border-color: #4f4f4f;
    box-shadow: 0 0 0 3px rgba(111, 111, 111, 0.16);
}

.appointment-details {
    margin-top: 34px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.appointment-field {
    min-width: 0;
}

.return-ride-section {
    margin-top: 34px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: #575757;
    font-size: 14px;
    line-height: 1.35;
}

.mobility-section {
    margin-top: 42px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    color: #575757;
    font-size: 14px;
    line-height: 1.35;
}

.mobility-section > span {
    flex: 0 0 auto;
    padding-top: 10px;
}

.mobility-buttons {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 6px;
}

.mobility-button {
    position: relative;
    width: 124px;
    height: 36px;
    cursor: pointer;
}

.mobility-button-wide {
    width: 192px;
}

.mobility-button-small {
    width: 88px;
}

.mobility-button-companion {
    width: 214px;
}

.mobility-button-assistance {
    width: 244px;
}

.mobility-button input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.mobility-button span {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    padding: 0 12px;
    border: 1px solid var(--booking-line);
    border-radius: 8px;
    color: var(--booking-muted);
    background: #ffffff;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.mobility-button input:checked + span {
    border-color: #555555;
    color: #ffffff;
    background: var(--booking-accent);
}

.mobility-button input:focus-visible + span {
    box-shadow: 0 0 0 3px rgba(111, 111, 111, 0.22);
}

.mobility-section[aria-invalid="true"] .mobility-buttons {
    outline: 2px solid #a23b3b;
    outline-offset: 4px;
}

.additional-notes-card {
    margin-top: 52px;
    padding: 34px 40px 44px;
}

.additional-notes-card legend {
    width: 190px;
}

.additional-notes-content {
    display: flex;
    flex-direction: column;
}

.additional-notes-content textarea {
    width: 100%;
    height: 116px;
    min-height: 116px;
    padding: 18px 20px;
    border: 1px solid var(--booking-line);
    border-radius: 8px;
    outline: none;
    resize: vertical;
    color: var(--booking-ink);
    background: #ffffff;
    font-family: Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.additional-notes-content textarea::placeholder {
    color: var(--booking-muted);
    opacity: 1;
}

.additional-notes-content textarea:focus {
    border-color: #4f4f4f;
    box-shadow: 0 0 0 3px rgba(111, 111, 111, 0.16);
}

.booking-submit-container {
    width: 100%;
    margin-top: 44px;
    display: flex;
    justify-content: center;
}

.booking-submit-button {
    width: 220px;
    height: 40px;
    padding: 0 20px;
    border: 0;
    border-radius: 7px;
    outline: none;
    color: #ffffff;
    background: var(--booking-accent);
    font-family: Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.booking-submit-button:hover {
    background: #5f5f5f;
}

.booking-submit-button:active {
    transform: translateY(1px);
}

.booking-submit-button:focus-visible {
    box-shadow: 0 0 0 3px rgba(111, 111, 111, 0.24);
}

.booking-form-status {
    min-height: 20px;
    margin: 14px 0 0;
    color: #555555;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
}

.booking-form-status.is-error {
    color: #9a3131;
}

.booking-success-modal[hidden] {
    display: none;
}

.booking-success-modal {
    position: fixed;
    z-index: 200;
    inset: 0;
    display: grid;
    padding: 24px;
    place-items: center;
}

.booking-success-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(41, 41, 41, 0.48);
    backdrop-filter: blur(3px);
}

.booking-success-modal__dialog {
    position: relative;
    width: min(100%, 460px);
    padding: 42px 40px 38px;
    border: 1px solid #eeeeee;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.booking-success-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #555555;
    background: transparent;
    font-size: 27px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
}

.booking-success-modal__close:hover,
.booking-success-modal__close:focus-visible {
    color: #292929;
    background: #f3f3f3;
}

.booking-success-modal__logo {
    width: min(220px, 76%);
    height: auto;
}

.booking-success-modal h2 {
    margin: 28px 0 10px;
    color: #292929;
    font-size: 28px;
    font-weight: 400;
    line-height: 1.2;
}

.booking-success-modal p {
    margin: 0;
    color: #606060;
    font-size: 15px;
    line-height: 1.65;
}

.booking-success-modal__button {
    width: 180px;
    height: 40px;
    margin-top: 28px;
    border: 0;
    border-radius: 7px;
    color: #ffffff;
    background: var(--booking-accent);
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.booking-success-modal__button:hover,
.booking-success-modal__button:focus-visible {
    background: #5f5f5f;
}

body.submission-success-open {
    overflow: hidden;
}

@media (max-width: 480px) {
    .optional-field-label {
        font-size: 10px;
    }

    .booking-form-status {
        font-size: 12px;
    }

}

@media (max-width: 640px) {
    .booking-success-modal__dialog { padding: 38px 24px 30px; }
    .booking-success-modal h2 { font-size: 25px; }
}

@media (max-width: 480px) {
    .booking-success-modal { padding: 14px; }
    .booking-success-modal__dialog { padding: 34px 20px 26px; }
    .booking-success-modal h2 { margin-top: 22px; font-size: 23px; }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 1100px) and (min-width: 641px) {
    .booking-header {
        padding: 0 28px;
    }

    .booking-brand img {
        width: 195px;
    }

    .booking-county {
        width: 115px;
    }
}

@media (max-width: 860px) and (min-width: 641px) {
    .booking-header {
        height: 95px;
        min-height: 0;
        padding: 0 20px;
    }

    .booking-brand img {
        width: 185px;
    }
}

@media (max-width: 640px) {
    .additional-notes-card {
        margin-top: 38px;
        padding: 32px 24px 38px;
    }

    .additional-notes-card legend {
        width: 176px;
    }

    .additional-notes-content textarea {
        height: 132px;
        min-height: 132px;
        padding: 18px;
        font-size: 14px;
    }

    .booking-submit-container {
        margin-top: 32px;
    }

    .booking-submit-button {
        width: min(210px, 100%);
        height: 42px;
        font-size: 18px;
    }
    .booking-header {
        height: 95px;
        min-height: 0;
        padding: 0 20px;
        gap: 8px;
    }

    .booking-brand img {
        width: min(185px, 38vw);
    }

    .booking-navigation {
        gap: 8px;
        font-size: 14px;
    }

    .booking-county {
        width: min(115px, 31vw);
        height: 35px;
        padding: 0;
        font-size: 11px;
    }

    .booking-main {
        padding: 72px 20px 40px;
    }

    .booking-intro h1 {
        font-size: 31px;
    }

    .booking-intro p {
        font-size: 16px;
    }

    .ride-booking-form {
        margin-top: 72px;
    }

    .booking-card {
        padding: 38px 24px 24px;
    }

    .booking-card legend {
        left: 24px;
    }

    .passenger-fields {
        grid-template-columns: 1fr;
    }

    .form-section-title,
    .service-history,
    .return-ride-section,
    .mobility-section {
        font-size: 14px;
    }

    .passenger-fields input,
    .ride-address-fields input,
    .appointment-field input {
        height: 38px;
        font-size: 14px;
    }

    .choice-button {
        min-width: 80px;
        height: 38px;
    }

    .choice-button span,
    .mobility-button span {
        font-size: 14px;
    }

    .email-field {
        grid-column: auto;
    }

    .service-history {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        margin-top: 22px;
    }
    .ride-details-card {
        margin-top: 38px;
        padding: 38px 24px 38px;
    }

    .ride-details-card legend {
        width: 168px;
    }

    .ride-address-fields {
        grid-template-columns: 1fr;
    }

    .appointment-details {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .return-ride-section {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        margin-top: 26px;
    }

    .mobility-section {
        flex-direction: column;
        gap: 10px;
        margin-top: 30px;
    }

    .mobility-section > span {
        padding-top: 0;
    }

    .mobility-buttons {
        width: 100%;
    }

    .mobility-button,
    .mobility-button-wide,
    .mobility-button-small,
    .mobility-button-companion,
    .mobility-button-assistance {
        width: auto;
        flex: 1 1 calc(50% - 4px);
        min-width: 130px;
        height: 38px;
    }
}

@media (max-width: 600px) {
    .booking-header {
        height: 82px;
        min-height: 0;
        padding: 0 16px;
        gap: 6px;
    }

    .booking-brand img {
        width: min(165px, 38vw);
    }

    .booking-navigation {
        gap: 6px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .booking-main {
        padding: 48px 14px 32px;
    }

    .booking-intro h1 {
        font-size: 27px;
        letter-spacing: -0.4px;
    }

    .booking-intro p {
        margin-top: 12px;
        font-size: 15px;
        line-height: 1.5;
    }

    .ride-booking-form {
        margin-top: 50px;
    }

    .booking-card,
    .ride-details-card,
    .additional-notes-card {
        padding-right: 16px;
        padding-left: 16px;
    }

    .booking-card legend {
        left: 16px;
        width: min(190px, calc(100% - 28px));
        font-size: 14px;
    }

    .form-section-title {
        margin-bottom: 10px;
    }

    .passenger-fields,
    .ride-address-fields,
    .appointment-details {
        gap: 12px;
    }

    .passenger-fields input,
    .ride-address-fields input,
    .appointment-field input {
        height: 42px;
        padding-right: 14px;
        padding-left: 14px;
    }

    .ride-detail-section + .ride-detail-section,
    .appointment-details {
        margin-top: 28px;
    }

    .return-ride-section,
    .mobility-section {
        margin-top: 28px;
    }

    .choice-buttons {
        width: 100%;
        gap: 8px;
    }

    .choice-button {
        min-width: 0;
        height: 42px;
        flex: 1 1 0;
    }

    .mobility-buttons {
        gap: 8px;
    }

    .mobility-button,
    .mobility-button-wide,
    .mobility-button-small,
    .mobility-button-companion,
    .mobility-button-assistance {
        width: 100%;
        min-width: 0;
        min-height: 42px;
        height: auto;
        flex: 1 1 100%;
    }

    .mobility-button span {
        min-height: 42px;
        padding: 8px 12px;
        line-height: 1.2;
        text-align: center;
        white-space: normal;
    }

    .additional-notes-content textarea {
        height: 124px;
        min-height: 124px;
        padding: 14px;
    }

    .booking-submit-container {
        margin-top: 34px;
    }

    .booking-submit-button {
        width: 100%;
        max-width: none;
        height: 44px;
    }
}

@media (width: 375px) {
    .booking-page .navbar {
        height: 68px;
        padding: 0 18px;
    }

    .booking-page .navbar-logo,
    .booking-page .navbar-logo img {
        width: 120px;
    }

    .booking-page .mobile-menu-button {
        width: 26px;
        height: 26px;
    }

    .booking-page .meigs-button {
        width: 70px;
        height: 22px;
        font-size: 9px;
    }

    .booking-main {
        padding: 28px 18px 24px;
    }

    .booking-intro {
        max-width: 310px;
    }

    .booking-intro h1 {
        font-size: 22px;
        line-height: 1.2;
    }

    .booking-intro p {
        max-width: 300px;
        margin-top: 8px;
        font-size: 13px;
        line-height: 1.4;
    }

    .ride-booking-form {
        width: min(100%, 300px);
        margin-top: 32px;
    }

    .booking-card,
    .ride-details-card,
    .additional-notes-card {
        padding: 28px 14px 20px;
    }

    .booking-card legend {
        top: -9px;
        left: 50%;
        width: max-content;
        min-width: 160px;
        max-width: calc(100% - 28px);
        padding: 6px 10px;
        transform: translateX(-50%);
        font-size: 12px;
    }

    .form-section-title,
    .service-history,
    .return-ride-section,
    .mobility-section {
        font-size: 12px;
        text-align: center;
    }

    .passenger-fields,
    .ride-address-fields,
    .appointment-details {
        gap: 8px;
    }

    .passenger-fields input,
    .ride-address-fields input,
    .appointment-field input {
        height: 36px;
        padding: 6px 12px;
        font-size: 13px;
    }

    .service-history {
        align-items: center;
        margin-top: 18px;
    }

    .choice-buttons {
        width: auto;
        justify-content: center;
        gap: 8px;
    }

    .choice-button {
        min-width: 70px;
        height: 34px;
        flex: 0 0 70px;
    }

    .choice-button span {
        font-size: 12px;
    }

    .ride-details-card,
    .additional-notes-card {
        margin-top: 30px;
    }

    .ride-detail-section + .ride-detail-section,
    .appointment-details {
        margin-top: 24px;
    }

    .appointment-details {
        row-gap: 16px;
    }

    .return-ride-section,
    .mobility-section {
        align-items: center;
        margin-top: 24px;
    }

    .mobility-buttons {
        justify-content: center;
        gap: 6px;
    }

    .mobility-button,
    .mobility-button-wide,
    .mobility-button-small,
    .mobility-button-companion,
    .mobility-button-assistance {
        width: min(100%, 220px);
        min-height: 34px;
        height: auto;
        flex: 0 1 220px;
    }

    .mobility-button span {
        min-height: 34px;
        padding: 6px 10px;
        font-size: 12px;
    }

    .additional-notes-content textarea {
        height: 92px;
        min-height: 92px;
        padding: 10px 12px;
        font-size: 13px;
    }

    .booking-submit-container {
        margin-top: 24px;
    }

    .booking-submit-button {
        width: min(100%, 170px);
        height: 36px;
        font-size: 15px;
    }
}

@media (width: 320px) {
    .booking-main {
        padding: 24px 14px 24px;
    }

    .booking-intro {
        max-width: 278px;
    }

    .booking-intro h1 {
        font-size: 20px;
        line-height: 1.2;
    }

    .booking-intro p {
        max-width: 270px;
        margin-top: 8px;
        font-size: 12px;
        line-height: 1.4;
    }

    .ride-booking-form {
        width: min(100%, 260px);
        margin-top: 30px;
    }

    .booking-card,
    .ride-details-card,
    .additional-notes-card {
        padding: 26px 12px 18px;
    }

    .booking-card legend {
        top: -9px;
        left: 50%;
        width: max-content;
        min-width: 150px;
        max-width: calc(100% - 24px);
        padding: 6px 8px;
        transform: translateX(-50%);
        font-size: 11px;
    }

    .form-section-title,
    .service-history,
    .return-ride-section,
    .mobility-section {
        font-size: 11px;
        text-align: center;
    }

    .passenger-fields,
    .ride-address-fields,
    .appointment-details {
        gap: 8px;
    }

    .passenger-fields input,
    .ride-address-fields input,
    .appointment-field input {
        height: 34px;
        padding: 6px 10px;
        font-size: 12px;
    }

    .service-history {
        align-items: center;
        margin-top: 16px;
    }

    .choice-buttons {
        width: auto;
        justify-content: center;
        gap: 8px;
    }

    .choice-button {
        min-width: 64px;
        height: 32px;
        flex: 0 0 64px;
    }

    .choice-button span {
        font-size: 11px;
    }

    .ride-details-card,
    .additional-notes-card {
        margin-top: 28px;
    }

    .ride-detail-section + .ride-detail-section,
    .appointment-details {
        margin-top: 22px;
    }

    .appointment-details {
        row-gap: 14px;
    }

    .return-ride-section,
    .mobility-section {
        align-items: center;
        margin-top: 22px;
    }

    .mobility-buttons {
        justify-content: center;
        gap: 6px;
    }

    .mobility-button,
    .mobility-button-wide,
    .mobility-button-small,
    .mobility-button-companion,
    .mobility-button-assistance {
        width: min(100%, 200px);
        min-height: 32px;
        height: auto;
        flex: 0 1 200px;
    }

    .mobility-button span {
        min-height: 32px;
        padding: 6px 8px;
        font-size: 11px;
    }

    .additional-notes-content textarea {
        height: 84px;
        min-height: 84px;
        padding: 8px 10px;
        font-size: 12px;
    }

    .booking-submit-container {
        margin-top: 22px;
    }

    .booking-submit-button {
        width: min(100%, 150px);
        height: 34px;
        font-size: 14px;
    }
}

@media (width: 425px) {
    .booking-page .navbar {
        height: 72px;
        padding: 0 20px;
    }

    .booking-page .navbar-logo,
    .booking-page .navbar-logo img {
        width: 134px;
    }

    .booking-page .mobile-menu-button {
        width: 28px;
        height: 28px;
    }

    .booking-page .meigs-button {
        width: 76px;
        height: 24px;
        font-size: 10px;
    }

    .booking-main {
        padding: 32px 20px 28px;
    }

    .booking-intro {
        max-width: 350px;
    }

    .booking-intro h1 {
        font-size: 24px;
        line-height: 1.2;
    }

    .booking-intro p {
        max-width: 340px;
        margin-top: 9px;
        font-size: 14px;
        line-height: 1.4;
    }

    .ride-booking-form {
        width: min(100%, 340px);
        margin-top: 36px;
    }

    .booking-card,
    .ride-details-card,
    .additional-notes-card {
        padding: 30px 16px 22px;
    }

    .booking-card legend {
        top: -9px;
        left: 50%;
        width: max-content;
        min-width: 170px;
        max-width: calc(100% - 32px);
        padding: 6px 12px;
        transform: translateX(-50%);
        font-size: 13px;
    }

    .form-section-title,
    .service-history,
    .return-ride-section,
    .mobility-section {
        font-size: 13px;
        text-align: center;
    }

    .passenger-fields,
    .ride-address-fields,
    .appointment-details {
        gap: 9px;
    }

    .passenger-fields input,
    .ride-address-fields input,
    .appointment-field input {
        height: 38px;
        padding: 7px 12px;
        font-size: 13px;
    }

    .service-history {
        align-items: center;
        margin-top: 20px;
    }

    .choice-buttons {
        width: auto;
        justify-content: center;
        gap: 8px;
    }

    .choice-button {
        min-width: 76px;
        height: 36px;
        flex: 0 0 76px;
    }

    .choice-button span {
        font-size: 13px;
    }

    .ride-details-card,
    .additional-notes-card {
        margin-top: 32px;
    }

    .ride-detail-section + .ride-detail-section,
    .appointment-details {
        margin-top: 26px;
    }

    .appointment-details {
        row-gap: 18px;
    }

    .return-ride-section,
    .mobility-section {
        align-items: center;
        margin-top: 26px;
    }

    .mobility-buttons {
        justify-content: center;
        gap: 7px;
    }

    .mobility-button,
    .mobility-button-wide,
    .mobility-button-small,
    .mobility-button-companion,
    .mobility-button-assistance {
        width: min(100%, 240px);
        min-height: 36px;
        height: auto;
        flex: 0 1 240px;
    }

    .mobility-button span {
        min-height: 36px;
        padding: 7px 10px;
        font-size: 13px;
    }

    .additional-notes-content textarea {
        height: 100px;
        min-height: 100px;
        padding: 11px 12px;
        font-size: 13px;
    }

    .booking-submit-container {
        margin-top: 26px;
    }

    .booking-submit-button {
        width: min(100%, 180px);
        height: 38px;
        font-size: 16px;
    }
}

/* Keep the desktop form arrangement at exactly 768px. */
@media (width: 768px) {
    .booking-main { padding: 80px 32px 28px; }
    .booking-intro h1 { font-size: 30px; }
    .booking-intro p { font-size: 15px; }
    .ride-booking-form { width: min(100%, 600px); margin-top: 64px; }
    .booking-card { padding: 34px 32px 24px; }
    .booking-card legend { left: 32px; font-size: 14px; }
    .ride-details-card { padding: 34px 32px 36px; }
    .additional-notes-card { padding: 34px 32px 30px; }
}
