/* Membership Payments - Payment Form Styles */

.mp-payment-form {
    max-width: 450px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.mp-form-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.mp-form-header h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    color: #333;
}

.mp-description {
    color: #666;
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.mp-amount {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0.5rem 0 0 0;
}

.mp-form-row {
    margin-bottom: 1.25rem;
}

.mp-form-row label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
}

.mp-form-row input[type="text"],
.mp-form-row input[type="email"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.mp-form-row input:focus {
    outline: none;
    border-color: #5469d4;
    box-shadow: 0 0 0 3px rgba(84, 105, 212, 0.15);
}

#mp-card-element {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#mp-card-element.StripeElement--focus {
    border-color: #5469d4;
    box-shadow: 0 0 0 3px rgba(84, 105, 212, 0.15);
}

#mp-card-element.StripeElement--invalid {
    border-color: #fa755a;
}

.mp-error {
    color: #fa755a;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    min-height: 1.2rem;
}

#mp-submit-btn {
    width: 100%;
    padding: 1rem;
    margin-top: 1rem;
    background: #5469d4;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

#mp-submit-btn:hover:not(:disabled) {
    background: #4354b5;
}

#mp-submit-btn:disabled {
    background: #9aa5d4;
    cursor: not-allowed;
}

/* Loading spinner */
.mp-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: mp-spin 0.8s linear infinite;
}

@keyframes mp-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Success message */
.mp-success {
    text-align: center;
    padding: 2rem;
}

.mp-success h4 {
    color: #27ae60;
    font-size: 1.5rem;
    margin: 0 0 1rem 0;
}

.mp-success h4::before {
    content: "✓ ";
}

.mp-success p {
    color: #666;
    margin: 0;
}

/* Responsive */
@media (max-width: 500px) {
    .mp-payment-form {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .mp-amount {
        font-size: 1.75rem;
    }
}
