/* General Styles */
.subsplan-content {
    margin: 20px auto;
    padding: 20px;
    background-color: #f9fbfd; /* Light background */
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    max-width: 1200px;
}

.subsplan-title {
    font-size: 2em;
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

/* Current Plan Section */
.subsplan-section {
    margin-bottom: 30px;
}

.subsplan-box {
    padding: 20px;
    background-color: #ffffff; /* White background for clarity */
    border: 1px solid #e0e7ff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.subsplan-box.no-subscription {
    text-align: center;
    font-size: 1.2em;
    color: #6c757d;
}

.subsplan-plan-info-box p {
    margin: 10px 0;
    color: #555;
}

.subsplan-header {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #007bff; /* Blue header */
}

/* Pricing Plans Section */
.subsplan-pricing-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.subsplan-plan-box {
    width: 300px;
    padding: 20px;
    background-color: #ffffff; /* White background */
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.subsplan-plan-box:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.subsplan-plan-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #0056b3; /* Friendly blue */
}

.subsplan-price {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.subsplan-plan-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
    font-size: 0.95em;
    color: #555;
}

.subsplan-plan-features li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.subsplan-plan-features li::before {
    content: '✔';
    color: #28a745; /* Green checkmark */
    margin-right: 10px;
}

/* Buttons */
.subsplan-subscribe-button,
.subsplan-switch-button,
.subsplan-unsubscribe button {
    padding: 10px 15px;
    font-size: 1em;
    color: #fff;
    background-color: #007bff; /* Blue button */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.subsplan-subscribe-button:hover,
.subsplan-switch-button:hover,
.subsplan-unsubscribe button:hover {
    background-color: #0056b3; /* Darker blue on hover */
}

.subsplan-subscribe-button.disabled {
    background-color: #6c757d; /* Gray for disabled button */
    cursor: not-allowed;
}

.subsplan-status {
    font-size: 0.9em;
    color: #6c757d;
    margin-top: 10px;
}

/* Subscription Benefits Section */
.subsplan-message-box {
    margin-top: 40px;
    padding: 20px;
    background-color: #ffffff; /* White background */
    border: 1px solid #e0e7ff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.subsplan-benefits-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    font-size: 0.95em;
    color: #555;
}

.subsplan-benefits-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

.subsplan-benefits-list li strong {
    margin-left: 5px;
}

/* Modal Styles */
.subsplan-modal {
    display: none; /* Default hidden */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
}

.subsplan-modal-content {
    position: relative;
    margin: 10% auto;
    padding: 20px;
    width: 90%;
    max-width: 400px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.subsplan-close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #aaa;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.subsplan-close:hover {
    color: #333;
}

.subsplan-modal-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: space-around;
}

.subsplan-confirm-button {
    padding: 10px 20px;
    font-size: 1em;
    color: #fff;
    background-color: #28a745; /* Green button */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.subsplan-confirm-button:hover {
    background-color: #218838; /* Darker green */
}

.subsplan-cancel-button {
    padding: 10px 20px;
    font-size: 1em;
    color: #fff;
    background-color: #dc3545; /* Red button */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.subsplan-cancel-button:hover {
    background-color: #c82333; /* Darker red */
}

/* Responsive Design */
@media (max-width: 768px) {
    .subsplan-pricing-container {
        flex-direction: column;
        align-items: center;
    }

    .subsplan-plan-box {
        width: 90%; /* Full width for mobile */
    }
}
