/* ==========================================================================
   WP Schedulr – Frontend Styles
   ========================================================================== */

/* ── Theme / Elementor isolation ──────────────────────────────────────────
   Elementor (and most page-builder themes) apply global typography rules
   directly to bare HTML elements — h1, p, a, button, input — which cascade
   INTO the widget even though everything is scoped under .schedulr-app.
   This block re-declares the critical properties on all child elements so
   the scheduler always renders in its own gray/white/pink palette regardless
   of which global theme or page-builder is active.
   -------------------------------------------------------------------------- */

/* 1. Box-sizing and base font for every descendant */
.schedulr-app *,
.schedulr-app *::before,
.schedulr-app *::after {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* 2. Paragraph / list text — explicit color so Elementor global typography can't bleed in */
.schedulr-app p,
.schedulr-app li {
    font-size: inherit;
    line-height: 1.6;
    color: #4d4d4d;
    margin: 0;
}

/* 3. Headings — kill theme sizing; our own classes restore what they need */
.schedulr-app h1,
.schedulr-app h2,
.schedulr-app h3,
.schedulr-app h4,
.schedulr-app h5,
.schedulr-app h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
    margin: 0;
    padding: 0;
    font-size: unset;
    background: none;
    border: none;
}

/* 4. Links */
.schedulr-app a,
.schedulr-app a:link,
.schedulr-app a:visited,
.schedulr-app a:hover,
.schedulr-app a:focus {
    color: var(--primary);
    text-decoration: none;
    background: none;
    box-shadow: none;
    border: none;
}
.schedulr-app a:hover { text-decoration: underline; }

/* 5. Buttons — strip theme styles before our .schedulr-btn classes apply */
.schedulr-app button,
.schedulr-app input[type="button"],
.schedulr-app input[type="submit"] {
    font-size: 1rem;
    line-height: normal;
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
    box-shadow: none;
    text-transform: none;
    letter-spacing: normal;
    cursor: pointer;
    color: inherit;
    -webkit-appearance: none;
    appearance: none;
}

/* 6. Labels — Elementor can set these to light gray globally; force dark */
.schedulr-app label {
    color: #4d4d4d !important;
}

/* 7. Inputs / textareas — prevent theme border / shadow / color overrides */
.schedulr-app input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
.schedulr-app textarea,
.schedulr-app select {
    font-size: 1rem;
    line-height: normal;
    color: var(--text);
    background: #fff !important;
    border-radius: 0;
    box-shadow: none !important;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

/* 7. Shadow Elementor CSS variable names so any var(--e-global-*) references
      inside the widget resolve to the scheduler palette. */
.schedulr-app {
    --e-global-color-primary:   var(--primary);
    --e-global-color-secondary: var(--primary-dark);
    --e-global-color-text:      var(--text);
    --e-global-color-accent:    var(--primary);
    --e-global-typography-primary-font-family:   -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --e-global-typography-secondary-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --e-global-typography-text-font-family:      -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --e-global-typography-accent-font-family:    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ── End isolation block ─────────────────────────────────────────────── */

.schedulr-app {
    --primary:       #f29cf2;
    --primary-dark:  #d97fd9;
    --primary-light: #fdf0fd;
    --success:       #0061f2;
    --error:         #dc2626;
    --text:          #111827;
    --muted:         #4d4d4d;
    --border:        #e5e7eb;
    --bg:            #fdf2f8;
    --card-shadow:   0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
    --card-shadow-hover: 0 10px 25px rgba(242,156,242,.15);
    --radius:        12px;

    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 16px;
}

/* ---------- Step Indicator ---------- */
.schedulr-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 36px;
    gap: 0;
}

.schedulr-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.schedulr-step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--border);
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    transition: background .3s, color .3s;
}

.schedulr-step.active .schedulr-step-circle,
.schedulr-step.done .schedulr-step-circle {
    background: linear-gradient(135deg, #f29cf2, #d97fd9);
    color: #4d4d4d;
}


.schedulr-step-label {
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
    white-space: nowrap;
}

.schedulr-step.active .schedulr-step-label {
    color: var(--primary);
    font-weight: 600;
}

.schedulr-step-connector {
    flex: 1;
    height: 2px;
    background: var(--border);
    min-width: 40px;
    max-width: 80px;
    margin-bottom: 22px;
    transition: background .3s;
}

.schedulr-step-connector.done {
    background: var(--primary);
}

/* ---------- Panels ---------- */
.schedulr-panel {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--card-shadow);
}

.schedulr-hidden { display: none !important; }

.schedulr-panel-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 24px;
    color: var(--text);
}

/* ---------- Back button ---------- */
.schedulr-back {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.schedulr-back:hover { text-decoration: underline; }

/* ---------- Step 1 Panel – pink/white/black theme ---------- */
#schedulr-step-1 {
    background: #fff;
    border: none;
    box-shadow: none;
    padding: 0;
}

#schedulr-step-1 .schedulr-panel-title {
    font-size: 28px;
    font-weight: 900;
    text-align: center;
    letter-spacing: -0.5px;
    color: #111;
    margin-bottom: 8px;
}

#schedulr-step-1 .schedulr-panel-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 4px;
    background: linear-gradient(90deg, #f29cf2, #f9a8d4);
    border-radius: 2px;
    margin: 10px auto 28px;
}

/* ---------- Location Grid ---------- */
.schedulr-locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.schedulr-location-card {
    border: 2px solid #f3f4f6;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color .25s, box-shadow .25s, transform .2s;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    text-align: center;
    display: flex;
    flex-direction: column;
}

.schedulr-location-card:hover {
    border-color: #f29cf2;
    box-shadow: 0 12px 36px rgba(242,156,242,.18);
    transform: translateY(-5px);
}

.schedulr-location-card.selected {
    border-color: #f29cf2;
    box-shadow: 0 0 0 4px rgba(242,156,242,.18), 0 8px 24px rgba(242,156,242,.15);
}

/* Image wrapper — hosts the overlay + checkmark via pseudo-elements */
.schedulr-location-card-img-wrap {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f3f4f6;
}

.schedulr-location-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .45s ease;
}

.schedulr-location-card:hover .schedulr-location-card-img-wrap img {
    transform: scale(1.07);
}

/* Pink gradient scrim at bottom of image */
.schedulr-location-card-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(242,156,242,.35) 0%, transparent 55%);
    opacity: 0;
    transition: opacity .25s;
    pointer-events: none;
}

.schedulr-location-card:hover .schedulr-location-card-img-wrap::after,
.schedulr-location-card.selected .schedulr-location-card-img-wrap::after {
    opacity: 1;
}

/* Checkmark badge — appears on selected */
.schedulr-location-card-img-wrap::before {
    content: '✓';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    background: #f29cf2;
    color: #4d4d4d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
    line-height: 30px;
    text-align: center;
    z-index: 2;
    opacity: 0;
    transform: scale(.4) rotate(-15deg);
    transition: opacity .2s, transform .25s cubic-bezier(.175,.885,.32,1.275);
    pointer-events: none;
}

.schedulr-location-card.selected .schedulr-location-card-img-wrap::before {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* Card body */
.schedulr-location-card-body {
    padding: 18px 16px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.schedulr-location-card-title {
    font-size: 18px;
    font-weight: 800;
    color: #111;
    margin: 0 0 6px;
    letter-spacing: -0.3px;
}

.schedulr-location-card-address {
    font-size: 13px;
    color: #4d4d4d;
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.schedulr-location-card-address svg {
    flex-shrink: 0;
    color: #f29cf2;
}

.schedulr-location-card-excerpt {
    font-size: 13px;
    color: #4d4d4d;
    margin: 0;
    line-height: 1.6;
}

.schedulr-location-card-pricing {
    margin-top: auto;
    padding-top: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.schedulr-location-card-price {
    display: inline-block;
    background: linear-gradient(135deg, #f29cf2, #d97fd9);
    color: #4d4d4d;
    font-size: 13px;
    font-weight: 700;
    padding: 5px 16px;
    border-radius: 20px;
    box-shadow: 0 3px 10px rgba(242,156,242,.35);
    letter-spacing: .3px;
}

.schedulr-location-card-balance {
    font-size: 12px;
    color: #4d4d4d;
    font-weight: 500;
}

/* ---------- Loading & Spinner ---------- */
.schedulr-loading {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    padding: 20px 0;
}

.schedulr-spinner {
    width: 22px;
    height: 22px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: schedulr-spin .7s linear infinite;
}

@keyframes schedulr-spin { to { transform: rotate(360deg); } }

/* ---------- Location Summary ---------- */
.schedulr-location-summary {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--primary-light);
    border-radius: 8px;
    margin-bottom: 24px;
}

.schedulr-location-summary img {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.schedulr-location-summary-info strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
}

.schedulr-location-summary-info strong:last-child {
    font-size: 13px;
    font-weight: 700;
    color: #4d4d4d;
}

/* ---------- Location Card — Map Toggle (Step 1) ---------- */
.schedulr-location-card-map-toggle {
    border-top: 1px solid #f3f4f6;
}

.schedulr-map-toggle-btn {
    width: 100%;
    background: none;
    border: none;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    letter-spacing: .2px;
    transition: background .15s, color .15s;
    font-family: inherit;
}

.schedulr-map-toggle-btn:hover,
.schedulr-map-btn-open {
    background: var(--primary-light);
}

.schedulr-map-toggle-caret {
    transition: transform .25s ease;
    flex-shrink: 0;
}

.schedulr-map-btn-open .schedulr-map-toggle-caret {
    transform: rotate(180deg);
}

/* Collapsible panel — max-height animated via CSS class toggle */
.schedulr-location-card-map-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}

.schedulr-location-card-map-panel.schedulr-map-panel-open {
    max-height: 210px;
}

.schedulr-location-card-map-panel iframe {
    width: 100%;
    height: 200px;
    display: block;
    border: none;
}

/* ---------- Confirmation Map ---------- */
.schedulr-confirmation-map {
    width: 100%;
    max-width: 480px;
    margin-bottom: 28px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 2px 10px rgba(0,0,0,.07);
    text-align: left;
}

.schedulr-confirmation-map-label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.schedulr-confirmation-map iframe {
    width: 100%;
    height: 220px;
    display: block;
    border: none;
}

@media (max-width: 767px) {
    .schedulr-confirmation-map iframe { height: 180px; }
}

/* ---------- Date & Time ---------- */
.schedulr-date-time-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: start;
}

/* date-time-grid single-column handled in the ≤767px block below */

.schedulr-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.schedulr-hint {
    font-size: 12px;
    color: var(--muted);
    margin: 6px 0 0;
}
.schedulr-date-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    color: var(--text);
    box-sizing: border-box;
    transition: border-color .2s;
}

.schedulr-date-input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px var(--primary-light);
}

.schedulr-slots-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.schedulr-slot {
    padding: 10px 8px;
    text-align: center;
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all .2s;
    user-select: none;
    background: #fff;
}

.schedulr-slot:hover:not(.unavailable) {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.schedulr-slot.selected {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.schedulr-slot.unavailable {
    opacity: .45;
    cursor: not-allowed;
    text-decoration: line-through;
}

.schedulr-slot-remaining {
    display: block;
    font-size: 10px;
    font-weight: 400;
    margin-top: 2px;
    opacity: .75;
}

/* ---------- Form ---------- */
.schedulr-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* form-grid / span-2 single-column handled in the ≤767px block below */

.schedulr-form-group { display: flex; flex-direction: column; }
.schedulr-span-2 { grid-column: span 2; }

.schedulr-input {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    color: var(--text);
    transition: border-color .2s;
    width: 100%;
    box-sizing: border-box;
}

.schedulr-input:focus {
    border-color: #4d4d4d;
    outline: none;
    box-shadow: 0 0 0 3px rgba(77, 77, 77, 0.12);
    background: #fff !important;
}

.schedulr-textarea { resize: vertical; min-height: 80px; }

.schedulr-required { color: var(--error); }

/* ---------- Consent Checkboxes ---------- */
.schedulr-consent-group {
    margin-top: 28px;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.schedulr-consent-header {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 18px;
    background: linear-gradient(135deg, var(--primary-light) 0%, #fff 100%);
    border-bottom: 1px solid var(--border);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .7px;
    text-transform: uppercase;
    color: var(--text);
}

.schedulr-consent-header svg { color: var(--primary-dark); }

.schedulr-consent-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background .15s;
    background: #fff;
}

.schedulr-consent-item:last-child { border-bottom: none; }

.schedulr-consent-item:hover { background: var(--primary-light); }

.schedulr-consent-required { background: var(--bg); }

.schedulr-consent-check {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Custom checkbox visual */
.schedulr-consent-box {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 5px;
    border: 2px solid var(--border);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
    transition: border-color .15s, background .15s, box-shadow .15s;
    position: relative;
}

.schedulr-consent-check:checked + .schedulr-consent-box {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(242,156,242,.2);
}

/* Checkmark via pseudo-element */
.schedulr-consent-box::after {
    content: '';
    width: 5px;
    height: 9px;
    border: 2px solid #4d4d4d;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) scale(0);
    transition: transform .15s cubic-bezier(.175,.885,.32,1.275);
    margin-top: -2px;
}

.schedulr-consent-check:checked + .schedulr-consent-box::after {
    transform: rotate(45deg) scale(1);
}

.schedulr-consent-text {
    font-size: 13px;
    line-height: 1.6;
    color: var(--muted);
}

.schedulr-consent-text strong {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 3px;
}

.schedulr-consent-optional {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .4px;
    text-transform: uppercase;
    background: var(--border);
    color: var(--muted);
    padding: 2px 7px;
    border-radius: 20px;
}

/* ---------- Booking Summary ---------- */
.schedulr-booking-summary {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 24px;
    font-size: 14px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 20px;
}

.schedulr-app .schedulr-booking-summary span,
.schedulr-app .schedulr-booking-summary strong { color: #4d4d4d !important; font-weight: 700 !important; }

/* ---------- Buttons ---------- */
.schedulr-step-actions { margin-top: 28px; }

.schedulr-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, opacity .2s, transform .1s;
}

.schedulr-btn:active { transform: scale(.98); }

.schedulr-btn-primary {
    background: var(--primary);
    color: #4d4d4d;
}

.schedulr-btn-primary:hover:not(:disabled) { background: var(--primary-dark); }
.schedulr-btn-primary:disabled { opacity: .5; cursor: not-allowed; }

.schedulr-btn-pay {
    background: #635bff;
    color: #fff;
    width: 100%;
    justify-content: center;
    font-size: 17px;
    padding: 14px 28px;
}

.schedulr-btn-pay:hover:not(:disabled) { background: #4b44cc; }
.schedulr-btn-pay:disabled { opacity: .6; cursor: not-allowed; }

.schedulr-btn-secondary {
    background: #fff;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.schedulr-btn-secondary:hover { background: var(--primary-light); }

.schedulr-btn-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: schedulr-spin .7s linear infinite;
}

/* ---------- Payment ---------- */
.schedulr-payment-box {
    max-width: 100%;
}

.schedulr-stripe-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 20px;
}

#schedulr-payment-element {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    min-height: 100px;
    margin-bottom: 16px;
}

/* ---------- Error ---------- */
.schedulr-error-msg {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: var(--error);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    margin-top: 16px;
}

/* ---------- Confirmation ---------- */
#schedulr-confirmation {
    text-align: center;
    padding: 0;           /* padding moved to .schedulr-confirmation-inner */
    overflow: hidden;     /* so hero image is flush against the panel edges */
}

/* Full-bleed hero image at the top of the panel */
.schedulr-confirmation-hero {
    width: 100%;
    overflow: hidden;
    background: #f3f4f6;
    flex-shrink: 0;
}

.schedulr-confirmation-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Padded container that wraps icon, title, message, details, button */
.schedulr-confirmation-inner {
    padding: 52px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.schedulr-confirmation-icon {
    width: 72px;
    height: 72px;
    background: var(--success); /* overridden by inline style from JS */
    color: #fff;                /* overridden by inline style from JS */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 20px;
    flex-shrink: 0;
    line-height: 1;
}

.schedulr-confirmation-title {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 12px;
}

.schedulr-confirmation-text {
    font-size: 16px;
    color: var(--muted);
    margin: 0 0 24px;
    max-width: 480px;
}

.schedulr-confirmation-details {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px 24px;
    display: inline-grid;
    grid-template-columns: auto 1fr;
    gap: 8px 20px;
    text-align: left;
    margin-bottom: 28px;
    font-size: 14px;
    min-width: 300px;
    width: 100%;
    max-width: 480px;
    box-sizing: border-box;
}

.schedulr-confirmation-details span { color: var(--muted); }
.schedulr-confirmation-details strong { color: var(--text); }

/* ---------- Billing Information Card ------------------------------ */
.schedulr-billing-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.schedulr-billing-card-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: linear-gradient(135deg, var(--primary-light) 0%, #fff 100%);
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: var(--text);
}

.schedulr-billing-card-head svg { color: var(--primary-dark); flex-shrink: 0; }

.schedulr-billing-autofill-note {
    margin-left: auto;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: var(--muted);
}

.schedulr-billing-fields {
    padding: 20px 18px;
    background: #fff;
}

.schedulr-muted-label {
    color: var(--muted);
    font-weight: 400;
    font-size: 12px;
}

/* ---------- Promotions -------------------------------------------- */
.schedulr-promo-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(90deg, #fdf0ff 0%, #faf5ff 100%);
    border: 1px solid #e0c4f4;
    border-radius: 10px;
    font-size: 13px;
    color: #4d4d4d;
    margin-bottom: 18px;
}

.schedulr-promo-banner-icon {
    font-size: 16px;
    line-height: 1;
}

/* Struck-through original price on location cards */
.schedulr-orig-price {
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 400;
    margin-right: 4px;
}

/* Inline promo tag on location cards */
.schedulr-promo-tag {
    display: inline-block;
    padding: 1px 7px;
    background: #f3e8ff;
    border: 1px solid #d8b4fe;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: #4d4d4d;
    margin-left: 4px;
    vertical-align: middle;
}

/* Promo tag inside booking summaries */
.schedulr-summary-promo-tag {
    display: inline-block;
    padding: 1px 7px;
    background: #f3e8ff;
    border: 1px solid #d8b4fe;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: #4d4d4d;
    margin-left: 6px;
    vertical-align: middle;
}

/* ==========================================================================
   Responsive overrides — three-tier, desktop-first
   Breakpoints mirror Elementor's defaults so both systems agree on
   which device each viewport maps to:
     Desktop  : > 1024px  (no overrides needed — base styles already apply)
     Tablet   : 768–1024px
     Mobile   : ≤ 767px   ← Elementor "mobile" breakpoint
     Sm-phone : ≤ 480px   ← extra tweaks for very small handsets
   ========================================================================== */

/* ── Tablet (≤ 1024px) ───────────────────────────────────────────── */
@media (max-width: 1024px) {
    /* Slight padding reduction on narrow desktop / tablet */
    .schedulr-app { padding: 24px 20px; }

    /* Location grid — two columns max on tablet */
    .schedulr-locations-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

/* ── Mobile (≤ 767px — Elementor mobile breakpoint) ─────────────── */
@media (max-width: 767px) {

    /* Outer padding */
    .schedulr-app { padding: 20px 14px; }

    /* Panel padding */
    .schedulr-panel { padding: 24px 18px; }
    /* #schedulr-confirmation has no padding of its own — inner container handles it */
    .schedulr-confirmation-inner { padding: 40px 18px; }

    /* Location grid — single column */
    .schedulr-locations-grid {
        grid-template-columns: 1fr;
    }

    /* Date/time and form grids — single column */
    .schedulr-date-time-grid { grid-template-columns: 1fr; }
    .schedulr-form-grid      { grid-template-columns: 1fr; }
    .schedulr-span-2         { grid-column: span 1; }

    /* Booking summary — single column so labels & values don't truncate */
    .schedulr-booking-summary {
        grid-template-columns: 1fr;
        gap: 4px 0;
    }

    /* Confirmation details — full width on mobile */
    .schedulr-confirmation-details {
        max-width: 100%;
        min-width: 0;
    }

    /* Buttons — full width for easier thumb tapping */
    .schedulr-btn-primary,
    .schedulr-btn-secondary {
        width: 100%;
        justify-content: center;
    }

    /* Time slot tap targets — Apple HIG minimum 44 × 44 pt */
    .schedulr-slot {
        min-height: 44px;
        padding: 12px 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        font-size: 13px;
    }

    /* Billing card — hide the long autofill note to prevent overflow */
    .schedulr-billing-autofill-note { display: none; }
    .schedulr-billing-card-head { flex-wrap: wrap; gap: 6px; }

    /* Promo banner */
    .schedulr-promo-banner { font-size: 12px; padding: 8px 12px; }

    /* Mock card (design mode) — stack fields vertically */
    .schedulr-mock-field-row { flex-direction: column; gap: 10px; }
}

/* ── Small phones (≤ 480px) — extra tweaks ───────────────────────── */
@media (max-width: 480px) {

    .schedulr-app   { padding: 16px 12px; }
    .schedulr-panel { padding: 20px 14px; }
    .schedulr-confirmation-inner { padding: 28px 14px; } /* consolidated — second 480px block had 28px */

    /* Step indicator — tighter circles & connectors, wrappable labels */
    .schedulr-step-circle {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }
    .schedulr-step-label {
        font-size: 9px;
        white-space: normal;
        text-align: center;
        max-width: 48px;
        line-height: 1.3;
    }
    .schedulr-step-connector { min-width: 10px; }
    .schedulr-steps { margin-bottom: 20px; }

    /* Panel & section titles */
    .schedulr-panel-title { font-size: 17px; margin-bottom: 16px; }
    #schedulr-step-1 .schedulr-panel-title { font-size: 20px; }

    /* Location card — frosted glass body overlaps bottom of image via negative margin.
       Keeps map toggle in normal flow so overflow:hidden doesn't clip it. */
    .schedulr-location-card-img-wrap { height: 230px; }
    .schedulr-location-card-body {
        flex: none;
        position: relative;
        z-index: 1;
        margin-top: -60px;
        background: rgba(10, 15, 30, 0.42);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 14px 16px 18px;
    }
    .schedulr-location-card-title { color: #fff; font-size: 16px; }
    .schedulr-location-card-address { color: #fff; }
    .schedulr-location-card-excerpt { color: #fff; }
    .schedulr-location-card-pricing { margin-top: 10px; padding-top: 0; }

    /* Booking summary text */
    .schedulr-booking-summary span   { font-size: 11px; }
    .schedulr-booking-summary strong { font-size: 13px; }

    /* Button text */
    .schedulr-btn { font-size: 15px; padding: 13px 20px; }

    /* Confirmation */
    /* .schedulr-confirmation-inner padding consolidated into the first 480px block above */
    .schedulr-confirmation-details  { padding: 14px; font-size: 13px; }
    .schedulr-confirmation-title    { font-size: 20px; }
    .schedulr-confirmation-icon     { width: 60px; height: 60px; font-size: 28px; }
}

/* ── Very narrow (≤ 360px) — Flatpickr overflow guard ────────────── */
@media (max-width: 360px) {
    .flatpickr-calendar {
        max-width: calc(100vw - 24px) !important;
    }
}

/* ── Flatpickr calendar theme ─────────────────────────────────────── */
.flatpickr-calendar {
    font-family: inherit;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.flatpickr-day.selected,
.flatpickr-day.selected:hover,
.flatpickr-day.selected:focus {
    background: #d97fd9;
    border-color: #d97fd9;
    color: #fff;
}
.flatpickr-day:hover:not(.disabled):not(.selected):not(.flatpickr-disabled) {
    background: #f5e6f5;
    border-color: #f5e6f5;
}
/* Next/prev month bleed-over days — fully visible when available (e.g. June
   dates shown in May's grid when June has an open window) */
.flatpickr-day.nextMonthDay:not(.flatpickr-disabled),
.flatpickr-day.prevMonthDay:not(.flatpickr-disabled) {
    color: #393939;
    opacity: 1;
}

/* Disabled days (weekends / unavailable) — same gray as past dates */
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
    color: #d1d5db !important;
    background: transparent !important;
    border-color: transparent !important;
    cursor: not-allowed;
    text-decoration: none;
}
.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
    fill: #d97fd9;
}
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
    font-weight: 600;
    color: #111827;
}
.flatpickr-weekday {
    color: #4d4d4d;
    font-weight: 600;
}

/* ---------- Design / Preview Mode --------------------------------- */
.schedulr-design-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fffbeb;
    border: 1px dashed #f59e0b;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 18px;
    font-size: 13px;
    line-height: 1.55;
    color: #78350f;
}

.schedulr-design-notice-icon {
    font-size: 22px;
    flex-shrink: 0;
    line-height: 1;
}

.schedulr-design-notice strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #92400e;
}

.schedulr-design-notice p {
    margin: 0;
}

/* Mock card form */
.schedulr-mock-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 18px;
    background: #fafafa;
    pointer-events: none; /* visual only */
    user-select: none;
}

.schedulr-mock-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.schedulr-mock-field-full {
    margin-bottom: 14px;
}

.schedulr-mock-field-row {
    display: flex;
    gap: 12px;
}

.schedulr-mock-field label {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    letter-spacing: .3px;
}

.schedulr-mock-input {
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    font-size: 15px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.schedulr-mock-card-icons {
    font-size: 18px;
    opacity: .5;
}

/* ---------- Financing Notice (Step 4) ----------------------------- */
.schedulr-financing-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 20px;
}

.schedulr-financing-notice-icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    margin-top: 1px;
}

.schedulr-financing-notice-body {
    flex: 1;
    min-width: 0;
}

.schedulr-financing-notice-heading {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px;
    letter-spacing: .01em;
}

.schedulr-financing-notice-text {
    font-size: 12px;
    color: #4d4d4d;
    line-height: 1.6;
    margin: 0 0 10px;
}

.schedulr-financing-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.schedulr-financing-badge {
    display: inline-block;
    padding: 3px 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    letter-spacing: .02em;
}

.schedulr-financing-badge-more {
    background: transparent;
    border-style: dashed;
    color: #94a3b8;
    font-weight: 500;
}

/* ---------- No locations ---------- */
.schedulr-no-locations {
    grid-column: 1 / -1;
    text-align: center;
    padding: 32px;
    color: var(--muted);
}

/* ---------- Confirmation — intake CTA positioning ------------- */

/* Ensure the CTA sits flush with the panel's width constraints */
#schedulr-confirmation #schedulr-intake-cta {
    width: 100%;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Get Directions button (below confirmation map) ---------- */
.schedulr-directions-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 9px 18px;
    background: var(--accent, #0061f2);
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity .15s;
}
.schedulr-directions-btn:hover { opacity: .88; color: #fff; text-decoration: none; }
.schedulr-directions-btn svg   { fill: #fff; flex-shrink: 0; }

/* ---------- Test mode banner ---------- */
.schedulr-test-mode-banner {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 10px 16px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #92400e;
}

/* ---------- Service Benefits Strip ---------- */
.schedulr-benefits-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    justify-content: center;
    background: linear-gradient(135deg, #fdf0fd 0%, #fce7f3 100%);
    border: 1px solid #f5d0fe;
    border-radius: var(--radius);
    padding: 14px 20px;
    margin-bottom: 20px;
}

.schedulr-benefit {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 500;
    color: #4d4d4d;
    white-space: nowrap;
}

.schedulr-benefit-icon {
    width: 15px;
    height: 15px;
    fill: #0061f2;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .schedulr-benefits-strip {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .schedulr-benefit {
        white-space: normal;
    }
}

/* ---------- Cancellation Notice ---------- */
.schedulr-cancellation-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 18px;
    font-size: 12px;
    color: #78350f;
    line-height: 1.6;
}

.schedulr-cancellation-notice svg {
    fill: #d97706;
    flex-shrink: 0;
    margin-top: 2px;
}
