/* Resetowanie marginesów i paddingów */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Podstawowe style strony */
body {
    font-family: 'Arial', sans-serif;
    color: #333;
    background: url('../images/bg.jpg') top center no-repeat;
    background-size: cover;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100vh;
    padding: 0 20px;
}

/* Nagłówek strony */
header {
    text-align: center;
    padding: 30px 0;
    color: white;
}

header img {
    max-width: 300px;
    height: auto;
    margin-bottom: 15px;
}

header h1 {
    font-size: 2rem;
    margin-bottom: 5px;
}

header p {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

/* Flagi */
.flags {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.flags img {
    max-width: 40px;
    height: auto;
    transition: transform 0.3s;
}

.flags img:hover {
    transform: scale(1.1);
}

/* Sekcja kontaktowa */
.contact-info {
    text-align: center;
    margin-top: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px;
    border-radius: 8px;
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.contact-info a {
    color: #e5133f;
    text-decoration: none;
    font-weight: bold;
}

/* Formularz kontaktowy */
.form-container {
    background: rgba(255, 255, 255, 0.85);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
}

.form-container h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    text-align: center;
}

.form-container form {
    display: flex;
    flex-direction: column;
}

.form-container input,
.form-container textarea {
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    width: 100%;
    transition: border-color 0.3s;
}

.form-container input:focus,
.form-container textarea:focus {
    border-color: #e5133f;
}

.form-container textarea {
    resize: vertical;
    min-height: 120px;
}

/* Przycisk "Wyślij wiadomość" */
.send-btn {
    background-color: #e5133f;
    color: white;
    padding: 12px 20px;
    font-size: 1.2rem;
    border-radius: 8px; /* Zaokrąglone rogi */
    width: 100%;
    max-width: 600px;
    margin-top: 20px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    margin-right: auto;
}

.send-btn:hover {
    background-color: #c7002b;
}

.send-btn i {
    font-size: 1.5rem;
}

/* Styl dla komunikatu o sukcesie lub błędzie */
.message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    font-size: 1rem;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    display: none; /* Na początku komunikat jest niewidoczny */
    transition: all 0.3s ease-in-out; /* Animacja dla płynnego pojawiania się komunikatu */
}

.message.success {
    background-color: rgba(0, 128, 0, 0.1); /* Zielony kolor dla sukcesu */
    color: green;
    border: 2px solid green;
}

.message.error {
    background-color: rgba(255, 0, 0, 0.1); /* Czerwony kolor dla błędu */
    color: red;
    border: 2px solid red;
}

/* Stopka */
footer {
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    text-align: center;
    padding: 15px 0;
    width: 100%;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.3);
    margin-top: auto;
}

/* Dodatkowe style dla responsywności */
@media (max-width: 768px) {
    body {
        padding: 0 10px;
    }

    .form-container,
    .contact-info {
        width: 90%;
        margin: 20px auto;
    }
}

/* Kontener dla przycisków */
.contact-buttons {
    display: flex;
    justify-content: center; /* Wyrównanie do środka */
    gap: 15px; /* Odstęp pomiędzy przyciskami */
    margin-top: 20px; /* Odstęp od formularza */
}

/* Styl przycisków */
.contact-btn {
    background-color: #e5133f;
    color: white;
    padding: 12px 20px; /* Zwiększony padding dla prostokątnych przycisków */
    font-size: 1.2rem; /* Większy rozmiar tekstu */
    border-radius: 8px; /* Zaokrąglone rogi */
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-btn:hover {
    background-color: #c40f33; /* Mroczniejszy kolor przy hover */
}

/* Ikony */
.contact-btn i {
    font-size: 1.5rem; /* Większy rozmiar ikon */
}

/* Zmniejszenie rozmiaru reCAPTCHA */
.grecaptcha-badge {
    transform: scale(0.6); /* Skalowanie reCAPTCHA (0.6 oznacza 60% oryginalnego rozmiaru) */
    transform-origin: bottom right; /* Ustawienie punktu początkowego w prawym dolnym rogu */
}
