/* Check Styles */
.check-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.check {
    background: #fefefe;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 200, 255, 0.03) 0%, transparent 50%);
    border: 1px solid #333;
    border-radius: 0;
    padding: 0;
    font-family: Georgia, 'Times New Roman', serif;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    height: 300px;
    margin: 0 auto;
    overflow: visible;
}

.check::before {
    display: none;
}

.check::after {
    display: none;
}

.check-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px 20px 10px 20px;
    border-bottom: none;
    background: linear-gradient(to right, #1e3a8a 0%, #1e40af 100%);
    color: white;
    margin: 0;
}

.account-holder-info {
    flex: 1;
}

.holder-name {
    font-size: 16px;
    font-weight: bold;
    color: white;
    margin-bottom: 2px;
    font-family: Georgia, serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.holder-address {
    font-size: 10px;
    color: #e2e8f0;
    line-height: 1.2;
    font-family: Arial, sans-serif;
}

.check-number {
    font-size: 20px;
    font-weight: bold;
    color: #1e3a8a;
    background: white;
    padding: 4px 8px;
    border: 1px solid #1e3a8a;
    font-family: 'Courier New', monospace;
    min-width: 60px;
    text-align: center;
}

.check-body {
    padding: 15px 20px;
    background: white;
    position: relative;
    z-index: 2;
}

.date-line {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 18px;
    margin-top: 5px;
}

.date-line .label {
    font-size: 11px;
    color: #333;
    margin-right: 8px;
    font-family: Arial, sans-serif;
    text-transform: uppercase;
    font-weight: 600;
}

.date-value {
    font-size: 13px;
    color: #000;
    font-weight: normal;
    min-width: 100px;
    border-bottom: 1px solid #333;
    padding: 2px 4px;
    font-family: 'Courier New', monospace;
}

.payee-line {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 6px;
}

.payee-line .label {
    font-size: 11px;
    color: #333;
    white-space: nowrap;
    font-family: Arial, sans-serif;
    text-transform: uppercase;
    font-weight: 600;
}

.payee-value {
    flex: 1;
    font-size: 13px;
    color: #000;
    font-weight: normal;
    border-bottom: 1px solid #333;
    padding: 2px 4px;
    min-width: 220px;
    font-family: 'Courier New', monospace;
}

.dollar-sign {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-left: auto;
    font-family: Arial, sans-serif;
}

.amount-value {
    font-size: 14px;
    color: #000;
    font-weight: bold;
    border: 1px solid #333;
    padding: 3px 6px;
    background: #fff;
    min-width: 80px;
    text-align: right;
    font-family: 'Courier New', monospace;
}

.amount-words-line {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    gap: 8px;
}

.amount-words-value {
    flex: 1;
    font-size: 13px;
    color: #000;
    font-weight: normal;
    border-bottom: 1px solid #333;
    padding: 2px 4px;
    min-height: 18px;
    font-family: 'Courier New', monospace;
}

.dollars-label {
    font-size: 11px;
    color: #333;
    font-weight: bold;
    font-family: Arial, sans-serif;
    text-transform: uppercase;
}

.memo-signature-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.memo-section {
    display: flex;
    align-items: center;
    gap: 6px;
}

.memo-section .label {
    font-size: 11px;
    color: #333;
    font-family: Arial, sans-serif;
    text-transform: uppercase;
    font-weight: 600;
}

.memo-value {
    font-size: 12px;
    color: #000;
    font-weight: normal;
    border-bottom: 1px solid #333;
    padding: 2px 4px;
    min-width: 100px;
    font-family: 'Courier New', monospace;
}

.signature-section {
    margin-left: auto;
}

.signature-value {
    font-size: 13px;
    color: #000;
    font-weight: normal;
    border-bottom: 1px solid #333;
    padding: 2px 4px;
    min-width: 130px;
    display: inline-block;
    text-align: center;
    font-family: cursive;
}

.check-footer {
    margin-top: 5px !important;
    padding: 5px 20px !important;
    border: none !important;
    text-align: center !important;
    background: transparent !important;
    min-height: 30px !important;
    display: block !important;
    width: 100% !important;
    clear: both !important;
}

.routing-account {
    font-size: 12px;
    color: #000;
    font-family: 'MICR Encoding', 'Courier New', monospace;
    letter-spacing: 1px;
    font-weight: bold;
}

/* New banking numbers layout */
.banking-numbers {
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
    gap: 15px !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.routing-number,
.account-number,
.check-number-bottom {
    display: inline-block !important;
    text-align: center !important;
    flex: 1 !important;
    min-width: 100px !important;
}

.number-label {
    display: none !important;
}

.number-value {
    font-family: 'Courier New', monospace !important;
    font-size: 16px !important;
    color: #000 !important;
    font-weight: bold !important;
    letter-spacing: 1px !important;
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    min-height: auto !important;
    display: inline-block !important;
    box-shadow: none !important;
}

/* Add MICR font styling */
@font-face {
    font-family: 'MICR Encoding';
    src: local('MICR Encoding'), local('Courier New');
    font-weight: normal;
    font-style: normal;
}

/* Add security features */
.check-security {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 60px;
    color: rgba(0, 0, 0, 0.02);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 10px;
    pointer-events: none;
    z-index: 1;
}

/* Add void protection lines (simplified) */
.void-lines {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .check {
        padding: 15px;
        font-size: 12px;
    }
    
    .holder-name {
        font-size: 16px;
    }
    
    .check-number {
        font-size: 20px;
        padding: 4px 8px;
    }
    
    .payee-line {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .payee-value {
        width: 100%;
        min-width: auto;
    }
    
    .dollar-sign {
        margin-left: 0;
        align-self: flex-end;
    }
    
    .amount-value {
        min-width: 80px;
        font-size: 14px;
    }
    
    .memo-signature-line {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .signature-section {
        margin-left: 0;
        align-self: flex-end;
    }
    
    .banking-numbers {
        flex-direction: column;
        gap: 10px;
    }
    
    .routing-number,
    .account-number,
    .check-number-bottom {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .check-container {
        padding: 10px;
    }
    
    .check {
        padding: 10px;
    }
    
    .check-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .holder-name {
        font-size: 14px;
    }
    
    .holder-address {
        font-size: 11px;
    }
    
    .check-number {
        font-size: 18px;
        align-self: center;
    }
}

/* Form Enhancement */
.instruction-step {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    transition: transform 0.2s ease;
}

.instruction-step:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tip-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-top: 4px solid;
    transition: transform 0.2s ease;
}

.tip-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tip-card:nth-child(1) {
    border-top-color: #27ae60;
}

.tip-card:nth-child(2) {
    border-top-color: #e74c3c;
}

.tip-card:nth-child(3) {
    border-top-color: #3498db;
}

/* Animation for real-time updates */
.check-value-updated {
    animation: highlight 0.5s ease-in-out;
}

@keyframes highlight {
    0% { background-color: #fff3cd; }
    100% { background-color: transparent; }
}

/* Focus styles for accessibility */
input:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
}

/* Navigation Styles */
nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #3b82f6, #1d4ed8);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Logo animation */
.logo-icon {
    transition: transform 0.3s ease;
}

.logo-icon:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Button hover effects */
.btn-secondary {
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-secondary:hover::before {
    left: 100%;
}

/* Mobile menu animation */
#mobileMenu {
    transition: all 0.3s ease;
    transform-origin: top;
}

#mobileMenu.hidden {
    transform: scaleY(0);
    opacity: 0;
}

#mobileMenu:not(.hidden) {
    transform: scaleY(1);
    opacity: 1;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
} 