* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #1a1a2e 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

/* ===== NAWIGACJA ===== */
.navbar {
    background: #13283D;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 30px;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.navbar-logo {
    position: absolute;
    left: 0;
    display: flex;
    align-items: center;
}

.navbar-logo img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-logo:hover img {
    transform: scale(1.05);
}

.navbar-links {
    display: flex;
    gap: 35px;
}

.navbar-links a {
    color: #a0aec0;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 5px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-links a:hover {
    color: #ffffff;
    transform: scale(1.08);
}

.navbar-links a.active {
    color: #ffffff;
}

.navbar-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #3b82f6;
    border-radius: 2px;
}

/* ===== KONTENER ===== */
.kontener {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    padding: 30px 0 20px;
}

header h1 {
    color: #ffffff;
    font-size: 1.9rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    line-height: 1.3;
}

header p {
    color: #a0aec0;
    font-size: 1.1rem;
    margin-top: 10px;
}

.krok {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    margin-bottom: 20px;
}

.krok h2 {
    color: #1a1a2e;
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.naglowek-kroku {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.naglowek-kroku h2 {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.btn-wstecz {
    background: #f1f5f9;
    border: none;
    color: #475569;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 8px;
    transition: all 0.2s;
    font-weight: 500;
}

.btn-wstecz:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.lista-dokumentow {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.dokument-karta {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.dokument-karta:hover {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.dokument-karta h3 {
    color: #1e293b;
    font-size: 1.05rem;
    margin-bottom: 6px;
    font-weight: 600;
}

.dokument-karta p {
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.4;
}

.pole {
    margin-bottom: 20px;
}

.pole label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #374151;
    font-size: 0.95rem;
}

.pole input,
.pole select,
.pole textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.2s;
    font-family: inherit;
    background: #f9fafb;
}

.pole input:focus,
.pole select:focus,
.pole textarea:focus {
    outline: none;
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.pole textarea {
    resize: vertical;
    min-height: 80px;
}

.pole-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #f8fafc;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.pole-checkbox input {
    width: auto;
    margin-top: 3px;
    transform: scale(1.2);
}

.pole-checkbox label {
    margin-bottom: 0;
    font-weight: normal;
}

.pole .opis {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 4px;
}

.btn-glowny {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 16px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-glowny:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.4);
}

.btn-drugi {
    background: #64748b;
    color: white;
    border: none;
    padding: 16px 30px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-drugi:hover {
    background: #475569;
}

.podpowiedz {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.podpowiedz::before {
    content: "💡";
}

#edytor-tresci {
    width: 100%;
    padding: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    line-height: 1.7;
    resize: vertical;
    min-height: 350px;
    margin-bottom: 20px;
    background: #f9fafb;
}

#edytor-tresci:focus {
    outline: none;
    border-color: #3b82f6;
    background: #ffffff;
}

.przyciski-podglad {
    display: flex;
    gap: 15px;
}

.przyciski-podglad button {
    flex: 1;
}

.ukryte {
    display: none !important;
}

.ladowanie {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255,255,255,0.1);
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.ladowanie p {
    color: #ffffff;
    font-size: 1.1rem;
}

/* ===== STOPKA ===== */
footer {
    text-align: center;
    padding: 25px 15px;
    color: #64748b;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 15px;
}

.footer-links a {
    color: #a0aec0;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-main {
    font-size: 0.9rem;
    color: #a0aec0;
    margin-bottom: 10px;
}

.footer-disclaimer {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.5;
    max-width: 500px;
    margin: 0 auto;
}

/* ===== INFO BADGE ===== */
.info-badge {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.info-badge span {
    color: #a0aec0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ===== SEPARATOR SEKCJI ===== */
.pole-separator {
    margin: 25px 0 15px;
    text-align: center;
    position: relative;
}

.pole-separator span {
    background: #ffffff;
    padding: 0 15px;
    color: #3b82f6;
    font-weight: 600;
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
}

.pole-separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e7eb;
}

/* ===== RESPONSYWNOŚĆ ===== */
@media (max-width: 768px) {
    .navbar {
        padding: 10px 15px;
    }
    
    .navbar-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .navbar-logo {
        position: static;
    }
    
    .navbar-logo img {
        height: 35px;
    }
    
    .navbar-links {
        gap: 20px;
    }
    
    .navbar-links a {
        font-size: 0.9rem;
    }
    
    .kontener {
        padding: 15px;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    header p {
        font-size: 1rem;
    }
    
    .krok {
        padding: 20px;
    }
    
    .przyciski-podglad {
        flex-direction: column;
    }
    
    .lista-dokumentow {
        grid-template-columns: 1fr;
    }
    
    .info-badge {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-disclaimer {
        font-size: 0.7rem;
    }
}

/* ===== MODAL PŁATNOŚCI ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 16px;
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.modal-content h2 {
    color: #1a1a2e;
    margin-bottom: 15px;
    border-bottom: none;
    padding-bottom: 0;
}

.modal-content p {
    color: #64748b;
    margin-bottom: 10px;
}

.modal-content .cena {
    font-size: 1.3rem;
    color: #1a1a2e;
    margin: 20px 0;
}

.modal-content .cena strong {
    color: #3b82f6;
}

.modal-content .info-platnosc {
    font-size: 0.85rem;
    color: #94a3b8;
}

.modal-przyciski {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.modal-przyciski button {
    flex: 1;
    padding: 12px 20px;
}

/* ===== CHECKBOX REGULAMINU ===== */
.checkbox-regulamin {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0;
    text-align: left;
}

.checkbox-regulamin input {
    margin-top: 3px;
    transform: scale(1.2);
    cursor: pointer;
}

.checkbox-regulamin label {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.4;
}

.checkbox-regulamin a {
    color: #3b82f6;
    text-decoration: none;
}

.checkbox-regulamin a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .modal-przyciski {
        flex-direction: column;
    }
}