/* Subscription Pages Styling */

.subscription-header {
    padding: 160px 0 120px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    text-align: center;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.subscription-title {
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.subscription-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Add wave divider at bottom of header */
.subscription-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: white;
    border-radius: 100% 100% 0 0;
    transform: translateY(50%);
}

.plan-card {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    height: 100%;
    border: none;
}

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

/* Purchase Page Specific Styles */
.featured-plan {
    border: none;
    box-shadow: 0 10px 25px rgba(26, 42, 108, 0.15);
}

.plan-header {
    padding: 2rem 1.5rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.plan-header.featured {
    background: linear-gradient(135deg, #1a2a6c 0%, #b21f1f 50%, #fdbb2d 100%);
    color: white;
}

.popular-badge {
    position: absolute;
    top: 0;
    right: 1.5rem;
    background: linear-gradient(90deg, #1a2a6c, #b21f1f);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.price {
    margin: 1rem 0;
    font-weight: 700;
}

.price .currency {
    font-size: 1.5rem;
    vertical-align: top;
    position: relative;
    top: 0.5rem;
}

.price .amount {
    font-size: 3rem;
    line-height: 1;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.feature-icon.included {
    color: var(--success-color, #28a745);
}

.feature-icon.not-included {
    color: var(--danger-color, #dc3545);
}

/* Main content area styling */
.py-5 {
    padding-top: 3rem !important;
    background-color: #f8f9fa;
    border-radius: 30px 30px 0 0;
    margin-top: -30px;
    position: relative;
    z-index: 10;
}

/* Payment Form Styling */
.payment-form .form-section {
    position: relative;
}

.payment-form .form-section-title {
    font-weight: 600;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
}

.payment-form .form-section-title:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.payment-form .form-control:focus,
.payment-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(var(--primary-color-rgb), 0.25);
}

.payment-form .action-buttons {
    display: flex;
    justify-content: space-between;
}

.btn-purchase {
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f);
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-purchase:hover {
    background: linear-gradient(135deg, #152354, #991a1a);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.terms-checkbox {
    display: flex;
    align-items: center;
}

/* Fix for oversized checkbox */
.form-check-input[type="checkbox"] {
    scale: 0.5;
    
}

.plan-header.featured {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    color: white;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.plan-duration {
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.plan-header.featured .plan-duration {
    color: rgba(255, 255, 255, 0.8);
}

.plan-features {
    padding: 20px;
}

.feature-item {
    padding: 10px 0;
    display: flex;
    align-items: center;
}

.feature-icon {
    margin-right: 10px;
    font-size: 1.2rem;
}

.feature-icon.included {
    color: var(--primary-color);
}

.feature-icon.not-included {
    color: var(--dark-gray);
    opacity: 0.5;
}

.plan-footer {
    padding: 20px;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Payment Form Styling */
.payment-form {
    margin-top: 30px;
}

.form-section {
    margin-bottom: 30px;
}

.form-section-title {
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    /* border-bottom: 1px solid rgba(0, 0, 0, 0.1); */
}

.card-element {
    padding: 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.card {
    border: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

.card-element:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-color-rgb), 0.25);
}

.terms-checkbox {
    margin-top: 20px;
}

.action-buttons {
    margin-top: 30px;
    display: flex;
    justify-content: flex-end;
}

.btn-purchase {
    padding: 10px 30px;
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .subscription-header {
        padding: 80px 0 60px;
    }
    
    .plan-price {
        font-size: 2rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn {
        margin-bottom: 10px;
        width: 100%;
    }
}

/* Terms modal styling */
.terms-modal .modal-header {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f);
    color: white;
    padding: 1.25rem 1.5rem;
    border-bottom: none;
}

.terms-modal .modal-title {
    font-weight: 600;
}

.terms-modal .modal-body h6 {
    color: var(--dark-color);
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.terms-modal .modal-body ul {
    padding-left: 20px;
}

.terms-modal .modal-body li {
    margin-bottom: 8px;
}

.terms-modal .modal-footer .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.terms-modal .modal-footer .btn-primary:hover {
    background-color: var(--dark-color);
    border-color: var(--dark-color);
}
