/* Pakistani Payment Gateway Styles */

.tpp-payment-wrapper {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.tpp-payment-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.1);
    padding: 40px;
}

.tpp-title {
    text-align: center;
    color: #1a202c;
    margin-bottom: 30px;
    font-size: 32px;
}

/* Class Info */
.tpp-class-info {
    text-align: center;
    padding: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: #fff;
    margin-bottom: 40px;
}

.tpp-class-info h3 {
    margin: 0 0 10px 0;
    color: #fff;
    font-size: 24px;
}

.tpp-price {
    font-size: 36px;
    font-weight: 700;
    margin: 0;
}

/* Payment Methods */
.tpp-payment-methods {
    margin-bottom: 40px;
}

.tpp-payment-methods h3 {
    text-align: center;
    margin-bottom: 30px;
    color: #2d3748;
}

.tpp-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.tpp-method-card {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tpp-method-card:hover {
    border-color: #3182ce;
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(49, 130, 206, 0.2);
}

.tpp-method-card.selected {
    border-color: #3182ce;
    background: #ebf8ff;
}

.tpp-method-icon {
    margin-bottom: 16px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tpp-method-icon img {
    max-width: 120px;
    height: auto;
    max-height: 60px;
}

.tpp-method-card h4 {
    margin: 0 0 12px 0;
    color: #1a202c;
    font-size: 20px;
}

.tpp-account-number {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin: 8px 0;
    font-family: 'Courier New', monospace;
}

.tpp-account-title {
    color: #718096;
    margin: 4px 0;
    font-size: 14px;
}

.tpp-bank-name {
    font-weight: 600;
    color: #2d3748;
    margin: 8px 0;
}

.tpp-iban {
    color: #718096;
    font-size: 12px;
    margin: 4px 0;
}

.tpp-select-method {
    margin-top: 16px;
    padding: 10px 24px;
    background: #3182ce;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.tpp-select-method:hover {
    background: #2c5aa0;
    transform: translateY(-2px);
}

/* Payment Form */
.tpp-payment-form {
    margin-top: 40px;
}

.tpp-payment-form h3 {
    margin-bottom: 24px;
    color: #2d3748;
}

.tpp-form-group {
    margin-bottom: 24px;
}

.tpp-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
}

.tpp-form-group small {
    display: block;
    margin-top: 6px;
    color: #718096;
    font-size: 13px;
}

.tpp-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fff;
}

.tpp-input:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.tpp-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.tpp-btn-primary {
    background: #3182ce;
    color: #fff;
}

.tpp-btn-primary:hover {
    background: #2c5aa0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3);
}

.tpp-btn-secondary {
    background: #718096;
    color: #fff;
}

.tpp-btn-secondary:hover {
    background: #4a5568;
}

.tpp-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.tpp-form-actions button {
    flex: 1;
}

/* Image Preview */
.tpp-image-preview {
    margin-bottom: 12px;
    min-height: 120px;
    border: 2px dashed #e2e8f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7fafc;
    padding: 12px;
}

.tpp-image-preview img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    max-height: 300px;
}

.tpp-image-preview:empty {
    display: none;
}

/* Messages */
.tpp-message {
    padding: 14px 18px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 14px;
}

.tpp-message.success {
    background: #c6f6d5;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

.tpp-message.error {
    background: #fed7d7;
    color: #742a2a;
    border: 1px solid #fc8181;
}

/* Instructions */
.tpp-instructions {
    margin-top: 40px;
    padding: 24px;
    background: #f7fafc;
    border-radius: 12px;
    border-left: 4px solid #3182ce;
}

.tpp-instructions h4 {
    margin-top: 0;
    color: #1a202c;
}

.tpp-instructions ol {
    margin: 0;
    padding-left: 24px;
}

.tpp-instructions li {
    margin-bottom: 12px;
    color: #4a5568;
    line-height: 1.6;
}

/* Loading State */
.tpp-loading {
    opacity: 0.6;
    pointer-events: none;
}

.tpp-btn.loading {
    position: relative;
    color: transparent;
}

.tpp-btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: tpp-spin 0.6s linear infinite;
}

@keyframes tpp-spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .tpp-payment-container {
        padding: 24px 20px;
    }
    
    .tpp-methods-grid {
        grid-template-columns: 1fr;
    }
    
    .tpp-form-actions {
        flex-direction: column;
    }
    
    .tpp-title {
        font-size: 24px;
    }
    
    .tpp-price {
        font-size: 28px;
    }
}
