/* ============================================================
   main.css — P4 Form Builder Styles
   ============================================================

   HOW TO CUSTOMIZE
   ----------------
   Override any CSS custom property on .p4fb-form-container
   in your theme stylesheet. Example:

       .p4fb-form-container {
           --color-primary:    #8B5CF6;
           --color-primary-bg: #EDE9FE;
           --color-btn:        #8B5CF6;
           --color-btn-hover:  #7C3AED;
           --font-body:        'Poppins', sans-serif;
           --font-heading:     'Poppins', sans-serif;
           --container-max-w:  720px;
       }

   Every visual property (colors, fonts, spacing, radii,
   shadows) is controlled by a token in _tokens.css.

   CLASS REFERENCE
   ---------------
   .p4fb-form-container      — Outer wrapper (tokens scope)
   .p4fb-progress-wrap       — Progress bar container
   .p4fb-progress-step       — Individual progress step (.done, .active)
   .p4fb-callout-banner      — Top header banner
   .p4fb-question-card       — Main card wrapper
   .p4fb-card-body           — Card content area
   .p4fb-question-label      — Category eyebrow above title
   .p4fb-question-text       — Question headline
   .p4fb-question-sub        — Subtitle / description
   .p4fb-field               — Field wrapper
   .p4fb-field-label         — Input label
   .p4fb-input               — Text / email / phone / zip inputs
   .p4fb-textarea            — Textarea
   .p4fb-select              — Dropdown select
   .p4fb-options-grid        — Radio / checkbox option list
   .p4fb-option-btn          — Individual option button (.selected)
   .p4fb-card-nav            — Navigation bar (Back + Continue)
   .p4fb-btn-back            — Back button
   .p4fb-btn-next            — Continue button
   .p4fb-error               — Field error message
   .p4fb-info-box            — Info / callout box
   .p4fb-escape-link         — "Book appointment" escape link
   .p4fb-end-screen          — Confirmation page wrapper
   .p4fb-end-hero            — Confirmation hero section
   .p4fb-end-body            — Confirmation body section
   .p4fb-end-cta             — Confirmation CTA button
   .p4fb-pii-onepage         — One-page PII form (escape flow)
   .p4fb-conf                — Type A confirmation (escape flow)
   .p4fb-conf-b              — Type B confirmation (normal flow)
   .p4fb-appointment-widget  — Appointment scheduler widget

   PARTIALS LOAD ORDER
   -------------------
   1. _tokens.css        — CSS custom properties (must be first)
   2. _base.css          — Container, reset, shared animations
   3. _progress.css      — Step progress bar
   4. _question.css      — Question card, typography, options
   5. _fields.css        — Inputs, textarea, select, errors
   6. _nav.css           — Card nav, buttons, secure box, consent
   7. _pii.css           — One-page PII form
   8. _confirmation.css  — End screen, Type A & B confirmations
   9. _appointment.css   — Appointment scheduler widget
   ============================================================

============================================================
   _tokens.css — Design Tokens
   ============================================================
   All visual variables are defined here on .p4fb-form-container.
   Override any of these in your theme CSS to customize the form.

   Example:
       .p4fb-form-container {
           --color-primary:    #8B5CF6;
           --color-btn:        #8B5CF6;
           --color-btn-hover:  #7C3AED;
           --font-body:        'Poppins', sans-serif;
           --container-max-w:  720px;
       }
   ============================================================ */

.p4fb-form-container {

    /* --- Palette ----------------------------------------- */
    --white: #FFFFFF;
    --black: #101828;

    --gray-900: #364153;
    --gray-300: #D1D5DC;
    --gray-100: #F3F4F6;

    --blue-900: #0E223F;
    --blue-800: #162456;
    --blue-600: #1C398E;
    --blue-500: #193CB8;
    --blue-300: #51A2FF;
    --blue-100: #EFF6FF;
    --blue-50: #F5F9FF;

    --green-700: #0D542B;
    --green-600: #016630;
    --green-500: #008236;
    --green-400: #00A63E;
    --green-100: #F0FDF4;
    --green-50: #F6FEF8;

    --tan-300: #E0D8C8;
    --tan-200: #F2EFE8;
    --tan-100: #F8F7F4;
    --tan-50: #FBFAF9;

    --amber-200: #FEE685;

    --info-blue: #275FCE;
    --success-green: #28A745;
    --warning-yellow: #FFC107;
    --error-red: #DC3545;

    /* --- Semantic colors --------------------------------- */
    --color-primary: var(--blue-500);
    --color-primary-bg: var(--blue-50);
    --color-btn: var(--green-600);
    --color-btn-hover: var(--green-700);
    --color-btn-shadow: rgba(46, 158, 75, 0.3);
    --color-link: var(--blue-500);
    --color-disabled: var(--gray-300);
    --color-error: var(--error-red);
    --color-success: var(--success-green);

    /* --- Typography -------------------------------------- */
    --font-heading: var(--wp--preset--font-family--libre-baskerville, 'Libre Baskerville', serif);
    --font-body: var(--wp--preset--font-family--inter, 'Inter', system-ui, sans-serif);

    --fs-header-mobile-h2: 32px;
    --fs-header-desktop-h2: 48px;
    --fs-paragraph-default: 18px;
    --fs-paragraph-small: 16px;
    --fs-title: 30px;
    --fs-body: 18px;
    --fs-label: 18px;
    --fs-small: 16px;
    --fs-category: 14px;
    --lh-default: 1.6;

    /* --- Spacing ----------------------------------------- */
    --container-max-w: 960px;
    --container-pad: 0 16px;
    --card-pad: 28px;
    --card-nav-pad: 16px 28px 20px;
    --field-gap: 16px;
    --option-gap: 10px;
    --option-pad: 14px 18px;

    /* --- Borders & radii --------------------------------- */
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-pill: 999px;
    --border-width: 4px;
    --border-color: var(--blue-100);

    /* --- Shadows ----------------------------------------- */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .08);
    --shadow: 0 4px 16px rgba(0, 0, 0, .10);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, .14);

    /* --- Transitions ------------------------------------- */
    --transition-speed: 0.18s;

    /* --- Legacy aliases (backwards compat) --------------- */
    --link-default: var(--color-link);
    --disabled: var(--color-disabled);
    --error: var(--color-error);
    --success: var(--color-success);
}/* ============================================================
   _base.css — Container, Reset & Global Animations
   ============================================================ */

/* ─── CONTAINER ──────────────────────────────── */
.p4fb-form-container {
    max-width: var(--container-max-w) !important;
    margin: 0 auto;
    margin-bottom: 48px !important;
    padding: 24px 16px;
    font-family: var(--font-body);
    color: var(--black);
    -webkit-font-smoothing: antialiased;
}

.p4fb-form-container *,
.p4fb-form-container *::before,
.p4fb-form-container *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

@media (min-width: 1024px) {
    .p4fb-form-container {
        padding-bottom: 32px;
    }
}

/* ─── SHARED ANIMATIONS ──────────────────────── */
@keyframes p4fb-slideIn {
    from {
        opacity: 0;
        transform: translateX(24px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* ─── BANNER ─────────────────────────────────── */
.p4fb-banner-inner {
    padding: 8px 16px;
    background: var(--blue-800);
    color: var(--white);
    border-radius: 8px;
    text-align: center;
    line-height: var(--lh-default);
}

.p4fb-banner-highlight {
    color: var(--amber-200);
    font-weight: 700;
}

/* ─── CALLOUT BANNER ─────────────────────────── */
.p4fb-callout-banner {
    background: var(--blue-800);
    color: white;
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 10px 20px;
    font-size: 0.78rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.p4fb-callout-banner .p4fb-accent {
    color: #93c5fd;
}

/* ─── LOADING / SPINNER ──────────────────────── */
.p4fb-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 40px;
    text-align: center;
    color: var(--gray-900);
    font-size: 0.9rem;
}

.p4fb-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--gray-300);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: p4fb-spin 0.7s linear infinite;
}

/* ─── SESSION EXPIRED NOTICE ─────────────────── */
.p4fb-session-notice {
    background: var(--blue-100);
    border: 1px solid var(--blue-600);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 0.84rem;
    color: var(--blue-800);
    text-align: center;
    animation: p4fb-slideIn 0.3s ease both;
}/* ============================================================
   _progress.css — Step Progress Bar
   ============================================================ */

.p4fb-progress-wrap {
    background: var(--white);
    padding: 4px 0;
    margin: 24px 0;
    overflow: hidden;
}

.p4fb-progress-steps {
    display: flex;
    align-items: flex-start;
    position: relative;
}

.p4fb-progress-step {
    display: flex;
    flex-direction: row;
    align-items: center;
    position: relative;
    background-color: var(--white);
    margin: 0 12px 0 0;
}

.p4fb-progress-step:first-of-type {
    padding-left: 0;
}

.p4fb-progress-step.active {
    flex: 1;
}

.p4fb-progress-step--confirmation.active svg path {
    fill: var(--white);
}

/* ─── Connector line ─────────────────────────── */
.p4fb-step-connector {
    position: absolute;
    top: 19px;
    right: 0;
    height: 1px;
    width: 80%;
    background: var(--gray-100);
    border-radius: 2px;
    overflow: hidden;
    z-index: 0;
}

.p4fb-progress-step:not(.active) .p4fb-step-connector {
    display: none;
}

.p4fb-step-connector-fill {
    height: 100%;
    background: var(--blue-800);
    border-radius: 2px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Step circle ────────────────────────────── */
.p4fb-step-circle {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--gray-100);
    background: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gray-900);
    transition: all 0.3s;
}

.p4fb-progress-step.done .p4fb-step-circle {
    background: var(--blue-800);
    border-color: var(--blue-800);
    color: white;
}

.p4fb-progress-step.active .p4fb-step-circle {
    background: var(--blue-500);
    outline: 4px solid var(--blue-100);
    color: white;
    margin: 0 4px;
}

/* Icons inside step circles */
.p4fb-step-circle img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 2px;
}

.p4fb-progress-step:not(.active) .p4fb-step-circle img {
    filter: brightness(0) saturate(100%) invert(34%) sepia(0%) saturate(0%) hue-rotate(151deg) brightness(96%) contrast(89%);
}

/* Active and done: force icon to white so a single dark asset works for all states */
.p4fb-progress-step.active .p4fb-step-circle img,
.p4fb-progress-step.done .p4fb-step-circle img {
    filter: brightness(0) invert(1);
}

/* ─── Step label ─────────────────────────────── */
.p4fb-step-label {
    display: none;
    z-index: 1;
    padding-left: 8px;
    padding-right: 12px;
    background-color: var(--white);
    font-size: 16px;
    font-weight: 400;
    color: #939393;
    text-align: center;
    line-height: var(--lh-default);
    white-space: nowrap;
}

.p4fb-progress-step.active .p4fb-step-label {
    display: block;
    padding-left: 4px;
    color: var(--black);
}

.p4fb-progress-step.done .p4fb-step-label {
    color: var(--gray-900);
}

/* ─── Responsive ─────────────────────────────── */
@media (max-width: 619px) {
    .p4fb-progress-steps {
        gap: 0;
    }
}

@media (min-width: 620px) {
    .p4fb-progress-wrap {
        margin: 32px 0;
    }
}

@media (min-width: 1024px) {
    .p4fb-progress-step {
        flex: 1;
        padding: 0;
    }

    .p4fb-progress-step:last-of-type {
        flex: 0;
        margin-right: 0;
    }

    .p4fb-step-connector {
        height: 1px;
        width: 50%;
        left: unset;
        right: 0;
    }

    .p4fb-progress-step:not(.active) .p4fb-step-connector {
        display: block;
    }

    .p4fb-progress-step.done .p4fb-step-connector-fill {
        background: var(--gray-100);
    }

    .p4fb-step-label {
        max-width: unset;
        display: block;
    }
}/* ============================================================
   _question.css — Question Card, Labels, Options & Info Box
   ============================================================ */

/* ─── QUESTION CARD ──────────────────────────── */
.p4fb-question-card {
    background: var(--white);
    overflow: hidden;
}

.p4fb-card-body.slide-in {
    animation: p4fb-slideIn 0.3s ease both;
}

/* ─── QUESTION TYPOGRAPHY ────────────────────── */

/* Category label (eyebrow) — shared with appointment header & PII */
.p4fb-question-label,
.p4fb-appt-header-ctn__preheader,
.p4fb-pii-label {
    font-size: var(--fs-category);
    font-weight: 700;
    letter-spacing: 1px;
    line-height: var(--lh-default);
    text-transform: uppercase;
    color: var(--blue-500);
    margin-bottom: 16px;
    padding-left: 8px;
    border-left: 2px solid var(--blue-500);
}

/* Headline — shared with appointment header & PII */
.p4fb-question-text,
.p4fb-appt-header-ctn__header,
.p4fb-pii-headline {
    font-family: var(--font-heading);
    font-size: var(--fs-header-mobile-h2);
    font-weight: 700;
    color: var(--black);
    line-height: 1.3;
    margin-bottom: 16px;
}

/* Sub-copy — shared with appointment header & PII */
.p4fb-question-sub,
.p4fb-appt-header-ctn__subcopy,
.p4fb-pii-sub {
    font-size: var(--fs-paragraph-default);
    font-weight: 400;
    color: var(--black);
    line-height: var(--lh-default);
    margin-bottom: 24px;
}

.p4fb-question-sub--checkbox {
    margin-top: 16px;
    margin-bottom: 24px;
}

.p4fb-question-sub--checkbox span {
    display: block;
    padding: 4px 8px;
    background: var(--blue-50);
    border-radius: 4px;
}

.p4fb-question-sub--checkbox svg {
    margin-right: 8px;
}

@media (min-width: 620px) {
    .p4fb-question-sub--checkbox span {
        display: inline
    }

    .p4fb-question-text {
        font-size: var(--fs-header-desktop-h2);
    }
}

/* ─── INFO BOX ───────────────────────────────── */
.p4fb-info-box {
    background: var(--blue-100);
    border-left: 3px solid var(--blue-600);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin-bottom: 20px;
    font-size: 0.84rem;
    color: #1e3a8a;
    line-height: 1.5;
}

.p4fb-info-box strong {
    display: block;
    font-weight: 700;
    margin-bottom: 3px;
    color: var(--blue-800);
}

.p4fb-callout-box {
    margin-top: 20px;
    animation: p4fb-slideIn 0.3s ease both;
}

/* ─── OPTIONS (radio / checkbox as card rows) ── */
.p4fb-options-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.p4fb-option-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 24px;
    background: var(--blue-50);
    border: var(--border-width) solid var(--border-color);
    border-radius: 16px;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-body);
    transition: all var(--transition-speed);
}

.p4fb-option-btn:hover,
.p4fb-option-btn.selected {
    border-color: var(--blue-600);
    background: var(--blue-100);
}

.p4fb-option-btn:focus-visible {
    outline: 2px solid var(--blue-600);
    outline-offset: 2px;
}

/* Option icon */
.p4fb-opt-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--gray-100);
    font-size: 1.1rem;
    transition: background 0.18s;
}

.p4fb-option-btn.selected .p4fb-opt-icon {
    background: #dbeafe;
}

/* Option content */
.p4fb-opt-content {
    flex: 1;
}

.p4fb-opt-title {
    font-size: var(--fs-paragraph-default);
    font-weight: 700;
    color: var(--black);
    line-height: var(--lh-default);
    letter-spacing: 0.5px;
}

.p4fb-opt-desc {
    font-size: 0.76rem;
    color: var(--gray-900);
    margin-top: 2px;
}

/* Radio / checkbox indicator (hidden unless selected) */
.p4fb-opt-check:not(.is-checkbox) {
    display: none;
}

.p4fb-option-btn.selected .p4fb-opt-check:not(.is-checkbox) {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.p4fb-opt-check:not(.is-checkbox) svg {
    display: none;
}

.p4fb-option-btn.selected .p4fb-opt-check:not(.is-checkbox) svg {
    display: block;
}

.p4fb-option-btn .p4fb-opt-check.is-checkbox.is-checked {
    display: none;
}

.p4fb-option-btn.selected .p4fb-opt-check.is-checkbox.is-checked {
    display: block;
}

.p4fb-option-btn.selected .p4fb-opt-check.is-checkbox.is-not-checked {
    display: none;
}

/* Hidden native inputs */
.p4fb-option-btn input[type="radio"],
.p4fb-option-btn input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}/* ============================================================
   _fields.css — Inputs, Textarea, Select & Error Messages
   ============================================================ */

/* ─── FIELD WRAPPER ──────────────────────────── */
.p4fb-field {
    margin-top: 48px;
    margin-bottom: var(--field-gap);
}

.p4fb-field:not(:first-of-type) {
    margin-top: 32px;
}

.p4fb-field-label {
    display: block;
    font-size: var(--fs-label);
    font-weight: 600;
    color: var(--black);
    margin-bottom: 6px;
}

.p4fb-field-sublabel {
    font-size: 0.75rem;
    font-style: italic;
    color: var(--gray-900);
    margin-bottom: 4px;
}

/* ─── TEXT INPUT ─────────────────────────────── */
.p4fb-input {
    width: 100%;
    padding: 20px;
    border: 1px solid var(--gray-900);
    border-radius: 8px;
    background: var(--white);
    font-family: var(--font-body);
    font-size: var(--fs-paragraph-default);
    color: var(--black);
    outline: none;
    transition: border var(--transition-speed), box-shadow var(--transition-speed);
}

.p4fb-input::placeholder {
    color: var(--black);
}

input.p4fb-input:focus,
input.p4fb-input:active {
    border-color: var(--info-blue) !important;
}

.p4fb-input.is-error,
.p4fb-input.is-error:focus,
.p4fb-input.is-error:active {
    border-color: var(--color-error) !important;
    color: var(--color-error);
}

/* ─── TEXTAREA ───────────────────────────────── */
.p4fb-textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--gray-900);
    border-radius: var(--radius);
    background: var(--white);
    font-family: var(--font-body);
    font-size: var(--fs-body);
    color: var(--black);
    resize: vertical;
    min-height: 80px;
    outline: none;
    transition: border var(--transition-speed), box-shadow var(--transition-speed);
}

.p4fb-textarea:focus {
    border-color: var(--blue-600);
}

.p4fb-textarea.is-error {
    border-color: var(--color-error) !important;
}

/* ─── SELECT ─────────────────────────────────── */
.p4fb-select {
    width: 100%;
    padding: 13px 16px;
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--radius);
    background: var(--white);
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23595959' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    font-family: var(--font-body);
    font-size: var(--fs-body);
    color: var(--black);
    cursor: pointer;
    appearance: none;
    outline: none;
    transition: border var(--transition-speed), box-shadow var(--transition-speed);
}

.p4fb-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(63, 137, 241, 0.15);
}

/* ─── ERROR MESSAGE ──────────────────────────── */
.p4fb-error {
    color: var(--color-error);
    font-size: var(--fs-small);
    margin-top: 5px;
    margin-left: 8px;
}/* ============================================================
   _nav.css — Card Navigation, Buttons, Escape Link,
               Secure Box & Consent
   ============================================================ */

/* ─── CARD NAVIGATION BAR ────────────────────── */
.p4fb-card-nav,
.p4fb-pii-actions {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 32px;
}

@media (min-width: 620px) {

    .p4fb-card-nav,
    .p4fb-pii-actions {
        flex-direction: row;
        margin-top: 48px;
    }
}

/* ─── BACK BUTTON ────────────────────────────── */
.p4fb-btn-back,
.p4fb-pii-btn-back {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 700;
    line-height: var(--lh-default);
    letter-spacing: 0.5px;
    color: var(--black);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.18s;
}

.p4fb-btn-back:hover {
    color: var(--blue-500);
}

.p4fb-btn-back:disabled {
    opacity: 0.35;
    pointer-events: none;
}

.p4fb-btn-back svg path {
    stroke: var(--black);
    stroke-width: 3;
}

.p4fb-btn-back:hover svg path {
    stroke: var(--blue-500);
}

/* ─── NEXT / CONTINUE BUTTON ─────────────────── */
.p4fb-btn-next {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 28px;
    background: var(--color-btn);
    color: white;
    border: none;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.p4fb-btn-next:hover {
    background: var(--color-btn-hover);
}

.p4fb-btn-next:disabled {
    background: var(--color-disabled);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

@media (min-width: 620px) {
    .p4fb-btn-next {
        width: 189px;
    }
}

/* ─── ESCAPE LINK ────────────────────────────── */
.p4fb-escape-link {
    margin-top: 32px;
    font-size: 18px;
    text-align: center;
}

.p4fb-escape-link a {
    font-size: 20px;
    font-weight: 400;
    color: var(--color-link);
    text-decoration: underline;
    transition: color var(--transition-speed);
}

.p4fb-escape-link a:hover {
    color: var(--color-primary);
}

/* ─── SECURE BOX ─────────────────────────────── */
.p4fb-secure-box,
.p4fb-pii-secure {
    background: var(--tan-50);
    border: 1px solid var(--tan-200);
    border-radius: 4px;
    padding: 16px;
    margin-top: 24px;
}

.p4fb-secure-box-title,
.p4fb-pii-secure-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 16px;
    line-height: var(--lh-default);
    color: var(--black);
    margin-bottom: 4px;
}

.p4fb-secure-box-title svg,
.p4fb-pii-secure svg {
    flex-shrink: 0;
}

.p4fb-secure-box-text,
.p4fb-pii-secure-body {
    font-size: 16px;
    color: var(--black);
    line-height: var(--lh-default);
}

/* ─── CONSENT TEXT ───────────────────────────── */
.p4fb-consent {
    margin-top: 12px;
    font-size: 0.7rem;
    color: var(--gray-900);
    line-height: 1.5;
    text-align: center;
}

.p4fb-consent a {
    color: var(--color-link);
}/* ============================================================
   _pii.css — One-Page PII Form (Escape Flow Step 2)
   ============================================================ */

.p4fb-pii-onepage {
    max-width: var(--container-max-w, 960px);
    margin: 0 auto;
    font-family: var(--font-body, inherit);
    color: var(--black);
}

/* ─── Header ─────────────────────────────────── */
.p4fb-pii-onepage-header-ctn {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

/* ─── Appointment summary box ────────────────── */
.p4fb-pii-appt {
    background: var(--tan-100);
    border: 2px solid var(--blue-800);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 40px;
}

.p4fb-pii-appt-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.p4fb-pii-appt-title {
    font-weight: 700;
    font-size: 20px;
    color: var(--black);
    line-height: var(--lh-default);
}

.p4fb-pii-appt-body {
    font-size: 20px;
    font-weight: 400;
    color: var(--black);
    line-height: var(--lh-default);
}

/* ─── Fields ─────────────────────────────────── */
.p4fb-pii-name-row {
    display: grid;
    grid-template-columns: 1fr;
}

.p4fb-pii-field {
    margin-bottom: 10px;
}

.p4fb-pii-input {
    width: 100%;
    padding: 20px;
    border: 1px solid var(--gray-900);
    border-radius: 8px;
    background: var(--white);
    box-sizing: border-box;
}

.p4fb-pii-input,
.p4fb-pii-input::placeholder {
    color: #262626;
    font-family: inherit;
    font-size: 18px;
    font-weight: 400;
    line-height: var(--lh-default);
}

.p4fb-pii-input:focus {
    outline: none;
    border-color: var(--color-primary, #3F89F1);
    box-shadow: 0 0 0 3px var(--color-primary-bg, #E3F0FF);
}

.p4fb-pii-input.is-error {
    border-color: var(--color-error, #D32F2F);
}

.p4fb-pii-error {
    min-height: 1em;
    margin-top: 4px;
    color: var(--color-error, #D32F2F);
    font-size: 0.8rem;
    font-weight: 500;
}

/* ─── Escape link ────────────────────────────── */
.p4fb-pii-escape-link {
    display: none;
    margin: 4px 0 16px;
    color: var(--color-primary, #3F89F1);
    font-size: 0.9rem;
    text-decoration: underline;
    text-align: center;
}

.p4fb-pii-escape-link:hover {
    color: var(--color-btn-hover, #1B6B30);
}

/* ─── SMS consent ────────────────────────────── */
.p4fb-pii-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 24px;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: var(--lh-default);
    color: #1A1A1A;
}

.p4fb-pii-consent:last-of-type {
    margin-bottom: 40px;
}

.p4fb-pii-consent input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 3px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.p4fb-pii-consent-body strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--black, #1B2026);
    margin-bottom: 2px;
}

/* ─── Errors & disclaimers ───────────────────── */
.p4fb-pii-submit-error {
    margin-bottom: 10px;
    color: var(--color-error, #D32F2F);
    font-size: 0.9rem;
    text-align: center;
}

.p4fb-pii-disclaimer {
    margin: 24px auto 0;
    color: var(--gray-900);
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: var(--lh-default) !important;
}

.p4fb-pii-disclaimer a {
    color: var(--color-link);
    text-decoration: underline;
}

.p4fb-pii-disclaimer a:hover {
    color: var(--color-link-hover);
}

/* ─── Dedup notice ───────────────────────────── */
.p4fb-dedup-notice {
    padding: 40px 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
}

.p4fb-dedup-notice p {
    font-size: 1rem;
    color: var(--gray-900);
    margin-bottom: 20px;
}

.p4fb-dedup-retake {
    margin: 0 auto;
}

/* ─── Responsive ─────────────────────────────── */
@media (min-width: 1024px) {
    .p4fb-pii-onepage-header-ctn {
        margin-bottom: 24px;
    }

    .p4fb-pii-appt {
        margin-bottom: 48px;
    }

    .p4fb-pii-name-row {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .p4fb-pii-escape-link {
        text-align: left;
    }

    .p4fb-pii-btn-continue {
        width: auto;
        min-width: 180px;
    }

    .p4fb-pii-btn-back {
        padding: 8px 4px;
        text-align: left;
    }
}/* ============================================================
   _confirmation.css — End Screen, Type A & Type B Confirmations
   ============================================================ */

/* ─── END SCREEN (inline quiz confirmation) ──── */
.p4fb-end-screen {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: p4fb-slideIn 0.3s ease both;
}

.p4fb-end-hero {
    padding: 36px 32px 28px;
    text-align: center;
}

.p4fb-end-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 auto 16px;
}

.p4fb-end-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 8px;
}

.p4fb-end-title {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 10px;
}

.p4fb-end-sub {
    font-size: 0.9rem;
    opacity: 0.85;
    line-height: 1.5;
}

.p4fb-end-body {
    padding: 28px 32px;
    background: var(--white);
}

.p4fb-end-phone {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin: 16px 0;
    text-align: center;
}

.p4fb-end-cta {
    display: block;
    width: 100%;
    padding: 15px 28px;
    background: var(--color-btn);
    color: white;
    border: none;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 3px 12px var(--color-btn-shadow);
    transition: all var(--transition-speed);
}

.p4fb-end-cta:hover {
    background: var(--color-btn-hover);
    transform: translateY(-1px);
}

.p4fb-end-cta-secondary {
    display: block;
    width: 100%;
    margin-top: 16px;
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: var(--color-link);
    text-decoration: underline;
    text-align: center;
    cursor: pointer;
}

.p4fb-end-cta-secondary:hover {
    color: var(--color-primary);
}

@media (max-width: 619px) {
    .p4fb-end-body {
        padding: 20px 18px;
    }
}

/* ============================================================
   TYPE A CONFIRMATION (escape flow)
   ============================================================ */
.p4fb-conf {
    max-width: 992px;
    /* max width + padding calc */
    margin: 0 auto;
    font-family: var(--font-body, inherit);
    color: var(--black);
}

.p4fb-conf .p4fb-callout-banner {
    margin-bottom: 20px;
}

.p4fb-conf-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--blue-500);
    text-transform: uppercase;
    letter-spacing: 1.68px;
    line-height: var(--lh-default);
    margin-bottom: 16px;
    padding-left: 4px;
    padding-bottom: 2px;
    border-left: 2px solid var(--blue-500);
}

.p4fb-conf-headline {
    font-family: var(--font-heading, inherit);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 8px;
}

.p4fb-conf-sub {
    font-size: 18px;
    line-height: var(--lh-default);
    margin: 0 0 32px;
}

/* ─── Appointment details card ───────────────── */
.p4fb-conf-card {
    background: #F8F7F4;
    border: 2px solid var(--blue-800);
    border-radius: 16px;
    padding: 32px 24px;
    margin-bottom: 48px;
}

.p4fb-conf-card-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    color: var(--color-primary, #3F89F1);
}

.p4fb-conf-card-icon {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    color: #162456;
}

.p4fb-conf-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--black);
}

.p4fb-conf-card-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.p4fb-conf-a-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    font-size: 20px;
    line-height: var(--lh-default);
}

.p4fb-conf-a-row-key {
    flex-shrink: 1;
    color: var(--black);
}

.p4fb-conf-a-row-val {
    font-weight: 400;
    color: var(--black);
    text-align: left;
}

.p4fb-conf-card-foot {
    margin-top: 24px;
    font-size: 20px;
    color: var(--black);
}

.p4fb-conf-a-reschedule {
    font-size: 20px;
    line-height: var(--lh-default);
    color: var(--black);
    margin: 0 0 48px;
}

.p4fb-conf-a-reschedule a {
    color: var(--black);
    text-decoration: none;
}

.p4fb-conf-a-reschedule a:hover {
    text-decoration: underline;
}

/* ─── Section titles ─────────────────────────── */
.p4fb-conf-section-title {
    font-family: var(--font-heading, inherit);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--black);
    margin: 0 0 32px;
}

.p4fb-conf-section-title--2 {
    margin-bottom: 16px;
}

/* ─── What to expect grid ────────────────────── */
.p4fb-conf-expect-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    padding-bottom: 48px;
    margin-bottom: 48px;
    border-bottom: 2px solid var(--gray-100);
}

.p4fb-conf-expect-item {
    display: flex;
    flex-direction: row;
    line-height: var(--lh-default);
}

.p4fb-conf-expect-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 4px;
}

.p4fb-conf-expect-arrow {
    margin-right: 8px;
    vertical-align: top;
}

.p4fb-conf-expect-arrow path {
    fill: #1C398E;
}

.p4fb-conf-expect-desc {
    font-size: 18px;
    color: var(--black);
}

/* ─── Stats grid ─────────────────────────────── */
.p4fb-conf-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 8px;
}

.p4fb-conf-stat {
    background: var(--blue-50);
    border-radius: 8px;
    padding: 24px 16px;
    text-align: center;
}

.p4fb-conf-stat-num {
    font-family: var(--font-heading, inherit);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--blue-800);
    margin-bottom: 8px;
}

.p4fb-conf-stat-desc {
    font-size: 18px;
    color: var(--black);
    line-height: var(--lh-default);
}

/* ─── Responsive: Type A ─────────────────────── */
@media (min-width: 620px) {
    .p4fb-conf-headline {
        margin: 0 0 16px;
    }

    .p4fb-conf-sub {
        margin: 0 0 48px;
    }

    .p4fb-conf-sub--2 {
        margin-bottom: 32px;
    }

    .p4fb-conf-card {
        margin-bottom: 48px;
    }

    .p4fb-conf-card-head {
        margin-bottom: 32px;
    }

    .p4fb-conf-card-foot {
        margin-top: 32px;
    }

    .p4fb-conf-a-reschedule {
        margin: 0 0 72px;
    }

    .p4fb-conf-a-row {
        grid-template-columns: 2fr 1fr;
    }
}

@media (min-width: 1024px) {
    .p4fb-conf-headline {
        font-size: 48px;
    }

    .p4fb-conf-card {
        padding: 48px;
    }

    .p4fb-conf-section-title {
        font-size: 32px !important;
    }

    .p4fb-conf-expect-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px 24px;
        padding-bottom: 72px;
        margin-bottom: 72px;
    }

    .p4fb-conf-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .p4fb-conf-stat-num {
        font-size: 32px;
    }

    .p4fb-conf-a-row {
        grid-template-columns: 3fr 1fr;
    }
}

/* ============================================================
   TYPE B CONFIRMATION (normal quiz flow)
   ============================================================ */
.p4fb-conf-b-next-lead {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--black);
    margin: 0 0 14px;
}

.p4fb-conf-b .p4fb-conf-card-title {
    font-family: var(--font-heading);
    font-size: 24px;
    line-height: 1.1;
}

.p4fb-conf-b .p4fb-conf-card-head,
.p4fb-conf-b .p4fb-conf-b-next-lead,
.p4fb-conf-b .p4fb-conf-b-callout {
    margin-bottom: 24px;
}

.p4fb-conf-b .p4fb-conf-sub {
    margin-bottom: 48px;
}

.p4fb-conf-b .p4fb-conf-b-next-lead {
    font-size: 20px;
    line-height: var(--lh-default);
}

/* "Expect a call from" callout */
.p4fb-conf-b-callout {
    background: var(--blue-800);
    color: var(--white);
    border-radius: 8px;
    padding: 16px;
}

.p4fb-conf-b-callout-head {
    align-items: flex-start;
    display: flex;
    flex: 0 0 24px;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    gap: 8px;
    margin-bottom: 8px;
}

.p4fb-conf-b-callout-head svg {
    width: 24px;
    height: 26px;
}

.p4fb-conf-b-callout-body {
    font-size: 18px;
    line-height: 1.6 !important;
    color: var(--blue-100);
    margin: 0;
}

/* ─── "Rather talk now?" row ─────────────────── */
.p4fb-conf-b-talk {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.p4fb-conf-b-talk-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--black);
}

.p4fb-conf-b-talk-sub {
    font-size: 20px;
    color: var(--black);
    line-height: var(--lh-default);
}

.p4fb-conf-b-talk-btn {
    display: inline-block;
    align-self: flex-start;
    width: 100%;
    padding: 14px 28px;
    border-radius: 50px;
    border: 2px solid var(--blue-800);
    background: #fff;
    color: var(--blue-800);
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    line-height: var(--lh-default);
}

.p4fb-conf-b-talk-btn:hover {
    background: #EFF6FF;
    text-decoration: none;
}

/* ─── Responsive: Type B ─────────────────────── */
@media (min-width: 620px) {
    .p4fb-conf-b .p4fb-conf-card {
        margin-bottom: 72px;
    }

    .p4fb-conf-b .p4fb-conf-card-title {
        font-size: 32px;
    }

    .p4fb-conf-b-callout {
        padding: 24px;
    }

    .p4fb-conf-b .p4fb-conf-card-head,
    .p4fb-conf-b .p4fb-conf-b-next-lead,
    .p4fb-conf-b .p4fb-conf-b-callout {
        margin-bottom: 32px;
    }

    .p4fb-conf-b-talk {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .p4fb-conf-b-talk-btn {
        align-self: auto;
        width: fit-content;
        white-space: nowrap;
    }
}/* ============================================================
   _appointment.css — Appointment Scheduler Widget
   Loaded after quiz completion.
   ============================================================ */

/* ─── WIDGET SHELL ───────────────────────────── */
.p4fb-appointment-widget {
    position: relative;
    max-width: 960px;
    margin: 18px auto 24px;
    padding: 24px;
    background: var(--blue-50);
    border: 1px solid var(--blue-800);
    border-radius: 12px;
    font-family: var(--font-body);
    color: var(--black);
    box-sizing: border-box;
}

/* ─── STEPS ──────────────────────────────────── */
.p4fb-appt-step {
    margin-bottom: 12px;
}

.p4fb-appt-step-title {
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    color: #002D62;
    margin-bottom: 12px;
}

/* ─── STEP 1 INPUTS ──────────────────────────── */
.p4fb-appt-step1 input[type="text"],
.p4fb-appt-step1 input[type="email"],
.p4fb-appt-step1 input[type="tel"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font-size: 1rem;
    margin-bottom: 12px;
    box-sizing: border-box;
}

/* ─── PRIMARY BUTTON ─────────────────────────── */
.p4fb-appt-primary-btn {
    width: 100%;
    padding: 14px 28px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 32px;
    transition: all .16s ease;
}

.p4fb-appt-primary-btn:not(:disabled) {
    background: var(--color-btn);
    color: var(--white);
}

.p4fb-appt-primary-btn:not(:disabled):hover {
    background: var(--color-btn-hover);
}

.p4fb-appt-primary-btn:disabled {
    background: var(--color-disabled);
    color: var(--black);
    cursor: not-allowed;
    box-shadow: none;
}

.p4fb-appt-secure-note {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--gray-900);
    text-align: center;
}

/* ─── HEADER AREA ────────────────────────────── */
.p4fb-appt-header-ctn {
    max-width: 960px;
    margin: 0 auto 40px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.p4fb-appt-inner-header-ctn {
    margin-bottom: 32px;
}

.p4fb-appt-inner-header-ctn img {
    max-height: 64px;
    width: auto;
}

/* ─── PROVIDER ROW ───────────────────────────── */
.p4fb-appt-provider-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.p4fb-appt-provider-photo {
    flex-shrink: 0;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e6eefc;
}

.p4fb-appt-provider-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.p4fb-appt-provider-name {
    font-size: 1rem;
    font-weight: 700;
    color: #002D62;
}

.p4fb-appt-provider-title {
    font-weight: 600;
    color: #1E73BE;
    margin-top: 2px;
}

.p4fb-appt-provider-experience,
.p4fb-appt-provider-location,
.p4fb-appt-provider-rating {
    font-size: 0.9rem;
    color: #475569;
    margin-top: 4px;
}

/* ─── INNER CONTAINER ────────────────────────── */
.p4fb-appt-inner-ctn {
    background-color: var(--white);
    padding: 16px;
    border-radius: 16px;
}

/* ─── MONTH CONTROLS ─────────────────────────── */
.p4fb-appt-month-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.p4fb-appt-month-nav {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--blue-600);
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
}

.p4fb-appt-month-label {
    font-size: 18px;
    font-weight: 700;
    color: var(--black);
}

/* ─── BODY ROW (calendar + times side by side) ─ */
.p4fb-appt-body-row {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    flex-wrap: nowrap;
    min-width: 518px;
}

/* ─── CALENDAR ───────────────────────────────── */
.p4fb-appt-calendar-wrap {
    flex: 1 1 50%;
    min-width: 260px;
}

.p4fb-appt-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.p4fb-appt-calendar-grid .weekday {
    font-size: 14px;
    font-weight: 700;
    color: var(--black);
    text-align: center;
}

.p4fb-appt-calendar-grid .day {
    padding: 8px 4px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    background: var(--white);
    color: var(--black);
    font-size: 16px;
    line-height: var(--lh-default);
    text-align: center;
    cursor: pointer;
    transition: all .12s;
}

.p4fb-appt-calendar-grid .day:hover {
    background: var(--blue-100);
    border-color: var(--blue-600);
}

.p4fb-appt-calendar-grid .disabled,
.p4fb-appt-calendar-grid .disabled:hover {
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    color: var(--gray-900);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.p4fb-appt-calendar-grid .selected,
.p4fb-appt-calendar-grid .selected:hover {
    background: var(--blue-800);
    border-color: var(--blue-600);
    color: var(--white);
    font-weight: 700;
}

.p4fb-appt-calendar-grid .today {
    background: var(--white);
    color: var(--black);
    border-color: var(--blue-600);
}

/* ─── TIME SLOTS ─────────────────────────────── */
.p4fb-appt-times-wrap {
    flex: 1 1 50%;
    min-width: 252px;
}

.p4fb-appt-times-title {
    font-family: var(--font-body);
    font-size: var(--fs-small) !important;
    font-weight: 700;
    line-height: var(--lh-default);
    color: var(--black);
    margin: 0 0 8px;
}

.p4fb-appt-times-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 100%;
}

.p4fb-appt-time-slot {
    font-family: var(--font-body);
    padding: 8px 16px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    background: var(--white);
    color: var(--black);
    font-size: 16px;
    font-weight: 400;
    line-height: var(--lh-default);
    cursor: pointer;
    transition: all .12s;
}

.p4fb-appt-time-slot:hover {
    background: var(--blue-100);
    border-color: var(--blue-600);
    color: var(--black);
}

.p4fb-appt-time-slot.selected {
    background: var(--blue-800);
    border-color: var(--blue-600);
    color: var(--white);
}

/* ─── CONFIRM BUTTON ─────────────────────────── */
.p4fb-appt-confirm-btn {
    margin-top: 14px;
}

/* ─── INPUT ERRORS ───────────────────────────── */
.p4fb-appt-input-error {
    color: var(--color-error);
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: -8px;
    margin-bottom: 8px;
}

/* ─── SPINNER OVERLAY ────────────────────────── */
.p4fb-appt-spinner-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.72);
    border-radius: 12px;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}

.p4fb-appt-spinner-overlay.visible {
    opacity: 1;
    pointer-events: all;
}

.p4fb-appt-spinner {
    width: 52px;
    height: 52px;
    border: 6px solid rgba(14, 45, 94, 0.12);
    border-top-color: #1E73BE;
    border-radius: 50%;
    animation: p4fb-appt-spin 0.9s linear infinite;
}

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

/* ─── SUBMIT MODAL ───────────────────────────── */
.p4fb-appt-submit-modal {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(15, 23, 42, 0.25);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    font-family: inherit;
    transition: opacity 0.28s ease;
}

.p4fb-appt-submit-modal.visible {
    opacity: 1;
    pointer-events: all;
}

.p4fb-appt-submit-modal-content {
    background: var(--white);
    padding: 24px 32px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(16, 24, 40, 0.08);
}

.p4fb-appt-submit-modal-content p {
    margin-top: 16px;
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
}

/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 640px) {
    .p4fb-appointment-widget {
        padding: 24px 16px;
    }

    .p4fb-appt-body-row {
        flex-direction: column;
        flex-wrap: wrap;
        min-width: auto;
    }

    .p4fb-appt-calendar-wrap,
    .p4fb-appt-times-wrap {
        flex: 1 1 100%;
        min-width: 100%;
    }

    .p4fb-appt-times-grid {
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
    }
}

@media (min-width: 1024px) {
    .p4fb-appointment-widget {
        padding: 48px;
    }

    .p4fb-appt-body-row {
        gap: 48px;
    }

    .p4fb-appt-inner-ctn {
        padding: 24px;
    }

    .p4fb-appt-inner-header-ctn {
        margin-bottom: 48px;
    }

    .p4fb-appt-times-wrap {
        flex: 1 1 20%;
    }
}