/* FS Parking Manager - Public Styles - Mobile First */
/* Fonts: intentionally no third-party font CDN. We use the OS system font
   stack — SF Pro on Apple, Segoe UI on Windows, Roboto on Android. Looks
   native on every platform and avoids Safari tracker warnings / extra round-trip. */

/* iOS touch fixes — apply to all interactive elements inside the form.
   - touch-action: manipulation removes the 300ms tap delay and disables
     double-tap zoom on controls (huge UX improvement on iOS Safari).
   - tap-highlight-color: subtle brand-tinted feedback when tapping.
   - user-select: none prevents accidental text selection on long-press. */
.fspm-booking-wrap button,
.fspm-booking-wrap .fspm-btn,
.fspm-booking-wrap input,
.fspm-booking-wrap select,
.fspm-booking-wrap textarea,
.fspm-booking-wrap label,
.fspm-booking-wrap .fspm-step,
.fspm-booking-wrap .fspm-lang-btn,
.fspm-booking-wrap .fspm-cal-day,
.fspm-booking-wrap .fspm-datepicker,
.fspm-booking-wrap .fspm-payment-option,
.fspm-booking-wrap .fspm-invoice-toggle {
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(59,158,229,0.15);
}
.fspm-booking-wrap button,
.fspm-booking-wrap .fspm-btn,
.fspm-booking-wrap .fspm-step,
.fspm-booking-wrap .fspm-cal-day,
.fspm-booking-wrap .fspm-lang-btn,
.fspm-booking-wrap .fspm-payment-option {
    -webkit-user-select: none;
    user-select: none;
}

:root {
    --fspm-brand: #3B9EE5;
    --fspm-brand-dark: #2B8BD0;
    --fspm-brand-light: #dbeafe;
    --fspm-accent: #F26B22;
    --fspm-accent-dark: #D95A15;
    --fspm-brand-gradient: linear-gradient(135deg, var(--fspm-brand) 0%, var(--fspm-accent) 100%);
    --fspm-success: #059669;
    --fspm-success-light: #d1fae5;
    --fspm-warning: #d97706;
    --fspm-warning-light: #fef3c7;
    --fspm-danger: #dc2626;
    --fspm-danger-light: #fee2e2;
    --fspm-text: #0f172a;
    --fspm-text-secondary: #64748b;
    --fspm-text-muted: #94a3b8;
    --fspm-bg: #ffffff;
    --fspm-bg-subtle: #f8fafc;
    --fspm-border: #e2e8f0;
    --fspm-border-light: #f1f5f9;
    --fspm-radius: 16px;
    --fspm-radius-sm: 10px;
    --fspm-shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --fspm-shadow-lg: 0 20px 50px -12px rgba(0,0,0,0.15);
    --fspm-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ======================================================
   BASE - MOBILE FIRST (< 768px default)
   ====================================================== */
.fspm-booking-wrap {
    max-width: 100%;
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--fspm-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.fspm-booking-wrap *, .fspm-booking-wrap *::before, .fspm-booking-wrap *::after {
    box-sizing: border-box;
}

.fspm-card {
    background: var(--fspm-bg);
    border-radius: 12px;
    box-shadow: var(--fspm-shadow-lg);
    overflow: visible;
    border: 1px solid var(--fspm-border-light);
}

/* ======================================================
   HEADER + LANGUAGE DROPDOWN
   ====================================================== */
.fspm-booking-header {
    background: var(--fspm-brand-gradient);
    padding: 20px;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    border-radius: 12px 12px 0 0;
}

.fspm-booking-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.07);
    border-radius: 50%;
    pointer-events: none;
}

.fspm-header-content { flex: 1; position: relative; z-index: 1; }
.fspm-header-content h3 { margin: 0; font-size: 18px; font-weight: 700; color: #fff; letter-spacing: -0.3px; }
.fspm-header-content p { margin: 4px 0 0; color: rgba(255,255,255,0.75); font-size: 12px; }

/* Language Dropdown */
.fspm-lang-dropdown {
    position: relative;
    z-index: 100;
    flex-shrink: 0;
}

.fspm-lang-current {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: background 0.2s;
    white-space: nowrap;
}

.fspm-lang-current:hover { background: rgba(255,255,255,0.3); }
.fspm-lang-current img,
.fspm-lang-current .fspm-flag-wrap svg { border-radius: 2px; display: block; }
.fspm-flag-wrap { display: inline-flex; align-items: center; line-height: 0; }

.fspm-lang-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--fspm-bg);
    border: 1px solid var(--fspm-border);
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    min-width: 160px;
    overflow: hidden;
    z-index: 200;
}

.fspm-lang-menu.open { display: block; }

.fspm-lang-menu .fspm-lang-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    border: none;
    background: none;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--fspm-text);
    cursor: pointer;
    transition: background 0.15s;
    text-align: left;
}

.fspm-lang-menu .fspm-lang-btn:hover { background: var(--fspm-bg-subtle); }
.fspm-lang-menu .fspm-lang-btn.active { background: var(--fspm-brand-light); color: var(--fspm-brand); font-weight: 600; }
.fspm-lang-menu .fspm-lang-btn img,
.fspm-lang-menu .fspm-lang-btn .fspm-flag-wrap svg { border-radius: 2px; flex-shrink: 0; }

/* ======================================================
   PHONE PREFIX SELECTOR (country code dropdown)
   ====================================================== */
.fspm-phone-group {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 0;
    border: 1.5px solid var(--fspm-border);
    border-radius: 10px;
    background: #fff;
    overflow: visible;
    transition: all 0.2s;
}
.fspm-phone-group:focus-within { border-color: var(--fspm-brand); box-shadow: 0 0 0 3px rgba(59,158,229,0.1); }

.fspm-phone-prefix-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    background: var(--fspm-bg-subtle);
    border: none;
    border-right: 1px solid var(--fspm-border);
    border-radius: 10px 0 0 10px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--fspm-text);
    white-space: nowrap;
    flex-shrink: 0;
}
.fspm-phone-prefix-toggle:hover { background: #e2e8f0; }
.fspm-phone-prefix-code { font-variant-numeric: tabular-nums; }

.fspm-phone-prefix-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 200;
    min-width: 220px;
    max-height: 280px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--fspm-border);
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}
.fspm-phone-prefix-menu.open { display: block; }

.fspm-phone-prefix-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    color: var(--fspm-text);
    cursor: pointer;
    text-align: left;
    transition: background 0.15s;
}
.fspm-phone-prefix-option:hover { background: var(--fspm-bg-subtle); }
.fspm-phone-prefix-option.active { background: var(--fspm-brand-light); color: var(--fspm-brand); font-weight: 600; }

.fspm-phone-group input[type="tel"] {
    flex: 1;
    border: none;
    padding: 11px 14px;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    color: var(--fspm-text);
    min-width: 0;
    border-radius: 0 10px 10px 0;
}
.fspm-phone-group input[type="tel"]:focus { outline: none; }

/* ======================================================
   STEPS
   ====================================================== */
.fspm-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 20px 6px;
}

.fspm-step {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.4;
    transition: var(--fspm-transition);
    cursor: pointer;
}
.fspm-step.active { opacity: 1; }
.fspm-step.completed { opacity: 1; }

.fspm-step-number {
    width: 30px; height: 30px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 12px;
    background: var(--fspm-border); color: var(--fspm-text-muted);
    transition: var(--fspm-transition); flex-shrink: 0;
}
.fspm-step.active .fspm-step-number { background: var(--fspm-brand); color: #fff; box-shadow: 0 0 0 3px var(--fspm-brand-light); }
.fspm-step.completed .fspm-step-number { background: var(--fspm-success); color: #fff; }

.fspm-step-label { font-size: 11px; font-weight: 600; color: var(--fspm-text-secondary); max-width: 90px; line-height: 1.2; }
.fspm-step.active .fspm-step-label { color: var(--fspm-text); }

.fspm-step-connector { width: 24px; height: 2px; background: var(--fspm-border); margin: 0 8px; border-radius: 2px; position: relative; }
.fspm-step-connector .fspm-step-progress { height: 100%; background: var(--fspm-success); border-radius: 2px; width: 0; transition: width 0.5s ease; }
.fspm-step-connector.filled .fspm-step-progress { width: 100%; }

/* ======================================================
   FORM BODY
   ====================================================== */
.fspm-form-body { padding: 18px; }

.fspm-step-panel { display: none; animation: fspmSlideIn 0.35s ease forwards; }
.fspm-step-panel.active { display: block; }

@keyframes fspmSlideIn {
    from { opacity: 0; transform: translateX(16px); }
    to { opacity: 1; transform: translateX(0); }
}

.fspm-section-title {
    font-size: 14px; font-weight: 700; color: var(--fspm-text);
    margin: 0 0 16px; padding-bottom: 10px;
    border-bottom: 2px solid var(--fspm-border-light);
    display: flex; align-items: center; gap: 8px;
}
.fspm-section-title svg { width: 18px; height: 18px; color: var(--fspm-brand); flex-shrink: 0; }

/* ======================================================
   FIELDS
   ====================================================== */
.fspm-field { margin-bottom: 14px; }
.fspm-field label { display: block; font-weight: 600; font-size: 12px; color: var(--fspm-text); margin-bottom: 5px; }
.fspm-required { color: var(--fspm-danger); margin-left: 2px; }
.fspm-hint { font-size: 11px; color: var(--fspm-text-muted); font-weight: 400; }

.fspm-input-wrap { position: relative; }
.fspm-input-wrap svg {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    width: 16px; height: 16px; color: var(--fspm-text-muted); pointer-events: none; transition: color 0.2s;
}
.fspm-input-wrap:focus-within svg { color: var(--fspm-brand); }
.fspm-input-wrap input, .fspm-input-wrap select { padding-left: 38px !important; }

.fspm-field input[type="text"], .fspm-field input[type="email"],
.fspm-field input[type="tel"], .fspm-field input[type="number"],
.fspm-field select, .fspm-field textarea {
    width: 100%; padding: 11px 14px;
    border: 1.5px solid var(--fspm-border); border-radius: 8px;
    font-size: 14px; font-family: 'Inter', sans-serif;
    color: var(--fspm-text); background: var(--fspm-bg);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none; -webkit-appearance: none; appearance: none;
}

.fspm-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px;
}

.fspm-field textarea { resize: vertical; min-height: 70px; }
.fspm-field input:focus, .fspm-field select:focus, .fspm-field textarea:focus { border-color: var(--fspm-brand); box-shadow: 0 0 0 3px var(--fspm-brand-light); }
.fspm-field input.fspm-error, .fspm-field select.fspm-error { border-color: var(--fspm-danger); box-shadow: 0 0 0 3px var(--fspm-danger-light); }
.fspm-field input::placeholder, .fspm-field textarea::placeholder { color: var(--fspm-text-muted); }

.fspm-field-row { display: grid; grid-template-columns: 1fr; gap: 0; }

/* ======================================================
   LOCATION IMAGE
   ====================================================== */
.fspm-location-image { margin-bottom: 14px; border-radius: 8px; overflow: hidden; display: none; }
.fspm-location-image img { width: 100%; height: auto; max-height: 200px; object-fit: cover; display: block; }

/* ======================================================
   DATETIME CARDS
   ====================================================== */
.fspm-datetime-section { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 14px; }

.fspm-datetime-card {
    border: 1.5px solid var(--fspm-border); border-radius: 10px;
    overflow: visible; transition: var(--fspm-transition); background: var(--fspm-bg);
}
.fspm-datetime-card-header { border-radius: 9px 9px 0 0; }
.fspm-datetime-card:hover, .fspm-datetime-card:focus-within { border-color: var(--fspm-brand); box-shadow: 0 0 0 3px var(--fspm-brand-light); }
.fspm-datetime-card.fspm-error { border-color: var(--fspm-danger); box-shadow: 0 0 0 3px var(--fspm-danger-light); }

.fspm-datetime-card-header {
    display: flex; align-items: center; gap: 7px;
    padding: 8px 12px; font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em;
}
.fspm-datetime-card-header svg { width: 14px; height: 14px; flex-shrink: 0; }
.fspm-entry-header { background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); color: var(--fspm-brand); }
.fspm-exit-header { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); color: #92400e; }

.fspm-datetime-card-body { padding: 10px 12px 12px; }
.fspm-date-row { display: flex; gap: 8px; align-items: flex-end; }
.fspm-date-field { flex: 1; }
.fspm-time-field { flex: 0 0 auto; }
.fspm-date-field label, .fspm-time-field label {
    display: block; font-size: 10px; font-weight: 600; color: var(--fspm-text-muted);
    margin-bottom: 3px; text-transform: uppercase; letter-spacing: 0.04em;
}

.fspm-datepicker {
    width: 100%; padding: 8px 10px; height: 40px;
    border: 1.5px solid var(--fspm-border); border-radius: 8px;
    font-size: 13px; font-family: 'Inter', sans-serif; font-weight: 700;
    color: var(--fspm-text); background: var(--fspm-bg-subtle);
    cursor: pointer; transition: border-color 0.2s; outline: none;
}
.fspm-datepicker:focus { border-color: var(--fspm-brand); }
.fspm-datepicker::placeholder { font-weight: 400; font-size: 12px; color: var(--fspm-text-muted); }

.fspm-time-select-wrap {
    display: flex; align-items: center; gap: 2px;
    background: var(--fspm-bg-subtle); border: 1.5px solid var(--fspm-border);
    border-radius: 8px; padding: 2px; height: 40px;
}
.fspm-time-select-wrap:hover { border-color: #cbd5e1; }

.fspm-time-select {
    width: 46px; padding: 5px 2px; border: none; border-radius: 6px;
    font-size: 14px; font-family: 'Inter', sans-serif; font-weight: 700;
    color: var(--fspm-text); background: transparent; cursor: pointer;
    text-align: center; outline: none; -webkit-appearance: none; appearance: none;
    transition: background 0.15s;
}
.fspm-time-select:hover { background: var(--fspm-brand-light); }
.fspm-time-select:focus { background: var(--fspm-brand); color: #fff; }

.fspm-time-colon { font-size: 16px; font-weight: 800; color: var(--fspm-text-muted); user-select: none; }

.fspm-datetime-preview {
    margin-top: 8px; padding: 6px 10px; background: var(--fspm-bg-subtle);
    border-radius: 6px; font-size: 11px; color: var(--fspm-text-muted);
    text-align: center; font-weight: 500; transition: var(--fspm-transition);
}
.fspm-datetime-preview.has-value { color: var(--fspm-text); background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%); font-weight: 600; }

.fspm-duration-badge {
    text-align: center; margin-bottom: 14px; padding: 6px 14px;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    font-size: 12px; font-weight: 600; color: var(--fspm-brand);
    background: var(--fspm-brand-light); border-radius: 20px; width: 100%;
}

/* Grace Period Banner */
.fspm-grace-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 14px;
    background: linear-gradient(135deg, #fdf4ff 0%, #fae8ff 100%);
    border: 1.5px solid #e9d5ff;
    border-radius: 10px;
    animation: fspmFade 0.4s ease;
}

.fspm-grace-icon {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
}

.fspm-grace-content {
    flex: 1;
}

.fspm-grace-content strong {
    display: block;
    font-size: 13px;
    color: var(--fspm-accent);
    margin-bottom: 2px;
}

.fspm-grace-content span {
    font-size: 12px;
    color: var(--fspm-accent-dark);
    line-height: 1.4;
}

/* ======================================================
   AVAILABILITY + OCCUPANCY
   ====================================================== */
.fspm-availability-card {
    background: var(--fspm-bg-subtle); border: 1.5px solid var(--fspm-border);
    border-radius: 10px; padding: 12px 14px; margin-bottom: 14px;
    display: none; animation: fspmFade 0.3s ease;
}
.fspm-availability-card.show { display: block; }
.fspm-availability-card.available { border-color: #a7f3d0; background: #ecfdf5; }
.fspm-availability-card.unavailable { border-color: #fca5a5; background: #fef2f2; }

@keyframes fspmFade { from { opacity: 0; } to { opacity: 1; } }

.fspm-avail-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px; }
.fspm-avail-status { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; }
.fspm-avail-status svg { width: 18px; height: 18px; }
.fspm-avail-status.ok { color: var(--fspm-success); }
.fspm-avail-status.no { color: var(--fspm-danger); }
.fspm-avail-spots { font-size: 12px; color: var(--fspm-text-secondary); }

.fspm-front-occ { margin-top: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fspm-front-occ-bar-wrap { flex: 1; height: 6px; background: var(--fspm-bg-subtle); border-radius: 3px; overflow: hidden; min-width: 60px; }
.fspm-front-occ-bar { height: 100%; border-radius: 3px; transition: width 0.5s ease; min-width: 2px; }
.fspm-front-occ-text { font-size: 10px; font-weight: 600; white-space: nowrap; }

/* ======================================================
   PRICE CARD
   ====================================================== */
.fspm-price-card {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1.5px solid #a7f3d0; border-radius: 10px;
    padding: 14px 16px; margin-bottom: 14px; display: none;
    animation: fspmPulse 0.4s ease;
}
.fspm-price-card.show { display: block; }
@keyframes fspmPulse { 0% { opacity: 0; transform: scale(0.97); } 50% { transform: scale(1.01); } 100% { opacity: 1; transform: scale(1); } }

.fspm-price-row { display: flex; justify-content: space-between; align-items: center; }
.fspm-price-label { font-size: 22px; font-weight: 800; color: #047857; letter-spacing: -0.3px; }
.fspm-price-value { font-size: 24px; font-weight: 800; color: #047857; letter-spacing: -0.5px; }

/* Billing info banner (red) */
.fspm-billing-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    margin-bottom: 14px;
    background: #fef2f2;
    border: 1.5px solid #fca5a5;
    border-radius: 8px;
    color: #991b1b;
    font-size: 13px;
    font-weight: 600;
    animation: fspmFade 0.3s ease;
}

.fspm-billing-info svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #dc2626;
}

/* ======================================================
   INVOICE TOGGLE + FIELDS
   ====================================================== */
.fspm-invoice-toggle { display: block; cursor: pointer; margin-bottom: 4px; -webkit-tap-highlight-color: transparent; }
.fspm-invoice-toggle input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.fspm-invoice-toggle-box {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 16px; border: 1.5px solid var(--fspm-border); border-radius: 10px;
    background: var(--fspm-bg-subtle); font-size: 14px; font-weight: 600;
    color: var(--fspm-text-secondary); transition: var(--fspm-transition); user-select: none;
}
.fspm-invoice-toggle-box svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--fspm-text-muted); transition: color 0.2s; }
.fspm-invoice-toggle-box:hover { border-color: var(--fspm-brand); color: var(--fspm-text); }
.fspm-invoice-toggle input:checked + .fspm-invoice-toggle-box { border-color: var(--fspm-brand); background: var(--fspm-brand-light); color: var(--fspm-brand); }
.fspm-invoice-toggle input:checked + .fspm-invoice-toggle-box svg { color: var(--fspm-brand); }

.fspm-invoice-fields {
    margin: 10px 0 6px; padding: 16px; background: var(--fspm-bg-subtle);
    border: 1.5px solid var(--fspm-border); border-radius: 10px;
}
.fspm-invoice-fields .fspm-field { margin-bottom: 12px; }
.fspm-invoice-fields .fspm-field:last-child { margin-bottom: 0; }

/* ======================================================
   PAYMENT
   ====================================================== */
.fspm-payment-grid { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 14px; }
.fspm-payment-option { position: relative; cursor: pointer; }
.fspm-payment-option input { position: absolute; opacity: 0; pointer-events: none; }

.fspm-payment-card {
    display: flex; align-items: center; gap: 12px; padding: 14px;
    border: 2px solid var(--fspm-border); border-radius: 10px;
    transition: var(--fspm-transition); background: var(--fspm-bg); text-align: left;
}
.fspm-payment-card:hover { border-color: #cbd5e1; }
.fspm-payment-option input:checked + .fspm-payment-card { border-color: var(--fspm-brand); background: var(--fspm-brand-light); box-shadow: 0 0 0 3px rgba(59,158,229,0.1); }

.fspm-payment-icon {
    width: 42px; height: 42px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: var(--fspm-bg-subtle); transition: var(--fspm-transition); flex-shrink: 0;
}
.fspm-payment-option input:checked + .fspm-payment-card .fspm-payment-icon { background: var(--fspm-brand); }
.fspm-payment-icon svg { width: 20px; height: 20px; color: var(--fspm-text-secondary); transition: color 0.2s; }
.fspm-payment-option input:checked + .fspm-payment-card .fspm-payment-icon svg { color: #fff; }
.fspm-payment-name { font-weight: 600; font-size: 13px; color: var(--fspm-text); }
.fspm-payment-desc { font-size: 11px; color: var(--fspm-text-muted); }

/* Card-on-site info banner — uses accent palette (orange) instead of
   brand-blue so it visually pops off the rest of the form which is
   dominated by blue elements. Border-left chip = classic "notice"
   pattern, scan-friendly. Icon block matches .fspm-payment-icon size
   (42×42) for visual consistency with the payment method cards above. */
.fspm-info-banner {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-left: 4px solid var(--fspm-accent, #F26B22);
    border-radius: 10px;
    color: #9a3412;
    font-size: 13px; font-weight: 600;
    margin-bottom: 14px;
    line-height: 1.4;
}
.fspm-info-banner-icon {
    width: 42px; height: 42px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(242, 107, 34, 0.12);
    flex-shrink: 0;
}
.fspm-info-banner-icon svg {
    color: var(--fspm-accent, #F26B22);
    width: 22px; height: 22px;
}

/* ======================================================
   CHECKBOX, TERMS, MESSAGES
   ====================================================== */
.fspm-checkbox-wrap { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.fspm-checkbox-wrap input[type="checkbox"] { width: 20px; height: 20px; border-radius: 4px; margin-top: 1px; flex-shrink: 0; accent-color: var(--fspm-brand); cursor: pointer; }
.fspm-checkbox-label { font-size: 13px; color: var(--fspm-text-secondary); line-height: 1.5; }
.fspm-checkbox-label a { color: var(--fspm-brand); text-decoration: none; font-weight: 500; }

.fspm-terms-content { margin: 8px 0 14px; padding: 14px; background: var(--fspm-bg-subtle); border-radius: 8px; font-size: 11px; color: var(--fspm-text-secondary); max-height: 150px; overflow-y: auto; display: none; }

.fspm-message { padding: 12px 14px; border-radius: 8px; margin-bottom: 14px; font-size: 13px; font-weight: 500; display: none; }
.fspm-msg-success { background: var(--fspm-success-light); border: 1px solid #a7f3d0; color: #065f46; }
.fspm-msg-error { background: var(--fspm-danger-light); border: 1px solid #fca5a5; color: #991b1b; }

/* ======================================================
   BUTTONS
   ====================================================== */
.fspm-btn-row { display: flex; flex-direction: column-reverse; gap: 8px; margin-top: 6px; }

.fspm-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 24px; border: none; border-radius: 10px;
    font-size: 15px; font-weight: 600; font-family: 'Inter', sans-serif;
    cursor: pointer; transition: var(--fspm-transition); line-height: 1;
    -webkit-tap-highlight-color: transparent;
}
.fspm-btn svg { width: 18px; height: 18px; }

.fspm-btn-primary { background: var(--fspm-brand-gradient); color: #fff; box-shadow: 0 4px 14px rgba(59,158,229,0.3); width: 100%; }
.fspm-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(59,158,229,0.35); }
.fspm-btn-primary:active { transform: translateY(0); }
.fspm-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }
.fspm-btn-secondary { background: var(--fspm-bg); color: var(--fspm-text-secondary); border: 1.5px solid var(--fspm-border); width: 100%; }
.fspm-btn-secondary:hover { background: var(--fspm-bg-subtle); color: var(--fspm-text); border-color: var(--fspm-brand); }
.fspm-btn-block { width: 100%; }

.fspm-btn .fspm-spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: fspmSpin 0.6s linear infinite; }
@keyframes fspmSpin { to { transform: rotate(360deg); } }

/* ======================================================
   POWERED BY + CONFIRMATION
   ====================================================== */
.fspm-powered { text-align: center; font-size: 10px; color: var(--fspm-text-muted); margin-top: 12px; padding: 10px 0; }
.fspm-powered strong { color: var(--fspm-text-secondary); }

.fspm-confirmation { text-align: center; padding: 36px 20px; }
.fspm-confirmation-icon {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, #059669 0%, #34d399 100%);
    color: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; margin: 0 auto 16px;
    box-shadow: 0 6px 20px rgba(5,150,105,0.3);
    animation: fspmBounce 0.5s ease;
}
@keyframes fspmBounce { 0% { transform: scale(0); } 50% { transform: scale(1.1); } 100% { transform: scale(1); } }
.fspm-confirmation h3 { font-size: 20px; font-weight: 700; color: var(--fspm-text); margin: 0 0 6px; }
.fspm-confirmation p { color: var(--fspm-text-secondary); font-size: 13px; margin: 0 0 16px; }

/* Confirmation card */
.fspm-confirm-card {
    background: var(--fspm-bg-subtle); border-radius: 10px;
    overflow: hidden; margin: 0 0 16px; text-align: left;
}
.fspm-confirm-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 16px; border-bottom: 1px solid var(--fspm-border-light);
    font-size: 13px;
}
.fspm-confirm-row:last-child { border-bottom: none; }
.fspm-confirm-row span { color: var(--fspm-text-muted); font-weight: 500; }
.fspm-confirm-row strong { color: var(--fspm-text); }
.fspm-confirm-price strong { color: #059669; font-size: 16px; }

/* Nav buttons */
.fspm-nav-btn {
    display: inline-block; padding: 9px 20px; border-radius: 8px;
    color: #fff; text-decoration: none; font-weight: 600; font-size: 13px; margin: 0 4px;
}
.fspm-nav-maps { background: #4285f4; }
.fspm-nav-waze { background: #33ccff; }
.fspm-nav-btn:hover { opacity: 0.9; }

/* Contact */
.fspm-confirm-contact {
    background: var(--fspm-bg-subtle); border-radius: 10px;
    padding: 14px 16px; text-align: center; margin: 0 0 8px;
}
.fspm-confirm-phone {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 18px; font-weight: 700; color: var(--fspm-brand);
    text-decoration: none;
}
.fspm-confirm-phone:hover { opacity: 0.8; }

/* ======================================================
   PUBLIC CALENDAR
   ====================================================== */
.fspm-public-calendar-wrap { max-width: 900px; margin: 20px auto; font-family: 'Inter', sans-serif; }
#fspm-public-calendar { background: var(--fspm-bg); padding: 14px; border: 1px solid var(--fspm-border-light); border-radius: 12px; box-shadow: var(--fspm-shadow); }

/* ======================================================
   CUSTOM CALENDAR POPUP
   ====================================================== */
.fspm-cal-wrap { position: relative; overflow: visible !important; }
.fspm-date-field { overflow: visible !important; }
.fspm-datetime-card-body { overflow: visible !important; }
.fspm-datetime-section { overflow: visible !important; }

.fspm-cal-popup {
    display: none; position: absolute; top: calc(100% + 6px); left: 0;
    z-index: 999999; background: var(--fspm-bg);
    border: 1px solid var(--fspm-border); border-radius: 14px;
    box-shadow: 0 20px 50px -10px rgba(0,0,0,0.22);
    overflow: hidden; width: 280px;
    font-family: 'Inter', sans-serif;
}

.fspm-cal-popup.open { display: block; }

.fspm-cal-header {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--fspm-brand); padding: 12px 14px; color: #fff;
}

.fspm-cal-header span { font-size: 14px; font-weight: 700; }

.fspm-cal-header button {
    background: rgba(255,255,255,0.2); border: none; color: #fff;
    width: 28px; height: 28px; border-radius: 6px; cursor: pointer;
    font-size: 14px; display: flex; align-items: center; justify-content: center;
    transition: background 0.15s;
}
.fspm-cal-header button:hover { background: rgba(255,255,255,0.35); }

.fspm-cal-weekdays {
    display: grid; grid-template-columns: repeat(7, 1fr);
    padding: 8px 8px 4px; gap: 0;
}

.fspm-cal-weekdays span {
    text-align: center; font-size: 10px; font-weight: 700;
    color: var(--fspm-text-muted); text-transform: uppercase;
    letter-spacing: 0.05em; padding: 4px 0;
}

.fspm-cal-days {
    display: grid; grid-template-columns: repeat(7, 1fr);
    padding: 0 8px 10px; gap: 2px;
}

.fspm-cal-day {
    text-align: center; padding: 0; border: none; background: none;
    width: 36px; height: 36px; line-height: 36px; margin: 0 auto;
    border-radius: 8px; font-size: 13px; font-weight: 500;
    color: var(--fspm-text); cursor: pointer; transition: all 0.12s;
    font-family: 'Inter', sans-serif;
}

.fspm-cal-day:hover { background: var(--fspm-brand-light); color: var(--fspm-brand); }
.fspm-cal-day.today { border: 2px solid var(--fspm-brand); color: var(--fspm-brand); font-weight: 700; }
.fspm-cal-day.selected { background: var(--fspm-brand); color: #fff; font-weight: 700; box-shadow: 0 3px 10px rgba(59,158,229,0.3); }
.fspm-cal-day.disabled { color: var(--fspm-border); cursor: default; pointer-events: none; }
.fspm-cal-day.other-month { color: var(--fspm-text-muted); opacity: 0.4; }

@media (max-width: 360px) {
    .fspm-cal-popup { width: 260px; }
    .fspm-cal-day { width: 32px; height: 32px; line-height: 32px; font-size: 12px; }
}

/* ======================================================
   DARK THEME
   ====================================================== */
.fspm-dark { --fspm-text: #f1f5f9; --fspm-text-secondary: #94a3b8; --fspm-text-muted: #64748b; --fspm-bg: #1e293b; --fspm-bg-subtle: #0f172a; --fspm-border: #334155; --fspm-border-light: #1e293b; }
.fspm-dark .fspm-card { border-color: #334155; }
.fspm-dark .fspm-field input, .fspm-dark .fspm-field select, .fspm-dark .fspm-field textarea, .fspm-dark .fspm-datepicker { background: #0f172a !important; border-color: #334155 !important; color: #f1f5f9 !important; }
.fspm-dark .fspm-price-card { background: linear-gradient(135deg, #064e3b 0%, #065f46 100%); border-color: #047857; }
.fspm-dark .fspm-price-label { color: #a7f3d0; }
.fspm-dark .fspm-price-value { color: #6ee7b7; }
.fspm-dark .fspm-payment-card { border-color: #334155; background: #0f172a; }
.fspm-dark .fspm-payment-option input:checked + .fspm-payment-card { background: rgba(59,158,229,0.15); border-color: var(--fspm-brand); }
.fspm-dark .fspm-lang-menu { background: #1e293b; border-color: #334155; }
.fspm-dark .fspm-lang-menu .fspm-lang-btn { color: #e2e8f0; }
.fspm-dark .fspm-lang-menu .fspm-lang-btn:hover { background: #334155; }

/* ======================================================
   TABLET (min-width: 640px)
   ====================================================== */
@media (min-width: 640px) {
    .fspm-booking-wrap { max-width: 680px; margin: 20px auto; }
    .fspm-card { border-radius: var(--fspm-radius); }
    .fspm-booking-header { padding: 24px 28px; }
    .fspm-header-content h3 { font-size: 20px; }
    .fspm-header-content p { font-size: 13px; }
    .fspm-steps { padding: 20px 28px 8px; }
    .fspm-step-number { width: 34px; height: 34px; font-size: 13px; }
    .fspm-step-label { font-size: 12px; max-width: none; }
    .fspm-step-connector { width: 40px; margin: 0 10px; }
    .fspm-form-body { padding: 24px 28px 28px; }
    .fspm-field-row { grid-template-columns: 1fr 1fr; gap: 12px; }
    .fspm-datetime-section { grid-template-columns: 1fr 1fr; gap: 12px; }
    .fspm-payment-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .fspm-payment-card { flex-direction: column; text-align: center; padding: 18px 14px; gap: 8px; }
    .fspm-btn-row { flex-direction: row; }
    .fspm-btn-secondary { width: auto; }
    .fspm-location-image img { max-height: 260px; }
    .fspm-section-title { font-size: 15px; }
    .fspm-price-value { font-size: 26px; }
    #fspm-public-calendar { padding: 20px; }
}

/* ======================================================
   DESKTOP (min-width: 900px)
   ====================================================== */
@media (min-width: 900px) {
    .fspm-booking-wrap { max-width: 820px; margin: 30px auto; }
    .fspm-booking-header { padding: 28px 36px; }
    .fspm-header-content h3 { font-size: 22px; }
    .fspm-form-body { padding: 28px 36px 32px; }
    .fspm-step-connector { width: 60px; }
    .fspm-location-image img { max-height: 320px; border-radius: var(--fspm-radius-sm); }
    .fspm-price-value { font-size: 28px; }
    .fspm-section-title { font-size: 16px; }
    .fspm-field { margin-bottom: 16px; }
    .fspm-field label { font-size: 13px; }
}

/* ======================================================
   EXTRA SMALL DEVICES (max-width: 360px) - iPhone SE, old Android
   ====================================================== */
@media (max-width: 360px) {
    .fspm-booking-header { padding: 16px 14px; }
    .fspm-header-content h3 { font-size: 15px; }
    .fspm-form-body { padding: 14px; }
    .fspm-step-number { width: 26px; height: 26px; font-size: 11px; }
    .fspm-step-label { font-size: 9px; max-width: 70px; }
    .fspm-step-connector { width: 16px; margin: 0 4px; }
    .fspm-datetime-card-header { padding: 6px 10px; font-size: 10px; }
    .fspm-datetime-card-body { padding: 8px 10px 10px; }
    .fspm-datepicker { font-size: 12px; padding: 7px 8px; height: 36px; }
    .fspm-time-select-wrap { height: 36px; }
    .fspm-time-select { width: 40px; font-size: 13px; }
    .fspm-section-title { font-size: 13px; }
    .fspm-field input, .fspm-field select, .fspm-field textarea { font-size: 13px; padding: 9px 12px; }
    .fspm-input-wrap input, .fspm-input-wrap select { padding-left: 34px !important; }
    .fspm-input-wrap svg { left: 10px; width: 14px; height: 14px; }
    .fspm-btn { padding: 11px 16px; font-size: 13px; }
    .fspm-price-value { font-size: 20px; }
    .fspm-price-label { font-size: 18px; }
    .fspm-lang-current { padding: 4px 8px; font-size: 11px; }
    .fspm-nav-btn { padding: 8px 14px; font-size: 12px; }
    .fspm-confirm-phone { font-size: 16px; }
}

/* ======================================================
   ACCESSIBILITY
   ====================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus visible for keyboard navigation */
.fspm-field input:focus-visible,
.fspm-field select:focus-visible,
.fspm-field textarea:focus-visible,
.fspm-btn:focus-visible,
.fspm-datepicker:focus-visible,
.fspm-time-select:focus-visible,
.fspm-lang-current:focus-visible,
.fspm-payment-card:focus-visible {
    outline: 3px solid var(--fspm-brand);
    outline-offset: 2px;
}
