/*
 * BodyCurve Consultation Wizard v5.1.2
 * Targets the existing Gravity Forms CSS class: bodycurve-form
 */

.gform_wrapper.bodycurve-form,
.bodycurve-form {
    --bc-v4-purple: #67446f;
    --bc-v4-purple-dark: #513357;
    --bc-v4-purple-soft: #f7f2f8;
    --bc-v4-purple-line: #e4d8e7;
    --bc-v4-text: #312934;
    --bc-v4-muted: #756b78;
    --bc-v4-field: #fbf9fb;
    --bc-v4-field-border: #d9cedb;
    --bc-v4-white: #ffffff;
    --bc-v4-error: #b23647;
    --bc-v4-body-font: "Poppins", Arial, sans-serif;
    --bc-v4-heading-font: "Abhaya Libre", Georgia, serif;
    color: var(--bc-v4-text);
    font-family: var(--bc-v4-body-font) !important;
}

.gform_wrapper.bodycurve-form.bc-v4-ready form,
.bodycurve-form.bc-v4-ready form {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 30px 0 42px !important;
}

.gform_wrapper.bodycurve-form.bc-v4-ready .gform_heading,
.bodycurve-form.bc-v4-ready .gform_heading {
    display: none !important;
}

.gform_wrapper.bodycurve-form.bc-v4-ready .bc-v4-original-section,
.bodycurve-form.bc-v4-ready .bc-v4-original-section,
.gform_wrapper.bodycurve-form.bc-v4-ready .bc-v4-legacy-summary-hidden,
.bodycurve-form.bc-v4-ready .bc-v4-legacy-summary-hidden {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
}

.gform_wrapper.bodycurve-form.bc-v4-ready .bc-v4-field-hidden,
.bodycurve-form.bc-v4-ready .bc-v4-field-hidden {
    display: none !important;
}



/*
 * Boot cloak
 * ----------
 * Gravity + the existing booking connector can render their original one-page
 * markup before the wizard JavaScript has finished initialising. Keep the form
 * invisible for that tiny bootstrap window so the legacy callback card cannot
 * flash on screen. A 1.5s failsafe reveals the normal form if JavaScript ever
 * fails completely.
 */
@keyframes bc-v4-failsafe-reveal {
    to {
        opacity: 1;
        visibility: visible;
    }
}

.gform_wrapper.bodycurve-form_wrapper:not(.bc-v4-ready) {
    opacity: 0;
    visibility: hidden;
    animation: bc-v4-failsafe-reveal 0s linear 1.5s forwards;
}

.gform_wrapper.bodycurve-form_wrapper.bc-v4-ready {
    opacity: 1;
    visibility: visible;
    animation: none;
}



/* ---------- Typography sync ---------- */
/*
 * The wizard is injected outside Elementor's normal widget classes, so Gravity
 * Forms/browser defaults can otherwise give it a visibly different typeface.
 * JS reads the live BodyCurve page fonts and exposes them via the variables
 * above; these rules make every wizard control follow those fonts.
 */
.gform_wrapper.bodycurve-form.bc-v4-ready,
.gform_wrapper.bodycurve-form.bc-v4-ready .bc-v4-shell,
.gform_wrapper.bodycurve-form.bc-v4-ready .bc-v4-nav,
.gform_wrapper.bodycurve-form.bc-v4-ready .bc-v4-asap,
.gform_wrapper.bodycurve-form.bc-v4-ready .gfield,
.gform_wrapper.bodycurve-form.bc-v4-ready label,
.gform_wrapper.bodycurve-form.bc-v4-ready input,
.gform_wrapper.bodycurve-form.bc-v4-ready select,
.gform_wrapper.bodycurve-form.bc-v4-ready textarea,
.gform_wrapper.bodycurve-form.bc-v4-ready button,
.bodycurve-form.bc-v4-ready,
.bodycurve-form.bc-v4-ready label,
.bodycurve-form.bc-v4-ready input,
.bodycurve-form.bc-v4-ready select,
.bodycurve-form.bc-v4-ready textarea,
.bodycurve-form.bc-v4-ready button {
    font-family: var(--bc-v4-body-font) !important;
}

/* ---------- Progress ---------- */

.bodycurve-form .bc-v4-shell {
    margin: 0 0 26px;
    scroll-margin-top: 110px;
}

.bodycurve-form .bc-v4-progress {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 660px;
    position: relative;
    margin: 0 0 34px;
}

.bodycurve-form .bc-v4-progress-line {
    background: var(--bc-v4-purple-line);
    height: 2px;
    left: 26px;
    position: absolute;
    right: 26px;
    top: 20px;
    z-index: 0;
}

.bodycurve-form .bc-v4-progress-step {
    align-items: center;
    color: var(--bc-v4-muted);
    display: flex;
    gap: 9px;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.bodycurve-form .bc-v4-progress-step:nth-of-type(3) {
    justify-content: center;
}

.bodycurve-form .bc-v4-progress-step:nth-of-type(4) {
    justify-content: flex-end;
}

.bodycurve-form .bc-v4-progress-number {
    align-items: center;
    background: var(--bc-v4-white);
    border: 2px solid var(--bc-v4-purple-line);
    border-radius: 999px;
    display: inline-flex;
    flex: 0 0 40px;
    font-size: 14px;
    font-weight: 700;
    height: 40px;
    justify-content: center;
    transition: 180ms ease;
    width: 40px;
}

.bodycurve-form .bc-v4-progress-label {
    background: var(--bc-v4-white);
    font-size: 15px;
    font-weight: 600;
    padding: 3px 6px;
    white-space: nowrap;
}

.bodycurve-form .bc-v4-progress-step.is-active {
    color: var(--bc-v4-purple-dark);
}

.bodycurve-form .bc-v4-progress-step.is-active .bc-v4-progress-number {
    background: var(--bc-v4-purple);
    border-color: var(--bc-v4-purple);
    box-shadow: 0 7px 18px rgba(103, 68, 111, 0.20);
    color: #fff;
}

.bodycurve-form .bc-v4-progress-step.is-complete .bc-v4-progress-number {
    background: var(--bc-v4-purple-soft);
    border-color: var(--bc-v4-purple);
    color: var(--bc-v4-purple);
}

/* ---------- Heading ---------- */

.bodycurve-form .bc-v4-heading-wrap {
    margin: 0 0 20px;
    max-width: 880px;
}

.bodycurve-form .bc-v4-kicker {
    color: var(--bc-v4-purple);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.bodycurve-form .bc-v4-heading {
    color: var(--bc-v4-purple-dark) !important;
    font-family: var(--bc-v4-heading-font) !important;
    font-size: clamp(30px, 3vw, 42px) !important;
    font-weight: 500 !important;
    letter-spacing: -.02em;
    line-height: 1.08;
    margin: 0 0 8px !important;
    outline: none;
}

.bodycurve-form .bc-v4-intro {
    color: var(--bc-v4-muted);
    font-size: 17px;
    line-height: 1.55;
    margin: 0;
}

/* ---------- Compact live summary ---------- */

.bodycurve-form .bc-v4-summary {
    background: var(--bc-v4-purple-soft);
    border: 1px solid var(--bc-v4-purple-line);
    border-radius: 14px;
    margin: 0 0 28px;
    padding: 16px 18px 17px;
}

.bodycurve-form .bc-v4-summary-title {
    color: var(--bc-v4-purple-dark);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .065em;
    margin-bottom: 11px;
    text-transform: uppercase;
}

.bodycurve-form .bc-v4-summary-grid {
    display: grid;
    gap: 12px 18px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bodycurve-form .bc-v4-summary-item {
    min-width: 0;
}

.bodycurve-form .bc-v4-summary-label {
    color: var(--bc-v4-muted);
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 2px;
}

.bodycurve-form .bc-v4-summary-value {
    color: var(--bc-v4-text);
    display: block;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.bodycurve-form .bc-v4-summary-item.is-muted {
    opacity: .46;
}

/* ---------- Form fields ---------- */

.gform_wrapper.bodycurve-form.bc-v4-ready .gform_fields,
.bodycurve-form.bc-v4-ready .gform_fields {
    column-gap: 18px !important;
    row-gap: 16px !important;
}

.gform_wrapper.bodycurve-form.bc-v4-ready .gfield,
.bodycurve-form.bc-v4-ready .gfield {
    animation: none !important;
    margin-bottom: 0 !important;
    opacity: 1 !important;
    transform: none !important;
}

.gform_wrapper.bodycurve-form.bc-v4-ready .gfield_label,
.gform_wrapper.bodycurve-form.bc-v4-ready .gform-field-label,
.bodycurve-form.bc-v4-ready .gfield_label,
.bodycurve-form.bc-v4-ready .gform-field-label {
    color: var(--bc-v4-text) !important;
    font-size: 16px !important;
    font-weight: 650 !important;
    line-height: 1.35 !important;
    margin-bottom: 7px !important;
}

.gform_wrapper.bodycurve-form.bc-v4-ready input[type="text"],
.gform_wrapper.bodycurve-form.bc-v4-ready input[type="email"],
.gform_wrapper.bodycurve-form.bc-v4-ready input[type="tel"],
.gform_wrapper.bodycurve-form.bc-v4-ready input[type="number"],
.gform_wrapper.bodycurve-form.bc-v4-ready input[type="url"],
.gform_wrapper.bodycurve-form.bc-v4-ready select,
.gform_wrapper.bodycurve-form.bc-v4-ready textarea,
.bodycurve-form.bc-v4-ready input[type="text"],
.bodycurve-form.bc-v4-ready input[type="email"],
.bodycurve-form.bc-v4-ready input[type="tel"],
.bodycurve-form.bc-v4-ready input[type="number"],
.bodycurve-form.bc-v4-ready input[type="url"],
.bodycurve-form.bc-v4-ready select,
.bodycurve-form.bc-v4-ready textarea {
    background-color: var(--bc-v4-field) !important;
    border: 1px solid var(--bc-v4-field-border) !important;
    border-bottom: 2px solid #cab9ce !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    color: var(--bc-v4-text) !important;
    font-size: 17px !important;
    min-height: 62px !important;
    padding: 15px 18px !important;
    transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease !important;
}

.gform_wrapper.bodycurve-form.bc-v4-ready input:focus,
.gform_wrapper.bodycurve-form.bc-v4-ready select:focus,
.gform_wrapper.bodycurve-form.bc-v4-ready textarea:focus,
.bodycurve-form.bc-v4-ready input:focus,
.bodycurve-form.bc-v4-ready select:focus,
.bodycurve-form.bc-v4-ready textarea:focus {
    background: #fff !important;
    border-color: var(--bc-v4-purple) !important;
    box-shadow: 0 0 0 3px rgba(103, 68, 111, .09) !important;
    outline: 0 !important;
    transform: none !important;
}

.gform_wrapper.bodycurve-form.bc-v4-ready .gfield_required,
.bodycurve-form.bc-v4-ready .gfield_required {
    color: var(--bc-v4-error) !important;
    font-size: 11px !important;
}

.bodycurve-form .bc-v4-field-error select,
.bodycurve-form .bc-v4-field-error input,
.bodycurve-form .bc-v4-field-error textarea {
    border-color: var(--bc-v4-error) !important;
}

.bodycurve-form .bc-v4-error {
    color: var(--bc-v4-error);
    font-size: 13px;
    font-weight: 600;
    margin-top: 6px;
}

/* ---------- Booking date/time cards from the existing connector ---------- */
/* These selectors intentionally cover common button/card structures without
   changing the underlying callback date/time values used by Zoho. */

.bodycurve-form .bc-v4-step-2 .gfield button:not(.bc-v4-button),
.bodycurve-form .bc-v4-step-2 .gfield [role="button"] {
    border-radius: 12px !important;
    min-height: 54px;
}

.bodycurve-form .bc-v4-step-2 .gfield button:not(.bc-v4-button):focus-visible,
.bodycurve-form .bc-v4-step-2 .gfield [role="button"]:focus-visible {
    outline: 3px solid rgba(103, 68, 111, .22) !important;
    outline-offset: 2px;
}



/* ---------- ASAP callback option ---------- */

.bodycurve-form .bc-v4-asap {
    align-self: stretch !important;
    box-sizing: border-box;
    display: none !important;
    gap: 10px !important;
    grid-column: 1 / -1 !important;
    margin: 0 0 18px !important;
    max-width: none !important;
    padding: 0 !important;
    width: 100% !important;
}

/* The callback choice belongs to Step 2 only. Keeping this in CSS prevents
   theme/utility !important rules from making it leak onto Step 1 or Step 3. */
.bodycurve-form.bc-v4-step-2 .bc-v4-asap {
    display: grid !important;
}

.bodycurve-form .bc-v4-call-option {
    align-items: flex-start !important;
    background: #fff;
    border: 1px solid var(--bc-v4-purple-line);
    border-radius: 12px;
    box-sizing: border-box;
    cursor: pointer;
    display: flex !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 15px 16px !important;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
    width: 100% !important;
}

.bodycurve-form .bc-v4-call-option:hover {
    border-color: rgba(103, 68, 111, .45);
}

.bodycurve-form .bc-v4-call-option.is-selected {
    background: var(--bc-v4-purple-soft);
    border-color: var(--bc-v4-purple);
    box-shadow: 0 0 0 2px rgba(103, 68, 111, .08);
}

.bodycurve-form .bc-v4-call-choice {
    accent-color: var(--bc-v4-purple);
    appearance: auto !important;
    flex: 0 0 20px !important;
    height: 20px !important;
    margin: 2px 0 0 !important;
    min-height: 20px !important;
    padding: 0 !important;
    width: 20px !important;
}

.bodycurve-form .bc-v4-call-option-copy {
    display: block;
    min-width: 0;
}

.bodycurve-form .bc-v4-asap-title,
.bodycurve-form .bc-v4-specific-title {
    color: var(--bc-v4-purple-dark);
    display: block;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.bodycurve-form .bc-v4-asap-subtitle,
.bodycurve-form .bc-v4-specific-subtitle {
    color: var(--bc-v4-muted);
    display: block;
    font-size: 14px;
    line-height: 1.45;
    margin-top: 3px;
}

.bodycurve-form .bc-v4-asap-status {
    display: block;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    margin-top: 7px;
}

.bodycurve-form .bc-v4-asap-status.is-working {
    color: var(--bc-v4-muted);
}

.bodycurve-form .bc-v4-asap-status.is-success {
    color: var(--bc-v4-purple-dark);
}

.bodycurve-form .bc-v4-asap-status.is-error {
    color: var(--bc-v4-error);
}

/* Once ASAP has successfully chosen a real date/time, hide the manual grids.
   The underlying Gravity Forms values remain selected and are what Zoho receives. */
.bodycurve-form.bc-v4-asap-active.bc-v4-step-2 .gfield[data-bc-v4-step="2"],
.bodycurve-form.bc-v4-asap-pending.bc-v4-step-2 .gfield[data-bc-v4-step="2"] {
    display: none !important;
}

.bodycurve-form .bc-v4-summary-hidden {
    display: none !important;
}

.bodycurve-form .bc-v4-summary-wide {
    grid-column: span 2;
}

@media (max-width: 720px) {
    .bodycurve-form .bc-v4-summary-wide {
        grid-column: auto;
    }
}

/* ---------- Navigation ---------- */

.bodycurve-form .bc-v4-nav,
.gform_wrapper.bodycurve-form.bc-v4-ready .gform_footer,
.bodycurve-form.bc-v4-ready .gform_footer {
    align-items: center !important;
    display: flex;
    flex-wrap: wrap;
    gap: 11px !important;
    justify-content: flex-start !important;
    margin: 24px 0 0 !important;
    padding: 0 !important;
    text-align: left !important;
}

.gform_wrapper.bodycurve-form.bc-v4-ready .gform_footer,
.bodycurve-form.bc-v4-ready .gform_footer {
    display: none !important;
}

.gform_wrapper.bodycurve-form.bc-v4-ready .gform_footer.bc-v4-footer-active,
.bodycurve-form.bc-v4-ready .gform_footer.bc-v4-footer-active {
    display: flex !important;
}

.bodycurve-form .bc-v4-button,
.gform_wrapper.bodycurve-form.bc-v4-ready .gform_button,
.gform_wrapper.bodycurve-form.bc-v4-ready input[type="submit"],
.gform_wrapper.bodycurve-form.bc-v4-ready button[type="submit"],
.bodycurve-form.bc-v4-ready .gform_button,
.bodycurve-form.bc-v4-ready input[type="submit"],
.bodycurve-form.bc-v4-ready button[type="submit"] {
    align-items: center;
    border-radius: 12px !important;
    box-shadow: none !important;
    cursor: pointer;
    display: inline-flex;
    font-family: inherit;
    font-size: 16px !important;
    font-weight: 700 !important;
    justify-content: center;
    letter-spacing: 0 !important;
    line-height: 1;
    min-height: 52px !important;
    padding: 0 24px !important;
    text-transform: none !important;
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease !important;
    width: auto !important;
}

.bodycurve-form .bc-v4-button-primary,
.gform_wrapper.bodycurve-form.bc-v4-ready .gform_button,
.gform_wrapper.bodycurve-form.bc-v4-ready input[type="submit"],
.gform_wrapper.bodycurve-form.bc-v4-ready button[type="submit"],
.bodycurve-form.bc-v4-ready .gform_button,
.bodycurve-form.bc-v4-ready input[type="submit"],
.bodycurve-form.bc-v4-ready button[type="submit"] {
    background: var(--bc-v4-purple) !important;
    border: 1px solid var(--bc-v4-purple) !important;
    color: #fff !important;
}

.bodycurve-form .bc-v4-button-primary:hover,
.gform_wrapper.bodycurve-form.bc-v4-ready .gform_button:hover,
.gform_wrapper.bodycurve-form.bc-v4-ready input[type="submit"]:hover,
.gform_wrapper.bodycurve-form.bc-v4-ready button[type="submit"]:hover,
.bodycurve-form.bc-v4-ready .gform_button:hover,
.bodycurve-form.bc-v4-ready input[type="submit"]:hover,
.bodycurve-form.bc-v4-ready button[type="submit"]:hover {
    background: var(--bc-v4-purple-dark) !important;
    border-color: var(--bc-v4-purple-dark) !important;
    transform: translateY(-1px) !important;
}

.bodycurve-form .bc-v4-button-secondary {
    background: #fff !important;
    border: 1px solid #cdbfd0 !important;
    color: var(--bc-v4-purple-dark) !important;
}

.bodycurve-form .bc-v4-button-secondary:hover {
    background: var(--bc-v4-purple-soft) !important;
    border-color: var(--bc-v4-purple) !important;
}

/* ---------- Privacy ---------- */

.gform_wrapper.bodycurve-form.bc-v4-ready input[type="checkbox"],
.bodycurve-form.bc-v4-ready input[type="checkbox"] {
    accent-color: var(--bc-v4-purple);
}

/* ---------- Gravity validation ---------- */

.gform_wrapper.bodycurve-form.bc-v4-ready .gform_validation_errors,
.bodycurve-form.bc-v4-ready .gform_validation_errors {
    background: #fff7f8 !important;
    border: 1px solid #eccfd4 !important;
    border-left: 4px solid var(--bc-v4-error) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    margin: 0 0 22px !important;
    padding: 16px 18px !important;
}

.gform_wrapper.bodycurve-form.bc-v4-ready .validation_message,
.bodycurve-form.bc-v4-ready .validation_message {
    color: var(--bc-v4-error) !important;
    font-size: 13px !important;
    margin-top: 6px !important;
}

/* ---------- Safety: native Page fields should be removed ---------- */

.bodycurve-form.bc-v4-native-pages-detected::before {
    background: #fff6d9;
    border: 1px solid #e2c66b;
    border-radius: 8px;
    color: #5f4b08;
    content: "BodyCurve Wizard v4: remove the Gravity Forms Page fields before using this module.";
    display: block;
    font-size: 14px;
    margin: 12px 0;
    padding: 12px 14px;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
    .bodycurve-form .bc-v4-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .gform_wrapper.bodycurve-form.bc-v4-ready form,
    .bodycurve-form.bc-v4-ready form {
        padding: 22px 0 34px !important;
    }

    .bodycurve-form .bc-v4-progress {
        margin-bottom: 26px;
    }

    .bodycurve-form .bc-v4-progress-label {
        display: none;
    }

    .bodycurve-form .bc-v4-progress-step:nth-of-type(3) {
        justify-content: center;
    }

    .bodycurve-form .bc-v4-progress-step:nth-of-type(4) {
        justify-content: flex-end;
    }

    .bodycurve-form .bc-v4-heading {
        font-size: 30px !important;
    }

    .bodycurve-form .bc-v4-intro {
        font-size: 16px;
    }

    .bodycurve-form .bc-v4-summary {
        padding: 14px;
    }

    .bodycurve-form .bc-v4-summary-grid {
        gap: 10px 14px;
        grid-template-columns: 1fr 1fr;
    }

    .bodycurve-form .bc-v4-summary-value {
        font-size: 14px;
    }

    .gform_wrapper.bodycurve-form.bc-v4-ready input[type="text"],
    .gform_wrapper.bodycurve-form.bc-v4-ready input[type="email"],
    .gform_wrapper.bodycurve-form.bc-v4-ready input[type="tel"],
    .gform_wrapper.bodycurve-form.bc-v4-ready select,
    .gform_wrapper.bodycurve-form.bc-v4-ready textarea,
    .bodycurve-form.bc-v4-ready input[type="text"],
    .bodycurve-form.bc-v4-ready input[type="email"],
    .bodycurve-form.bc-v4-ready input[type="tel"],
    .bodycurve-form.bc-v4-ready select,
    .bodycurve-form.bc-v4-ready textarea {
        font-size: 16px !important;
        min-height: 58px !important;
        padding: 13px 15px !important;
    }

    .bodycurve-form .bc-v4-button,
    .gform_wrapper.bodycurve-form.bc-v4-ready .gform_button,
    .gform_wrapper.bodycurve-form.bc-v4-ready input[type="submit"],
    .bodycurve-form.bc-v4-ready .gform_button,
    .bodycurve-form.bc-v4-ready input[type="submit"] {
        min-height: 50px !important;
        padding: 0 20px !important;
    }
}

@media (max-width: 430px) {
    .bodycurve-form .bc-v4-summary-grid {
        grid-template-columns: 1fr;
    }

    .bodycurve-form .bc-v4-summary-item.is-muted {
        display: none;
    }
}


/* ---------- Step 3 reassurance ---------- */

.bodycurve-form .bc-v4-privacy-note {
    align-items: flex-start;
    background: #faf7fb;
    border: 1px solid var(--bc-v4-purple-line);
    border-radius: 12px;
    color: var(--bc-v4-muted);
    display: flex;
    font-size: 14px;
    gap: 10px;
    grid-column: 1 / -1 !important;
    line-height: 1.45;
    margin: 0 0 4px;
    padding: 12px 14px;
    width: 100%;
}

.bodycurve-form .bc-v4-privacy-icon {
    align-items: center;
    background: var(--bc-v4-purple-soft);
    border-radius: 999px;
    color: var(--bc-v4-purple);
    display: inline-flex;
    flex: 0 0 22px;
    font-size: 12px;
    font-weight: 800;
    height: 22px;
    justify-content: center;
    margin-top: 1px;
    width: 22px;
}

/* ---------- Confirmation page shortcode ---------- */

.bc-confirmation-card {
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid #e4d8e7;
    border-radius: 18px;
    box-shadow: 0 12px 38px rgba(71, 45, 76, 0.08);
    display: flex;
    gap: 18px;
    margin: 20px auto;
    max-width: 820px;
    padding: 28px;
}

.bc-confirmation-tick {
    align-items: center;
    background: #f7f2f8;
    border-radius: 999px;
    color: #67446f;
    display: flex;
    flex: 0 0 48px;
    font-size: 24px;
    font-weight: 800;
    height: 48px;
    justify-content: center;
    width: 48px;
}

.bc-confirmation-content {
    min-width: 0;
}

.bc-confirmation-kicker {
    color: #67446f;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.bc-confirmation-card h2 {
    color: #513357;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.1;
    margin: 0 0 12px;
}

.bc-confirmation-slot {
    color: #312934;
    font-size: 18px;
    line-height: 1.55;
    margin: 0 0 20px;
}

.bc-confirmation-next {
    background: #faf7fb;
    border-radius: 12px;
    margin-bottom: 16px;
    padding: 16px 18px;
}

.bc-confirmation-next h3 {
    color: #513357;
    font-size: 17px;
    margin: 0 0 6px;
}

.bc-confirmation-next p,
.bc-confirmation-small {
    color: #756b78;
    line-height: 1.55;
    margin: 0;
}

.bc-confirmation-small {
    font-size: 14px;
}

@media (max-width: 600px) {
    .bc-confirmation-card {
        display: block;
        padding: 22px 18px;
    }

    .bc-confirmation-tick {
        margin-bottom: 14px;
    }
}


/* ---------- v4.2.2 validation-return tidy-up ---------- */

.gform_wrapper.bodycurve-form.bc-v4-ready .gform_validation_errors,
.bodycurve-form.bc-v4-ready .gform_validation_errors {
    max-width: none !important;
}

.gform_wrapper.bodycurve-form.bc-v4-ready .gform_validation_errors > h2,
.bodycurve-form.bc-v4-ready .gform_validation_errors > h2 {
    font-size: 15px !important;
    line-height: 1.45 !important;
    margin: 0 !important;
}

/* When the legacy booking validator returns a stale-slot message, keep it
   compact while the wizard restores Step 2 / retries ASAP. */
.bodycurve-form.bc-v4-ready [class*="booking"][class*="error"],
.bodycurve-form.bc-v4-ready [class*="callback"][class*="error"] {
    box-sizing: border-box;
    max-width: 100%;
}


/* ---------- Canonical form jump target ---------- */

.bc-callback-anchor {
    display: block;
    height: 0;
    position: relative;
    scroll-margin-top: 100px;
    width: 100%;
}

/* ---------- Mobile procedure-page callback CTA ---------- */

.bc-mobile-callback-cta {
    display: none;
}

@media (max-width: 767px) {
    .bc-mobile-callback-cta {
        align-items: center;
        background: #67446f;
        border: 1px solid rgba(255,255,255,.18);
        border-radius: 14px;
        bottom: calc(12px + env(safe-area-inset-bottom));
        box-shadow: 0 12px 28px rgba(44, 26, 48, .24);
        color: #fff !important;
        display: flex;
        flex-direction: column;
        gap: 1px;
        left: 12px;
        opacity: 0;
        padding: 12px 16px 11px;
        pointer-events: none;
        position: fixed;
        right: 12px;
        text-align: center;
        text-decoration: none !important;
        transform: translateY(18px);
        transition: opacity 180ms ease, transform 180ms ease, background-color 160ms ease;
        z-index: 9997;
    }

    .bc-mobile-callback-cta.is-visible {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .bc-mobile-callback-cta:hover,
    .bc-mobile-callback-cta:focus {
        background: #513357;
        color: #fff !important;
    }

    .bc-mobile-callback-cta-main {
        display: block;
        font-size: 16px;
        font-weight: 750;
        line-height: 1.25;
    }

    .bc-mobile-callback-cta-sub {
        display: block;
        font-size: 12px;
        line-height: 1.3;
        opacity: .86;
    }
}

/* ---------- Guide-download follow-up ---------- */

.bc-guide-callback-prompt {
    align-items: center;
    background: #f7f2f8;
    border: 1px solid #e4d8e7;
    border-radius: 14px;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-top: 18px;
    padding: 16px 18px;
}

.bc-guide-callback-copy {
    color: #756b78;
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.45;
}

.bc-guide-callback-copy strong {
    color: #513357;
    font-size: 16px;
}

.bc-guide-callback-copy span {
    font-size: 14px;
}

.bc-guide-callback-button {
    background: #67446f;
    border: 1px solid #67446f;
    border-radius: 10px;
    color: #fff !important;
    flex: 0 0 auto;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    padding: 13px 16px;
    text-decoration: none !important;
}

.bc-guide-callback-button:hover,
.bc-guide-callback-button:focus {
    background: #513357;
    border-color: #513357;
    color: #fff !important;
}

@media (max-width: 640px) {
    .bc-guide-callback-prompt {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .bc-guide-callback-button {
        text-align: center;
    }
}
