* {
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background: rgb(241, 241, 241);
    margin: 0;
    padding: 25px 0;
}

/* WRAPPER */
.container {
    max-width: 1100px;
    margin: auto;
    text-align: center;
    padding: 0 15px;
}

/* TOGGLE */
.billing-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
}

.toggle-label {
    font-weight: 600;
    color: #777;
    cursor: pointer;
}

.toggle-label.active {
    color: #000;
}

.switch {
    position: relative;
    width: 50px;
    height: 24px;
}

.switch input {
    display: none;
}
.pricing-card {
    transform: translateY(20px);
    transition: opacity 0.9s ease-in-out, transform 0.5s ease-in-out;
}

.pricing-card.show {
    opacity: 1;
    transform: translateY(0);
}


.slider {
    position: absolute;
    background: #ddd;
    border-radius: 30px;
    inset: 0;
    cursor: pointer;
    transition: .3s;
}

.slider:before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: .3s;
}

input:checked + .slider {
    background: #3587BB;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* PRICING TABLE */
.pricing-tables {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
    gap: 25px;
}

.pricing-card {
    background: #fff;
    padding: 30px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.pricing-card.featured {
    border: 2px solid #3587BB;
}

.pricing-card img {
    margin-bottom: 15px;
    max-width: 120px;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
}

.pricing-card ul li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 12px;
    color: #555;
}

.pricing-card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #3587BB;
    font-weight: bold;
}

.price {
    font-size: 32px;
    font-weight: bold;
    display: none;
    padding-bottom: 15px;
}

.price span {
    font-size: 14px;
    color: #777;
}

.price.monthly {
    display: block;
}
#checkoutForm .btn.primary{
        margin-top: 15px;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 6px;
    text-decoration: none;
    border: 1px solid #3587BB;
    color: #3587BB;
    font-weight: 400;
    font-size: 16px;
    cursor: pointer;
}

.btn.primary {
    background: #3587BB;
    color: #fff;
}
.btn.back-btn{
    color: #3587BB;
    padding: 0;
    background: transparent;
    border: none;
    text-align: left;
    margin-top: 16px;
}
.btn:hover{
    background: #3587BB;
    color: #fff;
}
.btn.primary:hover{
    color: #3587BB;
    background: #fff;
}
.btn.back-btn:hover{
    background: transparent;
    color: rgb(209, 33, 41);
    text-decoration: underline;
}

.full-width {
    width: 100%;
}

/* CHECKOUT & THANK YOU */
.checkout-section,
.thank-you-section {
    display: none;
    justify-content: center;
    margin-top: 40px;
    padding: 0 15px;
}

.box {
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 15px;
}

.form-row {
    display: flex;
    gap: 10px;
}

input {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

input:focus {
    outline: none;
    border-color: #3587BB;
}

.plan-summary {
    font-weight: 600;
    margin-bottom: 20px;
    color: #3587BB;
}
.pricing-card.featured {
    position: relative;
    border: 2px solid #3587BB;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(79,70,229,0.18);
}
.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: #3587BB;
    color: #fff;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.form-error {
    background-color: #ffe6e6;
    color: #cc0000;
    padding: 10px 15px;
    margin-top: 15px;
    border: 1px solid #cc0000;
    border-radius: 5px;
    font-size: 14px;
}
select{
    width: 100%;
    padding: 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
.namegroup{
    width: 50%;
}
/* RESPONSIVE FIXES */
@media (max-width: 768px) {
    .namegroup{
        width: 100%;
    }
    .pricing-tables {
        grid-template-columns: 1fr;
    }

    .pricing-card {
        transform: none !important;
    }

    .pricing-card.featured {
        transform: none;
        margin-top: 20px;
    }

    .popular-badge {
        top: -10px;
        font-size: 12px;
        padding: 5px 12px;
    }
}