/* ═══════════════════════════════════════════════════════════════
   CARS RENTAL MANAGEMENT — Single Car Page
   Matches the uploaded reference design
═══════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Reset & scope ─────────────────────────────────────────── */
.crm-sp-wrap *,
.crm-sp-wrap *::before,
.crm-sp-wrap *::after { box-sizing: border-box; }

.crm-sp-wrap {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1a1a2e;
    background: #fff;
    min-height: 100vh;
    padding-bottom: 80px;
}

/* ── Top nav bar ───────────────────────────────────────────── */
.crm-sp-topbar {
    background: #fff;
    border-bottom: 1px solid #eaedf3;
    padding: 14px 0;
}
.crm-sp-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    text-decoration: none;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    width: fit-content;
    transition: color .15s;
}
.crm-sp-back:hover { color: #2563eb; }
.crm-sp-back svg { width: 16px; height: 16px; }

/* ── Main grid ─────────────────────────────────────────────── */
.crm-sp-grid {
    max-width: 1280px;
    margin: 0 auto;
    margin-top: 100px;
    margin-bottom: 25px;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

/* ══════════════════════════════════════════════════════════════
   LEFT COLUMN
══════════════════════════════════════════════════════════════ */

/* Tagline row */
.crm-sp-tagline-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.crm-sp-tagline {
    font-size: 13px;
    font-style: italic;
    color: #6b7280;
    font-weight: 400;
}
.crm-sp-top-rated {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fef9c3;
    color: #92400e;
    border: 1px solid #fde68a;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
}

/* Title */
.crm-sp-title {
    font-size: clamp(24px, 3.5vw, 38px);
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px;
    line-height: 1.15;
    letter-spacing: -.02em;
}

/* Meta row */
.crm-sp-rating { font-weight: 700; color: #0f172a; }
.crm-sp-rating svg { width: 15px; height: 15px; }

/* Trust badges */
.crm-sp-trust-row {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    margin-bottom: 22px;
    padding: 0;
    border-radius: 14px;
    border: 1.5px solid #c7d2fe;
    overflow: hidden;
    background: #eef2ff;
}
.crm-sp-trust-row.crm-sp-trust-column {
    flex-direction: column;
}
.crm-sp-trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    flex: 1;
    padding: 14px 18px;
    border-right: 1px solid rgba(99,102,241,0.15);
    transition: background .15s;
}
.crm-sp-trust-item:last-child { border-right: none; }
.crm-sp-trust-column .crm-sp-trust-item { border-right: none; border-bottom: 1px solid rgba(99,102,241,0.15); }
.crm-sp-trust-column .crm-sp-trust-item:last-child { border-bottom: none; }
.crm-sp-trust-icon-wrap { font-size: 20px; flex-shrink: 0; color: #1d4ed8; }
.crm-sp-trust-item div { display: flex; flex-direction: column; gap: 2px; }
.crm-sp-trust-item span { font-weight: 700; color: #1e3a5f; font-size: 12px; }
.crm-sp-trust-item small { color: #4b70c4; font-size: 11px; }

/* Main photo */
.crm-sp-main-photo {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 12px;
    background: #fff;
    aspect-ratio: 16/9;
}
.crm-sp-main-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform .5s ease;
}
.crm-sp-main-photo:hover img { transform: scale(1.02); }
.crm-sp-photo-brand {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(8px);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
}

/* Thumbnail strip */
.crm-sp-thumbs {
    display: flex;
    gap: 10px;
    margin-bottom: 28px;
    align-items: center;
    overflow: hidden;
    position: relative;
}
.crm-sp-thumb {
    flex-shrink: 0;
    width: 100px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2.5px solid transparent;
    transition: border-color .18s, transform .18s;
}
.crm-sp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.crm-sp-thumb:hover { transform: scale(1.04); }
.crm-sp-thumb-active { border-color: #2563eb; }
.crm-sp-thumbs-next {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
    color: #374151;
    transition: background .15s;
}
.crm-sp-thumbs-next:hover { background: #f3f4f6; }

/* Section wrapper */
.crm-sp-section {
    background: #fff;
    border-radius: 16px;
    padding: 22px 24px;
    margin-bottom: 20px;
    border: 1px solid #eaedf3;
}
.crm-sp-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 16px;
    letter-spacing: -.01em;
}
.crm-sp-section-title svg { width: 18px; height: 18px; color: #2563eb; flex-shrink: 0; }

/* About text — now holds real rendered HTML (paragraphs, lists, links),
   not a single plain-text line, so child elements need their own rhythm */
.crm-sp-about-text {
    font-size: 14px;
    color: #374151;
    line-height: 1.75;
    margin: 0 0 16px;
}
.crm-sp-about-text p,
.crm-sp-about-text div { margin: 0 0 14px; }
.crm-sp-about-text > :last-child { margin-bottom: 0; }
.crm-sp-about-text ul,
.crm-sp-about-text ol { margin: 0 0 14px; padding-left: 22px; }
.crm-sp-about-text li { margin-bottom: 4px; }
.crm-sp-about-text a { color: #2563eb; text-decoration: underline; }
.crm-sp-about-text strong { font-weight: 700; color: #1f2937; }

/* Quick specs strip */
.crm-sp-specs-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    padding: 14px 0 20px;
    border-top: 1px solid #eaedf3;
}
.crm-sp-strip-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}
.crm-sp-strip-icon { font-size: 15px; }

/* Key features grid */
.crm-sp-features-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.crm-sp-feat-col {
    border-radius: 14px;
    padding: 16px;
    border: 1.5px solid;
}
.crm-sp-feat-included {
    background: #eff6ff;
    border-color: #bfdbfe;
}
.crm-sp-feat-excluded {
    background: #fff5f5;
    border-color: #fecaca;
}
.crm-sp-feat-col-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0,0,0,.07);
}
.crm-sp-feat-included .crm-sp-feat-col-header { color: #1d4ed8; }
.crm-sp-feat-excluded .crm-sp-feat-col-header { color: #dc2626; }
.crm-sp-feat-col-header i { font-size: 14px; }
.crm-sp-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #1e3a5f;
    padding: 5px 0;
    border-bottom: 1px solid rgba(0,0,0,.05);
}
.crm-sp-feature-item:last-child { border-bottom: none; padding-bottom: 0; }
.crm-sp-feat-check { color: #1d4ed8 !important; font-size: 11px; flex-shrink: 0; }
.crm-sp-feat-xmark { color: #ef4444 !important; font-size: 11px; flex-shrink: 0; }
.crm-sp-feature-excluded { color: #9ca3af; }
.crm-sp-feature-excluded span { text-decoration: line-through; }

/* Bottom banner */
.crm-sp-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.crm-sp-banner::before {
    content: '';
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,.04);
    border-radius: 50%;
}
.crm-sp-banner-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}
.crm-sp-banner-title svg { width: 18px; height: 18px; opacity: .8; }
.crm-sp-banner-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.crm-sp-banner-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.crm-sp-banner-item svg { width: 22px; height: 22px; opacity: .7; margin-bottom: 4px; }
.crm-sp-banner-item strong { font-size: 13px; font-weight: 700; color: #fff; }
.crm-sp-banner-item span { font-size: 12px; color: rgba(255,255,255,.65); line-height: 1.4; }

/* ══════════════════════════════════════════════════════════════
   RIGHT SIDEBAR — BOOKING CARD
══════════════════════════════════════════════════════════════ */
.crm-sp-right {
    position: sticky;
    top: 24px;
}

.crm-sp-booking-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid #eaedf3;
    box-shadow: 0 4px 24px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);
    overflow: clip; /* 'clip' trims rounded corners without blocking native <select> popups */
}
/* Clip rounded corners on the price header itself so the background fills correctly */
.crm-sp-bc-price-row:first-child {
    border-radius: 20px 20px 0 0;
    overflow: hidden;
}

/* Price header */
.crm-sp-bc-price-row {
    padding: 22px 24px 18px;
    border-bottom: 1px solid #f3f4f6;
}
.crm-sp-bc-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 4px;
}
.crm-sp-bc-amount {
    font-size: 34px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -.03em;
}
.crm-sp-bc-per {
    font-size: 16px;
    color: #fff;
    font-weight: 600;
}
.crm-sp-bc-price-note {
    font-size: 12px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Field groups (pickup / dropoff) */
.crm-sp-bc-field-group {
    border-bottom: 1px solid #f3f4f6;
}
.crm-sp-bc-field {
    padding: 14px 24px;
}
.crm-sp-bc-field-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #374151;
    margin-bottom: 6px;
}
.crm-sp-bc-field-label i { font-size: 12px; color: #2563eb; }
.crm-min-days-hint {
    display: block;
    margin-top: 6px;
    font-size: 11.5px;
    font-weight: 600;
    color: #b45309;
}
.crm-sp-bc-location-val {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 8px;
}
.crm-sp-bc-date-row {
    display: flex;
    gap: 8px;
    align-items: center;
}
.crm-sp-date-input {
    flex: 1;
}
.crm-sp-date-input input {
    padding: 9px 12px 9px 34px !important;
    border: 1.5px solid #e5e7eb !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #0f172a !important;
    background: #f9fafb !important;
    width: 100% !important;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.crm-sp-date-input input:focus {
    outline: none !important;
    border-color: #2563eb !important;
    background: #fff !important;
}
.crm-sp-date-input svg {
    width: 14px;
    height: 14px;
    color: #6b7280;
}
.crm-sp-time-input {
    width: 90px;
    flex-shrink: 0;
    padding: 9px 10px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    background: #f9fafb;
    text-align: center;
    cursor: default;
}
.crm-sp-time-wrap {
    flex: 0 0 90px;
    display: flex;
    align-items: center;
}
.crm-sp-time-wrap i {
    position: absolute;
    margin-left: 10px;
    font-size: 12px;
    color: #6b7280;
    pointer-events: none;
}
.crm-sp-time-wrap .crm-sp-time-input {
    width: 100%;
    padding-left: 28px !important;
    cursor: pointer;
}

/* Per Day / Per Hour toggle */
.crm-sp-rental-toggle {
    display: flex;
    gap: 4px;
    margin: 0 24px 16px;
    padding: 4px;
    background: #f1f5f9;
    border-radius: 12px;
}
.crm-sp-rental-toggle-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 9px 12px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    transition: background .15s, color .15s, box-shadow .15s;
}
.crm-sp-rental-toggle-btn:hover { color: #1d4ed8; }
.crm-sp-rental-toggle-btn.active {
    background: #ffffff;
    color: #1d4ed8;
    box-shadow: 0 1px 3px rgba(15,23,42,.12);
}

/* Hours input (Per Hour mode) */
.crm-sp-hours-input {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #0f172a;
    background: #f9fafb;
}
.crm-sp-hours-input:focus {
    outline: none;
    border-color: #2563eb;
    background: #fff;
}

/* Fixed-package picker (Per Hour mode) — shown as buttons so every
   available package is visible at a glance, no dropdown to open. */
.crm-sp-package-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.crm-sp-package-loading {
    margin: 0;
    font-size: 12px;
    color: #9ca3af;
    font-style: italic;
}
.crm-sp-package-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 108px;
    padding: 9px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
    cursor: pointer;
    text-align: left;
    transition: border-color .15s, background .15s, box-shadow .15s, transform .1s;
}
.crm-sp-package-btn:hover {
    border-color: #93c5fd;
    background: #fff;
}
.crm-sp-package-btn:active { transform: scale(.98); }
.crm-sp-package-btn--active {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.crm-sp-package-btn__label {
    font-size: 11px;
    font-weight: 700;
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: .02em;
}
.crm-sp-package-btn__dur {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
}
.crm-sp-package-btn__price {
    font-size: 13px;
    font-weight: 700;
    color: #16a34a;
}
.crm-sp-package-btn--active .crm-sp-package-btn__dur { color: #1e3a8a; }

.crm-sp-package-empty {
    margin: 10px 0 0;
    padding: 8px 10px;
    background: #fef2f2;
    color: #b91c1c;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.5;
}

/* Duration pill */
.crm-sp-bc-duration {
    margin: 0 24px 0;
    padding: 10px 14px;
    background: #eff6ff;
    border-radius: 8px;
    font-size: 13px;
    color: #1d4ed8;
    margin-top: 14px;
}
.crm-sp-bc-duration strong { font-weight: 700; }

/* CTA button */
.crm-sp-bc-cta {
    display: block;
    width: calc(100% - 48px);
    margin: 16px 24px 0;
    padding: 15px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: background .18s, transform .18s, box-shadow .18s;
    letter-spacing: .01em;
}
.crm-sp-bc-cta:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37,99,235,.35);
}
.crm-sp-bc-cta:active { transform: none; }
.crm-sp-bc-confirm {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}
.crm-sp-bc-confirm svg { width: 17px; height: 17px; }

/* Wishlist button */
.crm-sp-bc-wishlist {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: calc(100% - 48px);
    margin: 10px 24px 0;
    padding: 13px;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: border-color .15s, color .15s, background .15s;
}
.crm-sp-bc-wishlist svg { width: 16px; height: 16px; }
.crm-sp-bc-wishlist:hover { border-color: #ef4444; color: #ef4444; background: #fef2f2; }

/* Trust icons inside card */
.crm-sp-bc-trust {
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid #f3f4f6;
    margin-top: 14px;
}
.crm-sp-bc-trust-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
}
.crm-sp-bc-trust-item i, .crm-sp-bc-trust-item [class*="fa-"] { font-size: 17px; flex-shrink: 0; margin-top: 1px; }
.crm-sp-bc-trust-item div { display: flex; flex-direction: column; gap: 1px; }
.crm-sp-bc-trust-item strong { font-size: 13px; font-weight: 600; color: #0f172a; }
.crm-sp-bc-trust-item span { color: #6b7280; font-size: 12px; }

/* Price breakdown */
.crm-sp-bc-breakdown {
    margin: 0 24px 16px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #eaedf3;
}
.crm-sp-bc-bd-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #374151;
    padding: 5px 0;
}
.crm-sp-bd-included {
    font-size: 12px;
    background: #dcfce7;
    color: #166534;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 600;
}
.crm-sp-bc-bd-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    padding-top: 12px;
    margin-top: 8px;
    border-top: 1.5px solid #e5e7eb;
}

/* Step 2 form (customer details) */
.crm-sp-bc-step2 {
    padding: 0 24px 20px;
}
.crm-sp-bc-step2-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #2563eb;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eff6ff;
}
.crm-sp-bc-step2 .crm-form-group { margin-bottom: 10px; }
.crm-sp-bc-step2 .crm-form-group label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #374151;
    margin-bottom: 5px;
}
.crm-sp-bc-step2 .crm-form-group input,
.crm-sp-bc-step2 .crm-form-group textarea,
.crm-sp-bc-step2 .crm-form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #0f172a;
    background: #f9fafb;
    transition: border-color .15s, background .15s;
    box-sizing: border-box;
}
.crm-sp-bc-step2 .crm-form-group select {
    appearance: auto; /* keep the native dropdown arrow */
    cursor: pointer;
}
.crm-sp-bc-step2 .crm-form-group input:focus,
.crm-sp-bc-step2 .crm-form-group textarea:focus,
.crm-sp-bc-step2 .crm-form-group select:focus {
    outline: none;
    border-color: #2563eb;
    background: #fff;
}
.crm-sp-bc-step2 .crm-form-group textarea { resize: vertical; min-height: 60px; }

/* Unavailable state */
.crm-sp-bc-unavailable {
    padding: 32px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.crm-sp-bc-unavailable svg { width: 48px; height: 48px; color: #9ca3af; }
.crm-sp-bc-unavailable p { font-size: 14px; color: #6b7280; margin: 0; line-height: 1.6; }

/* ══════════════════════════════════════════════════════════════
   RELATED CARS
══════════════════════════════════════════════════════════════ */
.crm-sp-related {
    max-width: 1280px;
    margin: 48px auto 0;
    padding: 0 32px;
}
.crm-sp-related-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 22px;
    letter-spacing: -.02em;
}
.crm-sp-related-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* ══════════════════════════════════════════════════════════════
   SUCCESS MODAL
══════════════════════════════════════════════════════════════ */
.crm-booking-success {
    text-align: center;
    padding: 40px 32px;
}
.crm-success-icon {
    width: 68px;
    height: 68px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    color: #fff;
    animation: crm-pop .4s cubic-bezier(.34,1.8,.64,1);
}
@keyframes crm-pop { from { transform: scale(0); } to { transform: scale(1); } }
.crm-booking-success h3 { font-size: 22px; font-weight: 800; color: #0f172a; margin: 0 0 8px; }
.crm-booking-success p  { font-size: 14px; color: #6b7280; margin: 0 0 6px; }
.crm-success-total { font-size: 28px !important; font-weight: 800 !important; color: #2563eb !important; }
.crm-success-ref   { font-size: 12px !important; color: #9ca3af !important; }
.crm-success-close-btn {
    margin-top: 20px;
    padding: 12px 36px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
}
.crm-success-close-btn:hover { background: #1d4ed8; }

/* Error message */
.crm-form-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #b91c1c;
    padding: 10px 14px;
    border-radius: 8px;
    margin: 12px 24px 0;
    font-size: 13px;
    font-weight: 500;
}

/* Required star */
.crm-required { color: #ef4444; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
    .crm-sp-grid { grid-template-columns: 1fr 340px; gap: 28px; padding: 24px 24px 0; }
    .crm-sp-banner-items { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
    .crm-sp-grid { grid-template-columns: 1fr; gap: 24px; padding: 20px 20px 0; }
    .crm-sp-right { position: static; }
    .crm-sp-booking-card { max-width: 540px; }
    .crm-sp-related { padding: 0 20px; }
    .crm-sp-related-grid { grid-template-columns: repeat(2,1fr) !important; }
}
@media (max-width: 640px) {
    .crm-sp-grid { padding: 16px 16px 0; }
    .crm-sp-trust-row { }
    .crm-sp-features-wrap { grid-template-columns: 1fr; }
    .crm-sp-banner-items { grid-template-columns: 1fr; }
    .crm-sp-related-grid { grid-template-columns: 1fr !important; }
    .crm-sp-related { padding: 0 16px; }
    .crm-sp-back { padding: 0 16px; }
    .crm-sp-thumb { width: 80px; height: 58px; }
    .crm-sp-bc-date-row { flex-direction: column; }
    .crm-sp-time-input { width: 100%; }
}

/* ═══════════════════════════════════════════════════════════════
   PRICING PLAN PANEL (backend rules displayed in sidebar)
═══════════════════════════════════════════════════════════════ */
.crm-sp-bc-pricing-plan {
    margin: 16px 24px;
    border: 1.5px solid #eaedf3;
    border-radius: 12px;
    overflow: hidden;
}
.crm-sp-bc-pricing-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #374151;
    background: #f9fafb;
    padding: 10px 14px;
    border-bottom: 1px solid #eaedf3;
}
.crm-sp-bc-pricing-title i   { font-size: 13px; color: #2563eb; }
.crm-sp-bc-pricing-title svg { width: 1em; height: 1em; flex-shrink: 0; color: #2563eb; }

.crm-sp-bc-plan-block {
    padding: 10px 14px;
    border-bottom: 1px solid #f3f4f6;
}
.crm-sp-bc-plan-block:last-child { border-bottom: none; }

.crm-sp-bc-plan-name {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}
.crm-sp-bc-plan-season {
    font-size: 10px;
    font-weight: 600;
    background: #eff6ff;
    color: #1d4ed8;
    padding: 2px 8px;
    border-radius: 20px;
    border: 1px solid #bfdbfe;
}
.crm-sp-bc-tier-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #374151;
    padding: 4px 0;
    border-top: 1px dashed #f3f4f6;
}
.crm-sp-bc-tier-row:first-of-type { border-top: none; }
.crm-sp-bc-tier-days {
    color: #6b7280;
    font-size: 11px;
}
.crm-sp-bc-tier-price {
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: baseline;
    gap: 3px;
}
.crm-sp-bc-tier-price small {
    font-size: 10px;
    font-weight: 400;
    color: #9ca3af;
}

/* ═══════════════════════════════════════════════════════════════
   REMOVE TAX ROW (clean up old insurance row too if present)
═══════════════════════════════════════════════════════════════ */
.crm-sp-bc-bd-row:has(#crm-sp-bd-tax) { display: none !important; }

/* ── Full 8-spec grid on single page ───────────────────── */
.crm-sp-specs-full-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
@media (max-width: 900px) {
    .crm-sp-specs-full-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .crm-sp-specs-full-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Quick specs strip update ──────────────────────────── */
.crm-sp-specs-strip {
    border-top: 1px solid #eaedf3;
    padding-top: 16px;
    padding-bottom: 16px;
}

/* ═══════════════════════════════════════════════════════════════
   SPECS GRID – 3 columns
═══════════════════════════════════════════════════════════════ */
.crm-sp-specs-3col {
    grid-template-columns: repeat(3, 1fr) !important;
}
@media (max-width: 900px) {
    .crm-sp-specs-3col { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 480px) {
    .crm-sp-specs-3col { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ── Font Awesome icon sizing (single page) ─────────────── */
.crm-sp-section-title i { font-size: 16px; color: var(--crm-primary, #2563eb); flex-shrink: 0; }
.crm-sp-trust-item i    { font-size: 18px; flex-shrink: 0; }
.crm-sp-bc-trust-item i { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.crm-sp-back i          { font-size: 14px; }
.crm-sp-bc-cta i,
.crm-sp-bc-confirm i    { font-size: 15px; }
.crm-sp-bc-field-label i{ font-size: 12px; color: #2563eb; }
.crm-sbc-location i     { font-size: 13px; color: var(--crm-primary, #2563eb); flex-shrink: 0; }
.crm-sp-features-wrap .crm-sp-feature-item i { font-size: 14px; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════
   jQuery UI Selectmenu compatibility
   Some themes/plugins auto-apply $.selectmenu() to ALL <select>
   elements. These rules ensure the widget renders correctly inside
   the booking form even without the jQuery UI stylesheet loaded.
═══════════════════════════════════════════════════════════════ */

/* ── The replacement button ──────────────────────────────── */
.crm-sp-bc-step2 .ui-selectmenu-button.ui-button,
.crm-sp-bc-step2 .ui-selectmenu-button {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 10px 32px 10px 12px !important;
    border: 1.5px solid #e5e7eb !important;
    border-radius: 10px !important;
    background: #f9fafb !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 13px !important;
    color: #0f172a !important;
    text-align: left !important;
    cursor: pointer !important;
    transition: border-color .15s, background .15s !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    position: relative !important;
}
.crm-sp-bc-step2 .ui-selectmenu-button.ui-button:focus,
.crm-sp-bc-step2 .ui-selectmenu-button:focus,
.crm-sp-bc-step2 .ui-selectmenu-button.ui-selectmenu-button-open {
    outline: none !important;
    border-color: #2563eb !important;
    background: #fff !important;
}

/* ── Arrow icon inside button ────────────────────────────── */
.crm-sp-bc-step2 .ui-selectmenu-button .ui-selectmenu-icon,
.crm-sp-bc-step2 .ui-selectmenu-button .ui-icon {
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 16px !important;
    height: 16px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
    background-position: center !important;
    text-indent: -9999px !important;
    overflow: hidden !important;
}

/* ── The dropdown menu panel ─────────────────────────────── */
.ui-selectmenu-menu {
    padding: 0 !important;
    margin: 0 !important;
    position: absolute !important;
    z-index: 999999 !important;
    display: none !important;
}
.ui-selectmenu-menu.ui-selectmenu-open {
    display: block !important;
}

/* ── The option list ─────────────────────────────────────── */
.ui-selectmenu-menu .ui-menu {
    list-style: none !important;
    padding: 6px 0 !important;
    margin: 0 !important;
    background: #fff !important;
    border: 1.5px solid #e5e7eb !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.12) !important;
    overflow-y: auto !important;
    max-height: 260px !important;
    min-width: 160px !important;
}

/* ── Individual option items ─────────────────────────────── */
.ui-selectmenu-menu .ui-menu-item {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.ui-selectmenu-menu .ui-menu-item-wrapper,
.ui-selectmenu-menu .ui-menu .ui-state-active,
.ui-selectmenu-menu .ui-menu .ui-state-focus {
    display: block !important;
    padding: 9px 14px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 13px !important;
    color: #0f172a !important;
    cursor: pointer !important;
    border-radius: 0 !important;
    background: transparent !important;
    border: none !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}
.ui-selectmenu-menu .ui-menu-item-wrapper:hover,
.ui-selectmenu-menu .ui-state-active .ui-menu-item-wrapper,
.ui-selectmenu-menu .ui-state-focus .ui-menu-item-wrapper {
    background: #eff6ff !important;
    color: #2563eb !important;
}
.ui-selectmenu-menu .ui-menu-item-wrapper.ui-state-active {
    background: #2563eb !important;
    color: #fff !important;
}
