:root {
    --tps-bg: #f3f6fb;
    --tps-surface: rgba(255, 255, 255, 0.94);
    --tps-surface-strong: #ffffff;
    --tps-border: rgba(8, 31, 61, 0.12);
    --tps-border-strong: rgba(8, 31, 61, 0.18);
    --tps-text: #162033;
    --tps-muted: #5e6b82;
    --tps-primary: #00aeef;
    --tps-primary-dark: #007eb4;
    --tps-accent: #ffb703;
    --tps-success: #0e9f6e;
    --tps-danger: #d64545;
    --tps-shadow: 0 20px 50px rgba(15, 23, 42, 0.10);
    --tps-shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
    --tps-radius-xl: 28px;
    --tps-radius-lg: 22px;
    --tps-radius-md: 16px;
    --tps-radius-sm: 12px;
}

html {
    background: var(--tps-bg);
}

body.tps-app,
body.auth-shell {
    min-height: 100vh;
    color: var(--tps-text);
    background:
        radial-gradient(circle at top left, rgba(0, 174, 239, 0.12), transparent 28%),
        radial-gradient(circle at top right, rgba(6, 57, 91, 0.10), transparent 32%),
        var(--tps-bg);
}

body.tps-app {
    overflow-x: hidden;
}

.skip-link {
    position: absolute;
    top: -48px;
    left: 16px;
    z-index: 2000;
    padding: 0.75rem 1rem;
    color: #fff;
    background: var(--tps-text);
    border-radius: var(--tps-radius-sm);
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 16px;
    color: #fff;
}

.site-wrapper--app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-main {
    flex: 1;
    padding: 1.5rem 0 3rem;
}

.app-shell {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
}

.tps-navbar.navbar-light {
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(8, 31, 61, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.05);
    padding: 0.85rem 0;
}

.tps-navbar__inner {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tps-navbar__brand {
    display: inline-flex;
    align-items: center;
}

.tps-navbar__brand img {
    height: 40px;
    width: auto;
}

.tps-navbar__collapse {
    justify-content: flex-end;
}

.tps-navbar__nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.navbar-nav .nav-item {
    padding-left: 0;
}

.tps-navbar .nav-link,
.tps-navbar .btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    color: var(--tps-text);
}

.tps-navbar .nav-link:hover,
.tps-navbar .nav-link:focus {
    color: var(--tps-primary-dark);
    background: rgba(0, 174, 239, 0.10);
}

.tps-navbar .nav-item.active .nav-link {
    color: var(--tps-primary-dark);
    background: rgba(0, 174, 239, 0.14);
}

.tps-navbar .btn-warning,
.booking-card .btn-warning,
.modal-footer .btn-warning {
    color: #1a1a1a;
    background: linear-gradient(135deg, #ffd166, var(--tps-accent));
    border-color: transparent;
    box-shadow: 0 12px 24px rgba(255, 183, 3, 0.22);
}

.btn,
.form-control {
    transition: box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.btn {
    min-height: 52px;
    border-radius: 999px;
    font-weight: 700;
    border: 0;
}

.btn:hover,
.btn:focus {
    transform: translateY(-1px);
}

.btn[disabled],
.btn.disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-primary,
.booking-card .btn-primary,
.modal-footer .btn-primary {
    background: linear-gradient(135deg, var(--tps-primary), var(--tps-primary-dark));
    border-color: transparent;
    box-shadow: 0 12px 24px rgba(0, 174, 239, 0.20);
}

.btn-secondary,
.booking-card .btn-secondary,
.modal-footer .btn-secondary {
    color: var(--tps-text);
    background: rgba(22, 32, 51, 0.06);
    border: 1px solid rgba(22, 32, 51, 0.08);
}

.btn-info {
    background: linear-gradient(135deg, #69baf7, #3182ce);
    border-color: transparent;
}

.btn-danger {
    background: linear-gradient(135deg, #f87171, var(--tps-danger));
    border-color: transparent;
}

.btn:focus,
.form-control:focus,
.navbar-toggler:focus,
.site-footer a:focus,
.site-footer button:focus,
.site-footer input:focus,
.site-footer select:focus,
a:focus {
    outline: 3px solid rgba(0, 174, 239, 0.25);
    outline-offset: 2px;
}

.navbar-toggler {
    min-width: 44px;
    min-height: 44px;
    padding: 0.5rem 0.75rem;
    font-size: 1.5rem;
    border-radius: 999px;
    border: 1px solid rgba(8, 31, 61, 0.10);
    background: rgba(0, 174, 239, 0.08);
}

.booking-hero {
    position: relative;
    overflow: hidden;
    margin-top: 76px;
    padding: clamp(3.5rem, 6vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem);
    background:
        linear-gradient(120deg, rgba(4, 23, 44, 0.80), rgba(6, 57, 91, 0.58)),
        url("/pix/apcoa-parking.jpg") center center / cover no-repeat;
}

.booking-hero__content {
    width: min(720px, 100%);
    color: #fff;
}

.booking-hero__eyebrow {
    display: inline-flex;
    margin-bottom: 1rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.booking-hero__title {
    margin: 0 0 0.85rem;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.05;
}

.booking-hero__text {
    margin: 0;
    max-width: 58ch;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(1rem, 2vw, 1.12rem);
    line-height: 1.7;
}

.booking-flow,
.content-page,
.status-page,
.auth-page {
    display: grid;
    gap: 1.5rem;
}

.booking-layout {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.95fr);
    align-items: start;
}

.booking-card,
.content-card,
.status-card,
.empty-state,
.auth-card {
    background: var(--tps-surface);
    border: 1px solid var(--tps-border);
    border-radius: var(--tps-radius-xl);
    box-shadow: var(--tps-shadow-soft);
}

.booking-card,
.content-card,
.status-card,
.empty-state {
    padding: clamp(1.35rem, 2vw, 2rem);
}

.booking-card__header,
.content-card__header,
.status-card__header {
    margin-bottom: 1.5rem;
}

.booking-card__title,
.content-card__title,
.status-card__title {
    margin: 0 0 0.45rem;
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    line-height: 1.15;
}

.booking-card__subtitle,
.content-card__subtitle,
.status-card__subtitle,
.page-intro {
    margin: 0;
    color: var(--tps-muted);
    line-height: 1.7;
}

.booking-form-grid,
.booking-inline-grid,
.booking-summary-stack,
.action-grid {
    display: grid;
    gap: 1rem 1.25rem;
}

.booking-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.booking-inline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.booking-field--full {
    grid-column: 1 / -1;
}

.booking-field label,
.booking-flow label,
.auth-page label {
    display: inline-block;
    margin-bottom: 0.45rem;
    color: var(--tps-text);
    font-weight: 700;
}

.form-control,
.input-group .form-control,
.booking-flow input[type="text"],
.booking-flow input[type="password"],
.booking-flow input[type="email"],
.booking-flow input[type="number"],
.booking-flow select,
.auth-page input[type="text"],
.auth-page input[type="password"] {
    min-height: 52px;
    border: 1px solid var(--tps-border-strong);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    color: var(--tps-text);
    box-shadow: none;
}

.form-control:focus,
.input-group .form-control:focus {
    border-color: rgba(0, 174, 239, 0.8);
    box-shadow: 0 0 0 4px rgba(0, 174, 239, 0.12);
}

.input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group-addon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    border: 1px solid var(--tps-border-strong);
    border-left: 0;
    border-radius: 0 16px 16px 0;
    color: var(--tps-primary-dark);
    background: rgba(0, 174, 239, 0.08);
}

.booking-card--summary {
    position: sticky;
    top: 98px;
}

.booking-price-block {
    padding: 1.1rem 1.2rem;
    border-radius: var(--tps-radius-lg);
    background: linear-gradient(135deg, rgba(0, 174, 239, 0.08), rgba(6, 57, 91, 0.08));
    border: 1px solid rgba(0, 174, 239, 0.14);
}

.booking-price-block h2,
.booking-price-block h3,
.booking-price-block h4,
.booking-price-block h6 {
    margin: 0;
}

.booking-price-block h2,
.booking-price-block h3 {
    font-size: clamp(1.55rem, 2vw, 2rem);
}

.booking-price-block h6,
.status-note,
.muted-text {
    color: var(--tps-muted);
    line-height: 1.6;
}

.booking-submit {
    width: 100%;
}

.booking-support-note {
    padding-top: 0.25rem;
    font-size: 0.98rem;
    color: var(--tps-muted);
}

.terms-content,
.rich-content,
.payment-embed,
.status-details,
.empty-state__content {
    color: var(--tps-text);
    line-height: 1.75;
}

.terms-content > *:last-child,
.rich-content > *:last-child,
.payment-embed > *:last-child,
.status-details > *:last-child,
.empty-state__content > *:last-child {
    margin-bottom: 0;
}

.booking-terms-panel {
    max-height: min(42vh, 420px);
    overflow-y: auto;
    padding-right: 0.35rem;
}

.booking-modal-divider {
    margin: 0 0 1rem;
}

.booking-terms-panel + .booking-modal-divider {
    margin: 1rem 0;
}

.terms-unavailable-message {
    margin: 0;
    color: var(--tps-muted);
}

.terms-content ul,
.rich-content ul,
.status-details ul {
    list-style: disc;
    padding-left: 1.25rem;
}

.status-details ul {
    display: grid;
    gap: 0.5rem;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: rgba(14, 159, 110, 0.12);
    color: #0b7a55;
    font-weight: 700;
}

.action-grid {
    margin-top: 1rem;
}

.action-grid .btn {
    width: 100%;
}

.booking-flow--edit .action-grid {
    grid-template-columns: 1fr;
}

.empty-state {
    max-width: 720px;
    margin: 2rem auto 0;
    text-align: center;
}

.empty-state h1,
.empty-state h2,
.empty-state h3 {
    margin-top: 0;
}

.status-summary {
    display: grid;
    gap: 0.85rem;
}

.status-summary__item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border-radius: var(--tps-radius-md);
    background: rgba(22, 32, 51, 0.04);
}

.status-summary__label {
    color: var(--tps-muted);
    font-weight: 600;
}

.status-summary__value {
    text-align: right;
    font-weight: 700;
    color: var(--tps-text);
}

.site-footer {
    margin-top: 2rem;
    padding: 2rem 0;
    background: #08233f;
    color: rgba(255, 255, 255, 0.92);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.site-footer__brand {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.85rem;
}

.site-footer__brand img {
    height: 34px;
    width: auto;
}

.site-footer__copy {
    margin: 0;
    max-width: 48ch;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.7;
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer__links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.10);
}

.site-footer__links a:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.modal-content {
    border: 0;
    border-radius: var(--tps-radius-xl);
    box-shadow: var(--tps-shadow);
}

.modal-header,
.modal-body,
.modal-footer {
    padding-left: 1.35rem;
    padding-right: 1.35rem;
}

.modal-header {
    border-bottom: 1px solid rgba(22, 32, 51, 0.08);
    padding-top: 1.25rem;
    padding-bottom: 1rem;
}

.modal-body {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.modal-footer {
    border-top: 1px solid rgba(22, 32, 51, 0.08);
    padding-top: 1rem;
    padding-bottom: 1.25rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.modal-footer .btn {
    flex: 1 1 220px;
}

.auth-shell .loginbg {
    min-height: 100vh;
    padding: 1.25rem;
    display: grid;
    place-items: center;
    background:
        linear-gradient(135deg, rgba(6, 57, 91, 0.95), rgba(0, 174, 239, 0.78)),
        url("/pix/apcoa-p2.jpg") center center / cover no-repeat;
}

.auth-card {
    width: min(100%, 540px);
    padding: clamp(1.5rem, 2vw, 2rem);
    color: #fff;
    background: rgba(8, 23, 41, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.auth-brand img {
    max-width: 180px;
    width: 100%;
    height: auto;
}

.auth-card h1,
.auth-card h2,
.auth-card h3,
.auth-card h4,
.auth-card h5,
.auth-card h6,
.auth-card label,
.auth-card p {
    color: #fff;
}

.auth-card .text-danger {
    color: #ffd7d7 !important;
}

.auth-card #ulValidationSummary ul {
    list-style: disc;
    padding-left: 1.25rem;
}

.auth-page .form-control {
    background: rgba(255, 255, 255, 0.95);
}

.auth-page .btn-primary {
    width: 100%;
}

.field-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--tps-primary-dark);
}

.form-group {
    position: relative;
}

.alert-inline {
    padding: 0.9rem 1rem;
    border-radius: var(--tps-radius-md);
    background: rgba(214, 69, 69, 0.12);
    color: #ffd7d7;
}

.payment-embed iframe,
.payment-embed form,
.payment-embed > div {
    max-width: 100%;
}

.loader.apcoaloader img {
    left: 50% !important;
    transform: translateX(-50%);
}

@media (max-width: 991px) {
    .booking-layout,
    .site-footer__grid {
        grid-template-columns: 1fr;
    }

    .booking-card--summary {
        position: static;
    }

    .tps-navbar__collapse {
        margin-top: 0.85rem;
        padding: 0.85rem;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid rgba(8, 31, 61, 0.08);
        box-shadow: var(--tps-shadow-soft);
    }

    .tps-navbar__nav,
    .site-footer__links {
        width: 100%;
        justify-content: flex-start;
    }

    .tps-navbar .nav-link,
    .tps-navbar .btn {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 767px) {
    .app-main {
        padding-bottom: 2.5rem;
    }

    .app-shell {
        width: min(100%, calc(100% - 1rem));
    }

    .booking-hero {
        margin-top: 68px;
        padding-top: 3rem;
        padding-bottom: 2.5rem;
    }

    .booking-form-grid,
    .booking-inline-grid,
    .action-grid {
        grid-template-columns: 1fr;
    }

    .booking-card,
    .content-card,
    .status-card,
    .empty-state,
    .auth-card {
        border-radius: 22px;
    }

    .status-summary__item {
        flex-direction: column;
        align-items: flex-start;
    }

    .status-summary__value {
        text-align: left;
    }
}

@media (max-width: 479px) {
    .booking-hero__title {
        font-size: 1.9rem;
    }

    .booking-card,
    .content-card,
    .status-card,
    .empty-state {
        padding: 1.15rem;
    }

    .btn {
        min-height: 50px;
    }
}
