/* QR Subscription Plans Styles */

.qr-subscription-plans-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.qr-plans-header {
    text-align: center;
    margin-bottom: 40px;
}

.qr-plans-header h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #333;
}

.qr-plans-header p {
    font-size: 1.2em;
    color: #666;
}

.qr-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.qr-plan-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.qr-plan-card.popular {
    border-color: #4CAF50;
    border-width: 3px;
}

.qr-plan-card.current-plan {
    border-color: #2196F3;
    background: #f0f8ff;
}

.qr-plan-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.qr-current-badge {
    position: absolute;
    top: -15px;
    left: 20px;
    background: #2196F3;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.qr-plan-header {
    text-align: center;
    margin-bottom: 25px;
}

.qr-plan-name {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #333;
}

.qr-plan-price {
    font-size: 2.5em;
    font-weight: 700;
    color: #4CAF50;
    margin-bottom: 10px;
}

.qr-plan-price .price-currency {
    font-size: 0.6em;
    vertical-align: super;
}

.qr-plan-price .price-period {
    font-size: 0.4em;
    color: #666;
}

.qr-plan-description {
    color: #666;
    font-size: 0.95em;
    margin-top: 10px;
}

.qr-plan-features {
    flex-grow: 1;
    margin-bottom: 25px;
}

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

.qr-plan-features li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
}

.qr-plan-features li:last-child {
    border-bottom: none;
}

.qr-plan-features .feature-icon {
    color: #4CAF50;
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.2em;
}

.qr-plan-action {
    text-align: center;
}

.qr-plan-button {
    display: inline-block;
    width: 100%;
    padding: 15px 30px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.qr-plan-button:hover {
    background: #45a049;
    transform: scale(1.02);
}

.qr-plan-button.current {
    background: #2196F3;
    cursor: default;
}

.qr-plan-button.current:hover {
    transform: none;
}

.qr-plan-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.qr-plan-button:disabled:hover {
    transform: none;
}

.qr-plans-footer {
    text-align: center;
    padding: 30px 0;
    color: #666;
}

.qr-plans-footer a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 600;
}

.qr-plans-footer a:hover {
    text-decoration: underline;
}

.qr-plans-error {
    text-align: center;
    padding: 40px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
}

/* Payment Modal Styles */
.qr-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.qr-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.qr-modal-close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
}

.qr-modal-close:hover {
    color: #333;
}

#qr-payment-details {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

#qr-payment-details p {
    margin: 10px 0;
    font-size: 1.1em;
}

.form-group {
    margin: 20px 0;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group select,
.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
}

#payment-method-details {
    margin: 20px 0;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
    min-height: 50px;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.form-actions button {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.button-primary {
    background: #4CAF50;
    color: white;
}

.button-primary:hover {
    background: #45a049;
}

.button-secondary {
    background: #f0f0f0;
    color: #333;
}

.button-secondary:hover {
    background: #e0e0e0;
}

#payment-result {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
}

#payment-result.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#payment-result.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .qr-plans-grid {
        grid-template-columns: 1fr;
    }
    
    .qr-plan-card {
        padding: 20px;
    }
    
    .qr-plans-header h2 {
        font-size: 2em;
    }
    
    .qr-modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
}
