/* =====================================
   Shared Form Styles
===================================== */
form#cmp-register-form,
form#cmp-login-form {
    max-width: 400px;
    margin: 30px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fefefe;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    font-family: 'Segoe UI', sans-serif;
}

.cmp-heading {
    text-align: center;
    font-size: 22px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* === Input Fields === */
#cmp-register-form input[type="text"],
#cmp-register-form input[type="email"],
#cmp-register-form input[type="password"],
#cmp-login-form input[type="text"],
#cmp-login-form input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 15px;
}

/* === Password Toggle === */
.cmp-password-field {
    position: relative;
}

.cmp-password-toggle {
    position: absolute;
    right: 10px;
    top: 9px;
    cursor: pointer;
    font-size: 18px;
    color: #555;
}

/* === Radio Buttons === */
.cmp-radio-group {
    margin-bottom: 15px;
    text-align: center;
}

.cmp-radio-group label {
    margin: 0 10px;
}

/* === Submit Buttons === */
input[type="submit"] {
    width: 100%;
    background: #0073aa;
    color: #fff;
    padding: 10px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

input[type="submit"]:hover {
    background: #005a8c;
}

/* === Links === */
.cmp-login-link,
.cmp-login-links {
    text-align: center;
    font-size: 14px;
}

.cmp-login-link a,
.cmp-login-links a {
    color: #0073aa;
    text-decoration: none;
}

.cmp-login-link a:hover,
.cmp-login-links a:hover {
    text-decoration: underline;
}

/* =====================================
   Checkout Section
===================================== */
.cmp-checkout-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 25px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.cmp-checkout-heading {
    font-size: 28px;
    margin-bottom: 10px;
}

.cmp-checkout-heading span {
    color: #0073aa;
}

.cmp-checkout-desc {
    font-size: 16px;
    margin-bottom: 30px;
}

.cmp-checkout-box {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.cmp-payment-method h3 {
    font-size: 18px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.cmp-icon {
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

.cmp-stripe-btn {
    padding: 12px 25px;
    font-size: 16px;
    background-color: #6772e5;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cmp-stripe-btn:hover {
    background-color: #5469d4;
}

.cmp-divider {
    text-align: center;
    position: relative;
    margin: 10px 0;
}

.cmp-divider span {
    background: #fff;
    padding: 0 15px;
    color: #888;
}

.cmp-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    height: 1px;
    width: 100%;
    background: #ddd;
    z-index: -1;
}

/* =====================================
   Membership Plans
===================================== */
.cmp-membership-section {
    padding: 2rem;
    text-align: center;
    background: #f4f7fa;
    font-family: 'Segoe UI', sans-serif;
}

.cmp-membership-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #222;
}

.cmp-membership-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.cmp-plan-card {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    width: 100%;
    max-width: 300px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cmp-plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.cmp-plan-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #0073aa;
}

.cmp-plan-card.premium h3 {
    color: #d63384;
}

.cmp-plan-card p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
    color: #444;
}

.cmp-plan-btn {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.75rem 1.5rem;
    background: #0073aa;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.cmp-plan-btn:hover {
    background: #005a87;
}

.cmp-plan-card.premium .cmp-plan-btn {
    background: #d63384;
}

.cmp-plan-card.premium .cmp-plan-btn:hover {
    background: #ad2167;
}

/* === Membership Select Dropdown === */
.cmp-membership-select {
    width: 100%;
    padding: 5px;
    border-radius: 4px;
}

/* =====================================
   Responsive Layout
===================================== */
@media (max-width: 600px) {
    .cmp-membership-grid {
        flex-direction: column;
        align-items: center;
    }
}

/* =====================================
   Thank You & Payment Cancelled Pages
===================================== */
.cmp-thank-you-page,
.cmp-payment-cancelled-page {
    text-align: center;
    padding: 40px;
    background: #f7f7f7;
    border-radius: 12px;
    max-width: 600px;
    margin: 40px auto;
}

.cmp-thank-you-page h2 {
    color: #2b9348;
    margin-bottom: 20px;
}

.cmp-payment-cancelled-page h2 {
    color: #d00000;
    margin-bottom: 20px;
}

.cmp-button {
    background: #0073aa;
    color: #fff;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    display: inline-block;
    margin-top: 15px;
}

.cmp-button:hover {
    background: #005177;
}

.cmp-msg {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
}

.cmp-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    text-align: center;
}

.cmp-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    text-align: center;
}