/**
 * QRypti License Manager - Frontend Styles
 * Modern, professional design for payment forms
 */

.qrypti-payment-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.qrypti-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 40px;
}

/* Duration Toggle */
.qrypti-duration-toggle {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.qrypti-duration-option {
    display: flex;
    align-items: center;
    padding: 15px 30px;
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
}

.qrypti-duration-option:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.qrypti-duration-option input {
    margin-right: 10px;
}

.qrypti-duration-option input:checked + span {
    color: #667eea;
    font-weight: 600;
}

.qrypti-save-badge {
    display: inline-block;
    background: #4caf50;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 8px;
    font-weight: 600;
}

/* Plan Cards */
.qrypti-plans-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.qrypti-plan-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
}

.qrypti-plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: #667eea;
}

.qrypti-plan-selected {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.qrypti-plan-popular {
    border-color: #ff9800;
}

.qrypti-popular-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: linear-gradient(135deg, #ff9800 0%, #ff5722 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.qrypti-plan-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f5f5f5;
}

.qrypti-plan-header h3 {
    font-size: 24px;
    margin: 0 0 15px 0;
    color: #1a1a1a;
}

.qrypti-plan-price {
    font-size: 42px;
    font-weight: 700;
    color: #667eea;
    line-height: 1;
}

.qrypti-plan-price small {
    font-size: 18px;
    font-weight: 400;
    color: #666;
}

.qrypti-yearly-savings {
    margin-top: 10px;
    color: #4caf50;
    font-weight: 600;
    font-size: 14px;
}

.qrypti-plan-features {
    margin: 20px 0;
}

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

.qrypti-plan-features li {
    padding: 10px 0;
    color: #555;
    font-size: 15px;
    border-bottom: 1px solid #f0f0f0;
}

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

.qrypti-select-plan {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.qrypti-select-plan:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Payment Form */
#qrypti-payment-form {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-top: 30px;
}

.qrypti-selected-plan-summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
}

.qrypti-selected-plan-summary h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.qrypti-selected-plan-summary p {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.qrypti-price-highlight {
    color: #ffd700;
    font-size: 24px;
}

.qrypti-form-group {
    margin-bottom: 25px;
}

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

.qrypti-form-group input[type="text"],
.qrypti-form-group input[type="email"],
.qrypti-form-group input[type="file"],
.qrypti-form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.3s ease;
}

.qrypti-form-group input:focus,
.qrypti-form-group select:focus {
    outline: none;
    border-color: #667eea;
}

.qrypti-help-text {
    margin-top: 5px;
    font-size: 13px;
    color: #666;
}

.qrypti-payment-section {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.qrypti-payment-section h4 {
    margin-top: 0;
    color: #667eea;
}

.qrypti-paypal-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #0070ba 0%, #1f8feb 100%);
    color: white !important;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 112, 186, 0.3);
}

.qrypti-paypal-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 112, 186, 0.4);
}

.qrypti-crypto-address {
    background: white;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
    border-left: 4px solid #ff9800;
}

.qrypti-crypto-address strong {
    display: block;
    margin-bottom: 8px;
    color: #333;
}

.qrypti-crypto-address code {
    display: block;
    background: #f5f5f5;
    padding: 10px;
    border-radius: 4px;
    font-size: 13px;
    word-break: break-all;
    color: #666;
}

.qrypti-instructions {
    margin-top: 15px;
    padding: 10px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
    color: #856404;
    font-size: 14px;
}

.qrypti-form-actions {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    margin-top: 30px;
}

.qrypti-back-button,
.qrypti-submit-button {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.qrypti-back-button {
    background: #f5f5f5;
    color: #333;
}

.qrypti-back-button:hover {
    background: #e0e0e0;
}

.qrypti-submit-button {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
}

.qrypti-submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

.qrypti-submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Messages */
.qrypti-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 15px;
}

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

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

.qrypti-error {
    color: #d32f2f;
    font-weight: 600;
}

/* Download Button */
.qrypti-download-btn {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.qrypti-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .qrypti-plans-container {
        grid-template-columns: 1fr;
    }
    
    .qrypti-duration-toggle {
        flex-direction: column;
    }
    
    .qrypti-form-actions {
        flex-direction: column;
    }
    
    .qrypti-title {
        font-size: 24px;
    }
}
