.char-counter {
    font-size: 0.8rem;
    color: #666666;
    text-align: right;
    margin-top: 6px;
    font-weight: 500;
}

i.asterix::after {
    content: "★";
    color:red;
    font-size: .5em;
    vertical-align: top; 
}

/* Styl ogólny alertów */
.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    margin-top: 20px;
    line-height: 1.4;
    animation: fadeIn 0.3s ease-in-out;
}

/* Baner Sukcesu (Jasnozielone tło z ciemną czcionką) */
.alert-success {
    background-color: #e6f4ea;
    color: #137333;
    border: 1px solid #ceead6;
}

/* Baner Błędu (Jasnoczerwony / Różowy) */
.alert-error {
    background-color: #fce8e6;
    color: #c5221f;
    border: 1px solid #fad2cf;
}

/* Ikony w banerach */
.alert-icon {
    font-style: normal;
    font-weight: bold;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
}

.alert-success .alert-icon {
    background-color: #137333;
    color: #ffffff;
}

.alert-error .alert-icon {
    background-color: #c5221f;
    color: #ffffff;
}

/* Animacja łagodnego pojawiania się */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Główny kontener (Grid dwukolumnowy) */
.contact-container {
    display: grid;
    grid-template-columns: 40% 60%;
    margin-top: 2em;
    max-width: 1100px;
    width: 100%;
    background: azure;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

/* Lewa kolumna - Info */
.contact-info {
    background-color: #004747; 
    color: azure;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.info-subtitle {
    color: #9ca3af;
    margin-bottom: 40px;
    line-height: 1.5;
}

.info-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.info-item .icon {
    font-size: 1.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 8px;
}

.info-item h3 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: #f3f4f6;
}

.info-item p, .info-item a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.95rem;
}

.info-item a:hover {
    color: #ffffff;
}

/* Prawa kolumna - Formularz */
.contact-form-wrapper {
    padding: 50px;
}

.contact-form-wrapper h2 {
    font-size: 2rem;
    color: #051e25;
    margin-bottom: 30px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    label {
        font-size: 0.85rem;
        font-weight: 600;
        color: #4b5563;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    input, select, textarea {
        width: 100%;
        padding: 12px 16px;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        font-size: 1rem;
        color: #051e25;
        background-color: #f9fafb;
        transition: all 0.3s ease;
    }
    input:focus, select:focus, textarea:focus {
        outline: none;
        border-color: #008080; /* Kolor akcentu (np. teal/cyjan) */
        background-color: #ffffff;
        box-shadow: 0 0 0 4px rgba(0, 128, 128, 0.1);
    }
    p.error_text {
        padding: 0;
        margin: 0;
        color: #d80e00;
        font-size: .75em;
        line-height: 1;
    }
}

/* Checkbox dla polityki prywatności */
.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #4b5563;
}

.form-checkbox a {
  color: #008080;
  text-decoration: none;
}

/* Przycisk wysyłania */
.submit-btn {
    background-color: #051e25;
    color: azure;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.submit-btn:hover {
    background-color: #008080; /* Zmiana koloru na akcent przy najechaniu */
}

/* Responsywność dla urządzeń mobilnych */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
  
    .contact-info {
        padding: 30px;
     }
  
    .contact-form-wrapper {
        padding: 30px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .submit-btn {
        width: 100%;
        text-align: center;
    }
}

/* Animacja obracania */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Styl dla spinnera obok napisu Sending... */
.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}