/* Upgrade Modal Styling */

.upgrade-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-in-out;
}

.upgrade-modal-content {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

.upgrade-modal-content.active {
    transform: translateY(0);
    opacity: 1;
}

.upgrade-header {
    background: linear-gradient(135deg, #1a3066 0%, #4a6fdb 100%);
    color: white;
    padding: 20px;
    border-radius: 15px 15px 0 0;
    position: relative;
}

.upgrade-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-family: 'Fredoka', sans-serif;
}

.upgrade-header p {
    margin: 10px 0 0;
    font-size: 1rem;
    opacity: 0.9;
}

.close-upgrade-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    color: white;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.close-upgrade-modal:hover {
    opacity: 1;
}

.upgrade-body {
    padding: 20px;
}

.plan-options {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.plan-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 20px;
    flex: 1;
    min-width: 250px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

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

.plan-card.selected {
    border-color: #4a6fdb;
    box-shadow: 0 8px 20px rgba(74, 111, 219, 0.2);
}

.plan-card.first-class {
    border-color: #1a3066;
}

.plan-card.selected.first-class {
    border-color: #1a3066;
    box-shadow: 0 8px 20px rgba(26, 48, 102, 0.2);
}

.plan-title {
    font-size: 1.3rem;
    font-weight: 600;
    font-family: 'Fredoka', sans-serif;
    margin-bottom: 10px;
    color: #1a3066;
}

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

.plan-price .period {
    font-size: 0.9rem;
    font-weight: 400;
    color: #6c757d;
}

.plan-features {
    margin-top: 15px;
}

.plan-features ul {
    padding-left: 0;
    list-style: none;
}

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

.plan-features li i {
    color: #4a6fdb;
    margin-right: 8px;
    min-width: 18px;
}

.plan-cta {
    margin-top: 20px;
}

.plan-select-btn {
    width: 100%;
    padding: 10px;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.select-business-btn {
    background-color: #4a6fdb;
    color: white;
}

.select-business-btn:hover {
    background-color: #3f5fc0;
    box-shadow: 0 5px 10px rgba(74, 111, 219, 0.3);
}

.select-first-class-btn {
    background-color: #1a3066;
    color: white;
}

.select-first-class-btn:hover {
    background-color: #142450;
    box-shadow: 0 5px 10px rgba(26, 48, 102, 0.3);
}

.upgrade-benefit {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.upgrade-benefit i {
    color: #28a745;
    margin-right: 10px;
    font-size: 1.1rem;
    min-width: 20px;
}

/* Email collection step */
.email-collection {
    display: none;
    padding: 20px;
}

.email-form {
    margin-top: 20px;
}

.email-input-group {
    margin-bottom: 15px;
}

.email-input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.email-input-group input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 1rem;
}

.email-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
    display: none;
}

.email-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.email-back-btn {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.email-back-btn:hover {
    background-color: #5a6268;
}

.email-continue-btn {
    background-color: #4a6fdb;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.email-continue-btn:hover {
    background-color: #3f5fc0;
    box-shadow: 0 5px 10px rgba(74, 111, 219, 0.3);
}

/* Starting price tag */
.starting-price-tag {
    position: absolute;
    top: -15px;
    right: 10px;
    background-color: #ff6b6b;
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Specific features list for upgrade popup */
.upgrade-features-list {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05);
}

.upgrade-features-list h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #1a3066;
}

/* Included features in the details panel */
.includes-section {
    margin-top: 25px;
    padding: 15px;
    border-radius: 8px;
    background-color: #f1f3f9;
}

.includes-section h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #1a3066;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .plan-options {
        flex-direction: column;
    }
    
    .plan-card {
        min-width: 100%;
    }
    
    .email-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .email-back-btn, .email-continue-btn {
        width: 100%;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}