/**
 * Empower Bank Forms Styles
 * Clean, professional styling with no blank spacing
 */

.ebf-form-container {
    width: 100%;
    margin: 0;
    padding: 30px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    box-sizing: border-box;
}

.ebf-form {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0;
}

.ebf-form-header {
    padding: 30px 30px 20px 30px;
    text-align: center;
    border-bottom: 2px solid #ecf0f1;
    margin-bottom: 0;
}

.ebf-logo {
    max-width: 200px;
    max-height: 80px;
    height: auto;
    width: auto;
    display: inline-block;
    object-fit: contain;
}

.ebf-form-title {
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 30px 0;
    padding: 30px 30px 0 30px;
    border-bottom: 3px solid #3498db;
    padding-bottom: 15px;
}

.ebf-section {
    padding: 25px 30px;
    border-bottom: 1px solid #e8e8e8;
    margin: 0;
}

.ebf-section:last-of-type {
    border-bottom: none;
}

.ebf-section-title {
    font-size: 20px;
    font-weight: 600;
    color: #34495e;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #ecf0f1;
}

.ebf-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 0;
}

.ebf-field {
    margin: 0;
    display: flex;
    flex-direction: column;
}

.ebf-field-full {
    grid-column: 1 / -1;
}

.ebf-label {
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 8px;
    display: block;
}

.ebf-required {
    color: #e74c3c;
    margin-left: 3px;
}

.ebf-input,
.ebf-textarea,
.ebf-select {
    width: 100%;
    padding: 12px 15px;
    font-size: 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    background: #fff;
    color: #333;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.ebf-input:focus,
.ebf-textarea:focus,
.ebf-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.ebf-input:required:invalid,
.ebf-textarea:required:invalid,
.ebf-select:required:invalid {
    border-color: #e74c3c;
}

.ebf-textarea {
    resize: vertical;
    min-height: 100px;
}

.ebf-select {
    cursor: pointer;
    appearance: none;
    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 15px center;
    padding-right: 40px;
}

.ebf-checkbox-label,
.ebf-radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    color: #2c3e50;
    margin: 0;
    padding: 10px 0;
}

.ebf-checkbox-label input[type="checkbox"],
.ebf-radio-label input[type="radio"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #3498db;
}

.ebf-checkbox-label span,
.ebf-radio-label span {
    flex: 1;
}

.ebf-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ebf-field-inline {
    grid-column: 1 / -1;
}

.ebf-form-footer {
    padding: 30px;
    background: #f8f9fa;
    border-top: 1px solid #e8e8e8;
    border-radius: 0 0 8px 8px;
    text-align: center;
}

.ebf-submit-btn {
    background: #3498db;
    color: #ffffff;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: inherit;
}

.ebf-submit-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.ebf-submit-btn:active {
    transform: translateY(0);
}

.ebf-submit-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
}

.ebf-message {
    margin-top: 15px;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 14px;
    display: none;
}

.ebf-message.show {
    display: block;
}

.ebf-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.ebf-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ebf-form-container {
        padding: 20px 15px;
    }
    
    .ebf-form-header {
        padding: 20px 20px 15px 20px;
    }
    
    .ebf-logo {
        max-width: 150px;
        max-height: 60px;
    }
    
    .ebf-form-title {
        font-size: 20px;
        padding: 20px 20px 0 20px;
    }
    
    .ebf-section {
        padding: 20px;
    }
    
    .ebf-fields {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .ebf-form-footer {
        padding: 20px;
    }
    
    .ebf-submit-btn {
        width: 100%;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .ebf-form-title {
        font-size: 18px;
    }
    
    .ebf-section-title {
        font-size: 18px;
    }
}

/* Print Styles */
@media print {
    .ebf-form-container {
        box-shadow: none;
        padding: 0;
    }
    
    .ebf-form-footer {
        display: none;
    }
}

