* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f5f5f5;
    padding: 20px;
    line-height: 1.6;
}

.payment-container {
    max-width: 700px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.payment-header {
    background: #ffffff;
    color: #333;
    padding: 30px;
    text-align: center;
    border-bottom: 3px solid #007bff;
}

.company-logo {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.company-logo img {
    max-width: 120px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.payment-header h1 {
    font-size: 28px;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.header-subtitle {
    margin: 8px 0 0 0;
    font-size: 14px;
    opacity: 0.7;
    font-weight: 400;
    color: #666;
}

.payment-form {
    padding: 40px;
}

.message-box {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 14px;
}

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

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

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
}

.form-group.full-width {
    flex: 1 1 100%;
}

.form-group.small {
    flex: 0 0 calc(25% - 10px);
}

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

.required {
    color: #d9534f;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.form-group input.error {
    border-color: #d9534f;
}

.amount-wrapper {
    position: relative;
}

.currency-symbol {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    color: #666;
    font-size: 16px;
    pointer-events: none;
}

.amount-wrapper input {
    padding-left: 35px !important;
    font-size: 16px;
    font-weight: 600;
}

.section-divider {
    margin: 30px 0 20px;
    padding: 15px 0;
    border-top: 2px solid #e9ecef;
}

.section-divider h2 {
    margin: 0;
    color: #333;
    font-size: 20px;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover:not(:disabled) {
    background: #0056b3;
}

.submit-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.loader {
    display: inline-block;
}

.loader::after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.card-brands {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.card-brands img {
    height: 28px;
    width: auto;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.secure-notice {
    text-align: center;
    margin-top: 20px;
    color: #6c757d;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.secure-notice svg {
    color: #28a745;
}

/* Responsive */
@media (max-width: 768px) {
    .payment-form {
        padding: 20px;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-group.small {
        flex: 1 1 100%;
    }
    
    .payment-header h1 {
        font-size: 22px;
    }
    
    .header-subtitle {
        font-size: 12px;
    }
    
    .company-logo img {
        max-width: 100px;
    }
}

/* reCAPTCHA responsive */
@media (max-width: 400px) {
    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: 0 0;
    }
}
