/* ==========================================================================
   MP Car Booking — customer booking form + driver registration form.
   Moved out of inline <style> tags because shortcode output that lands in
   post content goes through wp_kses_post/the_content filtering, which
   strips <style> and <script> tags whenever unfiltered_html isn't granted
   (common on hardened hosts even for admins) — that's why the form was
   rendering as unstyled stacked labels/inputs instead of the card layout.
   ========================================================================== */

.mpcb-form-wrap,
.mpcd-form-wrap {
    max-width: 560px;
    margin: 0 auto;
    background: var(--bg, #fff);
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 1.75rem;
    box-sizing: border-box;
}

.mpcb-eyebrow {
    display: inline-block;
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #DC2626;
    margin-bottom: .35rem;
}

.mpcb-form-head h2 {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0 0 .4rem;
    color: var(--ink-900, #0F172A);
}

.mpcb-form-head p {
    font-size: .85rem;
    color: #64748B;
    margin: 0 0 1.25rem;
    line-height: 1.5;
}

.mpcb-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .7rem;
}

.mpcb-field {
    margin-bottom: .85rem;
}

.mpcb-field label {
    display: block;
    font-size: .76rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: .3rem;
}

.mpcb-field input,
.mpcb-field select,
.mpcb-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: .6rem .75rem;
    border: 1.5px solid #E5E7EB;
    border-radius: 9px;
    font-size: .85rem;
    font-family: inherit;
    background: #fff;
    color: #0F172A;
}

.mpcb-field input:focus,
.mpcb-field select:focus,
.mpcb-field textarea:focus {
    outline: none;
    border-color: #DC2626;
}

.mpcb-field input:disabled {
    background: #F8FAFC;
    color: #94A3B8;
}

.mpcb-submit {
    width: 100%;
    background: #DC2626;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: .9rem;
    font-weight: 800;
    font-size: .95rem;
    cursor: pointer;
    margin-top: .3rem;
    font-family: inherit;
}

.mpcb-submit:hover {
    background: #B91C1C;
}

.mpcb-submit:disabled {
    opacity: .6;
    cursor: default;
}

.mpcb-msg {
    margin-top: .75rem;
    font-size: .85rem;
}

.mpcb-msg a {
    display: inline-block;
    margin-top: .6rem;
    background: #25D366;
    color: #fff;
    padding: .55rem 1.1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
}

.mpcb-register-car-cta {
    display: block;
    width: 100%;
    margin-top: 1rem;
    background: #FFFBEB;
    border: 1.5px dashed #FDE68A;
    color: #B45309;
    font-weight: 800;
    font-size: .85rem;
    padding: .75rem;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
}

.mpcb-register-car-cta:hover {
    background: #FEF3C7;
}

@media (max-width: 480px) {
    .mpcb-row {
        grid-template-columns: 1fr;
    }
}

/* ── Book a Car page shell + tabs (page-book-a-car.php) ─────────────────── */
.mpcb-page-wrap {
    padding: 2.5rem 1rem 4rem;
    background: linear-gradient(180deg, #FFFBEB 0%, #fff 45%);
}

.mpcb-page-hero {
    text-align: center;
    margin-bottom: 1.75rem;
}

.mpcb-page-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    padding: .35rem .85rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.mpcb-page-hero h1 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 800;
    color: var(--ink-900, #0F172A);
    margin: 0 0 .6rem;
}

.mpcb-page-hero p {
    color: #6B7280;
    max-width: 560px;
    margin: 0 auto;
}

.mpcb-tabs {
    display: flex;
    justify-content: center;
    gap: .4rem;
    max-width: 460px;
    margin: 0 auto 2rem;
    background: #F3F4F6;
    border-radius: 14px;
    padding: .35rem;
}

.mpcb-tab-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: .75rem 1rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: .88rem;
    color: #6B7280;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s, color .15s;
    white-space: nowrap;
}

.mpcb-tab-btn:hover:not(.active) {
    color: #374151;
}

.mpcb-tab-btn.active {
    background: #fff;
    color: #0F172A;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .1);
}

.mpcb-tab-panel {
    display: none;
}

.mpcb-tab-panel.active {
    display: block;
    animation: mpcb-fade-in .2s ease;
}

@keyframes mpcb-fade-in {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
    .mpcb-tab-btn {
        font-size: .8rem;
        padding: .65rem .5rem;
    }
}

/* ── Fare guide (page-book-a-car.php) ────────────────────────────────────── */
.mpcb-fareguide {
    max-width: 720px;
    margin: 2.5rem auto 0;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 1.75rem;
    box-sizing: border-box;
}

.mpcb-fareguide h2 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--ink-900, #0F172A);
    margin: 0 0 .4rem;
}

.mpcb-fareguide h3 {
    font-size: .95rem;
    font-weight: 800;
    color: var(--ink-900, #0F172A);
    margin: 0 0 .75rem;
}

.mpcb-fareguide-note {
    font-size: .82rem;
    color: #6B7280;
    margin: 0 0 1.25rem;
}

.mpcb-fare-rates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .8rem;
    margin-bottom: 1.25rem;
}

.mpcb-fare-rate-card {
    background: #FFF7ED;
    border: 1px solid #FDE68A;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
}

.mpcb-fare-rate-label {
    font-size: .8rem;
    font-weight: 700;
    color: #92400E;
    margin-bottom: .3rem;
}

.mpcb-fare-rate-value {
    font-size: 1.5rem;
    font-weight: 900;
    color: #B45309;
}

.mpcb-fare-rate-value span {
    font-size: .8rem;
    font-weight: 700;
    color: #B45309;
}

.mpcb-fare-rate-sub {
    font-size: .72rem;
    color: #92400E;
    margin-top: .2rem;
}

.mpcb-fare-extra {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.mpcb-fare-extra li {
    font-size: .84rem;
    color: #374151;
    background: #F9FAFB;
    border-radius: 10px;
    padding: .6rem .8rem;
}

.mpcb-route-table {
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    overflow: hidden;
}

.mpcb-route-row {
    display: grid;
    grid-template-columns: 1.4fr .8fr 1.4fr;
    gap: .5rem;
    padding: .65rem .9rem;
    font-size: .82rem;
    color: #374151;
    border-bottom: 1px solid #F3F4F6;
    align-items: center;
}

.mpcb-route-row:last-child {
    border-bottom: none;
}

.mpcb-route-head {
    background: #F9FAFB;
    font-weight: 700;
    color: #6B7280;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.mpcb-route-quote {
    color: #B45309;
    font-weight: 700;
}

.mpcb-route-sub {
    display: inline-block;
    color: #9CA3AF;
    font-size: .74rem;
    font-weight: 500;
    margin-top: .15rem;
}

.mpcb-fareguide-footnote {
    font-size: .72rem;
    color: #9CA3AF;
    margin: 1rem 0 0;
    line-height: 1.5;
}

@media (max-width: 480px) {
    .mpcb-fare-rates {
        grid-template-columns: 1fr;
    }

    .mpcb-route-row {
        grid-template-columns: 1fr;
        gap: .15rem;
    }

    .mpcb-route-row span:first-child {
        font-weight: 700;
    }
}
