/**
 *  ____                _        ____
 * |  _ \ _ __ ___  ___| |_ __ _|  _ \  _____   __
 * | |_) | '__/ _ \/ __| __/ _` | | | |/ _ \ \ / /
 * |  __/| | |  __/\__ \ || (_| | |_| |  __/\ V /
 * |_|   |_|  \___||___/\__\__,_|____/ \___| \_/
 *
 * PrestaDev.pl - PD Callback Pro
 *
 * NOTICE OF LICENSE
 *
 * This source file is licensed under the PrestaDev Proprietary License
 * shipped with this package in the file LICENSE.md.
 * If you did not receive a copy of the license, please contact: info@prestadev.pl
 *
 * Skin 4 — Trust Card (B2B Premium).
 * Two-column 820px modal: dark left panel (always dark) + light/dark right
 * form column. Lime #A7C239 accent on modal border-top, FAB border-top and
 * primary button.
 *
 * All rules are scoped under:
 *   #pdcallbackpro_modal.pdcbp-skin-skin4
 *   #pdcallbackpro_widget_btn.pdcbp-skin-skin4
 *
 * Dark mode (data-pdcbp-theme="dark") affects the RIGHT form column only —
 * the left panel is always dark by design. Custom properties drive theming.
 *
 * @author    Patryk Marek <info@prestadev.pl>
 * @copyright 2012-2026 Patryk Marek - PrestaDev.pl
 *
 * @see      https://prestadev.pl
 *
 * @version   2.3.0
 *
 * @license   PrestaDev.pl Patryk Marek Proprietary License
 *
 * @date      2026-04-10
 */

/* ============================================================
   Design tokens — LIGHT (default)
   ============================================================ */
#pdcallbackpro_modal.pdcbp-skin-skin4,
#pdcallbackpro_widget_btn.pdcbp-skin-skin4 {
    --pdcbp-s4-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

    /* Always-dark left panel tokens */
    --pdcbp-s4-dark-panel: #18212f;
    --pdcbp-s4-dark-panel-2: #0f172a;
    --pdcbp-s4-dark-text: #f1f5f9;
    --pdcbp-s4-dark-text-muted: #94a3b8;
    --pdcbp-s4-dark-border: rgba(255, 255, 255, .08);
    --pdcbp-s4-dark-border-soft: rgba(255, 255, 255, .05);
    --pdcbp-s4-dark-tint: rgba(167, 194, 57, .15);

    /* Right panel — LIGHT tokens */
    --pdcbp-s4-surface: #ffffff;
    --pdcbp-s4-text: #18212f;
    --pdcbp-s4-text-strong: #0f172a;
    --pdcbp-s4-text-muted: #64748b;
    --pdcbp-s4-border: #e2e8f0;
    --pdcbp-s4-input-bg: #f8fafc;
    --pdcbp-s4-input-border: #e2e8f0;

    /* Lime accent — shared */
    --pdcbp-s4-primary: #A7C239;
    --pdcbp-s4-primary-hover: #8FA82E;
    --pdcbp-s4-primary-dark: #6B7D1E;
    --pdcbp-s4-primary-light: #F3F7E0;
    --pdcbp-s4-primary-text: #ffffff;

    /* Feedback */
    --pdcbp-s4-danger: #dc2626;
    --pdcbp-s4-danger-bg: #fef2f2;
    --pdcbp-s4-danger-border: #fecaca;

    /* Overlay / shadow */
    --pdcbp-s4-overlay: rgba(15, 23, 42, .6);
    --pdcbp-s4-shadow: 0 30px 80px rgba(15, 23, 42, .25);
    --pdcbp-s4-shadow-sm: 0 14px 40px rgba(15, 23, 42, .3), 0 4px 12px rgba(0, 0, 0, .15);
    --pdcbp-s4-shadow-primary: 0 6px 16px rgba(167, 194, 57, .25);
}

/* ============================================================
   Design tokens — DARK mode (right column)
   Left panel stays dark regardless; we slightly deepen it.
   ============================================================ */
#pdcallbackpro_modal.pdcbp-skin-skin4 .modal-dialog[data-pdcbp-theme="dark"],
#pdcallbackpro_widget_btn.pdcbp-skin-skin4[data-pdcbp-theme="dark"] {
    --pdcbp-s4-dark-panel: #0a0e18;
    --pdcbp-s4-dark-panel-2: #050810;

    --pdcbp-s4-surface: #131a26;
    --pdcbp-s4-text: #f1f5f9;
    --pdcbp-s4-text-strong: #f8fafc;
    --pdcbp-s4-text-muted: #94a3b8;
    --pdcbp-s4-border: #1e293b;
    --pdcbp-s4-input-bg: #1a2332;
    --pdcbp-s4-input-border: #334155;

    --pdcbp-s4-primary-hover: #BDD860;
    --pdcbp-s4-primary-light: #141A08;
    --pdcbp-s4-primary-text: #2E3A0A;

    --pdcbp-s4-danger: #f87171;
    --pdcbp-s4-danger-bg: #1a0f0f;
    --pdcbp-s4-danger-border: #4c1d1d;

    --pdcbp-s4-overlay: rgba(0, 0, 0, .8);
    --pdcbp-s4-shadow: 0 30px 80px rgba(0, 0, 0, .7);
}

/* ============================================================
   FAB — pill dark with lime accent border-top
   ============================================================ */
#pdcallbackpro_widget_btn.pdcbp-skin-skin4 {
    position: fixed;
    z-index: 1040;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px 16px 20px;
    background: var(--pdcbp-s4-dark-panel);
    color: var(--pdcbp-s4-dark-text);
    font-family: var(--pdcbp-s4-font);
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
    border-radius: 10px;
    border: 1px solid var(--pdcbp-s4-dark-border);
    border-top: 3px solid var(--pdcbp-s4-primary);
    box-shadow: var(--pdcbp-s4-shadow-sm);
    cursor: pointer;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

#pdcallbackpro_widget_btn.pdcbp-skin-skin4:hover,
#pdcallbackpro_widget_btn.pdcbp-skin-skin4:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 20px 50px rgba(15, 23, 42, .4);
    outline: none;
}

#pdcallbackpro_widget_btn.pdcbp-skin-skin4:focus-visible {
    box-shadow: 0 20px 50px rgba(15, 23, 42, .4),
                0 0 0 3px rgba(167, 194, 57, .35);
}

/* Skin 4 pill is a single dark card with inner flex children. Background
   and border are carried by the parent #pdcallbackpro_widget_btn.pdcbp-
   skin-skin4 rule; both children must stay visually transparent. The
   per-shop front_dynamic_<id_shop>.css does NOT emit background/border
   rules for Skin 4 (generateCss() is skin-aware since v2.4.0), so no
   !important is needed here. */
#pdcallbackpro_widget_btn.pdcbp-skin-skin4 .widget-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: var(--pdcbp-s4-primary);
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
}

#pdcallbackpro_widget_btn.pdcbp-skin-skin4 .widget-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

#pdcallbackpro_widget_btn.pdcbp-skin-skin4 .widget-info {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    position: static;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background: transparent;
    border: none;
    padding: 0;
    transform: none;
    box-shadow: none;
    color: inherit;
}

#pdcallbackpro_widget_btn.pdcbp-skin-skin4 .widget-info strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--pdcbp-s4-dark-text);
}

#pdcallbackpro_widget_btn.pdcbp-skin-skin4 .widget-info small {
    display: block;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--pdcbp-s4-dark-text-muted);
}

/* Trigger-mode visibility — front.js flips these classes */
#pdcallbackpro_widget_btn.pdcbp-skin-skin4.pdcallbackpro-widget-hidden,
#pdcallbackpro_widget_btn.pdcbp-skin-skin4.pdcallbackpro-widget-pending {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(0, 18px, 0);
}

#pdcallbackpro_widget_btn.pdcbp-skin-skin4.pdcallbackpro-widget-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
}

#pdcallbackpro_widget_btn.pdcbp-skin-skin4[data-trigger-mode="delay"],
#pdcallbackpro_widget_btn.pdcbp-skin-skin4[data-trigger-mode="scroll"] {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(0, 18px, 0);
}

#pdcallbackpro_widget_btn.pdcbp-skin-skin4[data-trigger-mode="delay"].pdcallbackpro-widget-visible,
#pdcallbackpro_widget_btn.pdcbp-skin-skin4[data-trigger-mode="scroll"].pdcallbackpro-widget-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
}

/* ============================================================
   Modal — shell and dialog
   ============================================================ */
#pdcallbackpro_modal.pdcbp-skin-skin4 {
    font-family: var(--pdcbp-s4-font);
    color: var(--pdcbp-s4-text);
}

#pdcallbackpro_modal.pdcbp-skin-skin4.fade .modal-dialog {
    transition: transform .3s ease-out, opacity .3s ease-out;
}

#pdcallbackpro_modal.pdcbp-skin-skin4 .modal-dialog.pdcbp-s4-dialog {
    max-width: 820px;
    width: 100%;
    margin: 1.75rem auto;
}

#pdcallbackpro_modal.pdcbp-skin-skin4 .modal-content.pdcbp-s4-modal {
    position: relative;
    display: grid;
    grid-template-columns: 320px 1fr;
    width: 100%;
    background: var(--pdcbp-s4-surface);
    border: none !important;
    border-radius: 12px !important;
    border-top: 4px solid var(--pdcbp-s4-primary) !important;
    box-shadow: var(--pdcbp-s4-shadow);
    overflow: hidden;
    color: var(--pdcbp-s4-text);
}

#pdcallbackpro_modal.pdcbp-skin-skin4 .modal-header,
#pdcallbackpro_modal.pdcbp-skin-skin4 .modal-body,
#pdcallbackpro_modal.pdcbp-skin-skin4 .modal-footer {
    border: none;
    background: transparent;
    padding: 0;
}

#pdcallbackpro_modal.pdcbp-skin-skin4 .modal-backdrop,
#pdcallbackpro_modal.pdcbp-skin-skin4 + .modal-backdrop {
    background-color: var(--pdcbp-s4-overlay);
}

/* ============================================================
   Left column — dark panel with brand badge + bullets
   ============================================================ */
#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-s4-left {
    background: var(--pdcbp-s4-dark-panel);
    background-image: radial-gradient(circle at 20% 0%, rgba(167, 194, 57, .15) 0%, transparent 50%);
    color: var(--pdcbp-s4-dark-text);
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-s4-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--pdcbp-s4-primary);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin: 0 0 20px;
}

#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-s4-brand svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Social-proof badge — sits between brand badge and h2 title. Uses the
   lime accent against the dark left-panel background so it pops without
   clashing with the premium B2B aesthetic. */
#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-s4-social-proof {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--pdcbp-s4-primary);
    background: rgba(167, 194, 57, 0.15);
    border: 1px solid rgba(167, 194, 57, 0.35);
    border-radius: 999px;
    padding: 6px 12px;
    margin: 0 0 16px;
    line-height: 1.2;
}

#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-s4-social-proof svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    stroke: currentColor;
    fill: none;
}

#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-s4-title {
    margin: 0 0 12px;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.02em;
    color: var(--pdcbp-s4-dark-text);
}

#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-s4-subtitle {
    margin: 0 0 24px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--pdcbp-s4-dark-text-muted);
}

#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-s4-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
}

#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-s4-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 13px;
    line-height: 1.5;
}

#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-s4-bullets li:last-child {
    margin-bottom: 0;
}

#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-s4-bullets li svg,
#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-s4-bullets li .pdcbp-s4-bullet-icon svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--pdcbp-s4-primary);
    margin-top: 1px;
    background: var(--pdcbp-s4-dark-tint);
    border-radius: 6px;
    padding: 3px;
    box-sizing: content-box;
}

#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-s4-bullets li strong {
    display: block;
    color: var(--pdcbp-s4-dark-text);
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 2px;
}

#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-s4-bullets li span {
    color: var(--pdcbp-s4-dark-text-muted);
    font-size: 12.5px;
}

/* Fallback phone block — pushed to bottom of left column */
#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-s4-fallback {
    margin-top: auto;
    padding: 16px;
    background: var(--pdcbp-s4-dark-border-soft);
    border: 1px solid var(--pdcbp-s4-dark-border);
    border-radius: 10px;
}

#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-s4-fallback-label {
    font-size: 11px;
    color: var(--pdcbp-s4-dark-text-muted);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 6px;
}

#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-s4-fallback-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 800;
    color: var(--pdcbp-s4-dark-text);
    text-decoration: none;
    transition: color .15s ease;
}

#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-s4-fallback-phone:hover,
#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-s4-fallback-phone:focus-visible {
    color: var(--pdcbp-s4-primary);
    text-decoration: none;
    outline: none;
}

#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-s4-fallback-phone svg {
    width: 18px;
    height: 18px;
    color: var(--pdcbp-s4-primary);
    flex-shrink: 0;
}

#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-s4-fallback-hours {
    margin-top: 6px;
    font-size: 11px;
    color: var(--pdcbp-s4-dark-text-muted);
}

/* ============================================================
   Right column — form
   ============================================================ */
#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-s4-right {
    padding: 36px 36px 32px;
    position: relative;
    background: var(--pdcbp-s4-surface);
    color: var(--pdcbp-s4-text);
    min-width: 0;
}

#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-s4-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    color: var(--pdcbp-s4-text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color .15s ease, color .15s ease;
    padding: 0;
    z-index: 2;
}

#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-s4-close:hover,
#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-s4-close:focus-visible {
    background: var(--pdcbp-s4-input-bg);
    color: var(--pdcbp-s4-text-strong);
    outline: none;
}

#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-s4-close svg {
    width: 20px;
    height: 20px;
}

#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-s4-form-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--pdcbp-s4-text-strong);
    margin: 0 0 20px;
    padding-bottom: 14px;
    padding-right: 44px; /* leave room for close button */
    border-bottom: 1px solid var(--pdcbp-s4-border);
    letter-spacing: .01em;
}

/* ============================================================
   Form alert / error
   ============================================================ */
#pdcallbackpro_modal.pdcbp-skin-skin4 #pdcallbackpro_form_alert.pdcbp-form-alert {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
    background: var(--pdcbp-s4-danger-bg);
    color: var(--pdcbp-s4-danger);
    border: 1px solid var(--pdcbp-s4-danger-border);
}

#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcallbackpro-is-hidden {
    display: none !important;
}

#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-route-summary {
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 6px;
    background: var(--pdcbp-s4-primary-light);
    border: 1px solid rgba(167, 194, 57, .35);
    color: var(--pdcbp-s4-text-strong);
    font-size: 12px;
    line-height: 1.45;
}

/* ============================================================
   Shared form partial styling — scoped under skin
   ============================================================ */
#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcallbackpro-form,
#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-form {
    margin: 0;
    padding: 0;
}

#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-form-row {
    display: grid;
    gap: 14px;
    margin-bottom: 14px;
}

#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-form-row-two {
    grid-template-columns: 1fr 1fr;
}

#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-form-row-full {
    grid-template-columns: 1fr;
}

/* Schedule row layouts — match the PHP helper output.
   3 cols when minute is shown with date, 2 equal cols when minute is hidden,
   single col when only date or only hour is shown. */
#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-form-row-schedule {
    grid-template-columns: 1fr 1fr;
}

#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-form-row-schedule-date-hour-minute,
#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcallbackpro-form-row-schedule-date-hour-minute {
    grid-template-columns: 2fr 1fr 1fr;
}

#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-form-row-schedule-date-hour,
#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcallbackpro-form-row-schedule-date-hour,
#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-form-row-schedule-hour-minute,
#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcallbackpro-form-row-schedule-hour-minute {
    grid-template-columns: 1fr 1fr;
}

#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-form-row-schedule-date-only,
#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcallbackpro-form-row-schedule-date-only,
#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-form-row-schedule-hour-only,
#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcallbackpro-form-row-schedule-hour-only,
#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-form-row-schedule-empty,
#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcallbackpro-form-row-schedule-empty {
    grid-template-columns: 1fr;
}

#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-form-col {
    min-width: 0;
}

#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-field label,
#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-field > label,
#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-form-col label {
    display: block;
    margin-bottom: 6px;
    padding: 0;
    font-size: 12px;
    font-weight: 700;
    color: var(--pdcbp-s4-text-strong);
    text-transform: uppercase;
    letter-spacing: .04em;
    /* Override PrestaShop BS3 horizontal-form default `label { text-align: right }`. */
    text-align: left !important;
}

#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-req {
    color: var(--pdcbp-s4-danger);
    margin-left: 2px;
    font-weight: 700;
}

#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-input,
#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-field input[type="text"],
#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-field input[type="tel"],
#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-field input[type="email"],
#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-field select,
#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--pdcbp-s4-input-border);
    border-radius: 6px;
    background: var(--pdcbp-s4-input-bg);
    color: var(--pdcbp-s4-text-strong);
    font-size: 14px;
    font-family: inherit;
    line-height: 1.4;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
}

/* Normalise computed height across <input> and <select>. Native select
   rendering ignores line-height in some themes, resulting in a shorter
   element than the matching text input. Use an explicit height lock. */
#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-field input,
#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-field select,
#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-input:not(textarea) {
    height: 44px;
    min-height: 44px;
    box-sizing: border-box;
}

#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-field textarea {
    height: auto;
    resize: vertical;
    min-height: 70px;
}

#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-input:focus,
#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-field input:focus,
#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-field select:focus,
#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-field textarea:focus {
    outline: none;
    border-color: var(--pdcbp-s4-primary);
    background: var(--pdcbp-s4-surface);
    box-shadow: 0 0 0 3px rgba(167, 194, 57, .12);
}

#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-input.is-invalid,
#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-field input.is-invalid,
#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-field select.is-invalid,
#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-field textarea.is-invalid {
    border-color: var(--pdcbp-s4-danger);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, .12);
}

#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcallbackpro-invalid-feedback {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--pdcbp-s4-danger);
    line-height: 1.4;
}

/* Antispam honeypot — hidden off-screen */
#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-antispam-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* Privacy checkbox row — override BS3/4/5 .form-check defaults
   (float, absolute position, padding-left) that wrap label under input. */
#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-privacy,
#pdcallbackpro_modal.pdcbp-skin-skin4 .form-check.pdcbp-privacy {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px !important;
    background: var(--pdcbp-s4-input-bg);
    border: 1px solid var(--pdcbp-s4-border);
    border-radius: 6px;
    margin: 4px 0 0 !important;
    min-height: 0;
}

#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-privacy input[type="checkbox"],
#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-privacy .form-check-input {
    position: static !important;
    float: none !important;
    margin: 2px 0 0 !important;
    cursor: pointer;
    accent-color: var(--pdcbp-s4-primary);
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    min-width: 16px;
}

#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-privacy label,
#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-privacy .form-check-label {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--pdcbp-s4-text-muted);
    margin: 0 !important;
    padding: 0 !important;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    text-align: left !important;
    cursor: pointer;
}

#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-privacy label a {
    color: var(--pdcbp-s4-primary-dark);
    text-decoration: underline;
    font-weight: 600;
}

#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-privacy label a:hover {
    color: var(--pdcbp-s4-primary-hover);
}

#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-required-note {
    font-size: 11px;
    color: var(--pdcbp-s4-text-muted);
    margin: 10px 0 0;
}

/* ============================================================
   Footer — primary submit button
   ============================================================ */
#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-s4-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--pdcbp-s4-border);
}

#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-s4-btn,
#pdcallbackpro_modal.pdcbp-skin-skin4 #pdcallbackpro_send_btn {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    background: var(--pdcbp-s4-primary);
    color: var(--pdcbp-s4-primary-text);
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: .04em;
    box-shadow: var(--pdcbp-s4-shadow-primary);
    transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-s4-btn:hover,
#pdcallbackpro_modal.pdcbp-skin-skin4 #pdcallbackpro_send_btn:hover,
#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-s4-btn:focus-visible,
#pdcallbackpro_modal.pdcbp-skin-skin4 #pdcallbackpro_send_btn:focus-visible {
    background: var(--pdcbp-s4-primary-hover);
    transform: translateY(-1px);
    outline: none;
    box-shadow: 0 10px 24px rgba(167, 194, 57, .35);
}

#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-s4-btn[disabled],
#pdcallbackpro_modal.pdcbp-skin-skin4 #pdcallbackpro_send_btn[disabled] {
    opacity: .75;
    cursor: not-allowed;
    transform: none;
    box-shadow: var(--pdcbp-s4-shadow-primary);
}

#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-s4-btn svg,
#pdcallbackpro_modal.pdcbp-skin-skin4 #pdcallbackpro_send_btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

#pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-s4-spinner,
#pdcallbackpro_modal.pdcbp-skin-skin4 #pdcallbackpro_send_spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: pdcbpS4Spin .8s linear infinite;
    flex-shrink: 0;
}

#pdcallbackpro_modal.pdcbp-skin-skin4 #pdcallbackpro_send_spinner.d-none,
#pdcallbackpro_modal.pdcbp-skin-skin4 #pdcallbackpro_send_spinner.pdcallbackpro-is-hidden {
    display: none !important;
}

@keyframes pdcbpS4Spin {
    to { transform: rotate(360deg); }
}

/* ============================================================
   Responsive — stack columns on narrow screens (mobile)
   ============================================================ */
@media (max-width: 720px) {
    #pdcallbackpro_modal.pdcbp-skin-skin4 .modal-dialog.pdcbp-s4-dialog {
        max-width: calc(100% - 20px);
        margin: 10px auto;
    }
    #pdcallbackpro_modal.pdcbp-skin-skin4 .modal-content.pdcbp-s4-modal {
        grid-template-columns: 1fr;
    }
    #pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-s4-left {
        padding: 24px 22px;
    }
    #pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-s4-title {
        font-size: 21px;
    }
    #pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-s4-subtitle {
        margin-bottom: 18px;
    }
    #pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-s4-bullets {
        margin-bottom: 0;
    }
    /* Hide fallback phone on mobile to save vertical space */
    #pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-s4-fallback {
        display: none;
    }
    #pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-s4-right {
        padding: 24px 22px;
    }
    #pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-s4-close {
        top: 12px;
        right: 12px;
    }
}

@media (max-width: 520px) {
    #pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-form-row-two,
    #pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-form-row-schedule,
    #pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-form-row-schedule-date-hour,
    #pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-form-row-schedule-hour-only {
        grid-template-columns: 1fr;
    }
    #pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-s4-btn,
    #pdcallbackpro_modal.pdcbp-skin-skin4 #pdcallbackpro_send_btn {
        font-size: 13px;
        padding: 13px 16px;
    }
    #pdcallbackpro_widget_btn.pdcbp-skin-skin4 {
        padding: 14px 18px 14px 16px;
    }
    #pdcallbackpro_widget_btn.pdcbp-skin-skin4 .widget-info strong {
        font-size: 13px;
    }
    #pdcallbackpro_widget_btn.pdcbp-skin-skin4 .widget-info small {
        font-size: 10.5px;
    }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    #pdcallbackpro_modal.pdcbp-skin-skin4 *,
    #pdcallbackpro_widget_btn.pdcbp-skin-skin4,
    #pdcallbackpro_widget_btn.pdcbp-skin-skin4 * {
        transition: none !important;
        animation: none !important;
    }
}

/* ============================================================
   RTL support — mirror layout
   ============================================================ */
[dir="rtl"] #pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-s4-close {
    right: auto;
    left: 18px;
}

[dir="rtl"] #pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-s4-form-title {
    padding-right: 0;
    padding-left: 44px;
}

[dir="rtl"] #pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-s4-brand {
    letter-spacing: 0;
}

[dir="rtl"] #pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-req {
    margin-left: 0;
    margin-right: 2px;
}

/* ============================================================
   Print — hide widget, collapse modal to plain block
   ============================================================ */
@media print {
    #pdcallbackpro_widget_btn.pdcbp-skin-skin4 {
        display: none !important;
    }
    #pdcallbackpro_modal.pdcbp-skin-skin4 .modal-content.pdcbp-s4-modal {
        grid-template-columns: 1fr;
        box-shadow: none;
        border: 1px solid #000 !important;
    }
    #pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-s4-left {
        background: #fff;
        color: #000;
    }
    #pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-s4-title,
    #pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-s4-subtitle,
    #pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-s4-bullets li strong,
    #pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-s4-bullets li span,
    #pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-s4-fallback-label,
    #pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-s4-fallback-phone,
    #pdcallbackpro_modal.pdcbp-skin-skin4 .pdcbp-s4-fallback-hours {
        color: #000;
    }
}
