/**
 * OpMatch AI Resume Analyzer - Subscription & Payment Styles
 */

/* Plans Grid */
.opmatch-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.opmatch-plan-card {
    background: white;
    border: 2px solid var(--opmatch-border);
    border-radius: 1rem;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
}

.opmatch-plan-card:hover {
    border-color: var(--opmatch-primary);
    box-shadow: var(--opmatch-shadow-lg);
    transform: translateY(-4px);
}

.opmatch-plan-popular {
    border-color: var(--opmatch-primary);
    box-shadow: var(--opmatch-shadow);
}

.opmatch-plan-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, var(--opmatch-primary), var(--opmatch-secondary));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.opmatch-plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--opmatch-text);
    margin-bottom: 1rem;
}

.opmatch-plan-price {
    margin-bottom: 0.5rem;
}

.opmatch-price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--opmatch-primary);
}

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

.opmatch-plan-yearly {
    font-size: 0.875rem;
    color: var(--opmatch-text-light);
    margin-bottom: 1.5rem;
}

.opmatch-plan-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.opmatch-plan-features li {
    padding: 0.75rem 0;
    color: var(--opmatch-text);
    border-bottom: 1px solid var(--opmatch-border);
}

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

.opmatch-plan-select-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--opmatch-primary), var(--opmatch-secondary));
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.opmatch-plan-select-btn:hover {
    box-shadow: var(--opmatch-shadow-lg);
    transform: translateY(-2px);
}

/* Payment Modal */
.opmatch-payment-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease-in;
}

.opmatch-payment-modal {
    background: white;
    border-radius: 1rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--opmatch-shadow-lg);
    animation: slideUp 0.3s ease-out;
}

.opmatch-payment-section {
    margin-bottom: 2rem;
}

.opmatch-payment-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--opmatch-text);
    margin-bottom: 1rem;
}

.opmatch-radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.opmatch-radio-label {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid var(--opmatch-border);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.opmatch-radio-label:hover {
    border-color: var(--opmatch-primary);
    background: var(--opmatch-bg-light);
}

.opmatch-radio-label input[type="radio"] {
    margin-right: 0.75rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.opmatch-radio-label input[type="radio"]:checked + span {
    color: var(--opmatch-primary);
    font-weight: 600;
}

.opmatch-payment-info {
    background: var(--opmatch-bg-light);
    border-left: 4px solid var(--opmatch-primary);
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.opmatch-payment-info p {
    margin-bottom: 0.5rem;
    color: var(--opmatch-text);
    line-height: 1.6;
}

.opmatch-payment-secure,
.opmatch-payment-note {
    font-size: 0.875rem;
    color: var(--opmatch-text-light);
    margin-top: 0.5rem;
}

.opmatch-payment-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: var(--opmatch-bg-light);
    border-radius: 0.75rem;
    margin: 1.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.opmatch-total-amount {
    color: var(--opmatch-primary);
    font-size: 1.75rem;
}

.opmatch-payment-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--opmatch-primary), var(--opmatch-secondary));
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.opmatch-payment-submit:hover {
    box-shadow: var(--opmatch-shadow-lg);
    transform: translateY(-2px);
}

.opmatch-payment-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* QR Code Payment */
.opmatch-qr-payment {
    text-align: center;
    padding: 2rem 1rem;
}

.opmatch-qr-payment h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--opmatch-text);
    margin-bottom: 1.5rem;
}

.opmatch-qr-image {
    max-width: 300px;
    width: 100%;
    height: auto;
    border: 2px solid var(--opmatch-border);
    border-radius: 0.5rem;
    margin: 1rem auto;
    display: block;
}

.opmatch-qr-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--opmatch-primary);
    margin: 1rem 0;
}

.opmatch-qr-note {
    color: var(--opmatch-text-light);
    margin: 0.5rem 0;
}

.opmatch-qr-ref {
    font-size: 0.875rem;
    color: var(--opmatch-text-light);
    font-family: monospace;
    background: var(--opmatch-bg-light);
    padding: 0.5rem;
    border-radius: 0.25rem;
    margin-top: 1rem;
}

/* Bank Transfer */
.opmatch-bank-transfer {
    padding: 1rem;
}

.opmatch-bank-transfer h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--opmatch-text);
    margin-bottom: 1.5rem;
    text-align: center;
}

.opmatch-bank-details {
    background: var(--opmatch-bg-light);
    border: 2px solid var(--opmatch-border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 1rem 0;
}

.opmatch-bank-details p {
    margin-bottom: 0.75rem;
    color: var(--opmatch-text);
    font-size: 1rem;
}

.opmatch-transfer-amount {
    font-size: 1.25rem;
    color: var(--opmatch-primary);
    font-weight: 600;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--opmatch-border);
}

.opmatch-transfer-ref {
    font-size: 0.875rem;
    color: var(--opmatch-text-light);
    font-family: monospace;
    background: var(--opmatch-bg-light);
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
    text-align: center;
}

.opmatch-transfer-note {
    color: var(--opmatch-error);
    font-size: 0.875rem;
    text-align: center;
    margin: 1rem 0;
}

.opmatch-upload-slip-btn {
    width: 100%;
    padding: 1rem;
    background: var(--opmatch-primary);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1rem;
}

.opmatch-upload-slip-btn:hover {
    background: var(--opmatch-primary-dark);
    box-shadow: var(--opmatch-shadow);
}

/* Responsive */
@media (max-width: 768px) {
    .opmatch-plans-grid {
        grid-template-columns: 1fr;
    }
    
    .opmatch-payment-modal {
        width: 95%;
        max-height: 95vh;
    }
    
    .opmatch-price-amount {
        font-size: 2rem;
    }
}
