/* OVZA Bank Form CSS - Matching Unified Design */

/* === NOTICE (Green Box) === */
.notice.ovza-bank-notice,
.ovza-bank-notice {
    background: #e8f5e9;
    border: 2px solid #148a64;
    padding: 15px 20px;
    text-align: center;
    border-radius: 8px;
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: 16px;
    font-weight: 600;
    color: #148a64;
}

/* === FORM WRAPPER === */
.ovza-bank-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* === SECTION HEADERS === */
.ovza-bank-form h3 {
    color: #148a64;
    font-size: 20px;
    margin: 30px 0 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #148a64;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.ovza-bank-form h3:first-of-type {
    margin-top: 0;
}

.ovza-bank-form .section-number {
    background: #148a64;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
}

.ovza-bank-form .section-desc {
    color: #666;
    font-size: 14px;
    margin: 0 0 20px;
}

/* === FORM ROWS & GROUPS === */
.ovza-bank-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.ovza-bank-form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ovza-bank-form-group.full-width {
    flex: 100%;
}

/* === LABELS === */
.ovza-bank-form-group label {
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
    font-size: 14px;
}

.ovza-bank-form-group .required {
    color: #d63031;
}

/* === INPUTS === */
.ovza-bank-form-group input[type="text"],
.ovza-bank-form-group input[type="email"],
.ovza-bank-form-group input[type="tel"],
.ovza-bank-form-group select,
.ovza-bank-form-group textarea {
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s;
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    height: 68px;
}

.ovza-bank-form-group input:focus,
.ovza-bank-form-group select:focus,
.ovza-bank-form-group textarea:focus {
    border-color: #148a64;
    outline: none;
    box-shadow: 0 0 0 3px rgba(20, 138, 100, 0.1);
}

.ovza-bank-form-group input.invalid,
.ovza-bank-form-group select.invalid,
.ovza-bank-form-group textarea.invalid {
    border-color: #d63031;
    background: #fff5f5;
}

/* Error message styling */
.ovza-bank-form-group .error-message {
    color: #d63031;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.ovza-bank-form-group.has-error .error-message {
    display: block;
}

.ovza-bank-form-group.has-error input,
.ovza-bank-form-group.has-error select,
.ovza-bank-form-group.has-error textarea {
    border-color: #d63031;
    background: #fff5f5;
}

.ovza-bank-form-group .field-hint {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

/* === RADIO GROUP === */
.ovza-bank-form .radio-group {
    display: flex;
    gap: 20px;
    padding: 10px 0;
}

.ovza-bank-form .radio-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: normal;
    cursor: pointer;
}

.ovza-bank-form .radio-group input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #148a64;
}

/* === DECLARATION SECTION === */
.ovza-bank-form .declaration-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-top: 10px;
}

.ovza-bank-form .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-weight: normal !important;
    cursor: pointer;
    user-select: none;
}

.ovza-bank-form .checkbox-label input[type="checkbox"] {
    width: 22px;
    height: 22px;
    min-width: 22px;
    margin-top: 2px;
    accent-color: #148a64;
    flex-shrink: 0;
    cursor: pointer;
    border: 2px solid #148a64;
}

/* Improve checkbox visibility */
.ovza-bank-form .checkbox-label input[type="checkbox"]:not(:checked) {
    appearance: none;
    -webkit-appearance: none;
    background: #fff;
    border: 2px solid #148a64;
    border-radius: 4px;
    position: relative;
}

.ovza-bank-form .checkbox-label input[type="checkbox"]:checked {
    appearance: none;
    -webkit-appearance: none;
    background: #148a64;
    border: 2px solid #148a64;
    border-radius: 4px;
    position: relative;
}

.ovza-bank-form .checkbox-label input[type="checkbox"]:checked::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ovza-bank-form .checkbox-label span {
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    cursor: pointer;
}

.ovza-bank-form .checkbox-label a {
    color: #148a64;
    text-decoration: underline;
}

.ovza-bank-form .checkbox-label a:hover {
    color: #0f6d4d;
}

/* === SUBMIT BUTTON === */
.ovza-bank-form-submit-btn {
    margin-top: 30px;
}

#ovza-bank-submit-btn {
    width: 100%;
    padding: 16px 30px;
    background: #148a64;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

#ovza-bank-submit-btn:hover:not(:disabled) {
    background: #0f6d4d;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(20, 138, 100, 0.3);
}

#ovza-bank-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#ovza-bank-submit-btn .btn-loading {
    display: none;
}

#ovza-bank-submit-btn.loading .btn-text {
    display: none;
}

#ovza-bank-submit-btn.loading .btn-loading {
    display: inline;
}

/* === SELECT2 OVERRIDES === */
/* High specificity to override CDN Select2 defaults (height: 28px) */
.ovza-bank-form .select2-container.select2-container .select2-selection--single,
.ovza-bank-form .select2-container.select2-container .select2-selection--multiple {
    height: 68px !important;
    min-height: 68px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    background: #fff !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
}

.ovza-bank-form .select2-container.select2-container.select2-container--focus .select2-selection--single,
.ovza-bank-form .select2-container.select2-container.select2-container--focus .select2-selection--multiple {
    border-color: #148a64 !important;
    box-shadow: 0 0 0 3px rgba(20, 138, 100, 0.1) !important;
}

.ovza-bank-form .select2-container.select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 68px !important;
    padding: 0 35px 0 12px !important;
    color: #333 !important;
}

/* Hide Select2 default arrow completely to prevent double arrow */
.ovza-bank-form .select2-container--default .select2-selection--single .select2-selection__arrow {
    display: none !important;
}

/* Custom dropdown arrow */
.ovza-bank-form .select2-container--default .select2-selection--single::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #666;
    pointer-events: none;
}

.ovza-bank-form .select2-container--default .select2-selection--multiple .select2-selection__rendered {
    padding: 2px 8px;
}

.ovza-bank-form .select2-container--open .select2-dropdown {
    border-color: #148a64;
}

/* Select2 Multi-select Pills */
.ovza-bank-form .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    border-radius: 20px;
    padding: 5px 10px 5px 12px;
    margin: 3px;
    color: #148a64;
    font-size: 13px;
}

.ovza-bank-form .select2-container--default .select2-selection--multiple .select2-selection__choice__display {
    padding-left: 0;
    padding-right: 4px;
}

.ovza-bank-form .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #148a64;
    font-size: 16px;
    font-weight: bold;
    border-radius: 50%;
    transition: all 0.2s;
    margin-left: 4px;
    margin-right: 0;
    padding: 0 4px;
    border: none !important;
    background: transparent !important;
}

.ovza-bank-form .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: white;
    background: #148a64 !important;
}

/* === INTL TEL INPUT === */
.ovza-bank-form .iti {
    width: 100%;
}

.ovza-bank-form .iti input {
    width: 100%;
    padding-left: 80px !important;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .ovza-bank-form {
        padding: 20px;
        margin: 0 15px;
    }
    
    .ovza-bank-form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .ovza-bank-form-group {
        flex: 100%;
    }
}
