/* Pricing Page Specific Styles */

/* Pricing Toggle Section */
.pricing-toggle-section {
    padding: 30px 0;
    text-align: center;
}

.pricing-toggle {
    display: inline-flex;
    align-items: center;
    background-color: #f3f4f6;
    padding: 5px;
    border-radius: 30px;
}

.toggle-label {
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 500;
    position: relative;
}

.toggle-label.active {
    color: var(--primary-color);
    font-weight: 600;
}

.save-badge {
    position: absolute;
    top: -10px;
    right: -20px;
    background-color: var(--secondary-color);
    color: white;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 600;
}

/* Switch Toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
    margin: 0 10px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(30px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Pricing Plans */
.pricing-plans {
    padding: 50px 0 100px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 0 auto;
    max-width: 1200px;
}

.pricing-card {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.pricing-card.popular {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
    z-index: 1;
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.popular-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--primary-color);
    color: white;
    padding: 8px 15px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 0 var(--border-radius) 0 var(--border-radius);
}

.pricing-header {
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid var(--light-gray);
}

.pricing-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.pricing-image {
    width: 100%;
    height: 160px;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.pricing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pricing-card:hover .pricing-image img {
    transform: scale(1.1);
}

.price-container {
    margin-bottom: 10px;
}

.price {
    display: none; /* Will be toggled with JS */
}

.price .currency {
    font-size: 1.5rem;
    font-weight: 500;
    vertical-align: top;
    position: relative;
    top: 5px;
}

.price .amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--dark-color);
}

.price .period {
    font-size: 1rem;
    color: var(--gray-color);
}

.pricing-description {
    color: var(--gray-color);
    font-size: 0.9rem;
}

.pricing-features {
    padding: 30px;
    flex-grow: 1;
}

.pricing-features ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features li i {
    color: var(--secondary-color);
    font-size: 1rem;
}

.pricing-features li.unavailable {
    color: var(--gray-color);
    opacity: 0.7;
}

.pricing-features li.unavailable i {
    color: var(--gray-color);
}

.pricing-cta {
    padding: 0 30px 30px;
    text-align: center;
}

.pricing-cta .btn {
    width: 100%;
}

/* Custom Plan Section */
.custom-plan-section {
    padding: 80px 0;
    background-color: #f3f4f6;
}

.custom-plan-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.custom-plan-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.custom-plan-content p {
    font-size: 1.1rem;
    color: var(--gray-color);
    margin-bottom: 20px;
}

.custom-plan-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.custom-plan-features li {
    display: flex;
    align-items: center;
    gap: 15px;
}

.custom-plan-features i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.custom-plan-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.custom-plan-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.custom-plan-image:hover img {
    transform: scale(1.05);
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
    .custom-plan-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .custom-plan-features li {
        justify-content: center;
    }
    
    .custom-plan-image {
        order: -1;
        max-width: 600px;
        margin: 0 auto;
    }
}

@media screen and (max-width: 768px) {
    .pricing-card.popular {
        transform: scale(1);
    }
    
    .pricing-card.popular:hover {
        transform: translateY(-10px);
    }
}

@media screen and (max-width: 576px) {
    .pricing-toggle {
        flex-direction: column;
        padding: 10px;
        gap: 10px;
    }
    
    .save-badge {
        position: static;
        display: inline-block;
        margin-left: 5px;
    }
    
    .pricing-header {
        padding: 20px;
    }
    
    .pricing-features,
    .pricing-cta {
        padding: 20px;
    }
}
