/* Package Details Page Styles */
html,
body {
    height: auto;
    min-height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.package-details {
    padding: 120px 0 80px;
    background: linear-gradient(180deg, var(--dark-gray), var(--black));
    min-height: 100vh;
    overflow-x: hidden;
    max-width: 100vw;
    -webkit-overflow-scrolling: touch;
}

.package-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--primary-orange);
}

.package-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--white);
}

.package-subtitle {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 40px;
}

.package-price-box {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, var(--dark-gray), var(--medium-gray));
    padding: 30px 60px;
    border-radius: 20px;
    border: 2px solid rgba(255, 107, 53, 0.3);
    box-shadow: 0 20px 40px rgba(255, 107, 53, 0.2);
}

.price-large {
    font-size: 56px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.price-desc {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 10px;
}

.price-monthly {
    font-size: 16px;
    color: var(--primary-orange);
    font-weight: 600;
}

.features-detailed {
    max-width: 900px;
    margin: 0 auto;
}

.features-detailed .section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
}

.feature-detail-card {
    background: linear-gradient(135deg, var(--dark-gray), var(--medium-gray));
    border: 2px solid rgba(255, 107, 53, 0.2);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 25px;
    display: flex;
    gap: 25px;
    align-items: flex-start;
    transition: all 0.4s ease;
}

.feature-detail-card:hover {
    border-color: var(--primary-orange);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
    transform: translateX(5px);
}

.feature-detail-card.disabled {
    opacity: 0.5;
    border-color: rgba(255, 107, 53, 0.1);
}

.feature-detail-card.disabled:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(255, 107, 53, 0.1);
}

.feature-icon {
    font-size: 40px;
    min-width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 12px;
}

.feature-content {
    flex: 1;
}

.feature-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}

.feature-description {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-gray);
}

.feature-divider {
    text-align: center;
    margin: 60px 0 40px;
    position: relative;
}

.divider-title {
    font-size: 24px;
    color: var(--text-gray);
    font-weight: 600;
    position: relative;
    display: inline-block;
    padding: 0 20px;
    background: var(--black);
}

.feature-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.3), transparent);
    z-index: -1;
}

.cta-section {
    text-align: center;
    margin-top: 80px;
    padding: 60px 40px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 140, 66, 0.05));
    border-radius: 30px;
    border: 2px solid rgba(255, 107, 53, 0.2);
}

.cta-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 15px;
}

.cta-description {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Package Navigation */
.package-navigation {
    display: flex;
    justify-content: center;
    margin: 80px 0 60px;
    padding: 40px 20px;
    border-top: 1px solid rgba(255, 107, 53, 0.2);
    border-bottom: 1px solid rgba(255, 107, 53, 0.2);
    overflow-x: hidden;
}

.package-navigation--double {
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.package-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    padding: 20px 35px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 140, 66, 0.15));
    border: 2px solid rgba(255, 107, 53, 0.4);
    border-radius: 60px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 100%;
}

.package-nav-link svg {
    flex-shrink: 0;
}

.package-nav-link:hover {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.25), rgba(255, 140, 66, 0.25));
    border-color: var(--primary-orange);
    transform: translateX(8px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

@media (max-width: 768px) {
    .package-title {
        font-size: 32px;
    }
    
    .feature-detail-card {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-icon {
        margin: 0 auto;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons a {
        width: 100%;
        max-width: 300px;
    }
}

/* Legal Content Styles */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
}

.legal-section {
    background: linear-gradient(135deg, var(--dark-gray), var(--medium-gray));
    border: 2px solid rgba(255, 107, 53, 0.2);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
}

.legal-section h2 {
    font-size: 24px;
    color: var(--white);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 107, 53, 0.3);
}

.legal-section h3 {
    font-size: 18px;
    color: var(--primary-orange);
    margin-top: 20px;
    margin-bottom: 10px;
}

.legal-section p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-gray);
    margin-bottom: 15px;
}

.legal-section ul {
    list-style: none;
    padding-left: 0;
    margin: 15px 0;
}

.legal-section ul li {
    padding: 8px 0 8px 25px;
    position: relative;
    color: var(--text-gray);
    font-size: 15px;
    line-height: 1.6;
}

.legal-section ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-orange);
    font-weight: bold;
}

/* Mobile Styles */
@media (max-width: 768px) {
    html,
    body {
        overflow-x: hidden;
        width: 100%;
    }
    
    .package-details {
        padding: 80px 0 60px;
        overflow-x: hidden;
    }
    
    .package-details .container {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .package-header {
        margin-bottom: 50px;
    }
    
    .package-title {
        font-size: 32px;
    }
    
    .package-subtitle {
        font-size: 16px;
    }
    
    .package-price-box {
        padding: 25px 30px;
        max-width: 90%;
    }

    .package-navigation {
        margin: 60px 0 40px;
        padding: 30px 20px;
    }

    .package-nav-link {
        width: 100%;
        max-width: 320px;
        padding: 16px 22px;
    }

    .package-nav-link:hover {
        transform: none;
    }
    
    .features-detailed {
        display: grid;
        grid-template-columns: 1fr;
    }
    
    .features-detailed .section-title {
        grid-column: 1;
        margin-bottom: 30px;
        font-size: 28px;
    }
    
    .feature-detail-card {
        display: grid;
        grid-column: 1;
        padding: 20px;
        margin-bottom: 12px;
    }
    
    /* Pareittain ryhmittely - isompi väli parien välissä */
    .feature-detail-card:nth-of-type(2n) {
        margin-bottom: 50px;
    }
}