/* --- ზოგადი ფორმის სტილები --- */
.capex-form-wrapper {
    max-width: 95%;
    margin: 0 auto;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: relative;
}

.capex-form-wrapper * {
    box-sizing: border-box;
}

/* --- შეცდომების ყუთი --- */
.cx-error-summary {
    background-color: #fff5f5;
    border: 1px solid #eebdbd;
    border-left: 5px solid #d63638;
    padding: 15px;
    margin-bottom: 30px;
    border-radius: 4px;
    font-size: 14px;
    display: none;
    scroll-margin-top: 100px;
}

.cx-error-title {
    font-weight: bold;
    color: #d63638;
    margin-bottom: 10px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

#capex-error-list {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #333;
}

#capex-error-list li {
    margin-bottom: 6px;
    padding-left: 5px;
    line-height: 1.4;
}

#capex-error-list li b {
    color: #555;
}

/* --- ნაბიჯების (Wizard) პროგრეს ბარი --- */
.capex-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.capex-progress::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
    transform: translateY(-50%);
}

.step-indicator {
    width: 35px;
    height: 35px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #888;
    position: relative;
    z-index: 1;
    transition: all 0.3s;
}

.step-indicator.active {
    border-color: #0073aa;
    background: #0073aa;
    color: #fff;
    transform: scale(1.1);
}

.step-indicator.completed {
    border-color: #46b450;
    background: #46b450;
    color: #fff;
}

/* --- ნაბიჯების კონტეინერები --- */
.form-step {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- გრიდი და ველები (განახლებული Flexbox ლოგიკა) --- */
.cx-fields-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
    align-items: flex-start; /* რომ ველები არ გაიწელოს სიმაღლეში უაზროდ */
}

.form-group {
    padding: 0 10px;
    margin-bottom: 20px;
    width: 100%; /* მობილურზე 100% */
    /* მნიშნველოვანი: დამალული ველები ადგილს არ იკავებენ */
    transition: all 0.3s ease;
}

/* დესკტოპ ზომები - განახლებული ლოგიკა: Flex Grow */
/* ვიყენებთ flex-basis-ს width-ის ნაცვლად, და ვრთავთ flex-grow-ს */
@media (min-width: 768px) {
    .cx-col-100 { 
        flex: 1 0 100%; 
        max-width: 100%;
    }
    
    .cx-col-50 { 
        /* იკავებს 50%-ს, მაგრამ თუ მეწყვილე დაიმალა, იზრდება 100%-მდე */
        flex: 1 0 50%; 
        max-width: 100%; 
    }
    
    .cx-col-33 { 
        flex: 1 0 33.33%; 
        max-width: 100%; 
    }
    
    .cx-col-25 { 
        flex: 1 0 25%; 
        max-width: 100%; 
    }
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.required {
    color: #d63638;
    margin-left: 3px;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
    background: #fff;
}

.form-control:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

/* --- HTML / Consent Box --- */
.legal-scroll-box {
    height: 150px;
    overflow-y: auto;
    border: 1px solid #ddd;
    background: #f9f9f9;
    padding: 15px;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 10px;
    border-radius: 4px;
}

.legal-scroll-box.auto-height {
    height: auto !important;
    overflow-y: visible !important;
    background: transparent;
    border: none;
    padding: 5px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    font-size: 14px;
    cursor: pointer;
    gap: 8px;
    line-height: 1.4; /* რომ გრძელი ტექსტი ლამაზად ჩაჯდეს */
}

.checkbox-label input[type="checkbox"],
.checkbox-label input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    flex-shrink: 0; /* რომ არ შეიკუმშოს */
}

/* --- ფაილის ატვირთვა --- */
.file-drop-area {
    border: 2px dashed #ccc;
    background: #fafafa;
    padding: 20px;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.file-drop-area:hover {
    border-color: #0073aa;
    background: #f0f7ff;
}

.cx-file-hint {
    margin: 6px 0 0;
    font-size: 12px;
    color: #888;
    line-height: 1.3;
}

.file-list-display {
    margin-top: 10px;
    font-size: 13px;
    color: #555;
}

.cx-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 8px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 4px;
}
.cx-file-item-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cx-file-remove {
    flex-shrink: 0;
    margin-left: 10px;
    color: #d63638;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0 4px;
}
.cx-file-remove:hover {
    color: #a00;
}

/* --- ღილაკები --- */
.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn {
    padding: 10px 25px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-prev {
    background: #f1f1f1;
    color: #333;
}
.btn-prev:hover { background: #e0e0e0; }

.btn-next, .btn-submit {
    background: #0073aa;
    color: #fff;
}
.btn-next:hover, .btn-submit:hover { background: #005a87; }

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* --- Creditinfo ღილაკი (inline compact) --- */
.cx-sso-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.btn-creditinfo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #c0392b;
    color: #fff;
    text-align: center;
    padding: 8px 18px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    border: 1px solid #a93226;
    transition: background 0.2s;
    white-space: nowrap;
}
.btn-creditinfo:hover {
    background: #a93226;
    color: #fff;
}

.or-divider {
    font-size: 13px;
    color: #999;
    margin: 0;
    position: relative;
    padding: 0;
}

.cx-success-msg {
    background: #e7f6e7;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    margin-bottom: 20px;
}

/* --- ვალიდაციის ვიზუალი --- */
.cx-error-border {
    border-color: #d63638 !important;
    background-color: #fff8f8 !important;
}

.cx-error-text {
    color: #d63638 !important;
}
.bankebi{display: flex;}

/* --- SSO locked fields --- */
.cx-sso-filled .form-control[readonly] {
    background: #f0f7ff;
    border-color: #b8daff;
    color: #333;
    cursor: not-allowed;
}
.cx-sso-filled select:disabled {
    background: #f0f7ff;
    border-color: #b8daff;
    color: #333;
    cursor: not-allowed;
    opacity: 1;
    -webkit-appearance: none;
}
.cx-sso-filled .checkbox-label input:disabled {
    cursor: not-allowed;
}
.cx-sso-lock {
    display: inline-block;
    width: 18px;
    height: 18px;
    background: #28a745;
    border-radius: 50%;
    margin-left: 5px;
    vertical-align: middle;
    position: relative;
}
.cx-sso-lock::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 3px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* მობილურზე დაცვა */
@media (max-width: 767px) {
    .cx-fields-row {
        flex-direction: column;
    }
    .form-group {
        max-width: 100% !important;
        flex-basis: 100% !important;
    }
}