.authnet-payment-form {
    max-width: 800px;
    margin: 20px auto;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
}

.authnet-sandbox-ribbon {
    background: linear-gradient(135deg, #ff9800 0%, #ff5722 100%);
    color: white;
    text-align: center;
    padding: 12px;
    margin: -30px -30px 20px -30px;
    border-radius: 8px 8px 0 0;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.authnet-sandbox-ribbon span {
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.authnet-payment-form h3 {
    margin: 25px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
    color: #333;
    font-size: 18px;
}

.authnet-payment-form h3:first-of-type {
    margin-top: 0;
}

.form-row {
    margin-bottom: 15px;
}

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

.form-row.half {
    flex: 1;
}

.form-row.third {
    flex: 1;
}

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

.amount-input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

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

.amount-input-wrapper input[type="number"] {
    padding-left: 28px !important;
}

.authnet-payment-form input[type="text"],
.authnet-payment-form input[type="email"],
.authnet-payment-form input[type="tel"],
.authnet-payment-form input[type="number"],
.authnet-payment-form select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.authnet-payment-form input:focus,
.authnet-payment-form select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

.authnet-payment-form select {
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 36px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.authnet-payment-form input:required:invalid {
    border-color: #ccc;
}

.authnet-pay-button {
    width: 100%;
    padding: 15px;
    background: #CAEB00;
    color: #000;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.2s;
}

.authnet-pay-button:hover {
    background: #EEFF84;
}

.authnet-pay-button:active {
    background: #EEFF84;
}

.authnet-pay-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

#authnet-messages {
    margin: 15px 0;
    padding: 12px 15px;
    border-radius: 4px;
    font-size: 14px;
}

#authnet-messages.error {
    background: #ffebee;
    border: 1px solid #f44336;
    color: #c62828;
}

#authnet-messages.success {
    background: #e8f5e9;
    border: 1px solid #4caf50;
    color: #2e7d32;
}

#authnet-messages ul {
    margin: 0;
    padding-left: 20px;
}

#authnet-messages p {
    margin: 0;
}

/* Modal Styles */
.authnet-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.authnet-modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.authnet-modal {
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: slideIn 0.3s ease;
    position: relative;
}

.authnet-modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.authnet-modal-icon.success {
    background: #e8f5e9;
    color: #4caf50;
}

.authnet-modal-icon.error {
    background: #ffebee;
    color: #f44336;
}

.authnet-modal h2 {
    margin: 0 0 15px 0;
    font-size: 28px;
    color: #333;
}

.authnet-modal-transaction-id {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
    font-family: monospace;
    font-size: 16px;
    color: #555;
    word-break: break-all;
}

.authnet-modal-transaction-label {
    font-size: 12px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 5px;
    font-weight: 600;
}

.authnet-modal-message {
    color: #666;
    font-size: 16px;
    line-height: 1.5;
    margin: 20px 0;
}

.authnet-modal-close {
    background: #CAEB00;
    color: #000;
    border: none;
    padding: 15px 40px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.2s;
}

.authnet-modal-close:hover {
    background: #EEFF84;
}

.authnet-modal-close:active {
    background: #EEFF84;
}

/* Responsive */
@media (max-width: 768px) {
    .form-row-group {
        flex-direction: column;
        gap: 0;
    }
    
    .authnet-payment-form {
        padding: 20px;
    }
    
    .authnet-modal {
        padding: 30px 20px;
    }
    
    .authnet-modal h2 {
        font-size: 24px;
    }
}