/* KALKULÁTOR SZEKCIÓ */
.calculator-section {
    background-color: transparent;
    padding: 60px 0;
}

.calculator-tile {
    background: #34495e;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    border: 1px solid #46637f;
    overflow: hidden;
    display: grid;
    grid-template-columns: 350px 1fr;
    min-height: 600px;
}

/* BAL OLDAL (SIDEBAR) */
.calc-sidebar {
    background: #2c3e50;
    padding: 30px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #46637f;
}

.sidebar-header h3 {
    margin-bottom: 25px;
    color: #e67e22;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.control-group { margin-bottom: 20px; }
.group-label { display: block; color: #ecf0f1; font-size: 0.9rem; margin-bottom: 8px; font-weight: 600; }

.hidden-upload { display: none !important; }
.custom-file-upload {
    display: flex; align-items: center; gap: 15px;
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border: 2px dashed #46637f;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    color: #bdc3c7;
}
.custom-file-upload:hover {
    border-color: #e67e22;
    background: rgba(230, 126, 34, 0.1);
    color: white;
}

.calc-select {
    width: 100%; padding: 12px;
    background: #34495e; border: 1px solid #46637f;
    color: white; border-radius: 6px;
    font-size: 1rem; cursor: pointer;
}

.divider { border: 0; border-top: 1px solid #46637f; margin: 20px 0; }

/* EREDMÉNY DOBOZ */
.result-box { animation: fadeIn 0.5s; margin-top: auto; }
.price-row {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 15px; color: white;
}
.price-value { font-size: 1.5rem; font-weight: bold; color: #e67e22; }

.details-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 10px; margin-bottom: 20px; color: #bdc3c7; font-size: 0.9rem;
}

.btn-order {
    width: 100%; padding: 15px;
    background: #e67e22; color: white;
    border: none; border-radius: 6px;
    font-weight: bold; text-transform: uppercase;
    cursor: pointer; transition: background 0.3s;
}
.btn-order:hover { background: #d35400; }

/* JOBB OLDAL (3D VIEWER) */
.calc-viewer-area {
    background: #1a252f;
    position: relative;
    display: flex; flex-direction: column;
}

.canvas-wrapper {
    flex: 1; width: 100%; height: 100%;
    min-height: 400px;
    overflow: hidden;
}

.viewer-overlay {
    position: absolute; bottom: 20px; left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.5); color: #fff;
    padding: 5px 15px; border-radius: 20px;
    font-size: 0.8rem; pointer-events: none;
    white-space: nowrap;
}

.model-dimensions {
    background: #233140; padding: 10px; text-align: center;
    color: #bdc3c7; font-size: 0.9rem;
    border-top: 1px solid #34495e;
}

/* =========================================
   MOBIL OPTIMALIZÁCIÓ (CALCULATOR)
   ========================================= */
@media screen and (max-width: 900px) {
    .calculator-tile {
        grid-template-columns: 1fr !important;
        height: auto;
    }

    .calc-sidebar {
        border-right: none;
        border-bottom: 1px solid #46637f;
    }

    .canvas-wrapper {
        height: 400px; /* Mobilon fix magasság a nézőkének */
    }
}

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