/* ═══════════════════════════════════════════════
 * Connecteur Storagility à Stora — Widget Styles
 * Charte : Framboise #B8426A · Ivoire #F7F3EC · Anthracite #2A2830
 * Fonts  : Cormorant Garamond (headings) · Plus Jakarta Sans (body)
 * Scoped under .vb-widget to avoid Elementor/theme conflicts.
 * ═══════════════════════════════════════════════ */

/* ── Design tokens (aligned with Voilà Box brand board) ── */
.vb-widget {
    --vb-primary: #B8426A;          /* Framboise */
    --vb-primary-hover: #8C2F50;    /* Framboise deep */
    --vb-primary-light: #F5E6EC;    /* Framboise pale */
    --vb-primary-glow: rgba(184, 66, 106, 0.25);

    --vb-bg: #F7F3EC;              /* Ivoire */
    --vb-bg-card: #FDFBF8;         /* Blanc cassé */
    --vb-bg-input: #FDFBF8;

    --vb-text: #2A2830;            /* Anthracite */
    --vb-text-muted: #8A8278;      /* Taupe */
    --vb-text-light: #C8C0B4;      /* Pierre dark */
    --vb-text-mid: #4A4756;        /* Anthracite mid */

    --vb-border: #E6E0D6;          /* Pierre */
    --vb-border-focus: #B8426A;

    --vb-success: #C9A878;         /* Or Parisien */
    --vb-success-bg: rgba(201, 168, 120, 0.12);
    --vb-error: #D93B3B;
    --vb-error-bg: rgba(217, 59, 59, 0.06);

    --vb-or: #C9A878;              /* Or — accent doré */
    --vb-or-pale: #F0E8D8;

    --vb-font-heading: 'Cormorant Garamond', Georgia, serif;
    --vb-font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    --vb-radius-sm: 4px;
    --vb-radius-md: 10px;
    --vb-radius-lg: 20px;
    --vb-radius-btn: 100px;
    --vb-radius-card: 20px;

    --vb-shadow-sm: 0 1px 3px rgba(42, 40, 48, 0.06);
    --vb-shadow-md: 0 4px 24px rgba(42, 40, 48, 0.08);
    --vb-shadow-lg: 0 8px 32px rgba(42, 40, 48, 0.12);
    --vb-shadow-card: 0 2px 12px rgba(42, 40, 48, 0.06);
    --vb-shadow-card-hover: 0 8px 28px rgba(184, 66, 106, 0.12);

    --vb-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

    font-family: var(--vb-font-body);
    color: var(--vb-text);
    line-height: 1.6;
    max-width: 960px;
    margin: 0 auto;
    padding: 32px 20px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.vb-widget *,
.vb-widget *::before,
.vb-widget *::after {
    box-sizing: border-box;
}

/* ── Progress bar ──────────────────────────── */
.vb-progress {
    margin-bottom: 40px;
}

.vb-progress-track {
    height: 4px;
    background: var(--vb-border);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 16px;
}

.vb-progress-fill {
    height: 100%;
    width: 25%;
    background: linear-gradient(90deg, var(--vb-primary), #D4688E);
    border-radius: 2px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.vb-progress-steps {
    display: flex;
    justify-content: space-between;
}

.vb-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    transition: var(--vb-transition);
    opacity: 0.4;
}

.vb-progress-step:disabled {
    cursor: default;
}

.vb-progress-step.active,
.vb-progress-step.completed {
    opacity: 1;
}

.vb-step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    background: var(--vb-border);
    color: var(--vb-text-muted);
    transition: var(--vb-transition);
}

.vb-progress-step.active .vb-step-number {
    background: var(--vb-primary);
    color: #fff;
    box-shadow: 0 2px 12px var(--vb-primary-glow);
}

.vb-progress-step.completed .vb-step-number {
    background: var(--vb-primary-light);
    color: var(--vb-primary);
}

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

.vb-progress-step.active .vb-step-label {
    color: var(--vb-primary);
}

.vb-progress-step.completed .vb-step-label {
    color: var(--vb-text-muted);
}

/* ── Panels ────────────────────────────────── */
.vb-panel {
    display: none;
    animation: vbFadeSlideIn 0.4s ease forwards;
}

.vb-panel.active {
    display: block;
}

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

.vb-panel-header {
    text-align: center;
    margin-bottom: 32px;
}

.vb-panel-title {
    font-family: var(--vb-font-heading);
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--vb-text);
    letter-spacing: -0.01em;
}

.vb-panel-subtitle {
    font-size: 15px;
    color: var(--vb-text-muted);
    margin: 0;
}

/* ── Unit type grid ────────────────────────── */
.vb-unit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

/* Unit card */
.vb-unit-card {
    background: var(--vb-bg-card);
    border-radius: var(--vb-radius-card);
    border: 2px solid var(--vb-border);
    padding: 24px;
    cursor: pointer;
    transition: all var(--vb-transition);
    position: relative;
    overflow: hidden;
}

.vb-unit-card:hover {
    border-color: var(--vb-primary);
    box-shadow: var(--vb-shadow-card-hover);
    transform: translateY(-2px);
}

.vb-unit-card.selected {
    border-color: var(--vb-primary);
    background: var(--vb-primary-light);
    box-shadow: 0 0 0 1px var(--vb-primary), var(--vb-shadow-card-hover);
}

.vb-unit-card.unavailable {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.vb-unit-card-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: var(--vb-radius-sm);
    margin-bottom: 16px;
    background: var(--vb-bg);
}

.vb-unit-card-image-placeholder {
    width: 100%;
    height: 140px;
    border-radius: var(--vb-radius-sm);
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--vb-bg) 0%, var(--vb-border) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vb-text-light);
    font-size: 40px;
}

.vb-unit-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.vb-unit-card-name {
    font-family: var(--vb-font-heading);
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: var(--vb-text);
}

.vb-unit-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.vb-unit-card-badge.available {
    background: rgba(45, 159, 90, 0.08);
    color: #2D9F5A;
}

.vb-unit-card-badge.unavailable {
    background: var(--vb-error-bg);
    color: var(--vb-error);
}

.vb-unit-card-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.vb-unit-card-size {
    font-size: 14px;
    color: var(--vb-text-muted);
    margin: 0 0 12px;
}

.vb-unit-card-features {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}

.vb-unit-card-features li {
    font-size: 13px;
    color: var(--vb-text-muted);
    padding: 3px 0;
    padding-left: 20px;
    position: relative;
}

.vb-unit-card-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--vb-success);
    font-weight: 700;
}

.vb-unit-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--vb-border);
}

.vb-unit-card-price {
    font-family: var(--vb-font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--vb-primary);
}

.vb-unit-card-price-period {
    font-family: var(--vb-font-body);
    font-size: 14px;
    font-weight: 400;
    color: var(--vb-text-muted);
}

.vb-unit-card-promo {
    display: inline-block;
    background: linear-gradient(135deg, var(--vb-primary), #D4688E);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 12px;
}

.vb-unit-card-select {
    background: var(--vb-primary);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: var(--vb-radius-btn);
    font-family: var(--vb-font-body);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--vb-transition);
}

.vb-unit-card-select:hover {
    background: var(--vb-primary-hover);
    transform: scale(1.03);
    box-shadow: 0 2px 10px var(--vb-primary-glow);
}

.vb-unit-card.selected .vb-unit-card-select {
    background: var(--vb-primary-hover);
}

/* ── Skeleton loaders ──────────────────────── */
.vb-skeleton-card {
    background: var(--vb-bg-card);
    border-radius: var(--vb-radius-card);
    border: 2px solid var(--vb-border);
    padding: 24px;
}

.vb-skeleton {
    background: linear-gradient(90deg, var(--vb-border) 25%, rgba(230, 224, 214, 0.4) 50%, var(--vb-border) 75%);
    background-size: 200% 100%;
    animation: vbShimmer 1.5s ease-in-out infinite;
    border-radius: var(--vb-radius-sm);
}

.vb-skeleton-img {
    height: 140px;
    margin-bottom: 16px;
}

.vb-skeleton-title {
    height: 24px;
    width: 60%;
    margin-bottom: 12px;
}

.vb-skeleton-text {
    height: 14px;
    width: 90%;
    margin-bottom: 8px;
}

.vb-skeleton-text.short {
    width: 50%;
}

.vb-skeleton-btn {
    height: 42px;
    width: 120px;
    margin-top: 16px;
    border-radius: var(--vb-radius-btn);
}

@keyframes vbShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Form elements ─────────────────────────── */
.vb-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.vb-form-full {
    grid-column: 1 / -1;
}

.vb-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vb-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--vb-text);
}

.vb-label-lg {
    font-size: 16px;
    font-weight: 700;
    color: var(--vb-text);
    margin-bottom: 4px;
}

.vb-form-desc {
    font-size: 13px;
    color: var(--vb-text-muted);
    margin: 0 0 8px;
    line-height: 1.5;
}

.vb-required {
    color: var(--vb-primary);
}

.vb-input,
.vb-select {
    padding: 12px 16px;
    border: 2px solid var(--vb-border);
    border-radius: var(--vb-radius-sm);
    font-family: var(--vb-font-body);
    font-size: 15px;
    color: var(--vb-text);
    background: var(--vb-bg-input);
    transition: all var(--vb-transition);
    width: 100%;
}

.vb-input:focus,
.vb-select:focus {
    outline: none;
    border-color: var(--vb-border-focus);
    box-shadow: 0 0 0 3px var(--vb-primary-glow);
}

.vb-input.error,
.vb-select.error {
    border-color: var(--vb-error);
    box-shadow: 0 0 0 3px rgba(217, 59, 59, 0.12);
}

.vb-input::placeholder {
    color: var(--vb-text-light);
}

.vb-field-error {
    font-size: 13px;
    color: var(--vb-error);
    min-height: 18px;
}

.vb-field-feedback {
    font-size: 13px;
    min-height: 18px;
}

.vb-field-feedback.success {
    color: #2D9F5A;
}

.vb-field-feedback.error {
    color: var(--vb-error);
}

/* Input + action button group */
.vb-input-action {
    display: flex;
    gap: 8px;
}

.vb-input-action .vb-input {
    flex: 1;
}

/* ── Toggle group (Domestic / Company) ─────── */
.vb-toggle-group {
    display: inline-flex;
    gap: 6px;
    background: var(--vb-bg);
    border-radius: var(--vb-radius-lg);
    padding: 5px;
    border: 1px solid var(--vb-border);
}

.vb-widget .vb-toggle-group .vb-toggle {
    padding: 8px 28px;
    border: none;
    background: transparent;
    border-radius: calc(var(--vb-radius-lg) - 3px);
    font-family: var(--vb-font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--vb-text-muted);
    cursor: pointer;
    transition: all var(--vb-transition);
    text-align: center;
    white-space: nowrap;
    margin: 0;
    display: inline-block;
    line-height: 1.4;
}

.vb-widget .vb-toggle-group .vb-toggle.active {
    background: var(--vb-primary);
    color: #fff;
    box-shadow: var(--vb-shadow-sm);
}

.vb-toggle:hover:not(.active) {
    color: var(--vb-text);
}

/* ── Radio card group (Payment) ────────────── */
.vb-radio-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.vb-radio-card {
    flex: 1;
    min-width: 100px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 2px solid var(--vb-border);
    border-radius: var(--vb-radius-md);
    cursor: pointer;
    transition: all var(--vb-transition);
    background: var(--vb-bg-card);
}

.vb-radio-card:hover {
    border-color: var(--vb-primary);
}

.vb-radio-card.active {
    border-color: var(--vb-primary);
    background: var(--vb-primary-light);
}

.vb-radio-card input[type="radio"] {
    display: none;
}

.vb-radio-icon {
    font-size: 18px;
}

.vb-radio-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--vb-text);
}

/* ── Product Cards (Setup fees / Add-ons) ──── */
.vb-products-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vb-product-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--vb-bg-card);
    border: 2px solid var(--vb-border);
    border-radius: var(--vb-radius-md);
    cursor: pointer;
    transition: all var(--vb-transition);
    position: relative;
}

.vb-product-card:hover:not(.disabled) {
    border-color: var(--vb-primary);
    box-shadow: 0 4px 12px rgba(42, 40, 48, 0.05);
}

.vb-product-card.disabled {
    cursor: default;
    background: var(--vb-bg-card); /* Keep it white like the screenshot */
    border-color: var(--vb-border);
}

/* Hide native checkbox if we want a custom look, but user screenshot shows a checkbox. 
   Actually, the user screenshot doesn't show a checkbox for the mandatory item, just the card. Let's just hide the checkbox natively and rely on the border/background, or keep the checkbox but style it. Let's hide it natively and add a custom checkmark or just rely on styling the card itself. */
.vb-product-card input[type="checkbox"] {
    display: none;
}

/* When selected */
.vb-product-card:has(input[type="checkbox"]:checked) {
    border-color: var(--vb-primary);
    background: #FDFBF8; /* Ivory white to keep it clean */
    box-shadow: 0 0 0 1px var(--vb-primary);
}

.vb-product-image {
    width: 80px;
    height: 80px;
    border-radius: var(--vb-radius-sm);
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--vb-border);
    padding: 4px;
    flex-shrink: 0;
}

.vb-product-image-placeholder {
    width: 80px;
    height: 80px;
    border-radius: var(--vb-radius-sm);
    background: linear-gradient(135deg, var(--vb-bg) 0%, var(--vb-border) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vb-text-light);
    font-size: 24px;
    flex-shrink: 0;
}

.vb-product-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vb-product-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--vb-text);
}

.vb-product-desc {
    font-size: 13px;
    color: var(--vb-text-muted);
    margin: 0;
    line-height: 1.4;
}

.vb-product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.vb-product-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--vb-text);
}

.vb-badge-mandatory {
    background: #e9e6df;
    color: var(--vb-text);
    padding: 6px 12px;
    border-radius: var(--vb-radius-sm);
    font-size: 13px;
    font-weight: 600;
}

/* Selected state (qty > 0) */
.vb-product-card.selected {
    border-color: var(--vb-primary);
    background: #FDFBF8;
    box-shadow: 0 0 0 1px var(--vb-primary);
}

/* ── Product Quantity Stepper ──────────────── */
.vb-product-quantity {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: 2px solid var(--vb-border);
    border-radius: var(--vb-radius-sm);
    overflow: hidden;
    user-select: none;
}

.vb-qty-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--vb-bg);
    border: none;
    font-size: 18px;
    font-weight: 700;
    color: var(--vb-text-muted);
    cursor: pointer;
    transition: all var(--vb-transition);
    padding: 0;
    line-height: 1;
}

.vb-qty-btn:hover {
    background: var(--vb-primary-light);
    color: var(--vb-primary);
}

.vb-qty-btn:active {
    transform: scale(0.92);
}

.vb-qty-value {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    font-size: 16px;
    font-weight: 700;
    color: var(--vb-text);
    background: var(--vb-bg-card);
    border-left: 1px solid var(--vb-border);
    border-right: 1px solid var(--vb-border);
}

/* When qty > 0, highlight the stepper */
.vb-product-card.selected .vb-product-quantity {
    border-color: var(--vb-primary);
}

.vb-product-card.selected .vb-qty-value {
    color: var(--vb-primary);
}

/* ── Protection Cards (Insurance) ──────────── */
.vb-protection-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vb-protection-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--vb-bg-card);
    border: 2px solid var(--vb-border);
    border-radius: var(--vb-radius-md);
    cursor: pointer;
    transition: all var(--vb-transition);
}

.vb-protection-card:hover {
    border-color: var(--vb-primary);
    box-shadow: 0 4px 12px rgba(42, 40, 48, 0.05);
}

.vb-protection-card input[type="radio"] {
    display: none;
}

.vb-protection-card.active {
    border-color: var(--vb-primary);
    box-shadow: 0 0 0 1px var(--vb-primary);
}

.vb-protection-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vb-protection-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--vb-text);
    transition: color var(--vb-transition);
}

.vb-protection-card.active .vb-protection-name {
    color: var(--vb-primary);
}

.vb-protection-price {
    font-size: 13px;
    color: var(--vb-text-muted);
    font-weight: 500;
}

.vb-protection-card.active .vb-protection-price {
    color: var(--vb-text-mid);
}

.vb-protection-visual {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.vb-badge-recommended {
    background: var(--vb-primary);
    color: #fff;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.vb-protection-icon {
    font-size: 20px;
    opacity: 0.25;
    filter: grayscale(100%);
    transition: all var(--vb-transition);
    flex-shrink: 0;
}

.vb-protection-icon-gray {
    opacity: 0.25;
    filter: grayscale(100%);
}

.vb-protection-icon-active,
.vb-protection-card.active .vb-protection-icon {
    opacity: 1;
    filter: none;
}


/* ── Checkbox ──────────────────────────────── */
.vb-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--vb-text-muted);
    margin-bottom: 8px;
}

.vb-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--vb-primary);
    flex-shrink: 0;
}

.vb-checkbox a {
    color: var(--vb-primary);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.vb-checkbox a:hover {
    color: var(--vb-primary-hover);
}

/* ── Price summary ─────────────────────────── */
.vb-price-summary {
    background: var(--vb-bg);
    border-radius: var(--vb-radius-md);
    border: 1px solid var(--vb-border);
    padding: 24px;
    margin-bottom: 24px;
}

.vb-summary-title {
    font-family: var(--vb-font-heading);
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 16px;
}

.vb-summary-lines {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.vb-summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.vb-summary-line-label {
    color: var(--vb-text-muted);
}

.vb-summary-line-value {
    font-weight: 600;
    color: var(--vb-text);
}

.vb-summary-line-discount {
    color: #2D9F5A;
}

.vb-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 2px solid var(--vb-border);
    font-size: 16px;
    font-weight: 700;
}

.vb-summary-total span:last-child {
    font-family: var(--vb-font-heading);
    font-size: 24px;
    color: var(--vb-primary);
}

.vb-summary-total-final {
    border-top-color: var(--vb-primary);
}

.vb-summary-total-final span:last-child {
    font-size: 28px;
}

/* ── Recap (Step 4) ────────────────────────── */
.vb-recap {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}

.vb-recap-section {
    background: var(--vb-bg-card);
    border: 1px solid var(--vb-border);
    border-radius: var(--vb-radius-md);
    padding: 24px;
}

.vb-recap-heading {
    font-family: var(--vb-font-heading);
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--vb-text);
}

.vb-recap-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
}

.vb-recap-row:not(:last-child) {
    border-bottom: 1px solid var(--vb-border);
}

.vb-recap-row-label {
    color: var(--vb-text-muted);
}

.vb-recap-row-value {
    font-weight: 600;
    color: var(--vb-text);
    text-align: right;
}

.vb-recap-pricing {
    background: var(--vb-bg);
}

/* ── Buttons ───────────────────────────────── */
.vb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--vb-radius-btn);
    font-family: var(--vb-font-body);
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--vb-transition);
    text-decoration: none;
    line-height: 1.4;
}

.vb-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.vb-btn-primary {
    background: var(--vb-primary);
    color: #fff;
    box-shadow: 0 2px 8px var(--vb-primary-glow);
}

.vb-btn-primary:hover:not(:disabled) {
    background: var(--vb-primary-hover);
    color: var(--vb-text);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px var(--vb-primary-glow);
}

.vb-btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.vb-btn-lg {
    padding: 16px 40px;
    font-size: 16px;
}

.vb-btn-ghost {
    background: transparent;
    color: var(--vb-text-muted);
    padding: 12px 20px;
}

.vb-btn-ghost:hover {
    color: var(--vb-text);
    background: var(--vb-bg);
}

.vb-btn-outline {
    background: transparent;
    color: var(--vb-primary);
    border: 2px solid var(--vb-primary);
    padding: 10px 20px;
}

.vb-btn-outline:hover {
    background: var(--vb-primary-light);
}

/* Spinner */
.vb-btn-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: vbSpin 0.6s linear infinite;
}

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

/* ── Panel actions ─────────────────────────── */
.vb-panel-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    gap: 12px;
}

/* ── Error banner ──────────────────────────── */
.vb-error-banner {
    background: var(--vb-error-bg);
    border: 1px solid var(--vb-error);
    border-radius: var(--vb-radius-sm);
    color: var(--vb-error);
    padding: 14px 18px;
    font-size: 14px;
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vb-error-banner::before {
    content: '⚠';
    font-size: 18px;
    flex-shrink: 0;
}

/* ── Legal note ────────────────────────────── */
.vb-legal-note {
    text-align: center;
    font-size: 13px;
    color: var(--vb-text-light);
    margin-top: 16px;
}

/* ── Status pages (confirmation / annulation) ── */

.vb-status-page {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 48px 20px;
    min-height: 60vh;
    background: #fff;
}

.vb-status-card {
    background: var(--vb-surface);
    border-radius: var(--vb-radius-lg);
    box-shadow: 0 4px 32px rgba(42, 40, 48, 0.08);
    padding: 48px 40px;
    max-width: 520px;
    width: 100%;
    text-align: center;
    animation: vbFadeUp 0.5s cubic-bezier(.22,.61,.36,1) both;
}

@keyframes vbFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Icon circle */
.vb-status-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
}

.vb-status-icon--success {
    background: rgba(184, 66, 106, 0.12);
    color: var(--vb-primary);
}

.vb-status-icon--cancel {
    background: rgba(42, 40, 48, 0.08);
    color: var(--vb-text-muted);
}

/* Title */
.vb-status-title {
    font-family: var(--vb-font-heading);
    font-size: 32px;
    font-weight: 400;
    color: var(--vb-text);
    margin: 0 0 12px;
    line-height: 1.2;
}

/* Description */
.vb-status-desc {
    font-size: 15px;
    color: var(--vb-text-muted);
    line-height: 1.65;
    margin: 0 0 32px;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

/* Recap table */
.vb-status-recap {
    background: var(--vb-bg);
    border-radius: var(--vb-radius-md);
    overflow: hidden;
    margin: 0 0 32px;
    text-align: left;
    border: 1px solid var(--vb-border);
}

.vb-status-recap-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--vb-border);
}

.vb-status-recap-row:last-child {
    border-bottom: none;
}

.vb-status-recap-row span {
    color: var(--vb-text-muted);
}

.vb-status-recap-row strong {
    color: var(--vb-text);
    font-weight: 600;
}

/* Actions section */
.vb-status-actions {
    margin: 0 0 32px;
}

.vb-status-actions-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--vb-text-muted);
    margin: 0 0 16px;
}

.vb-status-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 15px;
    padding: 14px 28px;
}

/* Steps list */
.vb-status-steps {
    text-align: left;
    margin: 0 0 32px;
    background: var(--vb-bg);
    border-radius: var(--vb-radius-md);
    padding: 20px 24px;
    border: 1px solid var(--vb-border);
}

.vb-status-steps-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--vb-primary);
    margin: 0 0 12px;
}

.vb-status-steps-list {
    padding-left: 18px;
    margin: 0;
}

.vb-status-steps-list li {
    font-size: 14px;
    color: var(--vb-text-muted);
    line-height: 1.6;
    padding: 4px 0;
}

/* Contact footer */
.vb-status-contact {
    font-size: 13px;
    color: var(--vb-text-muted);
    padding-top: 24px;
    border-top: 1px solid var(--vb-border);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vb-status-contact strong {
    color: var(--vb-text);
    font-weight: 600;
}


/* ── Responsive ────────────────────────────── */
@media (max-width: 639px) {
    .vb-widget {
        padding: 20px 16px;
    }

    .vb-panel-title {
        font-size: 24px;
    }

    .vb-unit-grid {
        grid-template-columns: 1fr;
    }

    .vb-form-grid {
        grid-template-columns: 1fr;
    }

    .vb-widget input[type="date"] {
        max-width: 220px;
    }

    .vb-progress-steps {
        gap: 0;
    }

    .vb-step-label {
        font-size: 10px;
    }

    .vb-step-number {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .vb-panel-actions {
        flex-direction: column-reverse;
    }

    .vb-panel-actions .vb-btn {
        width: 100%;
    }

    .vb-radio-group {
        flex-direction: column;
    }

    .vb-recap-row {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }

    .vb-recap-row-value {
        text-align: left;
    }

    .vb-confirmation-title {
        font-size: 28px;
    }
}

/* ── Print ─────────────────────────────────── */
@media print {
    .vb-widget {
        max-width: 100%;
    }
    .vb-progress,
    .vb-panel-actions,
    .vb-btn {
        display: none !important;
    }
    .vb-panel {
        display: block !important;
    }
}
