/* =========================================
   CENNIK - KARTY (Pricing Cards)
   ========================================= */

/* Kontener siatki kart */
.pricing-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

/* Pojedyncza karta */
.pricing-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 32px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    height: 100%; /* Rozciągnij na pełną wysokość kolumny */
}

/* Efekt najechania */
.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Wyróżniona karta (Enterprise) */
.pricing-card.highlight {
    border-color: #e44c65; /* Kolor brandu */
    background: rgba(228, 76, 101, 0.05); /* Lekka czerwień w tle */
}

/* Nagłówki w karcie */
.pricing-card h3 {
    margin-bottom: 16px;
    font-size: 26px;
}

/* Tekst w karcie */
.pricing-card p {
    flex-grow: 1;
    margin-bottom: 32px;
    opacity: 0.9;
}

/* Przycisk na dole karty */
.pricing-card .cta {
    width: 100%;
    margin-top: auto;
}

#espr-ready h2 {
    margin-bottom: 0.5em;
}

#espr-ready p {
    margin: 0;
}

/* Style dla detali planu w kartach */
.plan-details {
    text-align: left;
    width: 100%;
}

.plan-details hr {
    margin: 1.5em 0;
    border: 0;
    border-bottom: solid 1px rgba(255, 255, 255, 0.1);
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 1em 0 2em 0;
}

.features-list li {
    position: relative;
    padding-left: 1.5em;
    margin-bottom: 0.5em;
    font-size: 0.9em;
}

.features-list li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: #e44c65;
}

.usage-title {
    display: block;
    margin-top: 1.5em;
    font-size: 0.9em;
    font-weight: bold;
    color: #e44c65;
}

.usage-text {
    font-size: 0.85em;
    font-style: italic;
    opacity: 0.8;
}


/* =========================================
   MODAL (Formularz kontaktowy)
   ========================================= */

/* Tło modala (overlay) */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 10000;
    overflow-y: auto; /* Pozwala przewijać na małych ekranach */
}

/* Klasa dodawana przez JS, aby pokazać modal */
.modal.open {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Wnętrze modala */
.modal-content {
    background: #1c1c28;
    padding: 48px;
    max-width: 500px;
    width: 90%;
    border-radius: 6px;
    text-align: center;
    position: relative;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 50px rgba(0,0,0,0.5);
}

/* Przycisk zamknięcia (X) */
.close {
    position: absolute;
    right: 24px;
    top: 16px;
    cursor: pointer;
    font-size: 32px;
    color: #ccc;
    line-height: 1;
    transition: color 0.2s;
}

.close:hover {
    color: #fff;
}

/* Elementy tekstowe w modalu */
#modal-title {
    margin-bottom: 0.5em;
}

.modal-intro {
    font-size: 15px;
    margin-bottom: 1.5em;
    opacity: 0.8;
}

/* Pola formularza w modalu */
.modal-content input, 
.modal-content textarea {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
    color: #fff;
    margin-bottom: 1em;
    width: 100%;
}

.modal-content input:focus, 
.modal-content textarea:focus {
    border-color: #e44c65;
    background: rgba(255,255,255,0.1);
}

/* Checkbox i etykieta */
.checkbox-wrapper {
    margin-bottom: 1.5em;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.checkbox-wrapper label {
    font-size: 15px;
    color: #ccc;
    margin: 0;
    cursor: pointer;
}

.checkbox-wrapper input[type="checkbox"] {
    appearance: auto; /* Przywrócenie domyślnego wyglądu checkboxa */
    width: auto;
    margin: 0;
}

/* Komunikat sukcesu */
#success-message,
#pricing-success-message {
    color: #e44c65;
    margin-top: 1em;
    font-weight: bold;
}
