/* Import nowoczesnej czcionki */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

#wycena-3d-container {
    max-width: 1000px;
    margin: 20px auto;
    font-family: 'Poppins', 'Segoe UI', Roboto, sans-serif;
    color: #333;
}

.wycena-step { display: none; }
.wycena-step.active { display: block; }

/* Okno 1: Dropzone */
#drop-zone {
    width: 100%;
    padding: 60px 20px;
    border: 2px dashed #0073aa; 
    border-radius: 25px; 
    background: #f9fcff;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#drop-zone:hover { 
    background: #f0f7ff; 
    border-color: #005a87;
    transform: translateY(-2px);
}

.cloud-icon {
    margin-bottom: 20px;
}

.cloud-icon .dashicons {
    font-size: 50px;
    width: 50px;
    height: 50px;
    color: #0073aa;
}

#drop-zone h3 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
}

#drop-zone h3 span {
    color: #0073aa;
    text-decoration: none;
    font-weight: 700;
}

.formats-info {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.formats-info strong {
    color: #333;
    font-weight: 700;
}

/* Okno 2: Layout */
.wycena-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    background: #fff;
    padding: 25px;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Stylizacja nagłówka z wymiarami nad podglądem */
#model-header-info {
    text-align: center;
    margin-bottom: 15px;
    padding: 10px;
    background: #fdfdfd;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
}

.dimension-check-notice {
    font-size: 13px;
    color: #d32f2f;
    margin: 0 0 5px 0;
    font-weight: 600;
}

#model-dimensions-display {
    font-size: 16px;
    color: #333;
}

#model-dimensions-display strong {
    color: #0073aa;
}

#canvas-3d {
    width: 100%;
    height: 450px;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #eee;
}

/* NOWOCZESNY CUSTOM SELECT (image_746334.png) */
.custom-select-container {
    position: relative;
    width: 100%;
}

/* Ukrywamy oryginalny select, ale zostawiamy go dla dostępności */
#order-options select {
    display: none;
}

/* Główny boks widoczny przed kliknięciem */
.select-styled {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 12px 15px;
    font-size: 14px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    color: #444;
}

.select-styled:after {
    content: "";
    width: 0; height: 0;
    border: 5px solid transparent;
    border-color: #333 transparent transparent transparent;
    position: absolute;
    top: 20px; right: 15px;
}

.select-styled:hover {
    border-color: #0073aa;
}

/* TO ZAOKRĄGLA LISTĘ ROZWIJANĄ (image_746334.png) */
.select-options {
    display: none;
    position: absolute;
    top: 105%;
    right: 0;
    left: 0;
    z-index: 999;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px; /* Zaokrąglenie listy opcji */
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    overflow: hidden;
    padding: 5px 0;
    margin: 0;
    list-style: none;
}

.select-options li {
    padding: 10px 15px;
    margin: 0;
    transition: all 0.2s;
    cursor: pointer;
    font-size: 14px;
}

.select-options li:hover {
    background-color: #0073aa;
    color: #fff;
}

/* Pozostałe elementy formularza */
#order-options label {
    display: block;
    margin-top: 18px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    color: #333;
}

#order-options textarea,
#model-quantity {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.price-box {
    margin: 25px 0;
    padding: 15px;
    background: #f0f8ff;
    border-radius: 8px;
    font-size: 24px;
    font-weight: 800;
    color: #0073aa;
    text-align: center;
    border: 1px solid #d0e4f5;
}

/* Przyciski Akcji */
.action-buttons-3d {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-buttons-3d .button {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-transform: uppercase;
}

#submit-order-3d { background-color: #d32f2f !important; color: #fff !important; }
#add-to-cart-3d { background-color: #0073aa !important; color: #fff !important; }
#manual-quote-3d { background-color: #fff !important; color: #555 !important; border: 1px solid #ccc !important; }
#reset-calculator { background: none !important; color: #666 !important; font-size: 13px !important; text-decoration: underline !important; }

/* Responsywność */
@media (max-width: 850px) {
    .wycena-layout { grid-template-columns: 1fr; }
    #canvas-3d { height: 300px; }
}