#register-form .plans {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 20px;
    margin: 40px auto;
    max-width: 1000px;
}

#register-form .plan_container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 300px;
}

#register-form .single_plan {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 2px solid;
    border-radius: 17px;
    overflow: visible; 
    position: relative;
    padding: 0;
    height: 100%;
}

#register-form .plan_container:nth-child(1) .single_plan { border-color: #2e7d32; }
#register-form .plan_container:nth-child(2) .single_plan { border-color: #1a73e8; }
#register-form .plan_container:nth-child(3) .single_plan { border-color: #15325c; }

#register-form .plan_container:nth-child(1) .plan-features { background-color: #e5f8e6; }
#register-form .plan_container:nth-child(2) .plan-features { background-color: #f0f7ff; }
#register-form .plan_container:nth-child(3) .plan-features { background-color: #e4f6fc; }

.plan-card,
#register-form .single_plan .plan-card {
    display: contents;
}

.plan-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff5722;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    white-space: nowrap;
    order: 0;
}

.plan-header {
    padding: 15px;
    color: #fff;
    font-weight: bold;
    border-radius: 10px 10px 0 0;
    font-size: 16px;
    margin: 0;
    order: 1;
}

.plan-basic .plan-header, 
.plan-monthly .plan-header { background-color: #2e7d32; }
.plan-quarterly .plan-header { background-color: #1976d2; }
.plan-yearly .plan-header { background-color: #15325c; }

.plan-body {
    padding: 20px 0;
    flex-grow: 1;
    order: 2;
}

.plan-body > * {
    padding: 0 20px;
}

.plan-duration {
    font-size: 14px;
    color: #555;
    font-weight: bold;
    margin-bottom: 10px;
}

.plan-price {
    font-size: 32px;
    font-weight: bold;
    color: #000;
    margin-bottom: 10px;
}

.plan-subtitle {
    font-size: 12px;
    color: #333;
    min-height: 35px;
    margin-bottom: 20px;
}

.plan-features {
    list-style: none;
    text-align: left;
    padding: 15px !important;
    margin: 0 5px !important;
    border-radius: 15px;
}

.plan-features li {
    font-size: 13px;
    color: #333;
    margin-bottom: 12px;
    padding-left: 28px;
    position: relative;
    line-height: 1.4;
    list-style: none;
    display: block;
    text-align: left;
}

.plan-features li::before {
    content: '✔';
    position: absolute;
    left: 0;
    top: 2px;
    color: #fff;
    background-color: #2e7d32;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.plan-quarterly .plan-features li::before,
#register-form .plan_container:nth-child(2) .plan-features li::before {
    background-color: #1976d2;
}

#register-form .plan_footer {
    padding: 0 20px;
    margin-top: auto;
    background: transparent;
    order: 3;
}

.plan-footer-text {
    font-size: 11px;
    color: #777;
    padding: 15px 20px 20px 20px;
    margin: 0;
    order: 4;
}

#register-form .plan_footer input[type="submit"] {
    background: #2e7d32;
    color: #ffffff;
    border: none;
    border-radius: 15px;
    padding: 12px 20px;
    width: 100%;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.3s ease;
}

#register-form .plan_footer input[type="submit"]:hover {
    background: #1b5e20;
}

#register-form .plan_footer button[type="submit"],
.plan_header {
    display: none;
}