/**
 * APIPymts 3DS Checkout Styles
 */

/* Payment Form Styles */
.apipymts-payment-form {
    max-width: 100%;
    margin: 0;
    padding: 20px 0;
}

.apipymts-payment-form .form-row {
    margin-bottom: 15px;
}

.apipymts-payment-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.apipymts-payment-form .required {
    color: #e74c3c;
}

.apipymts-payment-form .input-text {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    line-height: 1.4;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.apipymts-payment-form .input-text:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.apipymts-payment-form .input-text.focused {
    border-color: #3498db;
}

.apipymts-payment-form .input-text.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

/* Card Type Indicator */
.card-type-indicator {
    display: inline-block;
    margin-left: 10px;
    padding: 5px 10px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #666;
}

.card-type-indicator.card-type-visa {
    background: #1a1f71;
    color: white;
}

.card-type-indicator.card-type-mastercard {
    background: #eb001b;
    color: white;
}

.card-type-indicator.card-type-amex {
    background: #006fcf;
    color: white;
}

.card-type-indicator.card-type-discover {
    background: #ff6000;
    color: white;
}

/* Error Messages */
.apipymts-error {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

.field-error {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* Test Mode Notice */
.apipymts-test-mode-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* 3DS Container */
#apipymts-3ds-container {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

#apipymts-3ds-challenge-iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 6px;
    background: white;
}

/* Loading Overlay */
#apipymts-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    min-width: 300px;
}

.spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-content p {
    margin: 0;
    color: #333;
    font-size: 16px;
}

/* Form Layout */
.apipymts-payment-form .form-row-first {
    width: 48%;
    float: left;
}

.apipymts-payment-form .form-row-last {
    width: 48%;
    float: right;
}

.apipymts-payment-form .form-row-wide {
    width: 100%;
    clear: both;
}

.apipymts-payment-form .clear {
    clear: both;
}

/* Responsive Design */
@media (max-width: 768px) {
    .apipymts-payment-form .form-row-first,
    .apipymts-payment-form .form-row-last {
        width: 100%;
        float: none;
    }
    
    .apipymts-payment-form .form-row-last {
        margin-top: 15px;
    }
    
    .apipymts-payment-form .input-text {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* Focus States */
.apipymts-payment-form .input-text:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1), 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Validation States */
.apipymts-payment-form .input-text.valid {
    border-color: #27ae60;
}

.apipymts-payment-form .input-text.valid:focus {
    border-color: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

/* Security Icons */
.apipymts-security-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
    padding: 10px;
    gap: 15px;
}

.apipymts-security-icons .security-icon {
    height: 24px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.apipymts-security-icons .security-icon:hover {
    opacity: 1;
}

/* 3DS Method Form */
#apipymts-3ds-method-form {
    display: none;
}

#apipymts-3ds-method-iframe {
    display: none;
}

/* Card Input Animation */
.apipymts-payment-form .input-text {
    position: relative;
    background: white;
}

.apipymts-payment-form .input-text:focus::placeholder {
    opacity: 0.5;
    transform: translateY(-2px);
}

/* Success States */
.apipymts-payment-form .success-message {
    background: #d4edda;
    color: #155724;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    border: 1px solid #c3e6cb;
}

/* Warning States */
.apipymts-payment-form .warning-message {
    background: #fff3cd;
    color: #856404;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    border: 1px solid #ffeaa7;
}

/* Card Brand Colors */
.apipymts-payment-form .card-visa {
    background: linear-gradient(135deg, #1a1f71 0%, #3b82f6 100%);
}

.apipymts-payment-form .card-mastercard {
    background: linear-gradient(135deg, #eb001b 0%, #f79e1b 100%);
}

.apipymts-payment-form .card-amex {
    background: linear-gradient(135deg, #006fcf 0%, #0099d4 100%);
}

.apipymts-payment-form .card-discover {
    background: linear-gradient(135deg, #ff6000 0%, #ff8c00 100%);
}

/* Accessibility */
.apipymts-payment-form .input-text:focus {
    outline: none;
}

.apipymts-payment-form .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .apipymts-payment-form .input-text {
        border-width: 3px;
    }
    
    .apipymts-payment-form .input-text:focus {
        border-width: 3px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .apipymts-payment-form .input-text {
        transition: none;
    }
    
    .spinner {
        animation: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .apipymts-payment-form .input-text {
        background: #2c3e50;
        color: white;
        border-color: #34495e;
    }
    
    .apipymts-payment-form .input-text:focus {
        border-color: #3498db;
    }
    
    .apipymts-payment-form label {
        color: #ecf0f1;
    }
    
    .loading-content {
        background: #34495e;
        color: white;
    }
    
    #apipymts-3ds-container {
        background: #2c3e50;
        border-color: #34495e;
    }
}

/* Print styles */
@media print {
    #apipymts-3ds-container,
    #apipymts-loading,
    .apipymts-payment-form {
        display: none !important;
    }
} 

/* Enhanced Card Form Styles */

/* Card Type Indicator */
.apipymts-card-type-indicator {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    margin-left: 10px;
    vertical-align: middle;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-2px);
}

.apipymts-card-type-indicator.show {
    opacity: 1;
    transform: translateY(0);
}

/* Card Type Colors */
.apipymts-card-type-indicator.card-type-visa {
    background-color: #1a1f71;
}

.apipymts-card-type-indicator.card-type-mastercard {
    background-color: #eb001b;
}

.apipymts-card-type-indicator.card-type-amex {
    background-color: #006fcf;
}

.apipymts-card-type-indicator.card-type-discover {
    background-color: #ff6000;
}

.apipymts-card-type-indicator.card-type-jcb {
    background-color: #0b4ea2;
}

.apipymts-card-type-indicator.card-type-dinersclub {
    background-color: #0079be;
}

.apipymts-card-type-indicator.card-type-unionpay {
    background-color: #e21836;
}

/* Enhanced Card Icon Styling */
.apipymts-card-icon {
    display: inline-block;
    width: 40px;
    height: 25px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-left: 10px;
    vertical-align: middle;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

/* Card Type Icons */
.apipymts-card-icon.visa {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iMjUiIHZpZXdCb3g9IjAgMCA0MCAyNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjQwIiBoZWlnaHQ9IjI1IiByeD0iMyIgZmlsbD0iIzFhMWY3MSIvPgo8cGF0aCBkPSJNMTYgNmg4djEzaC04eiIgZmlsbD0id2hpdGUiLz4KPHBhdGggZD0iTTI0IDZoNHYxM2gtNHoiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPgo=');
}

.apipymts-card-icon.mastercard {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iMjUiIHZpZXdCb3g9IjAgMCA0MCAyNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjQwIiBoZWlnaHQ9IjI1IiByeD0iMyIgZmlsbD0iI2ViMDAxYiIvPgo8Y2lyY2xlIGN4PSIxNiIgY3k9IjEyLjUiIHI9IjYiIGZpbGw9IiNmZjgwMDAiLz4KPGNpcmNsZSBjeD0iMjQiIGN5PSIxMi41IiByPSI2IiBmaWxsPSIjZmYwMDAwIi8+Cjwvc3ZnPgo=');
}

.apipymts-card-icon.amex {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iMjUiIHZpZXdCb3g9IjAgMCA0MCAyNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjQwIiBoZWlnaHQ9IjI1IiByeD0iMyIgZmlsbD0iIzAwNmZjZiIvPgo8cGF0aCBkPSJNMTIgNmgxNnYxM2gtMTZ6IiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K');
}

.apipymts-card-icon.discover {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iMjUiIHZpZXdCb3g9IjAgMCA0MCAyNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjQwIiBoZWlnaHQ9IjI1IiByeD0iMyIgZmlsbD0iI2ZmNjAwMCIvPgo8cGF0aCBkPSJNMTIgNmgxNnYxM2gtMTZ6IiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K');
}

/* Enhanced Input Styling */
.apipymts-input {
    transition: all 0.3s ease;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 16px;
    line-height: 1.5;
    background-color: #fff;
    color: #333;
}

.apipymts-input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
    transform: translateY(-1px);
}

.apipymts-input.valid {
    border-color: #28a745;
    background-color: #f8fff9;
}

.apipymts-input.error {
    border-color: #dc3545;
    background-color: #fff8f8;
}

/* Enhanced Form Group Styling */
.apipymts-form-group {
    margin-bottom: 20px;
    position: relative;
}

.apipymts-form-group.focused {
    transform: translateY(-2px);
}

.apipymts-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.apipymts-form-group .required {
    color: #dc3545;
}

/* Card Number Container */
.apipymts-card-number-container {
    position: relative;
    display: flex;
    align-items: center;
}

.apipymts-card-number-container .apipymts-input {
    flex: 1;
    padding-right: 60px;
}

/* Expiry Date Container */
.apipymts-expiry-container {
    position: relative;
}

.apipymts-expiry-container .apipymts-input {
    text-align: center;
    letter-spacing: 1px;
}

/* Expiry Month and Year Dropdowns */
#apipymts-card-expiry-month,
#apipymts-card-expiry-year {
    text-align: center;
    letter-spacing: 1px;
    padding: 12px 8px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    background: white;
    color: #2c3e50;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    padding-right: 32px;
    width: 100%;
    box-sizing: border-box;
}

#apipymts-card-expiry-month:focus,
#apipymts-card-expiry-year:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#apipymts-card-expiry-month:hover,
#apipymts-card-expiry-year:hover {
    border-color: #bdc3c7;
}

#apipymts-card-expiry-month option,
#apipymts-card-expiry-year option {
    background: white;
    color: #2c3e50;
    padding: 8px;
    font-size: 14px;
}

/* WooCommerce specific styling for form rows */
.form-row-first #apipymts-card-expiry-month,
.form-row-last #apipymts-card-expiry-year {
    margin-bottom: 0;
}

/* Responsive adjustments for dropdowns */
@media (max-width: 768px) {
    #apipymts-card-expiry-month,
    #apipymts-card-expiry-year {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 14px 8px;
    }
}

/* CVC Container */
.apipymts-cvc-container {
    position: relative;
    display: flex;
    align-items: center;
}

.apipymts-cvc-container .apipymts-input {
    flex: 1;
    padding-right: 40px;
}

.apipymts-cvc-hint {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #6c757d;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    cursor: help;
    transition: all 0.3s ease;
}

.apipymts-cvc-hint:hover {
    background-color: #495057;
    transform: translateY(-50%) scale(1.1);
}

/* Field Error Styling */
.apipymts-field-error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    padding: 5px 8px;
    background-color: #fff8f8;
    border-radius: 4px;
    border-left: 3px solid #dc3545;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card Preview Enhancements */
.apipymts-card-preview {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 20px;
    color: white;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.apipymts-card-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

.apipymts-card-chip {
    width: 40px;
    height: 30px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 6px;
    margin-bottom: 15px;
    position: relative;
}

.apipymts-card-chip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 2px;
    background-color: #333;
    border-radius: 1px;
}

.apipymts-card-number-preview {
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-family: 'Courier New', monospace;
}

.apipymts-card-details-preview {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.apipymts-card-holder {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.apipymts-card-expiry-preview {
    font-size: 12px;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .apipymts-card-type-indicator {
        font-size: 10px;
        padding: 3px 6px;
        margin-left: 5px;
    }
    
    .apipymts-card-icon {
        width: 30px;
        height: 20px;
        margin-left: 5px;
    }
    
    .apipymts-input {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 12px 14px;
    }
    
    .apipymts-card-preview {
        padding: 15px;
    }
    
    .apipymts-card-number-preview {
        font-size: 16px;
        letter-spacing: 1px;
    }
}

/* Animation Enhancements */
.apipymts-form-group {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.apipymts-input {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.apipymts-card-type-indicator {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Loading States */
.apipymts-input:disabled {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

.apipymts-form-group.processing {
    opacity: 0.7;
    pointer-events: none;
}

/* Accessibility Enhancements */
.apipymts-input:focus-visible {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.apipymts-cvc-hint:focus-visible {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .apipymts-input {
        border-width: 3px;
    }
    
    .apipymts-card-type-indicator {
        border: 2px solid currentColor;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .apipymts-input,
    .apipymts-form-group,
    .apipymts-card-type-indicator {
        transition: none;
    }
} 

/* WooCommerce Checkout Form Layout */
.apipymts-payment-form {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.apipymts-payment-form .form-row {
    margin-bottom: 15px;
    position: relative;
}

.apipymts-payment-form .form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.apipymts-payment-form .form-row-wide {
    width: 100%;
    clear: both;
}

.apipymts-payment-form .form-row-first {
    width: 48%;
    float: left;
    margin-right: 2%;
}

.apipymts-payment-form .form-row-last {
    width: 48%;
    float: right;
    margin-left: 2%;
}

.apipymts-payment-form .clear {
    clear: both;
    margin-bottom: 20px;
}

/* Expiry Date Container */
.apipymts-expiry-container {
    position: relative;
}

.apipymts-expiry-container .apipymts-input {
    text-align: center;
    letter-spacing: 1px;
    font-family: 'Courier New', monospace;
}

/* Expiry Month and Year Dropdowns */
#apipymts-card-expiry-month,
#apipymts-card-expiry-year {
    text-align: center;
    /* font-family: 'Courier New', monospace;
    font-weight: 600; */
    letter-spacing: 1px;
    padding: 14px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: white;
    color: #333;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
    width: 100%;
    box-sizing: border-box;
    height: 50px;
}

#apipymts-card-expiry-month:focus,
#apipymts-card-expiry-year:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
    background-color: #fff;
}

#apipymts-card-expiry-month:hover,
#apipymts-card-expiry-year:hover {
    border-color: #007cba;
    background-color: #f8f9fa;
}

#apipymts-card-expiry-month option,
#apipymts-card-expiry-year option {
    background: white;
    color: #333;
    padding: 12px;
    font-size: 16px;
    font-weight: 500;
}

/* WooCommerce specific styling for form rows */
.form-row-first #apipymts-card-expiry-month,
.form-row-last #apipymts-card-expiry-year {
    margin-bottom: 0;
    width: 100% !important;
    text-align: left;
}

/* Input field styling to match WooCommerce */
.apipymts-payment-form .input-text {
    width: 100%;
    padding: 14px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    background: white;
    color: #333;
    transition: all 0.3s ease;
    box-sizing: border-box;
    height: 50px;
}

.apipymts-payment-form .input-text:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
    background-color: #fff;
}

.apipymts-payment-form .input-text:hover {
    border-color: #007cba;
}

/* Required field indicator */
.apipymts-payment-form .required {
    color: #e74c3c;
    font-weight: bold;
}

/* Form validation styling */
.apipymts-payment-form .form-row.error input,
.apipymts-payment-form .form-row.error select {
    border-color: #e74c3c;
    background-color: #fff8f8;
}

.apipymts-payment-form .form-row.error label {
    color: #e74c3c;
}

/* Responsive adjustments for dropdowns */
@media (max-width: 768px) {
    .apipymts-payment-form .form-row-first,
    .apipymts-payment-form .form-row-last {
        width: 100%;
        float: none;
        margin: 0 0 15px 0;
    }
    
    #apipymts-card-expiry-month,
    #apipymts-card-expiry-year {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 14px 12px;
        height: 50px;
    }
    
    .apipymts-payment-form .input-text {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 14px 12px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .apipymts-payment-form {
        padding: 15px;
        margin: 15px 0;
    }
    
    .apipymts-payment-form .form-row {
        margin-bottom: 20px;
    }
    
    #apipymts-card-expiry-month,
    #apipymts-card-expiry-year {
        padding: 16px 12px;
        height: 54px;
    }
    
    .apipymts-payment-form .input-text {
        padding: 16px 12px;
        height: 54px;
    }
} 