/* Reset i podstawa */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #f8f9fa;
    color: #2c3e50;
    line-height: 1.6;
    padding: 40px 20px;
}

.container {
    margin: 0 auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Identyfikacja marki / Logo */
.logo {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1px;
    color: #1a202c;
}

.logo span {
    color: #27ae60;
}

/* Przyciski główne */
.submit-btn, .btn-back, .login-btn {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #27ae60;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
}

/* Stan aktywnego najechania (tylko gdy przycisk nie jest zablokowany) */
.submit-btn:hover:not(:disabled), 
.btn-back:hover:not(:disabled), 
.login-btn:hover:not(:disabled) {
    background-color: #219150;
}

/* Stan zablokowany (np. przy braku akceptacji RODO) - wymuszenie dla Mobile i Safari */
.submit-btn:disabled,
button[type="submit"]:disabled {
    background-color: #cccccc !important;
    color: #666666 !important;
    border-color: #cccccc !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}

/* Styles dla Baneru Cookie */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #1a202c;
    color: #ffffff;
    padding: 16px 24px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.9rem;
}

.cookie-banner a {
    color: #63b3ed;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-btn {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 0.85rem;
    transition: background-color 0.2s;
}

.cookie-btn-accept {
    background-color: #38a169;
    color: white;
}

.cookie-btn-accept:hover {
    background-color: #2f855a;
}

.cookie-btn-reject {
    background-color: #4a5568;
    color: white;
}

.cookie-btn-reject:hover {
    background-color: #2d3748;
}

/* Domyślny układ desktopowy (zdjęcie obok tekstu) */
.intro-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
}

.intro-image {
    flex-shrink: 0;
}

.intro-image .profile-pic {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.intro-content {
    flex-grow: 1;
}

/* Wersja na ekrany mobilne (RWD) */
@media (max-width: 768px) {
    .intro-card {
        flex-direction: column; /* Zdjęcie na górze, tekst pod spodem */
        align-items: center;    /* Wyśrodkowanie zdjęcia i kontenera */
        text-align: left;       /* Sam tekst od lewej */
        width: 100%;
    }

    .intro-image {
        margin-bottom: 16px;
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .intro-image .profile-pic {
        width: 120px;           /* Zgrabna wielkość awatara na telefonie */
        height: 120px;
    }

    .intro-content {
        width: 100% !important; /* Pełna szerokość bloku z tekstem */
    }
}