.authnet-parent-section,
.authnet-parent-section * {
    box-sizing: border-box;
}

.authnet-parent-section {
    background: linear-gradient(66.43deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: 40px;
    padding: clamp(24px, 5vw, 40px);
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    justify-content: flex-start;
    position: relative;
    box-shadow: 2px 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(35px);
    margin: 30px auto;
    width: 100%;
    max-width: 960px;
}

.authnet-hero-heading {
    display: flex;
    justify-content: center;
    color: #ffffff;
    text-align: left;
    font-family: 'SfProRounded-Bold', 'Poppins', sans-serif;
    font-size: clamp(28px, 6vw, 40px);
    font-weight: 700;
    align-self: stretch;
}

.authnet-form-wrapper {
    display: flex;
    flex-direction: row;
    gap: clamp(20px, 5vw, 60px);
    align-items: stretch;
    justify-content: center;
    width: 100%;
}

.authnet-form-card {
    background: #ffffff;
    border-radius: 40px;
    padding: clamp(24px, 5vw, 40px);
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    justify-content: center;
    flex: 1;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
    min-width: 0;
}

.authnet-step-tag {
    align-self: flex-start;
    background: #f2f4f9;
    border-radius: 999px;
    padding: 6px 18px;
    font-family: 'SfProRounded-Bold', 'Open Sans', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #1f2228;
}

.authnet-payment-form,
.authnet-hosted-wrapper {
    width: 100%;
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
}

.authnet-hosted-status {
    min-height: 20px;
    margin-top: 10px;
}

.authnet-hosted-helper {
    margin: 10px 0 20px;
    padding: 16px 18px;
    background: #f5f7ff;
    border-radius: 16px;
    border: 1px solid rgba(74, 144, 226, 0.3);
    font-size: 15px;
    color: #1f3b64;
    line-height: 1.5;
    font-family: 'Open Sans', sans-serif;
}

.authnet-hosted-alert {
    padding: 12px 15px;
    border-radius: 4px;
    font-size: 14px;
    border: 1px solid transparent;
}

.authnet-hosted-alert.success {
    background: #e8f5e9;
    border-color: #4caf50;
    color: #2e7d32;
}

.authnet-hosted-alert.error {
    background: #ffebee;
    border-color: #f44336;
    color: #c62828;
}

.authnet-hosted-alert.warning {
    background: #fffbea;
    border-color: #f0c33c;
    color: #9c6f19;
}

.authnet-hosted-alert.info {
    background: #e3f2fd;
    border-color: #2196f3;
    color: #0d47a1;
}

.authnet-hosted-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    z-index: 9999;
}

.authnet-hosted-overlay.active {
    opacity: 1;
    visibility: visible;
}

.authnet-hosted-window {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    width: 90%;
    max-width: 640px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    position: relative;
}

.authnet-hosted-frame {
    width: 100%;
    height: 900px;
    border: none;
    border-radius: 6px;
    background: #f5f5f5;
}

/* Ensure buttons inside Authorize.Net iframe are visible */
.authnet-hosted-frame button,
.authnet-hosted-frame input[type="submit"],
.authnet-hosted-frame input[type="button"] {
    color: #000 !important;
    background: #fff !important;
    border: 1px solid #ccc !important;
    padding: 10px 20px !important;
    font-size: 14px !important;
    cursor: pointer !important;
}

.authnet-hosted-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

body.authnet-hosted-open {
    overflow: hidden;
}

.authnet-sandbox-ribbon {
    background: linear-gradient(135deg, #ff9800 0%, #ff5722 100%);
    color: white;
    text-align: center;
    padding: 12px;
    margin: -20px -20px 20px -20px;
    border-radius: 24px;
    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 !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid #e0e0e0 !important;
    color: #333333 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
}

.authnet-honeypot {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.authnet-honeypot label,
.authnet-honeypot input {
    display: block;
    width: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    color: transparent;
}

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

/* Additional specificity to override Elementor/theme styles */
div.authnet-payment-form h3,
.authnet-payment-form > form > h3 {
    color: #333333 !important;
}

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

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

.form-row.half {
    flex: 1;
    min-width: 240px;
}

.form-row.third {
    flex: 1;
    min-width: 200px;
}

.authnet-payment-form label,
.authnet-hosted-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    color: #1f2228;
    font-size: 16px;
    font-family: 'Open Sans', sans-serif;
}

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

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

.amount-input-wrapper input[type="number"] {
    padding-left: 44px !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,
.authnet-hosted-form input[type="text"],
.authnet-hosted-form input[type="email"],
.authnet-hosted-form input[type="tel"],
.authnet-hosted-form input[type="number"],
.authnet-hosted-form select {
    width: 100%;
    padding: 16px 18px;
    border: 1px solid rgba(31, 34, 40, 0.2);
    border-radius: 20px;
    font-size: 16px;
    font-family: 'Open Sans', sans-serif;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.authnet-payment-form input:focus,
.authnet-payment-form select:focus,
.authnet-hosted-form input:focus,
.authnet-hosted-form select:focus {
    outline: none;
    border-color: #1f2228;
    box-shadow: 0 0 0 1px rgba(31, 34, 40, 0.4);
}

.authnet-payment-form select,
.authnet-hosted-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: 18px;
    background: #caeb00;
    color: #000;
    border: none;
    border-radius: 999px !important;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.2s, transform 0.2s;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.authnet-pay-button:hover {
    background: #eeff84;
    transform: translateY(-1px);
}

.authnet-pay-button:active {
    background: #d5f145;
    transform: translateY(0);
}

.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;
}

@media (max-width: 768px) {
    .authnet-parent-section {
        padding: 20px;
        border-radius: 30px;
    }

    .authnet-form-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .authnet-form-card {
        border-radius: 30px;
        padding: 20px;
    }

    .authnet-step-tag {
        font-size: 15px;
    }

    .authnet-hero-heading {
        text-align: left;
    }
}

/* 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-modal {
        padding: 30px 20px;
    }
    
    .authnet-modal h2 {
        font-size: 24px;
    }
}

/* AcceptUI Professional Status Cards */
.authnet-status-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin: 30px 0;
    animation: slideInUp 0.4s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.authnet-status-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: bold;
    margin: 0 auto 24px;
    line-height: 1;
}

.authnet-status-success .authnet-status-icon {
    background: #d4edda;
    color: #28a745;
}

.authnet-status-error .authnet-status-icon {
    background: #f8d7da;
    color: #dc3545;
}

.authnet-status-title {
    color: #333 !important;
    font-size: 28px !important;
    font-weight: 600 !important;
    margin: 0 0 24px 0 !important;
    padding: 0 !important;
}

.authnet-status-content {
    margin-top: 24px;
}

.authnet-transaction-details {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    text-align: left;
}

.authnet-transaction-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.authnet-transaction-row:last-child {
    border-bottom: none;
}

.authnet-transaction-label {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.authnet-transaction-value {
    color: #333;
    font-size: 16px;
    font-weight: 600;
    text-align: right;
}

.authnet-status-message {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Responsive for status cards */
@media (max-width: 768px) {
    .authnet-status-card {
        padding: 30px 20px;
    }
    
    .authnet-status-icon {
        width: 60px;
        height: 60px;
        font-size: 36px;
    }
    
    .authnet-status-title {
        font-size: 22px !important;
    }
    
    .authnet-transaction-details {
        padding: 20px 16px;
    }
    
    .authnet-transaction-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .authnet-transaction-value {
        text-align: left;
    }
}

/* Payment Instruction Text Above Button */
.authnet-payment-instruction {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border-left: 4px solid #2196F3;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 20px 0 10px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.authnet-payment-instruction p {
    margin: 0 !important;
    font-size: 16px !important;
    color: #1565C0 !important;
    line-height: 1.6 !important;
    text-align: center !important;
}

.authnet-payment-instruction strong {
    color: #0D47A1 !important;
    font-weight: 600 !important;
}

/* Form Footer - Simple Text with Grey Line */
.authnet-form-footer {
    margin-top: 30px;
    padding-top: 20px;
}

.authnet-footer-divider {
    width: 100%;
    height: 1px;
    background: #e0e0e0;
    margin-bottom: 20px;
}

.authnet-footer-text {
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 14px !important;
    color: #666 !important;
    line-height: 1.6 !important;
}

.authnet-footer-text strong {
    color: #333 !important;
    font-weight: 600 !important;
    font-size: 15px !important;
}

/* AcceptUI Pay Button - Larger and Color-Friendly */
#acceptuiPayButton,
button.AcceptUI {
    width: 100%;
    padding: 24px 32px !important;
    background: #CAEB00 !important;
    color: #000000 !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    margin-top: 24px !important;
    transition: all 0.3s ease !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 4px 15px rgba(202, 235, 0, 0.3) !important;
    text-transform: none !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

#acceptuiPayButton:hover,
button.AcceptUI:hover {
    background: #EEFF84 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(202, 235, 0, 0.4) !important;
}

#acceptuiPayButton:active,
button.AcceptUI:active {
    background: #CAEB00 !important;
    transform: translateY(0) !important;
    box-shadow: 0 2px 10px rgba(202, 235, 0, 0.2) !important;
}

#acceptuiPayButton:disabled,
button.AcceptUI:disabled {
    background: #cccccc !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    opacity: 0.6 !important;
}

/* Alternative Color Schemes - Uncomment the one you want to use */

/* OPTION 1: Professional Blue (Current: Green) */
/*
#acceptuiPayButton,
button.AcceptUI {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%) !important;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4) !important;
}

#acceptuiPayButton:hover,
button.AcceptUI:hover {
    background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%) !important;
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.5) !important;
}
*/

/* OPTION 2: Trust Purple */
/*
#acceptuiPayButton,
button.AcceptUI {
    background: linear-gradient(135deg, #673AB7 0%, #5E35B1 100%) !important;
    box-shadow: 0 4px 15px rgba(103, 58, 183, 0.4) !important;
}

#acceptuiPayButton:hover,
button.AcceptUI:hover {
    background: linear-gradient(135deg, #5E35B1 0%, #512DA8 100%) !important;
    box-shadow: 0 6px 20px rgba(103, 58, 183, 0.5) !important;
}
*/

/* OPTION 3: Premium Teal */
/*
#acceptuiPayButton,
button.AcceptUI {
    background: linear-gradient(135deg, #00897B 0%, #00796B 100%) !important;
    box-shadow: 0 4px 15px rgba(0, 137, 123, 0.4) !important;
}

#acceptuiPayButton:hover,
button.AcceptUI:hover {
    background: linear-gradient(135deg, #00796B 0%, #00695C 100%) !important;
    box-shadow: 0 6px 20px rgba(0, 137, 123, 0.5) !important;
}
*/

/* OPTION 4: Bold Orange */
/*
#acceptuiPayButton,
button.AcceptUI {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%) !important;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4) !important;
}

#acceptuiPayButton:hover,
button.AcceptUI:hover {
    background: linear-gradient(135deg, #F57C00 0%, #E65100 100%) !important;
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.5) !important;
}
*/

/* OPTION 5: Modern Dark Blue */
/*
#acceptuiPayButton,
button.AcceptUI {
    background: linear-gradient(135deg, #1E3A8A 0%, #1E40AF 100%) !important;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.4) !important;
}

#acceptuiPayButton:hover,
button.AcceptUI:hover {
    background: linear-gradient(135deg, #1E40AF 0%, #1D4ED8 100%) !important;
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.5) !important;
}
*/

/* ============================================================
   AcceptUI Popup — Force centered alignment
   Authorize.Net injects #AcceptUIContainer via their script;
   these overrides ensure it's always centered on screen.
   ============================================================ */
#AcceptUIContainer {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    z-index: 999999 !important;
}

#AcceptUIBackground {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 999998 !important;
}