 /* NOWY, PROFESJONALNY LAYOUT */
        
        body { 
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
            background-color: #f4f7f6; /* Jasne, nowoczesne tło */
            display: flex;
            justify-content: center;
            align-items: flex-start;
            min-height: 100vh;
            padding: 40px 20px;
            margin: 0;
        }

        /* Styl dla całego kontenera formularza */
        form {
            background: #ffffff;
            padding: 30px;
            border-radius: 12px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Delikatny cień */
            width: 100%;
            max-width: 500px; /* Maksymalna szerokość dla czytelności na dużych ekranach */
        }

        h1 {
            color: #333;
            text-align: center;
            margin-bottom: 25px;
            margin-right: 50px;
            font-weight: 600;
            border-radius: 12px;
            border-width: 2px;
            border-style: solid;
            border-color: #4CAF50;
            border-top-width: 10px;
            border-left-width: 10px;
            background-color: white;
            padding: 10px;
        }

        .form-group { 
            margin-bottom: 20px; 
        }
        
        label { 
            display: block; 
            margin-bottom: 8px; 
            font-weight: 600; 
            color: #555;
            font-size: 0.95em;
        }

        /* Ogólny styl dla pól tekstowych, select i textarea */
        input[type="text"], select, textarea { 
            width: 100%; 
            padding: 10px 12px; 
            box-sizing: border-box; 
            border: 1px solid #ddd; 
            border-radius: 6px; 
            transition: border-color 0.3s, box-shadow 0.3s;
            font-size: 1em;
        }
        
        input[type="text"]:focus, select:focus, textarea:focus {
            border-color: #4CAF50;
            box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2); 
            outline: none;
        }

        textarea { 
            height: 100px; 
            resize: vertical; 
        }
        
        /* Pole kodu ma 150px, ale MUSI być nadpisane w media query dla małych ekranów */
        #kod-input {
            width: 150px; 
            max-width: 100%; 
        }
        
        /* Styl dla przycisku Wyślij */
        input[type="submit"] { 
            width: auto;
            display: block;
            margin-top: 25px;
            background-color: #4CAF50; 
            color: white; 
            padding: 12px 25px; 
            border: none; 
            border-radius: 6px; 
            cursor: pointer; 
            font-weight: bold;
            letter-spacing: 0.5px;
            transition: background-color 0.3s, transform 0.1s;
        }
        
        input[type="submit"]:hover { 
            background-color: #45a049; 
            transform: translateY(-1px); 
        }
        
        /* Styl dla wiadomości zwrotnych */
        p[style*="color: red"], p[style*="color: green"] {
            padding: 10px;
            border-radius: 6px;
            font-weight: bold;
            margin-bottom: 15px;
        }
        p[style*="color: red"] {
            background-color: #ffeaea;
            border: 1px solid #f44336;
        }
        p[style*="color: green"] {
            background-color: #e8f5e9;
            border: 1px solid #4CAF50;
        }
        
        /* ZMIANA 2: MEDIA QUERIES dla urządzeń mobilnych (ekran < 600px) */
        @media screen and (max-width: 600px) {
            body {
                padding: 15px; /* Mniejszy padding na małych ekranach */
                align-items: flex-start; /* Zaczepienie u góry, by uniknąć problemów z klawiaturą */
            }

            form {
                padding: 20px; /* Mniejszy wewnętrzny padding formularza */
                box-shadow: none; /* Usunięcie cienia na mobilnych, by wyglądało natywnie */
                border-radius: 0; /* Usunięcie zaokrąglenia na mobilnych, by pokryło całą szerokość */
            }

            /* Wymuszenie 100% szerokości dla pola kodu, które wcześniej miało stałą szerokość 150px */
            #kod-input {
                width: 100%;
                max-width: 100%;
            }
            
            /* Przycisk na całą szerokość ekranu dla lepszej ergonomii */
            input[type="submit"] { 
                width: 100%;
                padding: 15px 0;
            }
        }
