/* =========================================
   GLOBAL
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: "Inter", sans-serif;
    background:
        linear-gradient(
            135deg,
            #f4fff8 0%,
            #ffffff 50%,
            #effcf4 100%
        );

    color: #17221c;
}


/* =========================================
   PAYMENT POP-UP MODAL STYLES
========================================= */

#paymentModal {
    width: 90%;
    max-width: 850px;
    height: 85vh;
    border: none;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(16, 34, 24, 0.4);
    padding: 0;
    overflow: hidden;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#paymentModal::backdrop {
    background: rgba(16, 34, 24, 0.65);
    backdrop-filter: blur(4px);
}

.payment-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 22px;
    background: #eaf9ee;
    border-bottom: 1px solid #d6ebdc;
    font-weight: 700;
    color: #14251b;
    font-size: 16px;
}

.payment-modal-close {
    background: #238c45;
    color: white;
    border: none;
    font-size: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.payment-modal-close:hover {
    background: #1b7439;
    transform: scale(1.08);
}

#paymentIframe {
    width: 100%;
    height: calc(100% - 52px);
    border: none;
    background: #ffffff;
}




/* =========================================
   MAIN SECTION
========================================= */

.pricing-section {
    width: 100%;
    min-height: 100vh;
    padding: 70px 20px;
}


.pricing-container {
    width: 100%;
    max-width: 1250px;
    margin: auto;
}


/* =========================================
   HEADER
========================================= */

.pricing-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 50px;
}


.pricing-badge {
    display: inline-block;
    padding: 8px 16px;

    border-radius: 50px;

    background: #e5f8eb;
    color: #17823b;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 1px;

    margin-bottom: 18px;
}


.pricing-header h1 {
    font-size: 44px;
    line-height: 1.15;

    font-weight: 800;

    margin-bottom: 18px;

    color: #102218;
}


.pricing-header p {
    font-size: 17px;
    line-height: 1.7;

    color: #66736b;
}


/* =========================================
   TOP THREE CARDS
========================================= */

.pricing-grid-top {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 22px;
}


/* =========================================
   BOTTOM THREE CARDS
========================================= */

.bottom-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 22px;

    margin-top: 22px;

    align-items: stretch;
}


/* =========================================
   PRICING CARD
========================================= */

.pricing-card {
    position: relative;

    display: flex;
    flex-direction: column;

    padding: 32px 28px;

    background: rgba(255, 255, 255, 0.92);

    border: 1px solid #dcece1;

    border-radius: 22px;

    box-shadow:
        0 12px 35px rgba(30, 80, 45, 0.08);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}


.pricing-card:hover {
    transform: translateY(-7px);

    box-shadow:
        0 20px 45px rgba(30, 80, 45, 0.14);

    border-color: #9ed8ad;
}


/* =========================================
   CARD HEADER
========================================= */

.card-header {
    margin-bottom: 25px;
}


.plan-label {
    display: inline-block;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1px;

    color: #258349;

    margin-bottom: 12px;
}


.card-header h2 {
    font-size: 28px;

    font-weight: 800;

    color: #14251b;

    margin-bottom: 10px;
}


.card-header p {
    color: #6a756e;

    font-size: 14px;

    line-height: 1.65;
}


/* =========================================
   POPULAR BADGE
========================================= */

.popular-card {
    border: 2px solid #42ad63;

    box-shadow:
        0 15px 40px rgba(44, 145, 76, 0.15);
}


.popular-badge {
    position: absolute;

    top: -13px;
    right: 25px;

    padding: 7px 13px;

    border-radius: 50px;

    background: #2e9c51;
    color: white;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 0.8px;
}


/* =========================================
   PRICE
========================================= */

.price {
    margin-bottom: 25px;
}


.price-main {
    display: block;

    font-size: 31px;

    font-weight: 800;

    color: #14251b;
}


.price-sub {
    display: block;

    margin-top: 4px;

    font-size: 13px;

    color: #77827b;
}


.yearly-price {
    margin-top: 8px;

    font-size: 16px;

    font-weight: 700;

    color: #218043;
}


/* =========================================
   FEATURES
========================================= */

.features {
    list-style: none;

    margin-bottom: 30px;

    flex-grow: 1;
}


.features li {
    font-size: 14px;

    color: #46534b;

    padding: 9px 0;

    border-bottom: 1px solid #edf3ef;
}


.features li:last-child {
    border-bottom: none;
}


/* =========================================
   BUTTONS
========================================= */

.plan-button {
    width: 100%;

    padding: 14px 20px;

    border-radius: 12px;

    font-family: inherit;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.plan-button:hover {
    transform: translateY(-2px);
}


.primary-button {
    border: none;

    background: #238c45;

    color: white;

    box-shadow:
        0 8px 18px rgba(35, 140, 69, 0.2);
}


.primary-button:hover {
    background: #1b7439;

    box-shadow:
        0 10px 22px rgba(35, 140, 69, 0.3);
}


.secondary-button {
    border: 1px solid #aad7b7;

    background: #f2fbf5;

    color: #227a3e;
}


.secondary-button:hover {
    background: #e6f7eb;
}


/* =========================================
   PARTNER CARD
========================================= */

.partner-card {
    display: flex;
    flex-direction: column;
}


.partner-card .card-header {
    margin-bottom: 20px;
}


/* =========================================
   FORM
========================================= */

#partnerForm {
    display: flex;

    flex-direction: column;

    flex-grow: 1;
}


.form-group {
    margin-bottom: 14px;
}


.form-group label {
    display: block;

    margin-bottom: 6px;

    font-size: 12px;

    font-weight: 700;

    color: #334239;
}


.form-group input {
    width: 100%;

    padding: 12px 13px;

    border: 1px solid #d7e7dc;

    border-radius: 10px;

    outline: none;

    background: #fbfefc;

    color: #1c2a21;

    font-family: inherit;

    font-size: 13px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.form-group input:focus {
    border-color: #46a965;

    box-shadow:
        0 0 0 3px rgba(70, 169, 101, 0.12);
}


.form-group input::placeholder {
    color: #9aa59e;
}


#partnerForm .plan-button {
    margin-top: auto;
}


/* =========================================
   FOOTER CTA
========================================= */

.pricing-footer {
    margin-top: 55px;

    padding: 45px 25px;

    text-align: center;

    border-radius: 24px;

    background:
        linear-gradient(
            135deg,
            #eaf9ee,
            #ffffff
        );

    border: 1px solid #d6ebdc;
}


.pricing-footer h2 {
    font-size: 30px;

    font-weight: 800;

    color: #14251b;

    margin-bottom: 12px;
}


.pricing-footer p {
    max-width: 650px;

    margin: 0 auto 25px;

    color: #68746c;

    font-size: 15px;

    line-height: 1.6;
}


.footer-button {
    border: none;

    padding: 14px 25px;

    border-radius: 12px;

    background: #238c45;

    color: white;

    font-family: inherit;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.footer-button:hover {
    background: #1b7439;

    transform: translateY(-2px);
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1050px) {

    .pricing-grid-top,
    .bottom-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 700px) {

    .pricing-section {
        padding: 45px 15px;
    }


    .pricing-header {
        margin-bottom: 40px;
    }


    .pricing-header h1 {
        font-size: 32px;
    }


    .pricing-header p {
        font-size: 15px;
    }


    .pricing-grid-top,
    .bottom-grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }


    .bottom-grid {
        margin-top: 18px;
    }


    .pricing-card {
        padding: 28px 22px;

        border-radius: 18px;
    }


    .card-header h2 {
        font-size: 25px;
    }


    .price-main {
        font-size: 28px;
    }


    .pricing-footer {
        margin-top: 40px;

        padding: 35px 20px;
    }


    .pricing-footer h2 {
        font-size: 25px;
    }

}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 400px) {

    .pricing-header h1 {
        font-size: 28px;
    }


    .pricing-card {
        padding: 24px 18px;
    }


    .pricing-footer h2 {
        font-size: 22px;
    }

}