/**
 * JAMBO Donations - dopasowane do jambo.org.pl
 * Fonty: Permanent Marker (kwoty), Poppins (body)
 * Akcent: #fce158 (zloty zolty)
 */

@import url('https://fonts.googleapis.com/css2?family=Permanent+Marker&family=Poppins:wght@300;400;600&display=swap');

/* ============================================================
   WRAPPER
   ============================================================ */
.jambo-donations {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 0;
    font-family: 'Poppins', sans-serif;
}

/* ============================================================
   PRZELACZNIK JEDNORAZOWO / MIESIECZNIE
   ============================================================ */
.jambo-donations__frequency {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 12px;
    border-radius: 50px;
    overflow: hidden;
    border: 2px solid #fce158 !important;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: none !important;
    outline: none !important;
}

.jambo-freq-btn,
.jambo-freq-btn:link,
.jambo-freq-btn:visited {
    flex: 1;
    padding: 12px 28px;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: #fff !important;
    color: #333 !important;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    text-decoration: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
}

.jambo-freq-btn:focus,
.jambo-freq-btn:active {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.jambo-freq-btn.active,
.jambo-freq-btn.active:link,
.jambo-freq-btn.active:visited,
.jambo-freq-btn.active:focus,
.jambo-freq-btn.active:active {
    background: #fce158 !important;
    color: #000 !important;
    font-weight: 700;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.jambo-freq-btn:hover:not(.active) {
    background: #fef9e1 !important;
}

.jambo-donations__monthly-note {
    text-align: center;
    font-size: 13px;
    color: #888;
    margin: 0 0 8px;
    font-style: italic;
    font-family: 'Poppins', sans-serif;
}

/* ============================================================
   KAFELKI (identyczne z istniejacym designem jambo.org.pl)
   ============================================================ */
.jambo-donations-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    width: 100%;
    margin-top: 24px;
}

.jambo-card {
    background: #fff;
    border-radius: 20px;
    padding: 25px 15px;
    flex: 1 1 18%;
    max-width: 19%;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.jambo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: #fce158;
}

.jambo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: #fce158;
}

.jambo-card.active {
    border-color: #fce158;
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(252, 225, 88, 0.25);
}

.jambo-card.active::before {
    height: 6px;
    background: #f0c800;
}

.jambo-card.active .jambo-select-btn {
    background-color: #000;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Kwoty */
.jambo-price {
    font-family: 'Permanent Marker', cursive;
    font-size: 36px;
    color: #111;
    margin-top: 5px;
    margin-bottom: 5px;
    line-height: 1;
}

.jambo-price--custom {
    font-size: 28px;
    padding-top: 5px;
}

.jambo-currency {
    font-size: 20px;
    color: #febb02;
}

/* Opisy */
.jambo-desc {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #555;
    line-height: 1.4;
    margin-bottom: 20px;
    flex-grow: 1;
    width: 100%;
}

.jambo-desc strong {
    color: #000;
    font-weight: 600;
}

/* Przycisk "Wybieram" */
.jambo-select-btn {
    display: inline-block;
    background-color: #fce158;
    color: #000;
    font-family: 'Poppins', sans-serif;
    text-decoration: none !important;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 50px;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(252, 225, 88, 0.4);
    white-space: nowrap;
    cursor: pointer;
    border: none;
}

.jambo-select-btn:hover {
    background-color: #000;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Custom amount input */
.jambo-custom-input {
    width: 100%;
    margin-bottom: 12px;
}

.jambo-custom-input input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    outline: none;
    transition: border-color 0.3s;
    box-sizing: border-box;
    -moz-appearance: textfield;
}

.jambo-custom-input input::-webkit-outer-spin-button,
.jambo-custom-input input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.jambo-custom-input input:focus {
    border-color: #fce158;
}

/* ============================================================
   FORMULARZ (po kliknieciu "Wybieram")
   ============================================================ */
.jambo-donations__form {
    max-width: 480px;
    margin: 32px auto 0;
    padding: 32px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.jambo-donations__form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: #fce158;
}

/* Podsumowanie wybranej kwoty */
.jambo-form-summary {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.jambo-form-summary .jambo-summary-label {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.jambo-form-summary .jambo-summary-amount {
    font-family: 'Permanent Marker', cursive;
    font-size: 42px;
    color: #111;
    line-height: 1.1;
}

.jambo-form-summary .jambo-summary-amount .jambo-currency {
    font-size: 24px;
}

.jambo-form-summary .jambo-summary-freq {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #febb02;
    font-weight: 600;
    margin-top: 4px;
}

/* Pola formularza */
.jambo-field {
    margin-bottom: 14px;
}

.jambo-field input[type="email"],
.jambo-field input[type="text"] {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    background: #fafafa;
    outline: none;
    transition: border-color 0.3s, background 0.3s;
    box-sizing: border-box;
}

.jambo-field input[type="email"]:focus,
.jambo-field input[type="text"]:focus {
    border-color: #fce158;
    background: #fff;
}

.jambo-field--checkbox {
    margin: 18px 0;
}

.jambo-field--checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 12px;
    color: #555;
    line-height: 1.5;
    font-family: 'Poppins', sans-serif;
}

.jambo-field--checkbox input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: #fce158;
}

.jambo-field--checkbox a {
    color: #febb02;
    text-decoration: underline;
}

/* Bledy */
.jambo-donations__errors {
    background: #fff0f0;
    border: 1px solid #ffcccc;
    color: #cc3333;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    margin-bottom: 16px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

/* Przycisk "Wplacam" */
.jambo-submit-btn {
    display: block;
    width: 100%;
    padding: 14px 28px;
    background-color: #fce158;
    color: #000;
    border: none;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(252, 225, 88, 0.4);
}

.jambo-submit-btn:hover {
    background-color: #000;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.jambo-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Przycisk "Zmien kwote" */
.jambo-back-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background: none;
    border: none;
    color: #888;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    cursor: pointer;
    margin-top: 8px;
    transition: color 0.3s;
}

.jambo-back-btn:hover {
    color: #333;
}

/* ============================================================
   STRONA PODZIEKOWANIA
   ============================================================ */
.jambo-thank-you {
    text-align: center;
    max-width: 560px;
    margin: 60px auto;
    padding: 40px 24px;
    font-family: 'Poppins', sans-serif;
}

.jambo-thank-you__icon {
    font-size: 64px;
    margin-bottom: 16px;
    color: #fce158;
}

.jambo-thank-you h2 {
    font-family: 'Permanent Marker', cursive;
    font-size: 28px;
    margin-bottom: 16px;
    color: #000 !important;
}

.jambo-thank-you p {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 12px;
}

.jambo-thank-you .jambo-btn {
    display: inline-block;
    margin-top: 24px;
    padding: 14px 36px;
    background: #fce158;
    color: #000;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(252, 225, 88, 0.4);
}

.jambo-thank-you .jambo-btn:hover {
    background: #000;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* ============================================================
   ANIMACJA WEJSCIA FORMULARZA
   ============================================================ */
@keyframes jamboSlideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.jambo-donations__form.jambo-visible {
    display: block;
    animation: jamboSlideDown 0.4s ease forwards;
}

/* ============================================================
   RESPONSYWNOSC
   ============================================================ */
@media (max-width: 1200px) {
    .jambo-card {
        flex: 1 1 30%;
        max-width: 30%;
    }
}

@media (max-width: 768px) {
    .jambo-card {
        flex: 1 1 45%;
        max-width: 48%;
    }

    .jambo-donations__form {
        margin: 24px 16px 0;
        padding: 24px 20px;
    }

    .jambo-form-summary .jambo-summary-amount {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .jambo-card {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .jambo-donations__frequency {
        max-width: 100%;
    }

    .jambo-freq-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .jambo-donations__form {
        margin: 20px 0 0;
        padding: 20px 16px;
    }

    .jambo-form-summary .jambo-summary-amount {
        font-size: 32px;
    }
}
