/*
 * Modern online forms: rental (Api/view/doards/online-booking-rental-modern.php) and
 * taxi / transfer (Api/view/doards/online-booking-modern.php).
 * The colors and corners come from the form settings as CSS variables on :root
 * (--dcr-primary, --dcr-primary-contrast, --dcr-bg, --dcr-text, --dcr-radius, --dcr-radius-lg).
 */
:root {
    --dcr-surface: #ffffff;
    --dcr-primary-soft: color-mix(in srgb, var(--dcr-primary) 9%, #ffffff);
    --dcr-primary-border: color-mix(in srgb, var(--dcr-primary) 38%, #ffffff);
    --dcr-muted: color-mix(in srgb, var(--dcr-text) 58%, #ffffff);
    --dcr-border: color-mix(in srgb, var(--dcr-text) 11%, #ffffff);
    --dcr-surface-2: color-mix(in srgb, var(--dcr-text) 3%, #ffffff);
    --dcr-danger: #d63a45;
    --dcr-success: #1f8a4c;
    --dcr-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px rgba(16, 24, 40, 0.06);
    --dcr-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body.dcr-body {
    background: var(--dcr-bg) !important;
    color: var(--dcr-text);
    font-family: var(--dcr-font);
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

.dcr-body .loader {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(255, 255, 255, 0.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Ccircle cx='22' cy='22' r='18' fill='none' stroke='%23c9ced8' stroke-width='4'/%3E%3Cpath d='M22 4a18 18 0 0 1 18 18' fill='none' stroke='%23555' stroke-width='4' stroke-linecap='round'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 22 22' to='360 22 22' dur='0.8s' repeatCount='indefinite'/%3E%3C/path%3E%3C/svg%3E") center no-repeat;
}

.dcr-shell {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 20px 16px 32px;
}

/* Header */
.dcr-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.dcr-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.dcr-brand img {
    max-height: 40px;
    max-width: 160px;
    object-fit: contain;
}

.dcr-brand-name {
    font-weight: 700;
    font-size: 1.05rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dcr-lang {
    display: flex;
    gap: 6px;
}

.dcr-lang a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: var(--dcr-radius);
    border: 1px solid var(--dcr-border);
    background: var(--dcr-surface);
    color: var(--dcr-text);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
}

.dcr-lang a.active {
    border-color: var(--dcr-primary);
    color: var(--dcr-primary);
}

/* Steps */
.dcr-steps {
    display: flex;
    gap: 8px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
    counter-reset: dcr-step;
}

.dcr-steps-item {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--dcr-radius);
    background: var(--dcr-surface);
    border: 1px solid var(--dcr-border);
    color: var(--dcr-muted);
    font-size: 0.85rem;
    font-weight: 600;
    min-width: 0;
}

.dcr-steps-item span:last-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dcr-steps-number {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--dcr-surface-2);
    border: 1px solid var(--dcr-border);
    font-size: 0.78rem;
}

.dcr-steps-item.is-current {
    border-color: var(--dcr-primary);
    color: var(--dcr-text);
}

.dcr-steps-item.is-current .dcr-steps-number,
.dcr-steps-item.is-done .dcr-steps-number {
    background: var(--dcr-primary);
    border-color: var(--dcr-primary);
    color: var(--dcr-primary-contrast);
}

.dcr-steps-item.is-done {
    cursor: pointer;
    color: var(--dcr-text);
}

/* Cards and headings */
.dcr-card {
    background: var(--dcr-surface);
    border: 1px solid var(--dcr-border);
    border-radius: var(--dcr-radius-lg);
    box-shadow: var(--dcr-shadow);
    padding: 24px;
}

.dcr-card + .dcr-card {
    margin-top: 16px;
}

.dcr-title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 4px;
    color: var(--dcr-text);
}

.dcr-subtitle {
    color: var(--dcr-muted);
    margin: 0 0 20px;
}

.dcr-card-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--dcr-text);
}

.dcr-card-title > span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.dcr-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dcr-card-title .dcr-icon {
    color: var(--dcr-primary);
    width: 20px;
    height: 20px;
}

.dcr-link {
    background: none;
    border: 0;
    padding: 0;
    color: var(--dcr-primary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
}

.dcr-link:hover {
    text-decoration: underline;
}

/* Some translations are saved in lowercase (they are also used inside sentences), labels
   and headings always start with a capital letter. ::first-letter needs a block box. */
.dcr-cap,
.dcr-steps-item span:last-child {
    display: inline-block;
}

.dcr-cap::first-letter,
.dcr-label::first-letter,
.dcr-steps-item span:last-child::first-letter,
.dcr-login-text strong::first-letter,
.dcr-login-text small::first-letter,
.dcr-trip-item small::first-letter,
.dcr-info-row small::first-letter,
.dcr-pay-option strong::first-letter,
.dcr-pay-option small::first-letter,
.dcr-lines li span:first-child::first-letter {
    text-transform: uppercase;
}

.dcr-lines li span:first-child {
    display: inline-block;
}

/* Steps content */
.dcr-step {
    display: none;
}

.dcr-step.is-active {
    display: block;
    animation: dcr-fade 0.25s ease;
}

@keyframes dcr-fade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* Fields */
.dcr-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--dcr-muted);
    margin-bottom: 6px;
}

.dcr-label.required::after {
    content: " *";
    color: var(--dcr-danger);
}

.dcr-input,
.dcr-body .dcr-select,
.dcr-body .select2-container--bootstrap5 .select2-selection {
    width: 100%;
    min-height: 48px;
    padding: 11px 14px !important;
    border: 1px solid var(--dcr-border) !important;
    border-radius: var(--dcr-radius) !important;
    background-color: var(--dcr-surface) !important;
    color: var(--dcr-text) !important;
    font-size: 0.95rem !important;
    font-weight: 500;
    box-shadow: none !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dcr-input:focus,
.dcr-body .dcr-select:focus,
.dcr-body .select2-container--focus .select2-selection,
.dcr-body .select2-container--open .select2-selection {
    outline: none;
    border-color: var(--dcr-primary) !important;
    box-shadow: 0 0 0 3px var(--dcr-primary-soft) !important;
}

.dcr-input::placeholder {
    color: color-mix(in srgb, var(--dcr-text) 40%, #ffffff);
}

select.dcr-select {
    appearance: none;
    padding-right: 40px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7385' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 16px 16px !important;
    cursor: pointer;
}

textarea.dcr-input {
    min-height: 90px;
}

.dcr-input-icon {
    position: relative;
}

.dcr-input-icon > .dcr-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--dcr-muted);
    pointer-events: none;
}

.dcr-input-icon .dcr-input,
.dcr-input-icon .dcr-select {
    padding-left: 42px !important;
}

.dcr-body .fv-plugins-message-container .fv-help-block,
.dcr-body .invalid-feedback {
    color: var(--dcr-danger);
    font-size: 0.8rem;
    margin-top: 4px;
}

.dcr-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dcr-grid .dcr-col-full {
    grid-column: 1 / -1;
}

.dcr-grid-3 {
    grid-template-columns: 2fr 1fr 2fr;
}

.dcr-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--dcr-text);
    cursor: pointer;
    user-select: none;
}

.dcr-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--dcr-primary);
    margin: 0;
}

/* Buttons */
.dcr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 22px;
    border-radius: var(--dcr-radius);
    border: 1px solid transparent;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    transition: filter 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    white-space: nowrap;
}

.dcr-btn-primary {
    background: var(--dcr-primary);
    color: var(--dcr-primary-contrast);
    box-shadow: 0 6px 16px color-mix(in srgb, var(--dcr-primary) 28%, transparent);
}

.dcr-btn-primary:hover:not(:disabled) {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.dcr-btn-light {
    background: var(--dcr-surface);
    color: var(--dcr-text);
    border-color: var(--dcr-border);
}

.dcr-btn-light:hover:not(:disabled) {
    border-color: var(--dcr-primary);
    color: var(--dcr-primary);
}

.dcr-btn:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    box-shadow: none;
}

.dcr-btn-block {
    width: 100%;
}

.dcr-btn-lg {
    min-height: 56px;
    font-size: 1.05rem;
}

.dcr-btn .indicator-progress {
    display: none;
}

.dcr-btn[data-dc-indicator="on"] .indicator-label {
    display: none;
}

.dcr-btn[data-dc-indicator="on"] .indicator-progress {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Step 1: search */
.dcr-hero {
    padding: 28px;
}

.dcr-search {
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.5fr) auto;
    align-items: end;
}

.dcr-search.is-same-return {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr) auto;
}

.dcr-search.is-same-return .dcr-return-field {
    display: none;
}

.dcr-search.no-stations {
    grid-template-columns: minmax(0, 1fr) auto;
}

.dcr-search-options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

.dcr-station-static {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dcr-muted);
    font-size: 0.9rem;
}

#period_display {
    cursor: pointer;
    text-overflow: ellipsis;
}

.dcr-period-panel {
    display: none;
    margin-top: 16px;
    border: 1px solid var(--dcr-border);
    border-radius: var(--dcr-radius-lg);
    padding: 18px;
    background: var(--dcr-surface-2);
}

.dcr-period-panel.is-open {
    display: grid;
    grid-template-columns: auto minmax(220px, 1fr);
    gap: 22px;
    align-items: start;
}

.dcr-period-calendar .flatpickr-calendar.inline {
    box-shadow: none;
    border: 1px solid var(--dcr-border);
    border-radius: var(--dcr-radius);
    background: var(--dcr-surface);
    margin: 0;
}

.dcr-body .flatpickr-day.selected,
.dcr-body .flatpickr-day.startRange,
.dcr-body .flatpickr-day.endRange,
.dcr-body .flatpickr-day.selected:hover,
.dcr-body .flatpickr-day.startRange:hover,
.dcr-body .flatpickr-day.endRange:hover {
    background: var(--dcr-primary) !important;
    border-color: var(--dcr-primary) !important;
    color: var(--dcr-primary-contrast) !important;
}

.dcr-body .flatpickr-day.inRange {
    background: var(--dcr-primary-soft) !important;
    border-color: var(--dcr-primary-soft) !important;
    box-shadow: -5px 0 0 var(--dcr-primary-soft), 5px 0 0 var(--dcr-primary-soft) !important;
    color: var(--dcr-text) !important;
}

.dcr-period-times {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dcr-period-summary {
    padding: 12px 14px;
    border-radius: var(--dcr-radius);
    background: var(--dcr-surface);
    border: 1px dashed var(--dcr-border);
    font-size: 0.88rem;
    color: var(--dcr-muted);
}

.dcr-period-summary strong {
    color: var(--dcr-text);
}

.dcr-alert {
    display: none;
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: var(--dcr-radius);
    background: color-mix(in srgb, var(--dcr-danger) 8%, #ffffff);
    border: 1px solid color-mix(in srgb, var(--dcr-danger) 30%, #ffffff);
    color: var(--dcr-danger);
    font-size: 0.88rem;
    font-weight: 600;
}

.dcr-alert.is-visible {
    display: block;
}

/* Taxi form, step 1: route fields next to the map */
.dcr-ride {
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, 1fr);
}

.dcr-ride.has-map {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.dcr-ride-fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.dcr-ride-map {
    min-height: 360px;
    border-radius: var(--dcr-radius-lg);
    border: 1px solid var(--dcr-border);
    overflow: hidden;
    background: var(--dcr-surface-2);
}

.dcr-ride-map > div,
.dcr-summary-map {
    width: 100%;
    height: 100%;
    min-height: 360px;
}

.dcr-summary-map {
    min-height: 200px;
    height: 200px;
    margin-top: 14px;
    border-radius: var(--dcr-radius);
    border: 1px solid var(--dcr-border);
    overflow: hidden;
}

.dcr-segment {
    display: inline-flex;
    align-self: flex-start;
    padding: 4px;
    gap: 4px;
    border-radius: var(--dcr-radius);
    border: 1px solid var(--dcr-border);
    background: var(--dcr-surface-2);
}

.dcr-segment-item {
    border: 0;
    background: transparent;
    padding: 8px 16px;
    border-radius: calc(var(--dcr-radius) - 3px);
    color: var(--dcr-muted);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
}

.dcr-segment-item.is-active {
    background: var(--dcr-primary);
    color: var(--dcr-primary-contrast);
}

.dcr-field-hint {
    display: block;
    margin-top: 4px;
    color: var(--dcr-muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.dcr-field-hint:empty {
    display: none;
}

.dcr-price-preview {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--dcr-radius);
    border: 1px solid var(--dcr-primary-border);
    background: var(--dcr-primary-soft);
    font-weight: 600;
}

.dcr-price-preview.is-visible {
    display: flex;
}

.dcr-price-preview strong {
    font-size: 1.3rem;
    font-weight: 800;
}

.dcr-car.is-unpriced {
    display: none;
}

/* Address suggestions of the map service, above the cards of the form */
.pac-container {
    z-index: 3000;
    border-radius: var(--dcr-radius);
    font-family: var(--dcr-font);
}

/* Login, shown on the first page and moved above the customer details on the checkout */
#search_login_slot > .dcr-card {
    margin-top: 16px;
}

#checkout_login_slot > .dcr-card {
    margin-bottom: 16px;
}

.dcr-login {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 18px;
    padding: 18px 22px;
}

.dcr-login-icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--dcr-primary-soft);
    color: var(--dcr-primary);
}

.dcr-login-text {
    flex: 1 1 260px;
    min-width: 0;
}

.dcr-login-text strong {
    display: block;
    font-size: 0.98rem;
}

.dcr-login-text small {
    display: block;
    color: var(--dcr-muted);
    font-size: 0.85rem;
}

.dcr-login-form {
    flex: 1 1 100%;
    display: none;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.dcr-login-form.is-open {
    display: flex;
}

.dcr-login-form .dcr-input {
    flex: 1 1 240px;
}

.dcr-login-hint {
    flex: 1 1 100%;
    font-size: 0.85rem;
    color: var(--dcr-muted);
}

.dcr-login.is-logged-in .dcr-login-icon {
    background: color-mix(in srgb, var(--dcr-success) 12%, #ffffff);
    color: var(--dcr-success);
}

/* Customer portal below the login: "my bookings" and the booking lookup */
#search_login_slot + .dcr-portal {
    margin-top: 16px;
}

.dcr-portal-bookings {
    flex: 1 1 100%;
    display: none;
}

.dcr-portal-bookings.is-open {
    display: block;
}

.dcr-portal-booking {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    padding: 12px 0;
    border-top: 1px solid var(--dcr-border);
}

.dcr-portal-booking-text {
    flex: 1 1 220px;
    min-width: 0;
}

.dcr-portal-booking-text strong {
    display: block;
}

.dcr-portal-booking-text small {
    display: block;
    color: var(--dcr-muted);
    font-size: 0.85rem;
}

.dcr-portal-status {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    background: var(--dcr-primary-soft);
    color: var(--dcr-primary);
}

.dcr-portal-status.is-current {
    background: color-mix(in srgb, var(--dcr-success) 12%, #ffffff);
    color: var(--dcr-success);
}

.dcr-portal-booking .dcr-btn {
    min-height: 40px;
    padding: 8px 16px;
}

.dcr-portal-empty {
    color: var(--dcr-muted);
    font-size: 0.9rem;
}

/* Step 2: vehicles */
.dcr-trip-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 26px;
    padding: 16px 22px;
    margin-bottom: 16px;
}

.dcr-trip-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.dcr-trip-item .dcr-icon {
    color: var(--dcr-primary);
}

.dcr-trip-item small {
    display: block;
    color: var(--dcr-muted);
    font-size: 0.75rem;
    font-weight: 600;
}

.dcr-trip-item strong {
    display: block;
    font-size: 0.92rem;
}

.dcr-trip-bar .dcr-btn {
    margin-left: auto;
    min-height: 40px;
    padding: 8px 16px;
}

.dcr-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.dcr-filter > * {
    flex: 1 1 150px;
    min-width: 0;
}

.dcr-filter .dcr-filter-search {
    flex: 2 1 220px;
}

.dcr-filter .dcr-input,
.dcr-filter .dcr-select {
    min-height: 42px;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    font-size: 0.9rem !important;
}

.dcr-filter .dcr-btn {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 8px 14px;
}

.dcr-result-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 2px 12px;
    color: var(--dcr-muted);
    font-size: 0.88rem;
    font-weight: 600;
}

.dcr-vehicles {
    display: grid;
    gap: 16px;
}

.dcr-vehicles.dcr-layout-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dcr-car {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr) 230px;
    background: var(--dcr-surface);
    border: 1px solid var(--dcr-border);
    border-radius: var(--dcr-radius-lg);
    box-shadow: var(--dcr-shadow);
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.dcr-car:hover {
    border-color: var(--dcr-primary-border);
    box-shadow: 0 12px 32px rgba(16, 24, 40, 0.1);
}

.dcr-car-media {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: linear-gradient(180deg, var(--dcr-surface-2), var(--dcr-surface));
    min-height: 170px;
}

.dcr-car-media img {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
}

/* Icon of a car model without an own picture */
.dcr-car-media img.dcr-car-icon,
.dcr-rental-media img.dcr-car-icon {
    max-height: 96px;
    opacity: 0.85;
}

.dcr-summary-car .dcr-rental-media img.dcr-car-icon {
    max-height: 56px;
}

.dcr-car-media .dcr-car-placeholder {
    width: 64px;
    height: 64px;
    color: var(--dcr-border);
}

.dcr-car-body {
    padding: 20px 22px;
    min-width: 0;
}

.dcr-car-category {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--dcr-primary);
    margin-bottom: 4px;
}

.dcr-car-name {
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0 0 6px;
    letter-spacing: -0.01em;
}

.dcr-car-desc {
    color: var(--dcr-muted);
    font-size: 0.88rem;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dcr-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dcr-specs li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--dcr-surface-2);
    border: 1px solid var(--dcr-border);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--dcr-text);
}

.dcr-specs .dcr-icon {
    width: 14px;
    height: 14px;
    color: var(--dcr-muted);
}

.dcr-car-price {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 20px;
    border-left: 1px solid var(--dcr-border);
    background: var(--dcr-surface-2);
}

.dcr-car-daily {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.dcr-car-daily small {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dcr-muted);
}

.dcr-car-total {
    font-size: 0.85rem;
    color: var(--dcr-muted);
    margin-bottom: 10px;
}

.dcr-car-badge {
    display: none;
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    background: color-mix(in srgb, var(--dcr-danger) 10%, #ffffff);
    color: var(--dcr-danger);
    margin-bottom: 6px;
}

.dcr-car.is-unavailable {
    opacity: 0.7;
}

.dcr-car.is-unavailable .dcr-car-badge {
    display: inline-block;
}

.dcr-layout-cards .dcr-car {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
}

.dcr-layout-cards .dcr-car-price {
    border-left: 0;
    border-top: 1px solid var(--dcr-border);
}

.dcr-layout-cards .dcr-car-desc {
    -webkit-line-clamp: 2;
}

.dcr-empty {
    display: none;
    text-align: center;
    padding: 40px 20px;
    color: var(--dcr-muted);
}

.dcr-empty.is-visible {
    display: block;
}

.dcr-vehicles.is-loading .dcr-car {
    pointer-events: none;
    opacity: 0.5;
}

/* Step 3 + 4 layout */
.dcr-split {
    display: grid;
    gap: 20px;
    grid-template-columns: 330px minmax(0, 1fr);
    align-items: start;
}

.dcr-split-checkout {
    grid-template-columns: minmax(0, 1fr) 380px;
}

.dcr-sticky {
    position: sticky;
    top: 16px;
}

.dcr-rental-media {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, var(--dcr-surface-2), var(--dcr-surface));
    border-radius: var(--dcr-radius);
    min-height: 140px;
    padding: 14px;
    margin-bottom: 16px;
}

.dcr-rental-media img {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
}

.dcr-summary-car {
    display: flex;
    gap: 14px;
    align-items: center;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--dcr-border);
}

.dcr-summary-car .dcr-rental-media {
    flex: 0 0 120px;
    min-height: 80px;
    margin: 0;
    padding: 8px;
}

.dcr-summary-car .dcr-rental-media img {
    max-height: 70px;
}

.dcr-summary-car .dcr-specs li {
    padding: 3px 8px;
    font-size: 0.72rem;
}

.dcr-summary-name {
    font-weight: 800;
    font-size: 1.05rem;
    margin: 0 0 6px;
}

.dcr-info-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid var(--dcr-border);
}

.dcr-info-row:last-child {
    border-bottom: 0;
}

.dcr-info-row > .dcr-icon {
    margin-top: 2px;
    color: var(--dcr-primary);
}

.dcr-info-row small {
    display: block;
    color: var(--dcr-muted);
    font-size: 0.76rem;
    font-weight: 600;
}

.dcr-info-row strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
}

.dcr-info-row .dcr-info-side {
    margin-left: auto;
    color: var(--dcr-muted);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Extras */
.dcr-extra {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: 14px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--dcr-border);
}

.dcr-extra:last-child {
    border-bottom: 0;
}

/* Text of an extra with its own picture or icon in front */
.dcr-extra-body {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.dcr-extra-picture {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    border: 1px solid var(--dcr-border);
    border-radius: var(--dcr-radius);
    background: var(--dcr-surface);
    object-fit: contain;
}

.dcr-extra.is-selected .dcr-extra-picture {
    border-color: var(--dcr-primary);
}

.dcr-extra-name {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
}

.dcr-extra-desc {
    display: block;
    color: var(--dcr-muted);
    font-size: 0.84rem;
}

.dcr-extra-price {
    font-weight: 700;
    white-space: nowrap;
    font-size: 0.92rem;
}

.dcr-extra.is-selected .dcr-extra-name {
    color: var(--dcr-primary);
}

.dcr-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--dcr-border);
    border-radius: var(--dcr-radius);
    overflow: hidden;
    background: var(--dcr-surface);
}

.dcr-qty button {
    width: 38px;
    height: 38px;
    border: 0;
    background: transparent;
    color: var(--dcr-text);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
}

.dcr-qty button:hover {
    background: var(--dcr-primary-soft);
    color: var(--dcr-primary);
}

.dcr-qty input {
    width: 40px;
    height: 38px;
    border: 0;
    border-left: 1px solid var(--dcr-border);
    border-right: 1px solid var(--dcr-border);
    text-align: center;
    font-weight: 700;
    color: var(--dcr-text);
    background: transparent;
}

/* Totals */
.dcr-lines {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dcr-lines li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--dcr-muted);
}

.dcr-lines li span:last-child {
    color: var(--dcr-text);
    font-weight: 600;
    white-space: nowrap;
}

.dcr-lines li.dcr-line-discount,
.dcr-lines li.dcr-line-discount span:last-child {
    color: #1a8754;
}

/* Promo code of the checkout */
.dcr-coupon {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--dcr-border);
}

.dcr-coupon-row {
    display: flex;
    gap: 8px;
}

.dcr-coupon-row .dcr-input {
    flex: 1 1 auto;
    min-width: 0;
}

.dcr-coupon-row .dcr-btn {
    flex: 0 0 auto;
}

.dcr-coupon-feedback {
    margin-top: 6px;
    font-size: 0.84rem;
    font-weight: 600;
    color: #c0392b;
}

.dcr-coupon-feedback:empty {
    display: none;
}

.dcr-coupon-feedback.is-valid {
    color: #1a8754;
}

.dcr-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding-top: 14px;
    margin-top: 14px;
    border-top: 1px solid var(--dcr-border);
}

.dcr-total span:first-child {
    font-weight: 700;
    font-size: 1.05rem;
}

.dcr-total span:last-child {
    font-weight: 800;
    font-size: 1.75rem;
    letter-spacing: -0.02em;
}

.dcr-totals-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: end;
}

.dcr-secure {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--dcr-muted);
}

.dcr-secure .dcr-icon {
    width: 14px;
    height: 14px;
}

.dcr-terms {
    margin: 12px 0 0;
    font-size: 0.8rem;
    color: var(--dcr-muted);
    text-align: center;
}

.dcr-terms a {
    color: var(--dcr-primary);
    font-weight: 600;
}

/* Payment */
.dcr-pay-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--dcr-border);
    border-radius: var(--dcr-radius);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
    margin: 0;
}

.dcr-pay-option + .dcr-pay-option,
.dcr-pay-option + .dcr-pay-extra,
.dcr-pay-extra + .dcr-pay-option {
    margin-top: 10px;
}

.dcr-pay-option input {
    width: 18px;
    height: 18px;
    accent-color: var(--dcr-primary);
    margin: 0;
    flex: 0 0 auto;
}

.dcr-pay-option:has(input:checked) {
    border-color: var(--dcr-primary);
    background: var(--dcr-primary-soft);
}

.dcr-pay-option:has(input:disabled) {
    opacity: 0.5;
    cursor: not-allowed;
}

.dcr-pay-option strong {
    display: block;
    font-size: 0.95rem;
}

.dcr-pay-option small {
    display: block;
    color: var(--dcr-muted);
    font-size: 0.82rem;
}

.dcr-pay-brands {
    margin-left: auto;
    display: flex;
    gap: 6px;
}

.dcr-pay-brands span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 26px;
    padding: 0 6px;
    border-radius: 5px;
    border: 1px solid var(--dcr-border);
    background: #ffffff;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.dcr-pay-brands .dcr-brand-visa {
    color: #1a1f71;
    font-style: italic;
}

.dcr-pay-brands .dcr-brand-mc {
    color: #eb001b;
}

.dcr-pay-brands .dcr-brand-amex {
    color: #ffffff;
    background: #2e77bc;
    border-color: #2e77bc;
}

.dcr-pay-option img {
    margin-left: auto;
    max-height: 26px;
    max-width: 60px;
    object-fit: contain;
}

.dcr-pay-extra {
    padding: 14px 16px;
    border: 1px solid var(--dcr-border);
    border-radius: var(--dcr-radius);
    background: var(--dcr-surface-2);
}

#paymentElement {
    border: 1px solid var(--dcr-border);
    border-radius: var(--dcr-radius);
    background: #ffffff;
    padding: 14px;
}

#paymentElement.StripeElement--focus {
    border-color: var(--dcr-primary);
    box-shadow: 0 0 0 3px var(--dcr-primary-soft);
}

.saved-payment-method-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--dcr-border);
    border-radius: var(--dcr-radius);
    background: var(--dcr-surface);
    margin-bottom: 8px;
    cursor: pointer;
    font-size: 0.88rem;
}

.saved-payment-method-item input {
    accent-color: var(--dcr-primary);
}

.saved-payment-empty {
    color: var(--dcr-muted);
    font-size: 0.85rem;
    margin: 0 0 8px;
}

.dcr-notice {
    display: none;
    padding: 10px 14px;
    border-radius: var(--dcr-radius);
    border: 1px solid color-mix(in srgb, var(--dcr-success) 30%, #ffffff);
    background: color-mix(in srgb, var(--dcr-success) 7%, #ffffff);
    color: var(--dcr-success);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 14px;
}

.dcr-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
}

.dcr-footer img {
    width: 120px;
    opacity: 0.8;
}

.dcr-success-page {
    padding: 8px;
}

/* Select2 inside the modern form */
.dcr-body .select2-container--bootstrap5 .select2-selection__rendered {
    padding: 0 !important;
    color: var(--dcr-text) !important;
    line-height: 1.5 !important;
}

/* the search is typed into the select itself */
.dcr-body .select2-container--bootstrap5 .select2-selection--single .select2-search__field {
    color: var(--dcr-text);
    line-height: 1.5;
}

.dcr-body .select2-container--bootstrap5 .select2-selection--single .select2-search__field::placeholder {
    color: color-mix(in srgb, var(--dcr-text) 40%, #ffffff);
}

.dcr-body .select2-container--bootstrap5 .select2-selection--single .select2-selection__arrow {
    right: 10px;
}

/* Responsive */
@media (max-width: 1080px) {
    .dcr-vehicles.dcr-layout-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dcr-car {
        grid-template-columns: 200px minmax(0, 1fr) 200px;
    }

    .dcr-split,
    .dcr-split-checkout {
        grid-template-columns: minmax(0, 1fr);
    }

    .dcr-sticky {
        position: static;
    }
}

@media (max-width: 860px) {
    .dcr-ride.has-map {
        grid-template-columns: minmax(0, 1fr);
    }

    .dcr-ride-map,
    .dcr-ride-map > div {
        min-height: 240px;
    }

    .dcr-search,
    .dcr-search.is-same-return {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .dcr-search .dcr-period-field,
    .dcr-search .dcr-btn {
        grid-column: 1 / -1;
    }

    .dcr-search.is-same-return .dcr-pickup-field {
        grid-column: 1 / -1;
    }

    .dcr-period-panel.is-open {
        grid-template-columns: minmax(0, 1fr);
    }

    .dcr-period-calendar .flatpickr-calendar.inline {
        margin: 0 auto;
    }
}

@media (max-width: 720px) {
    .dcr-shell {
        padding: 14px 12px 24px;
    }

    .dcr-card,
    .dcr-hero {
        padding: 18px;
    }

    .dcr-title {
        font-size: 1.4rem;
    }

    .dcr-steps-item {
        justify-content: center;
        padding: 8px;
    }

    .dcr-steps-item span:last-child {
        display: none;
    }

    .dcr-steps-item.is-current {
        flex: 3 1 0;
    }

    .dcr-steps-item.is-current span:last-child {
        display: inline-block;
    }

    .dcr-search,
    .dcr-search.is-same-return,
    .dcr-grid,
    .dcr-grid-3 {
        grid-template-columns: minmax(0, 1fr);
    }

    .dcr-vehicles.dcr-layout-cards {
        grid-template-columns: minmax(0, 1fr);
    }

    .dcr-car {
        grid-template-columns: minmax(0, 1fr);
    }

    .dcr-car-price {
        border-left: 0;
        border-top: 1px solid var(--dcr-border);
    }

    .dcr-extra {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .dcr-extra .dcr-qty {
        grid-column: 2 / -1;
        justify-self: start;
    }

    .dcr-totals-bar {
        grid-template-columns: minmax(0, 1fr);
    }

    .dcr-trip-bar .dcr-btn {
        margin-left: 0;
        width: 100%;
    }
}
