:root {
    --brand-primary: #5FAAD7; 
    --brand-primary-hover: #4A93BD;
    --brand-dark: #1B3F6E; 
    --brand-dark-bg: #122A4A;
    --bs-primary: var(--brand-primary);
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    scroll-behavior: smooth;
    color: #444; 
}

h1, h2, h3, h4, h5, h6, .brand-blue { color: var(--brand-dark) !important; }
.text-primary { color: var(--brand-primary) !important; }
.bg-primary { background-color: var(--brand-primary) !important; }

.btn-primary { background-color: var(--brand-primary); border-color: var(--brand-primary); color: white; font-weight: 600; }
.btn-primary:hover { background-color: var(--brand-primary-hover); border-color: var(--brand-primary-hover); color: white; }

.btn-brand-dark { background-color: var(--brand-dark); border-color: var(--brand-dark); color: white; font-weight: 600; }
.btn-brand-dark:hover { background-color: var(--brand-dark-bg); color: white; }

.border-primary { border-color: var(--brand-primary) !important; }

.logo-img { height: 80px; width: auto; transition: all 0.3s ease; }
.logo-img-footer { height: 70px; width: auto; }
@media (max-width: 991px) { .logo-img { height: 55px; } }

.navbar-nav .nav-link {
    color: var(--brand-dark) !important; font-weight: 600; text-transform: uppercase;
    font-size: 0.9rem; letter-spacing: 0.5px; padding: 0.5rem 1rem !important; transition: color 0.3s ease;
}
.navbar-nav .nav-link:hover { color: var(--brand-primary) !important; }

.hero-section {
    position: relative; height: 85vh; min-height: 650px; background-color: var(--brand-dark); 
    background-size: cover; background-position: center; background-attachment: fixed; overflow: hidden;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(27, 63, 110, 0.45) 0%, rgba(18, 42, 74, 0.65) 100%); z-index: 0;
}
.hero-section .container { position: relative; z-index: 2; }
.hero-content {
    background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15); border-left: 5px solid var(--brand-primary);
}

.brand-card { transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; border: 1px solid rgba(27, 63, 110, 0.1); }
.brand-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(27, 63, 110, 0.12) !important; border-color: var(--brand-dark) !important; }
.active-card { background-color: #f4f9fc !important; }

.brand-hover-box:hover i { transform: scale(1.1); transition: 0.3s; }

.form-control:focus, .form-select:focus { border-color: var(--brand-dark); box-shadow: 0 0 0 0.25rem rgba(27, 63, 110, 0.15); }
.form-check-input:checked { background-color: var(--brand-primary); border-color: var(--brand-primary); }

#priceResult { color: var(--brand-primary); }

/* =========================================
   UJEDNOLICENIE ELEMENTÓW KALKULATORA
   ========================================= */

/* Wspólna klasa dla Selectów, Checkboxów i Radio - ujednolicona wysokość i wygląd */
.unified-field {
    min-height: 60px;
    display: flex;
    align-items: center;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.5rem;
    padding: 0 1rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.unified-field:hover {
    border-color: var(--brand-primary);
}

/* Ujednolicona czcionka dla wszystkich elementów wyboru */
.calc-font {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: var(--brand-dark) !important;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Wymuszenie tych samych wymiarów dla Selectów Bootstrapa */
select.form-select-lg {
    height: 60px;
    padding-top: 0;
    padding-bottom: 0;
}

/* Stylizacja wnętrza dla checkboxów i radio */
.unified-field .form-check {
    width: 100%;
    display: flex;
    align-items: center;
    margin: 0;
    padding-left: 0; /* Reset domyślnego paddingu bootstrapa */
}

.unified-field .form-check-input {
    margin-top: 0;
    margin-right: 12px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    cursor: pointer;
}

.unified-field .form-check-label {
    width: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Rozsuwa tekst i logo na boki */
}

/* Loga Banków - ujednolicona wysokość na wzór ING */
.bank-logo { 
    height: 26px; /* Identyczna wysokość dla svg i webp */
    width: 80px; 
    object-fit: contain; 
    object-position: right center;
    display: block;
    filter: grayscale(100%); 
    opacity: 0.6; 
    transition: all 0.3s;
}

.unified-field:hover .bank-logo, 
.form-check-input:checked ~ .form-check-label .bank-logo { 
    filter: grayscale(0%); 
    opacity: 1; 
    transform: scale(1.05); 
}

.form-check-input:checked ~ .form-check-label span { 
    color: var(--brand-primary) !important; 
}
/* Wypełnialny Formularz Zlecenia PDF */
.pdf-table { width: 100%; border-collapse: collapse; font-family: Arial, sans-serif; font-size: 13px; color: #000; }
.pdf-table td { border: 1px solid #000; padding: 6px; vertical-align: top; }
.pdf-label { display: block; font-size: 10px; text-transform: uppercase; margin-bottom: 2px; color: #000; }

.pdf-input, .pdf-input-select {
    border: 1px solid #ddd; border-radius: 3px; background: #fdfdfd; padding: 4px 6px;
    font-family: 'Courier New', Courier, monospace; font-weight: bold; color: #1B3F6E; font-size: 14px; outline: none; transition: background-color 0.2s;
}
.pdf-input:focus { background: #fffde7; border-color: #aaa; }

.pdf-render-mode .pdf-input, .pdf-render-mode .pdf-input-select {
    border: none !important; background: transparent !important; color: #000 !important;
    padding: 0 !important; font-family: Arial, sans-serif !important; font-weight: bold !important; appearance: none;
}
.logo-img {
    /* 
       Krok 1: brightness(0) zamienia wszystkie piksele (ciemne i jasne) na idealnie czarne.
       Krok 2: reszta filtrów zmienia ten czarny na ciemny granat (np. #102A43). 
    */
    filter: brightness(0) saturate(100%) invert(13%) sepia(43%) saturate(1292%) hue-rotate(175deg) brightness(97%) contrast(94%);
    
    /* Opcjonalnie: upewnijmy się, że logo ładnie wygląda w nawigacji */
    max-height: 90px; 
    width: auto;
}
/* Stała wysokość logotypów w sekcji "Zaufali nam" / "Partnerzy" */
img[src*="pko.svg"],
img[src*="uniqa.webp"],
img[src*="allianz.webp"],
img[src*="vig.webp"],
img[src*="generali.svg"],
img[src*="erste.webp"],
img[src*="mille.webp"],
img[src*="ing.svg"],
img[src*="pekao.webp"] {
    height: 75px !important;
    width: auto !important;
    object-fit: contain;
}
