:root {
    /* Backgrounds: Very soft, pale, minimal */
    --bg-color: #fbfbfc;
    --bg-gradient: linear-gradient(135deg, #fbfbfc 0%, #f1f5f8 100%);
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(226, 232, 240, 0.6);
    
    /* Text: Soft but readable */
    --text-primary: #334155; /* Slate 700 */
    --text-secondary: #94a3b8; /* Slate 400 */
    
    /* Accent: Blue / Azure Gradient */
    --accent-color: #0284c7; /* Azure 600 */
    --accent-gradient: linear-gradient(135deg, #60a5fa 0%, #38bdf8 100%);
    --accent-hover-gradient: linear-gradient(135deg, #3b82f6 0%, #0ea5e9 100%);
    --accent-light: rgba(56, 189, 248, 0.08); /* Very pale azure for hover/active states */
    
    /* Status Colors */
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;

    /* Soft Minimal Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 12px 24px rgba(14, 165, 233, 0.05); /* Tinted shadow for active items */

    /* Radii */
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.5;
    overflow-x: hidden;
}

/* Minimal Containers */
.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

/* Layout */
.app-container {
    display: flex;
    height: 100vh;
    padding: 1.5rem;
    gap: 1.5rem;
    max-width: 1600px;
    margin: 0 auto;
}

/* Sidebar */
.sidebar {
    width: 300px;
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    flex-shrink: 0;
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    gap: 0.75rem;
}

.logo-container {
    display: flex;
    justify-content: center;
    padding: 0 1rem;
    margin-bottom: 0.75rem;
}

.logo-img {
    max-width: 200px;
    height: auto;
    max-height: 60px;
    object-fit: contain;
}

/* Steps Navigation */
.steps-nav {
    overflow-y: auto;
    min-height: 0;
}

.steps-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    opacity: 0.6;
}

.step-item:hover {
    background: var(--accent-light);
    opacity: 1;
}

.step-item.active {
    background: var(--accent-light);
    border-color: var(--accent-light);
    opacity: 1;
}

.step-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.step-item.locked {
    opacity: 0.35 !important;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(0.6);
}

.step-item.locked .step-icon {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-secondary);
}

.step-item.locked .step-text .step-title {
    color: var(--text-secondary);
}

.step-item.active .step-icon {
    background: var(--accent-gradient);
    color: white;
    box-shadow: var(--shadow-lg);
}

.step-text {
    display: flex;
    flex-direction: column;
}

.step-number {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    font-weight: 600;
    line-height: 1.2;
}

.step-title {
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.2;
}

/* Main Content Area */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0;
}

/* Top bar removed */

.content-body {
    flex: 1;
    border-radius: var(--radius-xl);
    padding: 2rem;
    overflow-y: auto;
    position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}

.bottom-bar {
    border-radius: var(--radius-xl);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-family: inherit;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
}

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

.btn-primary {
    background: var(--accent-gradient);
    color: #ffffff !important; /* Force white for readability */
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
}

.btn-primary:hover:not(:disabled) {
    background: var(--accent-hover-gradient);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.btn-success:hover:not(:disabled) {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--accent-light);
}

.btn-outline {
    background: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

.btn-outline:hover {
    background: rgba(14, 165, 233, 0.05);
}

/* Wizard Trigger Button Styles */
.wizard-trigger-container {
    margin-bottom: 0.5rem;
}

.btn-wizard {
    width: 100%;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    background: var(--accent-gradient);
    color: white;
    border: none;
    padding: 0.65rem 1rem;
    border-radius: var(--radius-md);
    box-shadow: 0 3px 10px rgba(2, 132, 199, 0.25);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer;
    white-space: nowrap;
    font-size: 0.95rem;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.btn-wizard:hover {
    background: var(--accent-hover-gradient);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35) !important;
}

.btn-wizard:active {
    transform: translateY(0);
}

.btn-wizard i {
    animation: magic-sparkle 2s infinite ease-in-out;
}

@keyframes magic-sparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2) rotate(10deg); }
}

/* Sidebar home button */
.btn-sidebar-home {
    width: 100%;
    padding: 0.55rem 0.75rem;
    justify-content: center;
    gap: 0.4rem;
    background: transparent;
    color: var(--text-secondary);
    border: none;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    font-family: inherit;
    transition: all 0.2s ease;
    margin-bottom: 0.25rem;
}
.btn-sidebar-home:hover {
    color: var(--accent-color);
    background: rgba(2, 132, 199, 0.08);
}
.btn-sidebar-home i {
    font-size: 0.75rem;
}
.btn-sidebar-home i {
    font-size: 0.7rem;
}

/* Sidebar cart button */
.btn-cart {
    width: 100%;
    padding: 0.75rem 1rem;
    justify-content: center;
    gap: 0.5rem;
    background: var(--accent-gradient);
    color: white;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    font-family: inherit;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
    margin-top: auto;
}

.btn-cart:hover {
    background: var(--accent-hover-gradient);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
    transform: translateY(-1px);
}

.btn-cart:active {
    transform: translateY(0);
}

.btn-cart .cart-badge {
    position: static;
    margin-left: auto;
    background: white;
    color: var(--accent-color);
}

.cart-badge {
    background: var(--accent-color);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3);
}

/* Empty cart state */
.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    gap: 1.25rem;
    color: var(--text-secondary);
}

.cart-empty i {
    font-size: 4rem;
    color: var(--accent-color);
    opacity: 0.7;
}

.cart-empty span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.cart-empty p {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 300px;
    line-height: 1.5;
    margin: 0;
}

/* Cart modal sections (promo, client data) */
.cart-section {
    margin-bottom: 1.25rem;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
}

/* Cart item expander */
.cart-item {
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    overflow: hidden;
    background: #ffffff;
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: background 0.2s;
    user-select: none;
}

.cart-item-header:hover {
    background: var(--accent-light);
}

.cart-item-header .item-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.cart-item-header .item-price {
    font-weight: 700;
    color: var(--accent-color);
    font-size: 1rem;
}

.cart-item-header .item-toggle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-left: 1rem;
    transition: transform 0.2s;
}

.cart-item-header .item-toggle.expanded {
    transform: rotate(180deg);
}

.cart-item-body {
    display: none;
    border-top: 1px solid var(--glass-border);
}

.cart-item-body.expanded {
    display: block;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--danger-color, #ef4444);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
    margin-left: 0.4rem;
    border-radius: 50%;
    transition: background 0.2s;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-remove:hover {
    background: rgba(239, 68, 68, 0.12);
}

.cart-total-row {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1.25rem;
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    font-size: 1.1rem;
}

.cart-total-row .total-label {
    font-weight: 600;
    color: var(--text-primary);
}

.cart-total-inner {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.cart-total-inner .total-value {
    font-size: 1.2rem;
}

.cart-total-iva {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.cart-total-final {
    padding-top: 0.75rem;
    border-top: 1px solid var(--glass-border);
}

.cart-total-final .total-value {
    font-size: 1.5rem;
}

/* Cart item body rows (IVA details) */
.cart-body-row {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.cart-body-total {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent-color);
}

/* Cart item reference field */
.cart-ref-input {
    padding: 0.4rem 0.7rem;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.82rem;
    background: #ffffff;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    max-width: 220px;
    width: auto;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.cart-ref-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    background: #ffffff;
}

.cart-total-row .total-value {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--accent-color);
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.info-text-highlight {
    background: rgba(0, 0, 0, 0.03);
    border-left: 4px solid #444;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin: 2.5rem 0;
    line-height: 1.6;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-control.invalid {
    border-color: var(--danger-color) !important;
    background-color: rgba(239, 68, 68, 0.02);
}

.form-control.invalid:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

/* Select boxes custom styling */
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

select.form-control option {
    background-color: white;
    color: var(--text-primary);
}

/* Checkboxes and Radios */
.qty-btn:hover {
    background: #e2e8f0 !important;
}
.qty-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed !important;
}
.qty-btn:disabled:hover {
    background: #f1f5f9 !important;
}

.popover-info {
    position: fixed;
    z-index: 2000;
    background: white;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    padding: 0;
    max-width: 320px;
    min-width: 240px;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}
.popover-info.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}
.popover-info .popover-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--glass-border);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}
.popover-info .popover-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 1rem;
    padding: 0;
    line-height: 1;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}
.popover-info .popover-close:hover {
    background: #f1f5f9;
    color: var(--text-primary);
}
.popover-info .popover-body {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-primary);
}
.popover-info .popover-arrow {
    position: absolute;
    width: 10px;
    height: 10px;
    background: white;
    border-left: 1px solid var(--glass-border);
    border-top: 1px solid var(--glass-border);
    transform: rotate(45deg);
}
.popover-info .popover-arrow.top {
    top: -6px;
    left: 50%;
    margin-left: -5px;
}

.checkbox-container,
.radio-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.checkbox-container input,
.radio-container input {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--accent-color);
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.cost-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cost-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.9rem;
}

.cost-list li small {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Cards for selections */
.selection-card {
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.selection-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(96, 165, 250, 0.3); /* Subtle blue border on hover */
}

.selection-card.selected {
    border: 1.5px solid transparent;
    background: linear-gradient(#fff, #fff) padding-box, var(--accent-gradient) border-box;
    box-shadow: var(--shadow-lg);
}

.selection-card img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

/* Pricing */
.price-container.highlight {
    padding: 0.45rem 1.6rem;
    display: flex;
    align-items: center;
}

.price-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 140px;
}

.price-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--accent-color);
    letter-spacing: -0.02em;
    line-height: 1;
}

.iva-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: #0ea5e9;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 3px;
    padding: 1.5px 7px;
    background: rgba(14, 165, 233, 0.08);
    border-radius: 5px;
}

.nav-btn {
    padding: 0.75rem 1.75rem !important;
    font-size: 1.05rem !important;
    min-width: 150px;
    border-radius: var(--radius-md) !important;
}

.btn-secondary.nav-btn {
    background: white;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.btn-secondary.nav-btn:hover {
    background: #f8fafc;
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal {
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-header {
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.25rem;
    color: var(--accent-color);
}

.btn-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 1.25rem 2rem;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 1rem 2rem;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* User Type Modal */
.user-type-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.user-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 2rem 1.5rem;
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-lg);
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-type-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(58, 134, 255, 0.1);
    transform: translateY(-2px);
}

.user-type-card.active {
    border-color: var(--accent-color);
    background: rgba(58, 134, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.15);
}

.user-type-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), #38bdf8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.user-type-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.user-type-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.3;
}

/* Configuratore Step 2 styles */
.po-collarino-row select,
.po-collarino-row input {
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.animate-fade-in {
    animation: fadeIn 0.4s ease forwards;
}

/* Content specific styles */
.step-content-section {
    display: none;
}

.step-content-section.active {
    display: block;
    animation: fadeIn 0.4s ease forwards;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    /* Base Layout Adjustments */
    .app-container {
        flex-direction: column;
        height: auto;
        padding: 0.5rem;
        gap: 0.5rem;
    }

    .sidebar {
        width: 100%;
        padding: 1rem;
    }

    .logo-container {
        margin-bottom: 1rem;
        text-align: center;
    }

    /* Top Steps Navigation */
    .steps-nav ul {
        flex-direction: row;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .step-item {
        flex-direction: column;
        padding: 0.5rem !important;
        min-width: 70px !important;
        justify-content: center;
    }

    .step-text {
        display: none;
    }

    .main-content {
        gap: 0.5rem;
    }

    .content-body {
        padding: 1rem !important;
    }

    /* Grids to Single Column */
    .grid-2,
    .grid-3,
    [class*="config-fields-"] {
        grid-template-columns: 1fr !important;
    }

    /* Typography */
    h3 { font-size: 1.5rem !important; }
    h4 { font-size: 1.25rem !important; }

    /* Force flex-direction column on specific containers overriding inline styles */
    #plenum-config-container,
    #motorization-layout,
    #motorization-components,
    #thermostats-config-container,
    #machine-existing-selection > div.grid-2 > div,
    .step-content-section > div[style*="display: flex"] {
        flex-direction: column !important;
        min-width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 auto !important;
    }

    /* Grids inside specific sections */
    #motorization-cards-container,
    #plenum-accessories-selection > div,
    .wizard-stanze-container .grid-3 {
        grid-template-columns: 1fr !important;
        display: grid !important;
    }

    /* Fix flex basis and min-widths in JS inline styles */
    div[style*="flex: 0 0 450px"],
    div[style*="flex: 0 0 420px"],
    div[style*="min-width: 300px"],
    div[style*="min-width: 450px"] {
        flex: 1 1 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }

    /* Form groups to be full width */
    .form-group {
        width: 100% !important;
    }

    /* Images */
    #flessibile-image, #plenum-image, .wiz-diffusore-img-wrapper img, #motorization-cards-container img {
        height: auto !important;
        max-height: 200px !important;
        width: 100% !important;
        object-fit: contain !important;
        margin-bottom: 1rem !important;
    }

    /* Modals */
    .modal {
        width: 95% !important;
        max-width: 95% !important;
        max-height: 90vh !important;
        margin: 1rem auto !important;
        padding: 0 !important;
    }
    
    .modal-header, .modal-footer {
        padding: 1rem !important;
    }
    
    .modal-body {
        padding: 1rem !important;
    }

    #modal-footer {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        gap: 0.5rem !important;
    }
    
    #modal-footer .btn {
        flex: 1 !important;
        padding: 0.75rem 0.5rem !important;
        justify-content: center !important;
    }

    /* Bottom Bar layout optimization */
    .bottom-bar {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        grid-template-areas: 
            "price price"
            "prev next" !important;
        gap: 0.75rem !important;
        padding: 1rem !important;
    }
    
    .bottom-bar .price-container {
        grid-area: price;
        justify-content: center !important;
        margin-bottom: 0.5rem !important;
        width: 100% !important;
    }
    
    #btn-prev { 
        grid-area: prev; 
        width: 100% !important; 
        padding: 0.75rem 0.5rem !important; 
        justify-content: center !important;
    }
    
    #btn-next { 
        grid-area: next; 
        width: 100% !important; 
        padding: 0.75rem 0.5rem !important; 
        justify-content: center !important;
    }
    
    .btn-group {
        width: 100%;
        display: flex;
        gap: 0.5rem;
    }

    .btn-group .btn {
        flex: 1;
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
}
/* Preview Button for Step 4 */
.preview-trigger-container {
    position: relative;
    overflow: hidden;
}

.btn-preview-installed {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 0.6rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    z-index: 10;
    backdrop-filter: blur(4px);
    transform: translateY(0);
}

.btn-preview-installed:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.btn-preview-installed i {
    font-size: 1rem;
}
/* Address Suggestions */
.suggestions-container {
    position: relative;
    width: 100%;
}

.suggestions-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--glass-border);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto;
    display: none;
    margin-top: -1px;
}

.suggestions-list.active {
    display: block;
}

.suggestion-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
    border-bottom: 1px solid #f1f5f9;
    color: var(--text-primary);
    line-height: 1.4;
}

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

.suggestion-item:hover {
    background: var(--accent-light);
    color: var(--accent-color);
}

.suggestion-item strong {
    color: var(--text-primary);
}
.diffusore-image-container:hover .btn-preview-installed {
    animation: bounceSoft 0.5s ease;
}

@keyframes bounceSoft {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Wizard Diffuser Selection Styles */
.wiz-diffusore-card {
    transition: all 0.3s ease;
}

.wiz-diffusore-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.wiz-diffusore-img-wrapper {
    width: 100%;
    height: 160px;
    background: white;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow: hidden;
}

.wiz-diffusore-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.wiz-diffusore-card:hover .wiz-diffusore-img-wrapper img {
    transform: scale(1.08);
}

/* Landing Page */
.landing-page {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-gradient);
    background-attachment: fixed;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.landing-page.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Cart toast notification */
.cart-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    background: #16a34a;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 8px 30px rgba(22, 163, 74, 0.35);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transform: translateY(calc(100% + 2rem));
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    pointer-events: none;
    max-width: 400px;
}

.cart-toast.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.cart-toast i {
    font-size: 1.2rem;
}

/* Cart button on landing page */
.landing-cart-btn {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 2001;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.65rem 1rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
    box-shadow: 0 3px 10px rgba(2, 132, 199, 0.25);
    transition: all 0.2s ease;
}

.landing-cart-btn:hover {
    background: var(--accent-hover-gradient);
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
    transform: translateY(-1px);
}

.landing-cart-btn .cart-badge {
    background: white;
    color: var(--accent-color);
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.landing-user-type-badge {
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 2001;
    background: white;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 0.65rem 1rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.landing-user-type-badge:hover {
    border-color: var(--accent-color);
    box-shadow: 0 3px 10px rgba(2, 132, 199, 0.15);
    transform: translateY(-1px);
}

.landing-user-type-badge i {
    color: var(--accent-color);
}

.landing-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 1100px;
    padding: 4rem 2rem 4rem;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    animation: fadeIn 0.6s ease forwards;
}

.landing-stack {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1100px;
}

.landing-top {
    position: absolute;
    bottom: calc(100% + 1.25rem);
    left: 0;
    right: 0;
}

.landing-cards {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: center;
    gap: 1.5rem;
    align-content: center;
    width: 100%;
    max-width: 1100px;
}

.landing-logo {
    margin-bottom: 0.5rem;
}

.landing-logo .logo-img {
    max-width: 400px;
    max-height: 128px;
}

.landing-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    letter-spacing: -0.03em;
}

.landing-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 2.75rem 2rem;
    flex: 1 1 0;
    min-width: 0;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.landing-card:not(.disabled):hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.12);
    border-color: var(--accent-color);
}

.landing-card:not(.disabled):active {
    transform: translateY(-2px);
}

.landing-card.disabled {
    cursor: not-allowed;
    opacity: 0.75;
}

.landing-card.disabled:hover {
    transform: none;
    box-shadow: var(--shadow-md);
    border-color: var(--glass-border);
}

.landing-card-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent-color);
    transition: all 0.3s ease;
}

.landing-card:not(.disabled):hover .landing-card-icon {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.25);
}

.landing-card-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.landing-card-text h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.landing-card-text p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
    flex: 1;
}

.landing-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: var(--accent-gradient);
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
    transition: all 0.3s ease;
    margin-top: auto;
}

.landing-card .coming-soon-badge--corner {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    margin-top: 0;
    padding: 0.35rem 0.9rem;
    font-size: 0.75rem;
}

.landing-card-btn.disabled {
    background: #e2e8f0;
    color: #64748b;
    box-shadow: none;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.75;
}

.landing-card:not(.disabled):hover .landing-card-btn.disabled {
    box-shadow: none;
    transform: none;
}

.landing-card:not(.disabled):hover .landing-card-btn {
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.35);
    transform: translateY(-1px);
}

.landing-card-bottom {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    cursor: not-allowed;
    opacity: 0.75;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: none;
    width: auto;
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.landing-card-bottom-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--text-secondary);
    opacity: 0.6;
}

.landing-card-bottom .coming-soon-badge {
    margin-top: 0;
    padding: 0.35rem 0.9rem;
    font-size: 0.75rem;
}

.coming-soon-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: var(--radius-md);
    letter-spacing: 0.02em;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
    margin-top: 0.5rem;
}

.coming-soon-badge i {
    font-size: 1rem;
}

.landing-card.disabled .landing-card-icon {
    color: var(--text-secondary);
    opacity: 0.5;
}

/* Choice Modal Cards */
.choice-cards {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    align-items: stretch;
    flex-wrap: nowrap;
}

.choice-card {
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 1.5rem 1rem;
    flex: 1 1 0;
    min-width: 0;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.choice-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(14, 165, 233, 0.1);
    border-color: var(--accent-color);
}

.choice-card:active {
    transform: translateY(-1px);
}

.choice-card.disabled {
    cursor: not-allowed;
    opacity: 0.55;
    filter: grayscale(0.7);
    pointer-events: none;
}

.choice-card-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.choice-card-badge i {
    font-size: 0.85rem;
}

.choice-card-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.choice-card-icon.contact-icon {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.choice-card:hover .choice-card-icon.contact-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.25);
}

.choice-card-icon.stripe-icon {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

.choice-card:hover .choice-card-icon.stripe-icon {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
}

.choice-card-icon.bonifico-icon {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.choice-card:hover .choice-card-icon.bonifico-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.25);
}

.choice-card-text h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.choice-card-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.choice-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    margin-top: 0.25rem;
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
}

.choice-card:hover .choice-card-btn {
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.35);
    transform: translateY(-1px);
}

.choice-card-btn.stripe-btn {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.choice-card:hover .choice-card-btn.stripe-btn {
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.choice-card.selected {
    border-color: var(--accent-color);
    box-shadow: 0 16px 32px rgba(14, 165, 233, 0.15);
    transform: translateY(-2px);
}

.choice-card.selected:hover {
    transform: translateY(-2px);
}

.choice-footer {
    margin: 2rem auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    width: 100%;
    max-width: 940px;
}

.choice-footer .accordo-confirm {
    display: none;
    align-items: flex-start;
    gap: 0.6rem;
    text-align: left;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    background: rgba(16, 185, 129, 0.08);
    border: 1.5px solid rgba(16, 185, 129, 0.35);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    flex: 1 1 460px;
    max-width: none;
    line-height: 1.4;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.choice-footer .accordo-confirm.visible {
    display: flex;
}

.choice-footer .accordo-confirm:hover {
    border-color: var(--success-color);
    background: rgba(16, 185, 129, 0.12);
}

.choice-footer .accordo-confirm input[type="checkbox"] {
    margin-top: 0.15rem;
    accent-color: var(--success-color);
    width: 1.2rem;
    height: 1.2rem;
    cursor: pointer;
    flex-shrink: 0;
}

.choice-confirm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 2.25rem;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: var(--radius-md);
    background: var(--accent-gradient);
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
    transition: all 0.2s ease;
    font-family: inherit;
}

.choice-confirm-btn:hover:not(:disabled) {
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.35);
    transform: translateY(-1px);
}

.choice-confirm-btn:disabled {
    background: #e2e8f0;
    color: #94a3b8;
    box-shadow: none;
    cursor: not-allowed;
}

.choice-confirm-btn.stripe-btn {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.choice-confirm-btn.stripe-btn:hover:not(:disabled) {
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

#choice-modal .modal {
    max-width: 1080px !important;
}

@media (max-width: 768px) {
    .choice-cards {
        flex-wrap: nowrap;
        gap: 0.75rem;
    }

    .choice-card {
        padding: 1rem 0.75rem;
        gap: 0.75rem;
        flex: 1 1 0;
        min-width: 0;
        max-width: none;
    }

    .choice-card-icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }

    .choice-card-text h3 {
        font-size: 1rem;
    }

    .choice-card-text p {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .landing-content {
        padding: 1.5rem;
    }

    .landing-title {
        font-size: 1.25rem;
    }

    .landing-cards {
        flex-direction: column;
    }

    .landing-card {
        width: 100%;
        max-width: 340px;
        padding: 2rem 1.5rem;
    }

    .landing-logo .logo-img {
        max-width: 275px;
    }
}

/* ===== Small Screen Warning Overlay ===== */
#small-screen-warning {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-gradient);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.warning-content {
    text-align: center;
    max-width: 400px;
}

.warning-logo {
    max-width: 160px;
    margin-bottom: 1.5rem;
}

.warning-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.warning-icon i {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.warning-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.warning-content p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

/* Landing page: fix overlap on shorter viewports */
@media (max-height: 850px) {
    .landing-content {
        padding: 3.5rem 2rem 3.5rem;
    }
    .landing-logo {
        margin-bottom: 0.5rem;
    }
    .landing-logo .logo-img {
        max-width: 275px;
        max-height: 88px;
    }
    .landing-title {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
    }
    .landing-card {
        padding: 2rem 1.5rem;
        max-width: 320px;
    }
    .landing-card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    .landing-card-text h3 {
        font-size: 1.2rem;
    }
    .landing-card-text p {
        font-size: 0.85rem;
    }
    .landing-card-btn {
        padding: 0.6rem 1.25rem;
        font-size: 0.85rem;
    }
}

/* Landing page: tighter spacing on very short viewports */
@media (max-height: 700px) {
    .landing-content {
        padding: 2.5rem 1.5rem 2.5rem;
    }
    .landing-logo {
        margin-bottom: 0.5rem;
    }
    .landing-logo .logo-img {
        max-width: 210px;
        max-height: 67px;
    }
    .landing-title {
        font-size: 1.1rem;
    }
    .landing-cards {
        gap: 1.25rem;
    }
    .landing-card {
        padding: 1.5rem 1.25rem;
        max-width: 280px;
    }
    .landing-card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    .landing-card-text h3 {
        font-size: 1.1rem;
        margin-bottom: 0.25rem;
    }
}

@media (max-width: 768px) {
    body {
        overflow: hidden !important;
    }
    #small-screen-warning {
        display: flex;
    }
}

/* Toggle Switch */
.toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    user-select: none;
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: #cbd5e1;
    border-radius: 24px;
    transition: background 0.25s ease;
    cursor: pointer;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: transform 0.25s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.toggle-switch input:checked + .toggle-slider {
    background: #b91c1c;
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);
}

.toggle-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: color 0.25s ease;
}

.toggle-switch input:checked ~ .toggle-label,
.toggle-wrapper.toggle-active .toggle-label {
    color: #b91c1c;
}

/* Header with toggle */
.step-header-with-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.step-header-with-toggle h3 {
    margin-bottom: 0 !important;
}

.step-header-with-toggle .toggle-wrapper {
    margin-left: auto;
}
