/* Hero Section dla Kalkulatora PSI */
.kalkulator-hero {
    background:
        linear-gradient(135deg, rgba(26, 35, 50, 0.88) 0%, rgba(44, 57, 71, 0.80) 50%, rgba(26, 35, 50, 0.88) 100%),
        url('../images/hero-kalkulator-psi.jpg') center/cover no-repeat;
    color: #ffffff;
    padding: 80px 0;
    text-align: center;
    border-bottom: 3px solid var(--border-light);
    position: relative;
}

.kalkulator-hero h1 {
    font-size: 2.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.25rem;
    line-height: 1.2;
}

.kalkulator-hero p {
    font-size: 1.125rem;
    color: #f5f5f5;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .kalkulator-hero {
        padding: 2.7778rem 1.1111rem 2.2222rem;
    }

    .kalkulator-hero h1 {
        font-size: 1.6667rem;
    }

    .kalkulator-hero p {
        font-size: 1rem;
    }
}

.psi-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background: #f5f5f5;
}

@media (max-width: 768px) {
    .psi-page {
        padding: 30px 15px;
    }
}

.kalkulator-wrapper {
    margin-bottom: 50px;
}

.kalkulator-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Info Box */
.info-box {
    background: #fff9f0;
    border-left: 4px solid var(--navy-dark);
    border-radius: 8px;
    padding: 25px 30px;
    margin-bottom: 10px;
}

.info-box h3 {
    color: #1a2332;
    font-size: 1.375rem;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 0.9375rem;
    font-weight: 600;
}

.info-box p {
    color: #2c2c2c;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.info-box ul {
    margin: 15px 0;
    padding-left: 25px;
}

.info-box ul li {
    color: #2c2c2c;
    font-size: 1rem;
    margin-bottom: 0.625rem;
    line-height: 1.6;
}

.info-box ul li strong {
    color: var(--navy-dark);
}

.info-note {
    font-size: 0.9375rem;
    font-style: italic;
    color: #5a5a5a;
    margin-top: 0.9375rem;
}

/* Formularz Container */
.kalkulator-form-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    padding: 40px;
}

.kalkulator-form-container h2 {
    color: #1a2332;
    font-size: 1.75rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 1.875rem;
    padding-bottom: 0.9375rem;
    border-bottom: 2px solid var(--border-light);
}

/* Form Sections */
.form-section {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0;
    margin-bottom: 30px;
    background: #fafafa;
}

.form-section legend {
    font-size: 1.25rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #1a2332;
    padding: 1.25rem 1.5625rem 0.9375rem 1.5625rem;
    margin-bottom: 0;
    background: #fafafa;
    width: 100%;
}

.form-section > div {
    padding: 25px;
}

.form-section > div .form-group:last-child {
    margin-bottom: 0;
}

/* Form Groups */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.form-group .form-control,
.form-group select,
.form-group input[type="number"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group .form-control:focus,
.form-group select:focus,
.form-group input[type="number"]:focus {
    outline: none;
    border-color: var(--navy-dark);
    box-shadow: 0 0 0 3px rgba(35, 39, 46, 0.1);
}

.form-group .form-control:disabled,
.form-group select:disabled {
    background-color: #f0f0f0;
    cursor: not-allowed;
    opacity: 0.6;
}

.form-help {
    display: block;
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.375rem;
    line-height: 1.5;
}

/* Radio Group */
.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
}

.radio-label input[type="radio"] {
    margin-right: 8px;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.radio-label span {
    color: #333;
}

/* Checkbox Wrapper */
.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: white;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin-top: 3px;
    flex-shrink: 0;
}

.checkbox-label {
    font-weight: 600 !important;
    margin-bottom: 0 !important;
    cursor: pointer;
    flex: 1;
    line-height: 1.6;
}

/* Error Messages */
.error-message {
    color: #d32f2f;
    font-size: 0.875rem;
    margin-top: 0.375rem;
    display: block;
}

/* Form Actions */
.form-actions {
    margin-top: 35px;
    text-align: center;
}

/* Złoty przycisk tylko dla formularza kalkulatora - nie dla nawigacji */
.kalkulator-form-container .btn-primary,
.form-actions .btn-primary {
    background: var(--accent-red);
    color: white;
    border: none;
    padding: 0.875rem 2.5rem;
    font-size: 1.125rem;
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.kalkulator-form-container .btn-primary:hover,
.form-actions .btn-primary:hover {
    background: var(--accent-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(223, 63, 63, 0.4);
}

.btn-secondary {
    background: white;
    color: #1a2332;
    border: 2px solid #1a2332;
    padding: 0.75rem 2.1875rem;
    font-size: 1rem;
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: #1a2332;
    color: white;
}

.btn-large {
    padding: 1rem 3.125rem;
    font-size: 1.25rem;
}

/* Wyniki Container */
.wyniki-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    padding: 40px;
    scroll-margin-top: 100px;
}

.wyniki-container h2 {
    color: #1a2332;
    font-size: 1.75rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 1.875rem;
    padding-bottom: 0.9375rem;
    border-bottom: 2px solid var(--border-light);
}

/* Status Box */
.status-box {
    padding: 25px 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.status-success {
    background: #e8f5e9;
    border-left: 5px solid #4caf50;
}

.status-error {
    background: #ffebee;
    border-left: 5px solid #f44336;
}

.status-content h3 {
    font-size: 1.375rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a2332;
}

.status-content p {
    font-size: 1rem;
    color: #555;
    margin: 0;
    line-height: 1.5;
}

/* Wyniki Sections */
.wyniki-section {
    margin-bottom: 35px;
    padding: 25px;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.wyniki-section h3 {
    font-size: 1.25rem;
    font-family: 'Montserrat', sans-serif;
    color: #1a2332;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.wyniki-main {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border: 2px solid var(--border-light);
}

/* Wyniki Grid */
.wyniki-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.wynik-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.wynik-label {
    font-weight: 600;
    color: #555;
}

.wynik-value {
    font-weight: 700;
    color: #1a2332;
    text-align: right;
}

.wynik-value.highlight {
    color: var(--accent-red);
    font-size: 1.125rem;
}

/* Wyniki Highlight Grid */
.wyniki-highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.wynik-highlight {
    background: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid var(--border-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.wynik-highlight-label {
    font-size: 0.875rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.625rem;
    font-weight: 600;
}

.wynik-highlight-value {
    font-size: 1.75rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--accent-red);
    margin-bottom: 0.625rem;
    line-height: 1.2;
}

.wynik-highlight-desc {
    font-size: 0.875rem;
    color: #777;
    line-height: 1.5;
}

/* Kryteria Info */
.kryteria-info {
    background: white;
    padding: 20px;
    border-radius: 8px;
}

.kryteria-info p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 0.75rem;
}

.kryteria-info strong {
    color: var(--accent-red);
    font-size: 1.0625rem;
}

.kryteria-note {
    font-size: 0.9375rem;
    color: #666;
    font-style: italic;
}

.kryteria-note a {
    color: #1a2332;
    font-weight: 600;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .kalkulator-form-container,
    .wyniki-container {
        padding: 25px 20px;
    }

    .form-section {
        padding: 20px 15px;
    }

    .radio-group {
        flex-direction: column;
        gap: 12px;
    }

    .wyniki-grid {
        grid-template-columns: 1fr;
    }

    .wyniki-highlight-grid {
        grid-template-columns: 1fr;
    }

    .wynik-item {
        flex-direction: column;
        gap: 8px;
    }

    .wynik-value {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .kalkulator-form-container h2,
    .wyniki-container h2 {
        font-size: 1.3889rem;
    }

    .wyniki-section h3 {
        font-size: 1.1111rem;
    }

    .wynik-highlight-value {
        font-size: 1.3889rem;
    }
}

/* Sekcja progresywna - duże projekty inwestycyjne */
.wyniki-progressive {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.progressive-info {
    margin-top: 15px;
}

.info-highlight {
    background: #fff;
    padding: 15px;
    border-left: 4px solid #007bff;
    margin-bottom: 20px;
    border-radius: 4px;
}

.formula-box {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.formula-box h4 {
    margin-top: 0;
    color: #333;
    font-size: 1.2em;
    margin-bottom: 15px;
}

.formula {
    font-size: 1.5em;
    font-weight: bold;
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #007bff;
    margin-bottom: 15px;
}

.formula-legend {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
}

.formula-legend p {
    margin: 8px 0;
    line-height: 1.6;
}

/* Alerty i komunikaty */
.alert {
    padding: 15px;
    border-radius: 4px;
    margin: 15px 0;
}

.alert h4 {
    margin-top: 0;
    font-size: 1.1em;
    margin-bottom: 10px;
}

.alert-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.alert-warning {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
}

/* Sekcja kursu EUR - lepsze formatowanie */
.kurs-section {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}

.kurs-info-box {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #4caf50;
}

.kurs-main {
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.kurs-label {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 8px;
}

.kurs-value-eur {
    font-size: 2em;
    font-weight: bold;
    color: #2e7d32;
}

.kurs-details {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 15px;
}

.kurs-detail-item {
    font-size: 0.95em;
    color: #555;
}

/* Alert notyfikacji KE - specjalny styl */
.alert-notyfikacja {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border: 2px solid #ff9800;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.notyfikacja-icon {
    font-size: 3em;
    flex-shrink: 0;
}

.notyfikacja-content {
    flex: 1;
}

.notyfikacja-content h4 {
    color: #e65100;
    margin-top: 0;
    margin-bottom: 10px;
}

.notyfikacja-content p {
    margin: 10px 0;
    line-height: 1.6;
}

.notyfikacja-note {
    font-style: italic;
    color: #666;
    font-size: 0.95em;
}

/* Responsywność dla sekcji progresywnej */
@media (max-width: 768px) {
    .formula {
        font-size: 1.2em;
    }

    .formula-box {
        padding: 15px;
    }

    .wyniki-progressive {
        padding: 15px;
    }

    .kurs-value-eur {
        font-size: 1.5em;
    }

    .kurs-details {
        flex-direction: column;
        gap: 10px;
    }

    .alert-notyfikacja {
        flex-direction: column;
        gap: 10px;
    }

    .notyfikacja-icon {
        font-size: 2em;
        text-align: center;
    }
}
