/* NEFT Form - Complete CSS Styles */

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 950px;
    margin: 0 auto;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 20px;
        border-radius: 8px;
    }
    
    .header h1 {
        font-size: 1.3rem;
        line-height: 1.4;
    }
    
    .form-group label {
        font-size: 0.95rem;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px;
    }
    
    .account-container {
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .account-group {
        min-width: 120px;
    }
    
    .account-box {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        padding: 15px;
        font-size: 1.1rem;
        min-height: 50px;
    }
    
    .ifsc-validation,
    .note {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 1.1rem;
    }
    
    .form-section {
        margin-bottom: 20px;
    }
    
    .account-box {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .signature-section {
        padding: 15px;
    }
}

.container {
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 3px solid #2c3e50;
    padding-bottom: 20px;
}

.header h1 {
    color: #2c3e50;
    text-decoration: underline;
    margin: 0;
    font-size: 20px;
    font-weight: bold;
}

.intro-text {
    text-align: justify;
    line-height: 1.6;
    color: #2c3e50;
    margin-bottom: 25px;
}

/* Form Section Styles */
.form-section {
    margin-bottom: 25px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.form-group {
    margin-bottom: 20px;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group textarea {
    height: 80px;
    resize: vertical;
}

/* Amount Section Styles */
.amount-section {
    background: linear-gradient(45deg, #e8f5e8, #f0f8ff);
    border: 2px solid #27ae60;
}

.amount-words {
    background-color: #d4edda;
    padding: 12px;
    border-radius: 4px;
    font-weight: bold;
    color: #155724;
    margin-top: 10px;
    min-height: 24px;
    border: 1px solid #c3e6cb;
}

/* Society Info Styles */
.society-info {
    background-color: #e8f4fd;
    border-left-color: #2196F3;
}

/* PAN Card Conditional Styles */
.pan-optional {
    background-color: #f8f9fa !important;
    border-color: #95a5a6 !important;
}

.pan-required {
    background-color: #ffebee !important;
    border-color: #e74c3c !important;
}

.mandatory {
    color: #e74c3c;
    font-weight: bold;
}

/* IFSC Section Styles */
.ifsc-section {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
}

#ifscCode {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.ifsc-validation {
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
    font-weight: bold;
    display: none;
}

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

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

.ifsc-validation.loading {
    color: #0c5460;
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
}

/* Account Number Box Styles */
.account-container {
            display: inline-block;
            margin-top: 15px;
            padding: 15px;
            background-color: white;
            border: 2px solid #000;
            border-radius: 0;
        }
        
        .account-row {
            display: flex;
            gap: 1px;
            justify-content: flex-start;
        }
        
        .account-group {
            display: flex;
            gap: 1px;
            margin-right: 8px;
        }
        
        .account-group:last-child {
            margin-right: 0;
        }
        
        .account-box {
            width: 2px;
            height: 32px;
            text-align: center;
            border: 1px solid #000;
            font-size: 14px;
            font-weight: bold;
            border-radius: 0;
            background-color: white;
            margin: 0;
            padding: 0;
            line-height: 30px;
        }
        
        .account-box:focus {
            outline: 2px solid #007bff;
            z-index: 1;
            position: relative;
        }
                .pan-conditional {
            transition: all 0.3s ease;
        }
        
        .pan-required {
            border-color: #e74c3c !important;
            background-color: #ffebee !important;
        }
        
        .pan-optional {
            border-color: #95a5a6 !important;
            background-color: #f8f9fa !important;
        }

/* Readonly Field Styles */
.readonly-field {
    background-color: #f8f9fa !important;
    color: #6c757d;
    cursor: not-allowed;
}

/* Note Styles */
.note {
    font-style: italic;
    color: #6c757d;
    font-size: 12px;
    margin-top: 8px;
    padding: 8px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

/* Signature Section Styles */
.signature-section {
    margin-top: 30px;
    border-top: 2px solid #2c3e50;
    padding: 25px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.signature-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
}

.signature-box {
    border-bottom: 2px solid #2c3e50;
    width: 250px;
    height: 50px;
}

.transaction-section {
    border: 2px solid #2c3e50;
    padding: 20px;
    margin: 25px 0;
    border-radius: 8px;
    background-color: #f1f3f4;
}

.transaction-section p {
    margin: 10px 0;
    font-weight: 500;
}

/* Footer Note Styles */
.footer-note {
    background: linear-gradient(45deg, #ffebee, #fce4ec);
    padding: 20px;
    border-left: 5px solid #e91e63;
    margin-top: 25px;
    font-size: 13px;
    border-radius: 8px;
}

.final-signature {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.final-signature-box {
    border-bottom: 2px solid #2c3e50;
    width: 200px;
    height: 40px;
}

/* Button Styles */
.buttons {
    text-align: center;
    margin-top: 35px;
    padding-top: 25px;
    border-top: 3px solid #2c3e50;
}

.btn {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    margin: 0 10px 10px 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.btn-secondary {
    background: linear-gradient(45deg, #95a5a6, #7f8c8d);
    box-shadow: 0 4px 15px rgba(149, 165, 166, 0.3);
}

.btn-secondary:hover {
    box-shadow: 0 6px 20px rgba(149, 165, 166, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container { 
        padding: 20px; 
    }
    .signature-row { 
        flex-direction: column; 
        gap: 20px; 
    }
    .final-signature { 
        flex-direction: column; 
        gap: 15px; 
    }
    .account-container {
        justify-content: center;
    }
}
#beneficiaryName {
    text-transform: uppercase;
}
