/**
 * Configurator Wizard Styles
 * CSS dla wieloetapowego kreatora
 */

/* ============================================
   WIZARD CONTAINER & LAYOUT
   ============================================ */
#wizard-wrapper {
    position: relative;
    width: 100%;
}

.wizard-step {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.wizard-step.active {
    display: block;
}

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

/* ============================================
   PROGRESS BAR
   ============================================ */
#wizard-progress-container {
    width: 100%;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

#wizard-progress-bar {
    height: 8px;
    background: linear-gradient(90deg, #0570e2 0%, #0a8fff 100%);
    width: 0%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
}

/* Progress percentage text */
#wizard-progress-text {
    text-align: center;
    margin-top: 8px;
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

/* ============================================
   STEP LIST
   ============================================ */
.wizard-steps-list {
    list-style: none;
    counter-reset: step-counter;
    padding-left: 0;
    margin: 0;
    transition: opacity 0.3s ease;
}

.wizard-step-item {
    counter-increment: step-counter;
    position: relative;
    padding: 28px 0 28px 87px;
    font-size: 18px;
    color: #ccc;
    box-shadow: 0 -15px 15px -17px rgba(0, 0, 0, 0.12);
    transition: all 0.75s ease;
    line-height: 1.4;
    cursor: pointer;
    display: flex;
    align-items: center;  /* Ikona i tekst w jednej linii */
}

.wizard-step-item:first-child {
    box-shadow: none;
}

.wizard-step-item .step-title {
    display: inline-block;  /* Zmienione z block - ikona i tekst w jednej linii */
    user-select: none;
}

/* Step icons (desktop) */
.wizard-step-item .step-icon {
    margin-right: 8px;
    font-size: 18px;
    vertical-align: middle;
}

/* Numbered circles */
.wizard-step-item::before {
    content: counter(step-counter);
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translate(0, -50%);
    font-size: 24px;
    font-weight: bold;
    color: #ccc;
    line-height: 1;
    padding: 10px 12px;
    border: 2px solid #ddd;
    border-radius: 100%;
    width: 48px;
    height: 48px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    transition: all 0.3s ease;
}

/* Active (completed) step */
.wizard-step-item.active {
    color: #333;
}

.wizard-step-item.active::before {
    color: #fff;
    border-color: #5cb85c;
    background: #5cb85c;
}

/* Hover effect for clickable steps */
.wizard-step-item.active:hover {
    color: #000;
}

.wizard-step-item.active:hover::before {
    border-color: #4cae4c;
    background: #4cae4c;
    transform: translate(0, -50%) scale(1.05);
}

/* Current step (highlighted) */
.wizard-step-item.current {
    color: #000;
    font-weight: 600;
}

.wizard-step-item.current::before {
    color: #fff;
    border-color: #5cb85c;
    background: #5cb85c;
    box-shadow: 0 0 0 4px rgba(92, 184, 92, 0.2);
}

.wizard-step-item.done::before {
    color: #5cb85c;
    border-color: #5cb85c;
    background: #fff;
}

/* ============================================
   STEP 1 - MODE SELECTION
   ============================================ */
.mode-selection-grid {
    display: flex;
    justify-content: center;
}

.mode-card {
    background: white;
    border: 3px solid #e0e0e0;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin: 3.6%;
    width: 25%;
    min-height: 300px;
    height: auto;
    max-width: 250px;
}

.mode-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0570e2, #0a8fff);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.mode-card:hover {
    border-color: #0570e2;
    box-shadow: 0 8px 20px rgba(5, 112, 226, 0.15);
    transform: translateY(-5px);
}

.mode-card:hover::before {
    transform: scaleX(1);
}

.mode-card.selected {
    border-color: #0570e2;
    background: #f0f7ff;
}

.mode-card.selected::before {
    transform: scaleX(1);
}

.mode-card-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: inline-block;
}

.mode-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    min-height: 3em;
}

.mode-card-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.configurator-neon .left-container {
	max-height: 100%;
}

/* ============================================
   BOTTOM NAVIGATION BAR (Fixed)
   ============================================ */
.wizard-bottom-nav-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 71vw; /* Matches left-container width (71% of viewport) */
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    z-index: 999999; /* Below modals (1000000), above content */
    padding: 4px 0;
    transition: all 0.3s ease;
    min-height: 8vh;
}

.wizard-bottom-nav-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

/* Left section: Back button only */
.wizard-nav-left {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

/* Center section: Save button (always reserves space) */
.wizard-nav-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Right section: Next/Finish buttons */
.wizard-nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

/* Navigation buttons */
.wizard-nav-btn {
    padding: 18px 28px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border: none !important;
    border-radius: 10px !important;
    cursor: pointer;
    transition: all 0.25s ease !important;
    display: inline-flex;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
    line-height: 1 !important;
}

.wizard-nav-btn i {
    font-size: 18px;
}

.wizard-nav-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    background: #ccc !important;
    color: #666 !important;
    box-shadow: none !important;
}

.wizard-nav-btn:disabled .btn-text {
    color: #666 !important;
}

/* Back button */
.wizard-btn-prev {
    background: #f5f5f5 !important;
    color: #555 !important;
    border: 1px solid #e0e0e0 !important;
}

.wizard-btn-prev:hover:not(:disabled) {
    background: #ebebeb !important;
    border-color: #d0d0d0 !important;
    transform: translateX(-2px) !important;
}

/* Save button */
.wizard-btn-save {
    background: #fff !important;
    color: #0570e2 !important;
    border: 2px solid #0570e2 !important;
}

.wizard-btn-save:hover:not(:disabled) {
    background: #f0f7ff;
    border-color: #0460c8;
    color: #0460c8;
}

/* Next button */
.wizard-btn-next {
    background: linear-gradient(135deg, #0570e2 0%, #0a8fff 100%) !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(5, 112, 226, 0.25) !important;
}

.wizard-btn-next:hover:not(:disabled) {
    box-shadow: 0 4px 16px rgba(5, 112, 226, 0.4) !important;
    transform: translateY(-2px) !important;
}

/* Finish button */
.wizard-btn-finish {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.25) !important;
}

.wizard-btn-finish:hover:not(:disabled) {
    box-shadow: 0 4px 16px rgba(40, 167, 69, 0.4) !important;
    transform: translateY(-2px) !important;
}

/* Przycisk "Prześlij do weryfikacji" w podsumowaniu */
.btn-verification {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.25) !important;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-bottom: 15px;
}

.btn-verification:hover:not(:disabled) {
    box-shadow: 0 4px 16px rgba(40, 167, 69, 0.4) !important;
    transform: translateY(-2px) !important;
}

.btn-verification i {
    font-size: 20px;
}

/* OLD NAVIGATION (deprecated - kept for reference) */
#wizard-navigation {
    display: none; /* Hidden - replaced by wizard-bottom-nav-bar */
}

/* ============================================
   PRODUCT CARDS (STEP 4)
   ============================================ */
.product-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2%;
}

.product-card-wizard {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.product-card-wizard:hover {
    border-color: #0570e2;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.product-card-wizard.selected {
    border-color: #0570e2;
    border-width: 3px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e3f2fd 100%);
    box-shadow: 0 8px 25px rgba(5,112,226,0.25);
    transform: translateY(-5px);
}

.product-card-wizard.selected::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: #0570e2;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(5,112,226,0.3);
}

.product-card-image {
    width: 100%;
    object-fit: cover; /* Changed from cover to contain - thumbnails are small, show them fully */
    background: #1a1a1a; /* Dark background to match thumbnail backgrounds */
}

.product-card-content {
    padding: 3%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 120px; /* Ensures consistent card height */
}

.product-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 3em;
}

.configurator-neon .product-card-title {
	font-size: 1.2vw;
	font-weight: bold;
	margin-bottom: 10px;
	text-align: center;
}

.product-card-subtitle {
    display: block;
    font-size: 0.85rem;
    font-weight: 400;
    color: #666;
    line-height: 1.3;
}

.product-card-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.product-card-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto; /* Push buttons to bottom */
}

.product-card-btn {
	background-color: #0570e2 !important;
	color: white !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
	margin: 0 !important;
	cursor: pointer;
	padding: 2% !important;
	width: auto;
	transition: all 0.3s ease;
}
}

.product-card-btn.primary {
    background: white !important;
    color: var(--bs-body-color) !important;
    border-color: #0570e2 !important;
}

.product-card-btn:hover {
    background: white !important;
    color: var(--bs-body-color) !important;
}

/* Product card price display */
.product-card-price {
    margin: 10px;
    text-align: center;
}

.product-card-wizard.selected .product-card-price {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

.product-card-price .price-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
}

.product-card-price .price-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: #28a745;
}

/* Product comparison button */
.compare-all-btn {
    width: 100% !important;
    padding: 15px !important;
    background: #f8f9fa !important;
    border: 2px dashed #0570e2 !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #0570e2 !important;
    cursor: pointer;
    margin-top: 20px !important;
    transition: all 0.3s ease !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.compare-all-btn:hover {
    background: #e3f2fd !important;
    border-style: solid !important;
}

.compare-all-btn.active {
    background: #e3f2fd !important;
    border-style: solid !important;
}

.compare-all-btn .compare-icon {
    font-size: 20px;
}

/* ProductModeBoxContainer - hidden by default with animation */
#ProductModeBoxContainer {
    display: none !important;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.4s ease, margin 0.3s ease;
}

#ProductModeBoxContainer.show {
    display: flex !important;
    max-height: 1000px;
    opacity: 1;
    animation: slideDown 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    margin-top: 20px;
}

@keyframes slideDown {
    from {
        transform: translateY(-20px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* ============================================
   PRODUCT DETAIL MODAL
   ============================================ */
.product-detail-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 1000000;
    overflow-y: auto;
    animation: modalFadeIn 0.3s ease;
}

.product-detail-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.product-detail-content {
    background: white;
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideUp 0.4s ease;
}

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

.product-detail-close {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: rgba(0,0,0,0.5) !important;
    border: none !important;
    color: white !important;
    font-size: 24px !important;
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer;
    z-index: 1;
    transition: all 0.2s ease;
}

.product-detail-close:hover {
    background: rgba(0,0,0,0.7);
    transform: rotate(90deg);
}

.product-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
    padding: 20px;
}

.product-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.product-gallery img:hover {
    transform: scale(1.05);
}

.product-video {
    padding: 20px;
    padding-top: 0;
}

.product-video iframe {
    width: 100%;
    height: 400px;
    border-radius: 8px;
}

.product-detail-description {
    padding: 20px;
    padding-top: 0;
}

.product-detail-description h2 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.product-detail-description p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 15px;
}

/* ============================================
   ADDONS (STEP 8)
   ============================================ */
.addons-section {
    margin: 30px 0;
}

.addon-group {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    margin: 15px;
}

.addon-group-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.addon-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.addon-option {
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.addon-option:hover {
    border-color: #0570e2;
    background: #f8f9fa;
}

.addon-option.selected {
    border-color: #0570e2;
    background: #e3f2fd;
}

.addon-option-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.addon-option-price {
    font-size: 14px;
    color: #28a745;
    font-weight: 600;
}

/* Cable exit selector */
.cable-exit-selector {
    position: relative;
    max-width: 400px;
    margin: 20px auto;
}

/* Cable exit grid - 3x2 layout for 6 positions */
.cable-exit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 5%;
    max-width: 600px;
}

.cable-exit-point {
    position: relative;
    padding: 0 5%;
    border: 3px solid #e0e0e0;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cable-exit-point:hover {
    border-color: #0570e2;
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5,112,226,0.2);
}

.cable-exit-point.selected {
    border-color: #0570e2;
    background: #e3f2fd;
    box-shadow: 0 4px 12px rgba(5,112,226,0.3);
}

.cable-exit-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.cable-exit-check {
    display: none;
    font-size: 20px;
    color: #0570e2;
    margin-top: 5px;
}

.cable-exit-point.selected .cable-exit-check {
    display: block;
}

/* Addon options with images */
.addon-image-button {
    position: relative;
    padding: 12px;
    border: 3px solid #e0e0e0;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.addon-image-button:hover {
    border-color: #0570e2;
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5,112,226,0.2);
}

.addon-image-button.selected {
    border-color: #0570e2;
    background: #e3f2fd;
    box-shadow: 0 4px 12px rgba(5,112,226,0.3);
}

/* XPS addon options - always selected, non-clickable */
.addon-options-xps {
    grid-template-columns: repeat(2, 1fr);
}

.xps-addon-option {
    cursor: default;
    pointer-events: none;
}

.xps-addon-option:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(5,112,226,0.3);
}

.xps-addon-option.selected {
    border-color: #0570e2;
    background: #e3f2fd;
    box-shadow: 0 4px 12px rgba(5,112,226,0.3);
}

.addon-option-image {
    width: 100%;
    max-width: 120px;
    height: 80px;
    object-fit: contain;
}

.addon-option-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.addon-option-price {
    font-size: 14px;
    color: #28a745;
    font-weight: 600;
}

.addon-option-description {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.addon-option-badge {
    display: inline-block;
    padding: 4px 8px;
    background: #0570e2;
    color: white;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

/* Twilight sensor checkbox styling */
.addon-checkbox {
    padding: 20px;
    border: 3px solid #e0e0e0;
    border-radius: 12px;
    background: white;
    transition: all 0.3s ease;
}

.addon-checkbox:hover {
    border-color: #0570e2;
    background: #f8f9fa;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    gap: 12px;
}

.checkbox-custom {
    width: 24px;
    height: 24px;
    border: 2px solid #0570e2;
    border-radius: 6px;
    display: inline-block;
    position: relative;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: #0570e2;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 16px;
    font-weight: bold;
}

.checkbox-text {
    font-weight: 600;
    color: #333;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.checkbox-price {
    color: #28a745;
    font-weight: 700;
}

/* Addon group description */
.addon-group-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

/* ============================================
   EXIT INTENT POPUP
   ============================================ */
.exit-intent-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.exit-intent-popup.active {
    display: flex;
}

.exit-intent-content {
    background: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    text-align: center;
    animation: modalSlideUp 0.4s ease;
}

.exit-intent-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.exit-intent-content p {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
}

#exit-email-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 20px;
}

.exit-intent-buttons {
    display: flex;
    gap: 10px;
}

.exit-intent-buttons button {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* ============================================
   WHATSAPP BUTTON
   ============================================ */
#whatsapp-float-btn {
    position: fixed;
    bottom: 5px;
    left: 10px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

#whatsapp-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

#whatsapp-float-btn i {
    font-size: 32px;
    color: white;
}

/* ============================================
   MOBILE STEP SLIDER
   Poziomy slider z krokami dla urządzeń mobilnych
   ============================================ */

/* Desktop: ukryty */
.mobile-step-slider {
    display: none;
}

#wizard-step-1 {
  padding: 5% 0;
}

/* Mobile: pokazany jako sticky horizontal slider */
@media (max-width: 768px) {

    
    #wizard-step-1 {
    padding: 0;
    }

    .wizard-bottom-nav-bar {
        min-height: 6vh;
    }
    
    .product-detail-description {
        padding: 0;
    }

    .mobile-step-slider {
        display: flex;
        position: sticky;
        top: 0;
        left: 0;
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-bottom: 2px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        padding: 12px 8px;
        gap: 8px;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        /* Hide scrollbar but keep functionality */
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }

    .mobile-step-slider::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    /* Individual mobile step */
    .mobile-step {
        flex-shrink: 0;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 6px;
        min-width: 50px;
        height: 50px;
        padding: 8px 10px;
        border-radius: 12px;
        background: #f5f5f5;
        border: 2px solid #e0e0e0;
        cursor: pointer;
        transition: all 0.3s ease;
        position: relative;
    }

    /* Step number - obok ikony */
    .mobile-step .step-number {
        font-size: 16px;
        font-weight: 700;
        color: #999;
        transition: all 0.3s ease;
        line-height: 1;
    }

    /* Step icon */
    .mobile-step i {
        font-size: 20px;
        color: #999;
        transition: all 0.3s ease;
        line-height: 1;
    }

    /* Step name - hidden by default, shown only for active */
    .mobile-step .step-name {
        display: none;
        font-size: 12px;
        font-weight: 600;
        color: #333;
        text-align: center;
        margin-top: 4px;
        white-space: nowrap;
    }

    /* Active step - larger, with visible title (green like desktop) */
    .mobile-step.active {
        min-width: auto;
        height: auto;
        background: #5cb85c;
        border-color: #5cb85c;
        box-shadow: 0 0 0 4px rgba(92, 184, 92, 0.2), 0 4px 12px rgba(92, 184, 92, 0.3);
        padding: 6px;
        gap: 8px;
        flex-wrap: wrap;
    }

    .mobile-step.active .step-number {
        color: #fff;
        font-size: 18px;
        opacity: 1;
    }

    .mobile-step.active i {
        color: #fff;
        font-size: 24px;
    }

    .mobile-step.active .step-name {
        display: block;
        color: #fff;
        font-size: 13px;
        font-weight: 700;
        text-align: center;
        margin-top: 2px;
    }

    /* Completed steps (before current) */
    .mobile-step.completed {
        background: #e8f5e9;
        border-color: #5cb85c;
    }

    .mobile-step.completed .step-number {
        color: #5cb85c;
        font-size: 16px;
    }

    .mobile-step.completed i {
        color: #5cb85c;
        font-size: 20px;
    }

    /* Hover effect for clickable steps */
    .mobile-step:hover:not(.disabled):not(.active) {
        transform: scale(1.05);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

    /* Active step hover - green glow */
    .mobile-step.active:hover {
        box-shadow: 0 0 0 4px rgba(92, 184, 92, 0.3), 0 4px 14px rgba(92, 184, 92, 0.4);
        transform: scale(1.02);
    }

    /* Disabled steps (future steps not yet accessible) */
    .mobile-step.disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .mobile-step.disabled:hover {
        transform: none;
        box-shadow: none;
    }

    /* Done steps (completed steps after current - accessible) */
    .mobile-step.done {
        background: #fff;
        border-color: #5cb85c;
    }

    .mobile-step.done .step-number {
        color: #5cb85c;
        font-size: 16px;
    }

    .mobile-step.done i {
        color: #5cb85c;
        font-size: 20px;
    }
}


/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1400px) {
    .product-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet breakpoint */
@media (max-width: 1024px) {

    .wizard-bottom-nav-content {
        padding: 0 16px;
        gap: 16px;
    }

    .wizard-nav-center {
        max-width: 300px;
    }

    .wizard-nav-btn {
        padding: 10px 18px !important;
        font-size: 16px !important;
    }

    .wizard-nav-btn .btn-text {
        display: inline; /* Keep text on tablets */
    }
}

/* Mobile breakpoint */
@media (max-width: 768px) {

    #click-version-text {
        display: none;
    }

    .cable-exit-point {
        padding: 0 5px;
        min-height: 40px;
    }
    /* ============================================
       UKRYJ TYLKO <LI> KROKI NA MOBILE
       Desktop <li> step-item są zastąpione przez mobile-step-slider
       Divy pomiędzy nimi (fontBox, dimensionSection, etc.) działają normalnie
       ============================================ */
    .wizard-step-item {
        display: none !important;
    }

    /* Usuń style listy z <ol>, ale zachowaj divy wewnątrz */
    .wizard-steps-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    /* ============================================
       UKRYJ PRZYCISK "ZAŁADUJ WŁASNĄ CZCIONKĘ" NA MOBILE
       Na telefonie użytkownicy nie przechowują plików czcionek
       ============================================ */
    #load_font {
        display: none !important;
    }

    /* ============================================
       AKTYWNY PRZYCISK CZCIONKI (MOBILE)
       Dostosowanie do mniejszych ekranów
       ============================================ */
    .fontButton.active::after,
    .fontButton.selected::after {
        width: 20px !important;
        height: 20px !important;
        top: -6px !important;
        right: -6px !important;
        font-size: 12px !important;
    }

    /* ============================================
       KROK 1 - SPECJALNE WYSOKOŚCI KONTENERÓW (MOBILE)
       Dostosowanie proporcji dla wyboru trybu
       ============================================ */
    body.wizard-current-step-1 #right-container {
        min-height: 0vh !important;
    }

    body.wizard-current-step-1 #left-container {
        height: 100% !important;
    }

    /* ============================================
       KROK 2 - TRYB LOGO - SPECJALNE WYSOKOŚCI (MOBILE)
       ============================================ */
    body.wizard-current-step-2.wizard-mode-logo #right-container {
        min-height: 0vh !important;
    }

    /* ============================================
       KOMPAKTOWE PRZYCISKI MONTAŻU (MOBILE)
       Oszczędność miejsca z oryginalnymi kolorami
       ============================================ */
    .configurator-neon .mountingTypeButton {
        padding: 10px 12px !important;
        margin-bottom: 8px !important;
    }

    .configurator-neon .mountingTypeButton .buttonTop {
        margin-bottom: 6px !important;
    }

    .configurator-neon .mountingTypeButton .typeName {
        font-size: 15px !important;
    }

    .configurator-neon .mountingTypeButton .typeDescription {
        font-size: 13px !important;
        line-height: 1.4 !important;
    }

    .configurator-neon .mountingTypeButton .exampleButton {
        padding: 5px 10px !important;
        font-size: 12px !important;
    }

    /* Mode selection grid - 2 columns for Text/Logo, Contact below full width */
    .mode-selection-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        width: 100%;
        padding: 0 10px;
    }

    .mode-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        min-height: 200px;
    }

    /* Contact card (3rd card) - full width on second row */
    .mode-card:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 100% !important;
    }

    .mode-card-icon {
        font-size: 36px;
        margin-bottom: 10px;
    }

    .mode-card-title {
        font-size: 18px;
        min-height: auto;
    }

    .mode-card-description {
        font-size: 13px;
    }

    /* Right-container headings - mobile responsive */
    .right-container .wizard-heading,
    #right-container .wizard-heading {
        font-size: 18px !important;
        margin-bottom: 12px;
    }

    .right-container .wizard-subheading,
    #right-container .wizard-subheading {
        font-size: 14px !important;
        margin-bottom: 20px;
        line-height: 1.5;
    }

    /* Section headings in wizard steps */
    .wizard-section h3,
    .addon-group-title {
        font-size: 16px !important;
    }

    .configurator-neon .product-card-title {
        font-size: 1.8vw;
    }

    .product-card-subtitle {
        font-size: 1.5vw;
    }

    .product-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        width: 99%;
    }

    /* Cable exit grid - 2 columns on mobile */
    .cable-exit-grid {
        gap: 2px;
    }

    .product-detail-content {
        margin: 10px;
    }

    #whatsapp-float-btn {
        top: 107px;
        left: 16px;
        width: 50px;
        height: 50px;
    }

    /* Bottom navigation adjustments for mobile */
    .wizard-bottom-nav-bar {
        padding: 5px 0 !important;
        width: 100% !important; /* Full width on mobile */
    }

    .wizard-bottom-nav-content {
        padding: 0 12px !important;
        gap: 8px !important;
        flex-wrap: nowrap !important;
    }

    .wizard-nav-left {
        flex: 0 0 auto !important;
    }

    .wizard-nav-center {
        flex: 1 1 auto !important;
    }

    .wizard-nav-right {
        gap: 8px !important;
        flex: 0 0 auto !important;
    }

    .wizard-nav-btn {
        padding: 10px 16px !important;
        font-size: 15px !important;
        gap: 6px !important;
    }

    .wizard-nav-btn i {
        font-size: 17px !important;
    }


    .wizard-btn-prev,
    .wizard-btn-save,
    .wizard-btn-next,
    .wizard-btn-finish {
        min-width: 44px !important; /* Touch target size */
        padding: 10px 12px !important;
        justify-content: center !important;
    }

    /* Adjust body padding for mobile */
    body {
        padding-bottom: 80px;
    }

    /* ============================================
       MOBILE: Top-nav step list (horizontal numbers only)
       ============================================ */
    .wizard-steps-list {
        position: sticky;
        top: 0;
        z-index: 100;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
        padding: 0;
        margin: 0;
        width: 100%;
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 8px;
        counter-reset: step-counter;
        -webkit-overflow-scrolling: touch;
    }

    /* Content sections below sticky nav */
    .wizard-content-sections {
        margin-top: 10px;
    }

    .wizard-step-item {
        counter-increment: step-counter;
        position: relative;
        padding: 0;
        margin: 0;
        min-width: 40px;
        width: 40px;
        height: 40px;
        flex-shrink: 0;
        box-shadow: none;
        display: flex;
        align-items: center;
        justify-content: center;
        color: transparent;
        font-size: 0;
    }

    .wizard-step-item::before {
        content: counter(step-counter);
        position: static;
        transform: none;
        font-size: 16px;
        font-weight: bold;
        color: #ccc;
        line-height: 1;
        padding: 0;
        border: 2px solid #ddd;
        border-radius: 100%;
        width: 40px;
        height: 40px;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #fff;
        transition: all 0.3s ease;
    }

    .wizard-step-item.active::before,
    .wizard-step-item.current::before {
        color: #fff;
        border-color: #5cb85c;
        background: #5cb85c;
    }

    .wizard-step-item.current::before {
        box-shadow: 0 0 0 3px rgba(92, 184, 92, 0.2);
    }

    /* Hide step titles and icons on mobile */
    .wizard-step-item .step-title {
        display: none;
    }

    .wizard-step-item .step-icon {
        display: none;
    }

    /* Body padding for bottom nav only (sticky nav doesn't need top padding) */
    body {
        padding-bottom: 80px; /* Space for bottom nav */
    }
}

/* Extra small mobile */
@media (max-width: 480px) {    

    .configurator-neon .product-card-title {
        font-size: 3.5vw;
    }

    .product-card-subtitle {
        font-size: 2.5vw;
    }

    .wizard-bottom-nav-content {
        padding: 0 8px;
    }

    .wizard-nav-left {
        gap: 8px;
    }

    .wizard-progress-info {
        font-size: 12px;
    }

}

/* OLD NAVIGATION (deprecated) */
#wizard-navigation {
    display: none !important; /* Hidden - replaced by wizard-bottom-nav-bar */
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.wizard-heading {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.wizard-subheading {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

/* ============================================
   LEFT-CONTAINER HEADINGS (Dark Background)
   ============================================ */

/* Headings in left-container - light colors for dark background */
.left-container .wizard-heading,
#left-container .wizard-heading {
    color: #ffffff;
    text-shadow:
        0 2px 10px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(255, 255, 255, 0.2);
    font-size: 28px;
    letter-spacing: 0.5px;
    margin: 15px;
}

/* Subheadings in left-container - light colors with subtle glow */
.left-container .wizard-subheading,
#left-container .wizard-subheading {
    color: rgba(255, 255, 255, 0.9);
    text-shadow:
        0 1px 8px rgba(0, 0, 0, 0.4),
        0 0 15px rgba(255, 255, 255, 0.1);
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.wizard-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    border: 2px solid #e0e0e0;
}

.wizard-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #e0e0e0, transparent);
    margin: 30px 0;
}

/* ============================================
   STEP-SPECIFIC LAYOUTS
   ============================================ */

/* Step 1: wizard-step-1 is in left-container, wizard-step-2 to 9 are in right-container
   Hide outputImgContainer (no SVG yet), show left-container with wizard-step-1 */
#main-container.step-1-active #outputImgContainer {
    display: none !important;
}

#main-container.step-1-active #left-container {
    display: block !important;
}

/* Step 2a (Text mode): Show left-container with preview, hide outputImgContainer */
#main-container.step-2-active.text-mode #left-container {
    display: flex !important;
}

#main-container.step-2-active.text-mode #outputImgContainer {
    display: none !important;
}

#main-container.step-2-active.text-mode #preview {
    display: flex !important;
}

#main-container.step-2-active.text-mode #right-container {
    display: block !important;
}

/* Step 2b (Logo mode): Hide left-container, show outputImgContainer for logo upload */
#main-container.step-2-active.logo-mode #left-container {
    display: none !important;
}

#main-container.step-2-active.logo-mode #outputImgContainer {
    display: flex !important;
    justify-content: center;
    align-items: center;
}

#main-container.step-2-active.logo-mode #right-container {
    display: block !important;
}

/* Step 2c (Contact mode): Show left-container with form, hide output container */
#main-container.step-2-active.contact-mode #left-container {
    display: block !important;
}

#main-container.step-2-active.contact-mode #outputImgContainer {
    display: none !important;
}

#main-container.step-2-active.contact-mode #right-container {
    display: block !important; /* Keep right container visible on desktop */
}

/* DESKTOP: Enable scrolling for contact form in left-container */
#main-container.step-2-active.contact-mode .left-container {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-bottom: 120px; /* Space for bottom navigation bar + breathing room */
}

/* AI Processing phase (after crop, before version selection): Show outputImgContainer with loader, hide left-container */
#main-container.ai-processing #outputImgContainer {
    display: flex !important;
    justify-content: center;
    align-items: center;
}

#main-container.ai-processing #left-container {
    display: none !important;
}

#main-container.ai-processing #right-container {
    display: block !important;
}

/* Step 3 (Version selection - logo mode): Show version comparison in outputImgContainer, hide left-container */
#main-container.step-3-active #outputImgContainer {
    display: flex !important;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
}

#main-container.step-3-active #left-container {
    display: none !important;
}

#main-container.step-3-active #right-container {
    display: block !important;
}

/* chooseSkeletonVersion - 2 przyciski (mieszana + retry) styling */
#chooseSkeletonVersion .option-tile {
    transition: all 0.3s ease;
}

#mixedVersionBtn:hover {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%) !important;
    border-color: #0570e2 !important;
    box-shadow: 0 4px 12px rgba(5, 112, 226, 0.2);
    transform: translateY(-2px);
}

#retryFromStartBtn:hover {
    border-color: #c82333 !important;
    background: #fff5f5 !important;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
    transform: translateY(-2px);
}

#retryFromStartBtn:hover h5,
#retryFromStartBtn:hover i {
    color: #c82333 !important;
}

/* Step 4-10: Hide outputImgContainer (user configures parameters in wizard), show left-container with wizard */
#main-container.step-4-active #outputImgContainer,
#main-container.step-5-active #outputImgContainer,
#main-container.step-6-active #outputImgContainer,
#main-container.step-7-active #outputImgContainer,
#main-container.step-8-active #outputImgContainer,
#main-container.step-9-active #outputImgContainer,
#main-container.step-10-active #outputImgContainer {
    display: none !important;
}

#main-container.step-4-active #left-container,
#main-container.step-5-active #left-container,
#main-container.step-6-active #left-container,
#main-container.step-7-active #left-container,
#main-container.step-8-active #left-container,
#main-container.step-9-active #left-container,
#main-container.step-10-active #left-container {
    display: flex !important;
}

#main-container.step-4-active #right-container,
#main-container.step-5-active #right-container,
#main-container.step-6-active #right-container,
#main-container.step-7-active #right-container,
#main-container.step-8-active #right-container,
#main-container.step-9-active #right-container,
#main-container.step-10-active #right-container {
    display: block !important;
}

/* ============================================
   CONTACT FORM (WIZARD-STEP-2C)
   ============================================ */

/* Contact form container in left-container - center and add space */
#wizard-step-2c {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Contact form heading styling - override left-container styles */
#wizard-step-2c .wizard-heading {
    font-size: 36px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin-bottom: 20px;
    text-align: center;
    text-shadow:
        0 3px 15px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(5, 112, 226, 0.3),
        0 0 50px rgba(5, 112, 226, 0.2) !important;
    letter-spacing: 1px;
}

/* Contact form subheading styling - override left-container styles */
#wizard-step-2c .wizard-subheading {
    font-size: 19px !important;
    color: rgba(255, 255, 255, 0.95) !important;
    margin-bottom: 45px;
    text-align: center;
    line-height: 1.7;
    text-shadow:
        0 2px 10px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(255, 255, 255, 0.15) !important;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Contact form section container */
.wizard-contact-form {
    background: white;
    border-radius: 16px;
    padding: 40px;
    border: 2px solid #e0e0e0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Contact Form 7 field styling */
.wizard-contact-form .wpcf7-form-control-wrap {
    display: block;
    margin-bottom: 10px;
}

.wizard-contact-form input[type="text"],
.wizard-contact-form input[type="email"],
.wizard-contact-form input[type="tel"],
.wizard-contact-form input[type="url"],
.wizard-contact-form input[type="number"],
.wizard-contact-form textarea,
.wizard-contact-form select {
    width: 100%;
    padding: 14px 18px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: #fafafa;
    transition: all 0.3s ease;
    font-family: inherit;
    text-align: initial;
}

.wizard-contact-form input[type="text"]:focus,
.wizard-contact-form input[type="email"]:focus,
.wizard-contact-form input[type="tel"]:focus,
.wizard-contact-form input[type="url"]:focus,
.wizard-contact-form input[type="number"]:focus,
.wizard-contact-form textarea:focus,
.wizard-contact-form select:focus {
    outline: none;
    border-color: #0570e2;
    background: white;
    box-shadow: 0 0 0 4px rgba(5, 112, 226, 0.1);
}

/* Textarea specific styling */
.wizard-contact-form textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.6;
}

/* Labels */
.wizard-contact-form label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

/* Form paragraphs (field containers) */
.wizard-contact-form p {
    margin-bottom: 0;
}

/* Submit button styling */
.wizard-contact-form input[type="submit"],
.wizard-contact-form button[type="submit"] {
    width: 100%;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #0570e2 0%, #0a8fff 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(5, 112, 226, 0.3);
    margin-top: 20px;
}

.wizard-contact-form input[type="submit"]:hover,
.wizard-contact-form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 112, 226, 0.4);
}

.wizard-contact-form input[type="submit"]:active,
.wizard-contact-form button[type="submit"]:active {
    transform: translateY(0);
}

/* Contact Form 7 validation messages */
.wizard-contact-form .wpcf7-not-valid-tip {
    color: #dc3545;
    font-size: 14px;
    margin-top: 8px;
    display: block;
}

.wizard-contact-form .wpcf7-response-output {
    border-radius: 8px;
    padding: 15px 20px;
    margin: 20px 0;
    font-size: 15px;
    text-align: center;
}

.wizard-contact-form .wpcf7-validation-errors {
    border-color: #ffc107;
    background: #fff9e6;
    color: #856404;
}

.wizard-contact-form .wpcf7-mail-sent-ok {
    border-color: #28a745;
    background: #d4edda;
    color: #155724;
}

.wizard-contact-form .wpcf7-mail-sent-ng {
    border-color: #dc3545;
    background: #f8d7da;
    color: #721c24;
}

.wizard-contact-form .wpcf7-spam-blocked {
    border-color: #dc3545;
    background: #f8d7da;
    color: #721c24;
}

/* Checkboxes and radio buttons */
.wizard-contact-form input[type="checkbox"],
.wizard-contact-form input[type="radio"] {
    width: auto;
    margin-right: 8px;
}

/* File upload styling */
.wizard-contact-form input[type="file"] {
    padding: 12px;
    font-size: 15px;
}

/* Acceptance checkbox (GDPR, etc.) */
.wizard-contact-form .wpcf7-acceptance {
    margin: 25px 0;
}

.wizard-contact-form .wpcf7-acceptance label {
    display: flex;
    align-items: start;
    font-weight: 400;
    font-size: 14px;
    color: #666;
}

.wizard-contact-form .wpcf7-acceptance input[type="checkbox"] {
    margin-top: 3px;
}

/* Loading spinner for form submission */
.wizard-contact-form .wpcf7-spinner {
    margin-left: 10px;
}

/* Remove <br> tags between label and input to reduce form height */
.wizard-contact-form p br {
    display: none !important;
}

/* Ensure labels and inputs are properly spaced without <br> */
.wizard-contact-form p label {
    display: block;
    margin-bottom: 8px;
}

.wizard-contact-form p .wpcf7-form-control-wrap {
    display: block;
}

/* Responsive adjustments for contact form */
@media (max-width: 768px) {
    
    #main-container.step-3-active #right-container {
        min-height: 20vh;
    }

    #main-container.step-3-active #outputImgContainer {
        padding: 5px!important;
        max-height: initial;
    }

    #main-container.step-2-active.logo-mode #right-container {
        min-height: 0vh;
    }

    #main-container.step-2-active.logo-mode .left-container {
        max-height: 70vh;
    }

    #wizard-step-2c {
        padding: 10px 15px 20px 15px; /* Reduced padding for better space utilization */
    }

    /* Mobile: Contact form heading - smaller but still prominent */
    #wizard-step-2c .wizard-heading {
        font-size: 28px !important;
        letter-spacing: 0.5px;
        margin-bottom: 15px;
    }

    /* Mobile: Contact form subheading - smaller text */
    #wizard-step-2c .wizard-subheading {
        font-size: 16px !important;
        margin-bottom: 30px;
        line-height: 1.5;
    }

    /* Mobile: General headings in left-container */
    .left-container .wizard-heading,
    #left-container .wizard-heading {
        font-size: 24px;
        letter-spacing: 0.3px;
    }

    .left-container .wizard-subheading,
    #left-container .wizard-subheading {
        font-size: 15px;
        line-height: 1.5;
    }

    .wizard-contact-form {
        padding: 25px 20px;
    }

    .wizard-contact-form input[type="text"],
    .wizard-contact-form input[type="email"],
    .wizard-contact-form input[type="tel"],
    .wizard-contact-form input[type="url"],
    .wizard-contact-form input[type="number"],
    .wizard-contact-form textarea,
    .wizard-contact-form select {
        padding: 12px 16px;
        font-size: 15px;
    }

    .wizard-contact-form input[type="submit"],
    .wizard-contact-form button[type="submit"] {
        padding: 14px 24px;
        font-size: 16px;
    }

    /* MOBILE: Contact mode - full height container with scrolling */
    #main-container.step-2-active.contact-mode .left-container {
        height: 84vh !important; /* Full height minus top nav (70px) */
        max-height: 90vh !important; /* Full height minus top nav (70px) */
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding-bottom: 10px !important; /* Extra space for bottom navigation */
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }

    /* MOBILE: Contact mode - completely hide right container */
    #main-container.step-2-active.contact-mode #right-container {
        display: none !important;
        height: 0 !important;
        overflow: hidden !important;
    }
}
