/* ============================================
   OPK PERFECT Configurator — Premium Design
   ============================================ */

:root {
    --primary-red: #E31E24;
    --primary-dark: #c41920;
    --primary-glow: rgba(227, 30, 36, 0.15);

    /* Sidebar */
    --sidebar-bg: #111827;
    --sidebar-hover: #1f2937;
    --sidebar-active: rgba(227, 30, 36, 0.12);
    --sidebar-text: #9ca3af;
    --sidebar-text-light: #e5e7eb;
    --sidebar-width: 300px;

    /* Neutrals */
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --border-hover: #cbd5e1;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    --shadow-xl: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
    --shadow-red: 0 4px 15px rgba(227, 30, 36, 0.25);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

/* ---- RESET & BASE ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-page);
    height: 100vh;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ---- APP CONTAINER ---- */
.app-container {
    display: flex;
    height: 100vh;
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    z-index: 10;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
}

.brand {
    padding: 28px 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.logo {
    max-width: 160px;
    height: auto;
}

/* Content area top brand */
.content-brand {
    padding: 20px 48px 0;
    display: flex;
    align-items: center;
}

.content-logo {
    max-height: 40px;
    width: auto;
}

/* Steps Navigation */
.steps-nav {
    flex-grow: 1;
    overflow-y: auto;
    padding: 16px 0;
}

.steps-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

/* Vertical progress line */
.steps-nav ul::before {
    content: '';
    position: absolute;
    left: 39px;
    top: 32px;
    bottom: 32px;
    width: 2px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
}

.step-item {
    display: flex;
    align-items: center;
    padding: 14px 24px;
    cursor: default;
    position: relative;
    z-index: 1;
    transition: background 0.3s ease;
    border-left: 3px solid transparent;
}

.step-item:hover {
    background: var(--sidebar-hover);
}

.step-item.active {
    background: var(--sidebar-active);
    border-left-color: var(--primary-red);
}

.step-item.completed {
    border-left-color: transparent;
}

/* Step Badge */
.step-badge {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(255, 255, 255, 0.12);
    color: var(--sidebar-text);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    font-size: 13px;
    margin-right: 16px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.step-item.active .step-badge {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(227, 30, 36, 0.2);
    transform: scale(1.05);
}

.step-item.completed .step-badge {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: #fff;
    font-size: 0;
}

.step-item.completed .step-badge::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 14px;
}

/* Step Text */
.step-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.step-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--sidebar-text-light);
    transition: color 0.3s;
}

.step-desc {
    font-size: 11px;
    color: var(--sidebar-text);
    letter-spacing: 0.2px;
}

.step-item.active .step-title {
    color: #fff;
}

.step-item.active .step-desc {
    color: rgba(255, 255, 255, 0.6);
}

.step-item.completed .step-title {
    color: var(--sidebar-text);
}

/* Step Icon */
.step-icon {
    margin-right: 14px;
    font-size: 16px;
    color: var(--sidebar-text);
    width: 20px;
    text-align: center;
    transition: color 0.3s;
}

.step-item.active .step-icon {
    color: var(--primary-red);
}

.step-item.completed .step-icon {
    color: var(--primary-red);
    opacity: 0.7;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 12px;
    color: var(--sidebar-text);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.step-counter {
    font-size: 11px;
    color: var(--sidebar-text);
    opacity: 0.6;
    letter-spacing: 0.3px;
}


/* ============================================
   MAIN CONTENT AREA
   ============================================ */
.content-area {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-page);
    position: relative;
    overflow-y: auto;
}

.mobile-header {
    display: none;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    justify-content: space-between;
    align-items: center;
    background: #fff;
}

.mobile-logo {
    height: 30px;
}

.menu-toggle {
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    cursor: pointer;
    color: var(--text-secondary);
}

/* Wizard Container */
.wizard-container {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 48px 48px 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}


/* ============================================
   WIZARD STEPS
   ============================================ */
.wizard-step {
    display: none;
    flex-grow: 1;
    animation: stepFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.wizard-step.active {
    display: flex;
    flex-direction: column;
}

@keyframes stepFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

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

/* Step Header */
.step-header {
    text-align: center;
    margin-bottom: 40px;
}

.step-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 10px;
    letter-spacing: -0.5px;
}

.step-header p {
    color: var(--text-secondary);
    font-size: 15px;
    margin: 0;
}

.step-header .step-icon-header {
    font-size: 40px;
    color: var(--primary-red);
    margin-bottom: 16px;
    display: block;
}

/* Step Body */
.step-body {
    flex-grow: 1;
}

.step-body.centered {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
}


/* ============================================
   STEP 1: INTRO CARD
   ============================================ */
.intro-card {
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 0;
    max-width: 480px;
    width: 100%;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.intro-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-red);
}

.intro-card img.intro-img {
    width: 100%;
    display: block;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.intro-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 16px 0 4px;
    color: var(--text-primary);
}

.intro-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 20px;
    padding: 0 20px;
}

/* Intro Card CTA Arrow */
.intro-card .card-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-red);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 20px;
    transition: gap 0.3s;
}

.intro-card:hover .card-arrow {
    gap: 12px;
}


/* ============================================
   SPLIT LAYOUT — Dimensions / Panels / Summary
   ============================================ */
.split-layout {
    display: flex;
    gap: 48px;
}

.input-column,
.visual-column {
    flex: 1;
}

.input-column h3,
.visual-column h3 {
    font-size: 16px;
    margin: 0 0 20px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-column h3 i,
.visual-column h3 i {
    color: var(--primary-red);
    font-size: 18px;
}


/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 13px;
    color: var(--text-secondary);
    letter-spacing: 0.2px;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    background: var(--bg-card);
    color: var(--text-primary);
    transition: all 0.25s ease;
    box-shadow: var(--shadow-sm);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary-red);
    outline: none;
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group small {
    display: block;
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 12px;
}

/* Inline Validation Errors */
.inline-error {
    margin-top: 8px;
    padding: 10px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 3px solid var(--primary-red);
    border-radius: var(--radius-sm);
    color: #991b1b;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: errorSlideIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.inline-error i {
    color: var(--primary-red);
    font-size: 14px;
    flex-shrink: 0;
}

.input-error {
    border-color: var(--primary-red) !important;
    box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.12) !important;
    animation: inputShake 0.4s ease;
}

@keyframes errorSlideIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

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

@keyframes inputShake {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-4px);
    }

    40% {
        transform: translateX(4px);
    }

    60% {
        transform: translateX(-3px);
    }

    80% {
        transform: translateX(2px);
    }
}


/* ============================================
   STEP 2: MEASURE GUIDE
   ============================================ */
.measure-guide-visual {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px;
    height: 300px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.guide-box {
    width: 70%;
    height: 60%;
    border: 2px dashed #94a3b8;
    background: rgba(219, 234, 254, 0.5);
    border-radius: 4px;
    position: relative;
}

.dim-w {
    position: absolute;
    bottom: -28px;
    left: 0;
    width: 100%;
    text-align: center;
}

.dim-w span,
.dim-h span {
    background: var(--primary-red);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(227, 30, 36, 0.3);
}

.dim-h {
    position: absolute;
    left: -40px;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    writing-mode: vertical-lr;
    transform: rotate(180deg);
}


/* ============================================
   STEP 3: PANELS COUNTER
   ============================================ */
.summary-mini {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-secondary);
}

.panel-counter-group {
    margin-top: 32px;
}

.panel-counter-group>label {
    display: block;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.counter-control {
    display: flex;
    align-items: center;
    gap: 4px;
}

.counter-btn {
    width: 48px;
    height: 48px;
    border: 1.5px solid var(--border);
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-primary);
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.counter-btn:hover {
    background: var(--bg-page);
    border-color: var(--primary-red);
    color: var(--primary-red);
    box-shadow: var(--shadow-md);
}

.counter-btn:active {
    transform: scale(0.95);
}

.counter-control input {
    width: 64px;
    text-align: center;
    font-size: 24px;
    border: none;
    font-weight: 700;
    color: var(--text-primary);
    background: transparent;
    font-family: inherit;
}

/* Live Visual Preview */
.live-visual {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-md);
    background: var(--bg-card);
}

.visual-img {
    width: 100%;
    display: block;
}

.visual-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary-red);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: var(--shadow-red);
}

/* Tech Specs */
.tech-specs {
    margin-top: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
}

.tech-specs div {
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}

.tech-specs div:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.tech-specs span {
    font-weight: 700;
    color: var(--text-primary);
}


/* ============================================
   STEP 4: HANDLE SELECTION CARDS
   ============================================ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 16px;
}

.selection-card {
    cursor: pointer;
}

.selection-card input {
    display: none;
}

.card-content {
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    height: 100%;
    background: var(--bg-card);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.card-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    transition: background 0.3s;
}

.card-content:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.card-content img {
    max-width: 100%;
    height: 160px;
    object-fit: contain;
    margin-bottom: 20px;
    transition: transform 0.3s;
}

.card-content:hover img {
    transform: scale(1.05);
}

.selection-card input:checked+.card-content {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 4px var(--primary-glow), var(--shadow-lg);
}

.selection-card input:checked+.card-content::before {
    background: var(--primary-red);
}

/* Check indicator */
.selection-card input:checked+.card-content::after {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 22px;
    color: var(--primary-red);
}

.card-content h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}


/* ============================================
   STEP 5: SUMMARY TABLE
   ============================================ */
.summary-table {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: var(--bg-card);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s;
}

.summary-row:hover {
    background: #f8fafc;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row:nth-child(even) {
    background: #fafbfc;
}

.summary-row span {
    color: var(--text-secondary);
    font-size: 14px;
}

.summary-row strong {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 14px;
}

.thumbs-row {
    margin-top: 16px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
    opacity: 0.5;
    cursor: pointer;
    transition: all 0.2s;
}

.thumb:hover {
    opacity: 1;
    border-color: var(--primary-red);
}


/* ============================================
   STEP 6: CONTACT FORM GRID
   ============================================ */
.form-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.full-width {
    width: 100%;
}

.half {
    width: calc(50% - 10px);
}


/* ============================================
   SUCCESS SCREEN
   ============================================ */
#step-success .step-header {
    margin-top: 60px;
}

#step-success .step-header h1 {
    color: #16a34a;
    font-size: 32px;
}

#step-success .success-icon {
    font-size: 80px;
    color: #16a34a;
    margin-bottom: 24px;
    display: block;
    animation: successPulse 2s ease infinite;
}

@keyframes successPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.08);
        opacity: 0.85;
    }
}

#step-success .step-body.centered {
    justify-content: center;
    align-items: center;
    min-height: 100px;
}


/* ============================================
   FOOTER NAVIGATION
   ============================================ */
.wizard-footer {
    margin-top: auto;
    padding: 24px 0 0;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.spacer {
    flex-grow: 1;
}

.action-btn {
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    letter-spacing: 0.2px;
}

.action-btn.primary {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: var(--shadow-red);
}

.action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(227, 30, 36, 0.35);
}

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

.action-btn.primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.action-btn.secondary {
    background-color: var(--bg-card);
    border: 1.5px solid var(--border);
    color: var(--text-secondary);
    margin-right: 10px;
    box-shadow: var(--shadow-sm);
}

.action-btn.secondary:hover {
    background-color: var(--bg-page);
    border-color: var(--border-hover);
    color: var(--text-primary);
    transform: translateY(-1px);
}


/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .app-container {
        flex-direction: column;
        height: auto;
        overflow: auto;
    }

    .sidebar {
        display: none;
    }

    .mobile-header {
        display: flex;
    }

    .content-area {
        height: auto;
    }

    .wizard-container {
        padding: 24px 20px;
    }

    .split-layout {
        flex-direction: column;
        gap: 32px;
    }

    /* Step 3: stack panels layout vertically on tablet */
    .panels-layout {
        flex-direction: column;
        gap: 24px;
    }

    .panels-layout .input-column {
        flex: none;
        width: 100%;
    }

    .panels-layout .panels-preview-col {
        flex: none;
        width: 100%;
    }

    .panels-layout .montaj-col {
        flex: none;
        width: 100%;
    }

    /* Montaj: show image wider on tablet, side-by-side with title */
    .montaj-col {
        display: flex;
        flex-direction: column;
    }

    .ceiling-img {
        max-height: 280px;
        width: 100%;
        object-fit: contain;
    }

    .form-grid .half {
        width: 100%;
    }

    .step-header h1 {
        font-size: 22px;
    }

    .action-btn {
        padding: 12px 24px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .wizard-container {
        padding: 16px 14px;
    }

    .step-header {
        margin-bottom: 24px;
    }

    .step-header h1 {
        font-size: 18px;
    }

    .step-header p {
        font-size: 13px;
    }

    /* Lightbox fills screen on phone */
    .lightbox-content {
        max-width: 96vw;
        max-height: 92vh;
        padding: 16px 12px;
    }

    .lightbox-img {
        max-width: 90vw;
        max-height: 70vh;
    }

    .lightbox-title {
        font-size: 13px;
        margin-bottom: 12px;
    }

    /* Counter bigger touch targets */
    .counter-btn {
        width: 44px;
        height: 44px;
    }

    .counter-control input {
        font-size: 22px;
    }

    .summary-mini {
        flex-direction: column;
        gap: 8px;
    }

    /* Tech specs stacked */
    .tech-specs div {
        font-size: 12px;
    }
}


/* ============================================
   STEP 3: PANELS LAYOUT (3-column)
   ============================================ */
.panels-layout {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

.panels-layout .input-column {
    flex: 0 0 260px;
}

.panels-layout .panels-preview-col {
    flex: 1;
    min-width: 0;
}

.panels-layout .montaj-col {
    flex: 0 0 200px;
}

/* Montaj Column */
.montaj-col {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-md);
}

.montaj-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.montaj-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.montaj-header h3 i {
    color: var(--primary-red);
}

.expand-btn {
    width: 30px;
    height: 30px;
    border: 1px solid var(--border);
    background: var(--bg-page);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 13px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.expand-btn:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
    background: rgba(227, 30, 36, 0.04);
}

.montaj-visual {
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    cursor: zoom-in;
    position: relative;
    background: #f8fafc;
    transition: box-shadow 0.25s;
}

.montaj-visual:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

.ceiling-img {
    width: 100%;
    display: block;
    object-fit: contain;
    transition: transform 0.3s;
}

.montaj-visual:hover .ceiling-img {
    transform: scale(1.03);
}

.montaj-overlay-hint {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.3px;
    opacity: 0;
    transition: opacity 0.25s;
}

.montaj-visual:hover .montaj-overlay-hint {
    opacity: 1;
}


/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.80);
    backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

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

.lightbox-content {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
    padding: 24px;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    animation: lightboxIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes lightboxIn {
    from {
        transform: scale(0.88);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f1f5f9;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 1;
}

.lightbox-close:hover {
    background: var(--primary-red);
    color: #fff;
}

.lightbox-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
}

.lightbox-title i {
    color: var(--primary-red);
}

.lightbox-img {
    max-width: 80vw;
    max-height: 75vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}