/* Plans Page Styles */
.plans-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin-top: 76px; /* Adjust based on header height */
}

.plan-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

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

.plan-badge {
    position: absolute;
    top: 15px;
    right: -30px;
    background: #ff6b6b;
    color: white;
    padding: 5px 30px;
    transform: rotate(45deg);
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.plan-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.plan-card .card-body {
    padding: 2rem;
}

.plan-card .card-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.plan-card .text-primary {
    color: #3498db !important;
    font-size: 2rem;
    font-weight: 700;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    text-align: left;
}

.plan-features li {
    padding: 8px 0;
    position: relative;
    padding-left: 30px;
    color: #555;
}

.plan-features li:before {
    content: "✓";
    color: #2ecc71;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.btn-primary {
    background-color: #3498db;
    border-color: #3498db;
    padding: 10px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
    transform: translateY(-2px);
}

/* Modal Styles */
.modal {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px 0;
}

.modal-dialog {
    margin: 0 auto;
    max-width: 500px;
    width: 95%;
}

.modal-content {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.modal-header {
    background: #3498db;
    color: white;
    border-bottom: none;
    padding: 1.5rem;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #eee;
}

.modal-title {
    font-weight: 700;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .plans-hero {
        padding: 3rem 0;
    }
    
    .plan-card {
        margin-bottom: 2rem;
    }
    
    .plan-card .card-title {
        font-size: 1.5rem;
    }
    
    .plan-card .text-primary {
        font-size: 1.75rem;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.plan-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.plan-card:nth-child(2) { animation-delay: 0.1s; }
.plan-card:nth-child(3) { animation-delay: 0.2s; }
.plan-card:nth-child(4) { animation-delay: 0.3s; }
.plan-card:nth-child(5) { animation-delay: 0.4s; }

/* Policy (Notice) Modal Styling */
.policy-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px 14px;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    animation: fadeBackdrop 0.25s ease-out;
}

.policy-modal-content {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    border: 1px solid rgba(0,0,0,0.06);
    max-width: 640px;
    width: 100%;
    padding: 0;
    overflow: hidden;
    transform: translateY(16px) scale(0.98);
    animation: popIn 0.28s ease-out forwards;
}

.policy-modal-header {
    background: linear-gradient(135deg, #0d6efd 0%, #4dabf7 100%);
    color: #fff;
    padding: 16px 20px;
}

.policy-title {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.2px;
}

.policy-close {
    color: #fff;
    opacity: 0.9;
    line-height: 1;
}
.policy-close:hover { opacity: 1; }

.policy-body {
    padding: 18px 20px 6px 20px;
    color: #374151;
}

.policy-body p { margin-bottom: 10px; }
.policy-body ul { margin: 0; padding-left: 18px; }
.policy-body li { margin: 6px 0; }
.policy-body a { display: block; color: #374151; text-decoration: none; }

.policy-actions {
    padding: 0 20px 18px 20px;
}

.policy-btn {
    background-color: #0d6efd;
    border: none;
    color: #fff;
    border-radius: 10px;
    padding: 10px 18px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(13,110,253,0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.policy-btn:hover {
    background-color: #0b5ed7;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(13,110,253,0.35);
}
.policy-btn:active { transform: translateY(0); }

@keyframes popIn {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fadeBackdrop {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 480px) {
    .policy-title { font-size: 1rem; }
    .policy-body { padding: 16px 16px 6px 16px; }
    .policy-actions { padding: 0 16px 16px 16px; }
}
