/* Microsoft 365 Style Subscription Package Layout */
.subscription-container {
    background-color: #ffffff;
    padding: 40px 0;
}

.subscription-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.billing-toggle-container {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 32px;
}

.billing-toggle {
    display: flex;
    align-items: center;
}

.billing-toggle span {
    color: #605e5c;
    font-size: 14px;
}

.billing-radio-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.billing-radio {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.billing-radio input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.billing-radio .radio-circle {
    width: 20px;
    height: 20px;
    border: 2px solid #8a8886;
    border-radius: 50%;
    margin-right: 8px;
    position: relative;
    transition: all 0.2s ease;
}

.billing-radio .radio-circle::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #0078d4;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.2s ease;
}

.billing-radio input[type="radio"]:checked + .radio-circle {
    border-color: #0078d4;
}

.billing-radio input[type="radio"]:checked + .radio-circle::after {
    transform: translate(-50%, -50%) scale(1);
}

.billing-radio span {
    color: #605e5c;
    font-size: 14px;
}

.save-badge {
    background-color: #0078d4;
    color: white;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
    font-weight: 600;
}

.pricing-grid {
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: stretch;
    margin-top: 20px;
}

.pricing-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    flex: 1;
    max-width: 350px;
    position: relative;
    border: 1px solid #e1dfdd;
    display: flex;
    flex-direction: column;
}

.most-popular-badge {
    background: #2d5a87;
    color: white;
    padding: 8px 16px;
    border-radius: 16px 16px 0 0;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    margin: -32px -32px 16px -32px;
    display: block;
}

.badge-spacer {
    height: 6px;
    margin-bottom: 16px;
}

.plan-name {
    font-size: 18px;
    font-weight: 600;
    color: #323130;
    margin-bottom: 8px;
    margin-top: 0;
}

.plan-description {
    color: #605e5c;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 24px;
}

.pricing-section {
    margin-bottom: 24px;
}

.price-display {
    display: flex;
    align-items: baseline;
    margin-bottom: 4px;
}

.price-amount {
    font-size: 32px;
    font-weight: 600;
    color: #323130;
}

.price-period {
    color: #605e5c;
    font-size: 14px;
    margin-bottom: 4px;
}

.price-details {
    color: #605e5c;
    font-size: 12px;
    margin-bottom: 0;
}

.price-details:last-child {
    margin-bottom: 0;
}

.status-badge {
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 16px;
}

.status-badge.current {
    background: #dff6dd;
    border: 1px solid #9fd89c;
    color: #107c10;
}

.status-badge.cancelled {
    background: #fde7e9;
    border: 1px solid #f1aeb5;
    color: #d13438;
}

.button-section {
    margin-bottom: 24px;
    display: flex;
    gap: 8px;
}

.subscription-btn {
    flex: 1;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 0;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    text-align: center;
    display: block;
    box-sizing: border-box;
}

.subscription-btn.primary {
    background: #2d5a87;
    color: white;
    border: 1px solid #2d5a87;
}

.subscription-btn.primary:hover {
    background: #1e3f5c;
    border-color: #1e3f5c;
}

.subscription-btn.secondary {
    background: white;
    color: #2d5a87;
    border: 1px solid #2d5a87;
}

.subscription-btn.secondary:hover {
    background: #f8f9fa;
}

.subscription-btn.outline {
    background: white;
    color: #6c757d;
    border: 1px solid #ced4da;
}

.subscription-btn.outline:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}

.subscription-btn.danger {
    background: white;
    color: #d13438;
    border: 1px solid #d13438;
}

.subscription-btn.danger:hover {
    background: #fdf6f6;
}

/* Make sure the features section takes up remaining space */
.plan-highlights {
    font-size: 14px;
    font-weight: 600;
    color: #323130;
    margin-bottom: 16px;
    margin-top: auto;
}

.subscription-details {
    color: #605e5c;
    font-size: 12px;
    margin-bottom: 16px;
}

.trial-terms {
    margin-bottom: 24px;
}

.trial-terms a {
    color: #0078d4;
    font-size: 12px;
    text-decoration: underline;
}

.plan-highlights {
    font-size: 14px;
    font-weight: 600;
    color: #323130;
    margin-bottom: 16px;
}

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

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
}

.feature-checkmark {
    color: #107c10;
    margin-right: 8px;
    margin-top: 2px;
    font-size: 12px;
}

.feature-text {
    font-size: 14px;
    color: #323130;
    line-height: 1.4;
}

/* Animation classes */
.price-transition {
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .pricing-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .pricing-card {
        max-width: 400px;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .billing-toggle-container {
        justify-content: center;
    }
    
    .pricing-card {
        padding: 24px;
        max-width: 100%;
    }
    
    .subscription-wrapper {
        padding: 0 16px;
    }
}