/* ==========================================
   STYLE DLA PODNOŚNIK.PHP / KALKULATORA
   ========================================== */

/* Nagłówek i pasek akcji */
.header-action-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.action-link {
    font-weight: bold;
    text-decoration: none;
    font-size: 0.9em;
}

.action-link.phone { color: #f56a6a; }
.action-link.messenger { color: #0084ff; }
.action-link.stars {
    color: #ffc107;
    display: flex;
    align-items: center;
    gap: 3px;
}
.action-link.stars span {
    color: #3d4449;
    margin-left: 4px;
}

/* Galeria zdjęć podnośnika */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 2em;
}

.gallery-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
}

.gallery-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.gallery-card .caption {
    padding: 10px;
    text-align: center;
    font-weight: bold;
    color: #3d4449;
    font-size: 0.85em;
}

/* Sekcja wyboru opcji (Radio Options) */
.type-selector {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 1em;
}

.type-option {
    flex: 1;
    min-width: 200px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    padding: 12px 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.type-option:hover {
    border-color: #f56a6a;
    background: #ffffff;
}

.type-option input[type="radio"] {
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important;
    margin-right: 8px !important;
    float: none !important;
}

.type-option label {
    display: inline-block;
    cursor: pointer;
    margin: 0;
    font-weight: 600;
    text-transform: none;
    color: #3d4449;
}

/* Sekcja Checkboxów (Warunki wjazdowe) */
.checklist-group {
    background: #f1f5f9;
    padding: 1.25em;
    border-radius: 6px;
    border-left: 4px solid #f56a6a;
    margin-bottom: 1.5em;
}

.checklist-group label {
    font-weight: normal;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    cursor: pointer;
    text-transform: none;
    font-size: 0.9em;
    color: #334155;
}

.checklist-group input[type="checkbox"] {
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important;
    margin-right: 10px !important;
    float: none !important;
}

/* Box Wynikowy Kalkulatora */
.price-box {
    background: #2d3748;
    color: #fff;
    padding: 1.5em;
    border-radius: 8px;
    margin-top: 1em;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.price-box h3 {
    color: #fff;
    font-size: 1.15em;
    margin-top: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 10px;
    text-transform: none;
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.95em;
    color: #cbd5e1;
}

.price-row.main-brutto {
    font-weight: bold;
    font-size: 1.3em;
    color: #f56a6a;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    padding-top: 12px;
    margin-top: 12px;
}

.price-row.sub-netto {
    font-size: 0.9em;
    color: #94a3b8;
    margin-bottom: 5px;
}

/* Alerty statusu formularza */
.alert {
    padding: 1em;
    border-radius: 6px;
    margin-bottom: 1.5em;
    text-align: center;
    font-weight: bold;
}

.alert.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsywność (RWD) */
@media screen and (max-width: 736px) {
    .type-selector {
        flex-direction: column;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .header-action-bar {
        margin-top: 10px;
        gap: 10px;
    }

    .price-row {
        flex-direction: column;
        gap: 2px;
    }

    .price-row span:last-child {
        font-weight: bold;
    }
}