.container{

}

.step{
    margin-top:40px;
}

.step{
    display:none;
}

.step.active{
    display:block;
}

.card{
    background:white;
    padding:20px;
    border-radius:10px;
    margin-bottom:20px;
    box-shadow:0 2px 6px rgba(0,0,0,0.08);
}

.card h3{
    margin-top:0;
}

.row{
    display:flex;
    gap:10px;
    margin-bottom:10px;
    flex-wrap: wrap;
}

.row > .flex-line {
    flex: 1;
    min-width: 200px;
}

/* Общие стили полей ввода — везде одинаково */
input:not([type="radio"]):not([type="checkbox"]),
select,
textarea{
    width:100%;
    padding:8px;
    box-sizing:border-box;
    font-family:inherit;
    font-size:14px;
}

label{
    font-size:14px;
    display:block;
    margin-bottom:5px;
}

button{
    padding:10px 16px;
    border:none;
    border-radius:6px;
    background:#2e7d32;
    color:white;
    cursor:pointer;
}

#stepNav #prevStep,
#stepNav #nextStep{
    height:36px;
    padding:0 18px;
    border-radius:999px;
    font-weight:600;
    letter-spacing:0.2px;
    text-transform:uppercase;
}
#stepNav #prevStep{
    background:#fff;
    color:#2e7d32;
    border:1px solid #cfe6d2;
}
#stepNav #nextStep{
    background:#1f6a2a;
    color:#fff;
    border:1px solid #1f6a2a;
}
#stepNav #prevStep:hover{ background:#f3faf4; }
#stepNav #nextStep:hover{ background:#1a5a23; border-color:#1a5a23; }

.form-footer-actions .btn-save-founder,
.form-footer-actions .btn-cancel-founder{
    height:30px;
    padding:0 14px;
    border-radius:999px;
    font-size:12px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:0.4px;
}
.form-footer-actions .btn-save-founder{
    background:#1f6a2a;
    border:1px solid #1f6a2a;
    color:#fff;
}
.form-footer-actions .btn-cancel-founder{
    background:#fff;
    border:1px solid #cfe6d2;
    color:#2e7d32;
}
.form-footer-actions .btn-save-founder:hover{ background:#1a5a23; border-color:#1a5a23; }
.form-footer-actions .btn-cancel-founder:hover{ background:#f3faf4; }

.add-btn{
    background:#ddd;
    color:#333;
}

.circle-plus{
    width:24px;
    height:24px;
    border-radius:50%;
    border:1px solid #2e7d32;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    color:#2e7d32;
    font-weight:bold;
    font-size:16px;
    cursor:pointer;
    margin-right:8px;
}

.full-width{
    margin-bottom:10px;
}

.muted{
    font-size:12px;
    color:#777;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea{
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    /* border-radius: 6px; */
    font-size: 14px;
    box-sizing: border-box;
}

.input-error{
    border-color:#d32f2f !important;
    outline:none;
}

.input-error-text{
    color:#d32f2f;
    font-size:12px;
    margin-top:4px;
    width: 100%
}

.subtitle{
    font-size:13px;
    font-weight:bold;
    margin:15px 0 5px;
}

.multi-select-wrap {
    position: relative;
}

.multi-select-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 14px;
    background: #fff;
}

.multi-select-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 2px);
    z-index: 30;
    background: #fff;
    border: 1px solid #ccc;
    max-height: 220px;
    overflow: auto;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.multi-select-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    cursor: pointer;
    margin: 0;
    font-size: 14px;
}

.multi-select-item:hover {
    background: #f7f7f7;
}

.multi-select-empty {
    padding: 8px 10px;
    color: #777;
    font-size: 13px;
}

.inline-options{
    display:flex;
    /*flex-wrap:wrap;*/
    gap:15px;
    margin:5px 0 10px;
}

.inline-options-wrap{
    display:flex;
    flex-wrap:wrap;
    gap:15px;
    margin:5px 0 10px;
}

.section-title{
    font-size:18px;
    margin:0 0 10px;
}

.step-header{
    display:flex;
    align-items:center;
    gap:10px;
}

.step-number{
    font-weight:bold;
    font-size:18px;
    color:#777;
}

.nowrap{
    white-space:nowrap;
}

.flex-line{
    display:flex;
    align-items:center;
    gap:10px;
}

.flex-line label{
    margin-bottom:0;
}

.step-nav{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin:25px 0 10px;
}

.step-nav .left,
.step-nav .right{
    display:flex;
    gap:10px;
    align-items:center;
}

.step-nav .progress{
    font-size:13px;
    color:#666;
    white-space:nowrap;
}

.btn-secondary{
    background:#ddd;
    color:#333;
}

button:disabled{
    opacity:0.55;
    cursor:not-allowed;
}

.add-action{
    display:flex;
    align-items:center;
    gap:8px;
    cursor:pointer;
    user-select:none;
}

.add-action span:last-child{
    line-height:1.2;
}

.card_wrapper{
    position:relative;
    border:1px solid rgba(0,0,0,0.06);
    border-radius:10px;
    padding:16px;
    margin-top:12px;
    background:#fff;
}

.button_remove{
    position:absolute;
    top:10px;
    right:10px;
    width:28px;
    height:28px;
    border-radius:50%;
    border:1px solid rgba(0,0,0,0.12);
    background:#fff;
    color:#555;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
}

.fit{
    display: flex;
    align-items: center;
}

.inner_card{
    margin-left:20px;
    padding: 10px;
    border-radius: 10px;
    background-color: #eeeeee;
}


.field-row{
    display:flex;
    gap:12px;
    margin-bottom:12px;
    align-items:flex-end;
    flex-wrap:wrap;
}
.field-row .field{
    flex:1;
    min-width:0;
}
.field-row .field--short{
    flex:0 0 120px;
}
.contact-row{
    display:grid;
    grid-template-columns:80px 1fr 100px 1fr;
    gap:12px;
    margin-bottom:12px;
}
.contact-row label{
    margin-bottom:5px;
}
@media (max-width: 600px){
    .contact-row{
        grid-template-columns:1fr 1fr;
    }
}

#physical-person-founders-container,
#jur-person-founders-container {
    margin-top: 16px;
}

.form-add-founder{
    position: relative;
    margin-bottom: 20px;
}
.form-add-founder.card,
.card-sponsor {
    position: relative;
    padding: 20px;
    box-sizing: border-box;
}

/* Saved state: show as compact row list (like screenshot #2) */
.form-add-founder[data-state="saved"],
.card-sponsor[data-state="saved"] {
    padding: 0;
    margin-bottom: 10px;
    background: transparent;
    border: none;
    box-shadow: none;
    max-width: none;
}
.form-add-founder.card-physical-founder .button_remove,
.form-add-founder.card-jur-founder .button_remove,
.card-sponsor .button_remove{
    position: absolute;
    top: 10px;
    right: 10px;
}
.jur-founders-inner,
.nested-founders-block {
    margin-top: 16px;
    margin-left: 20px;
    padding-left: 12px;
    border-left: 2px solid #e0e0e0;
}
.nested-founders-title {
    font-weight: bold;
    margin: 0 0 6px;
    font-size: 14px;
}
.nested-founders-warning {
    color: #c62828;
    font-size: 13px;
    margin: 0 0 12px;
    font-weight: 500;
}
.nested-founder-item {
    position: relative;
    margin-bottom: 12px;
    padding: 10px;
    background: #fafafa;
    border-radius: 6px;
}
.nested-founder-item .button_remove--small {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    padding: 0;
    font-size: 18px;
    line-height: 1;
}
.nested-founder-icon {
    display: inline-block;
    margin-right: 8px;
    font-size: 1.1em;
}
.founders-sum {
    margin: 10px 0 12px;
    padding: 8px 10px;
    font-weight: 600;
    font-size: 14px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.founders-sum-text {
    line-height: 1.2;
}
.founders-sum--complete {
    background: #e8f5e9;
    color: #2e7d32;
}
.founders-sum--incomplete {
    background: #ffebee;
    color: #c62828;
}
.capital-percent-sum {
    margin: 10px 0 12px;
    padding: 8px 10px;
    font-weight: 600;
    font-size: 14px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.capital-percent-sum-text {
    line-height: 1.2;
}
.capital-percent-sum--complete {
    background: #e8f5e9;
    color: #2e7d32;
}
.capital-percent-sum--incomplete {
    background: #ffebee;
    color: #c62828;
}
.nested-founders-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 0;
    margin-left: auto;
}
.button_add_nested {
    padding: 6px 10px;
    background: transparent;
    color: #2e7d32;
    border: 1px solid #9fc9a4;
    border-radius: 999px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.1;
    white-space: nowrap;
}
.button_add_nested:hover {
    background: #f3faf4;
}
.form-add-founder .notice-block{
    color: #c62828;
    font-size: 13px;
    margin-bottom: 16px;
    font-weight: 500;
}
.form-add-founder .physical-founder-title{
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: bold;
}
.form-add-founder .compliance-section{
    margin-top: 20px;
}
.form-add-founder .compliance-section h3{
    font-size: 14px;
    margin: 0 0 12px;
}
.form-add-founder .compliance-item{
    margin-bottom: 10px;
}
.form-add-founder .compliance-item .question{
    font-size: 13px;
    margin-bottom: 6px;
}
.form-add-founder .compliance-item .radios{
    display: flex;
    gap: 16px;
}
.form-add-founder .compliance-item label{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0;
    cursor: pointer;
}

.founder-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}
.founder-preview-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}
.founder-icon { font-size: 18px; }
.founder-preview-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.founder-preview-actions .button_edit_founder,
.founder-preview-actions .button_remove_founder {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    color: #6b7280;
    font-size: 14px;
    line-height: 1;
}
.founder-preview-actions .button_edit_founder:hover,
.founder-preview-actions .button_remove_founder:hover {
    color: #111827;
    border-color: #d1d5db;
    background: #f9fafb;
}

/* 3.2 Собственники: превью строк как у учредителей (перебивает глобальные стили модалки) */
#office-owners-container .nested-founder-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 10px;
    box-sizing: border-box;
}
#office-owners-container .nested-founder-preview-main {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}
#office-owners-container .nested-founder-preview-main .nested-founder-percent {
    font-weight: 600;
    min-width: 2.75em;
    color: #374151;
}
#office-owners-container .nested-founder-preview-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
#office-owners-container .nested-founder-preview-actions .button_edit_founder,
#office-owners-container .nested-founder-preview-actions .button_remove_founder {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    color: #6b7280;
    font-size: 14px;
    line-height: 1;
}
#office-owners-container .nested-founder-preview-actions .button_edit_founder:hover,
#office-owners-container .nested-founder-preview-actions .button_remove_founder:hover {
    color: #111827;
    border-color: #d1d5db;
    background: #f9fafb;
}
#office-owners-container .office-owner-root .office-owner-preview.founder-preview {
    margin-bottom: 10px;
}

/* 2.2 Вложенные учредители: доля слева от иконки, без строки со страной */
#jur-person-founders-container .nested-founder-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 8px;
    box-sizing: border-box;
}
#jur-person-founders-container .nested-founder-preview-main {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}
#jur-person-founders-container .nested-founder-preview-main .nested-founder-percent {
    font-weight: 600;
    min-width: 2.75em;
    color: #374151;
}
#jur-person-founders-container .nested-founder-preview-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
#jur-person-founders-container .nested-founder-preview-actions .button_edit_founder,
#jur-person-founders-container .nested-founder-preview-actions .button_remove_founder {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    color: #6b7280;
    font-size: 14px;
    line-height: 1;
}
#jur-person-founders-container .nested-founder-preview-actions .button_edit_founder:hover,
#jur-person-founders-container .nested-founder-preview-actions .button_remove_founder:hover {
    color: #111827;
    border-color: #d1d5db;
    background: #f9fafb;
}

.domain-owner-title {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 16px;
}

/* Toast уведомления (ошибка / подсказка при отправке) */
.smi-toast {
    position: fixed;
    z-index: 100000;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    padding: 16px;
    padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
    pointer-events: none;
    opacity: 0;
    transform: translateY(calc(100% + 24px));
    transition:
        opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.smi-toast--visible {
    opacity: 1;
    transform: translateY(0);
}

.smi-toast:not(.smi-toast--visible) .smi-toast__surface {
    pointer-events: none;
}

.smi-toast__surface {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: min(440px, 100%);
    padding: 14px 14px 14px 16px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.5;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow:
        0 4px 6px -1px rgba(15, 23, 42, 0.06),
        0 24px 48px -12px rgba(15, 23, 42, 0.18),
        0 0 0 1px rgba(255, 255, 255, 0.6) inset;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.smi-toast--error .smi-toast__surface {
    border-color: rgba(220, 38, 38, 0.2);
    background: linear-gradient(
        145deg,
        rgba(254, 242, 242, 0.96) 0%,
        rgba(255, 255, 255, 0.94) 100%
    );
}

.smi-toast--info .smi-toast__surface {
    border-color: rgba(37, 99, 235, 0.18);
    background: linear-gradient(
        145deg,
        rgba(239, 246, 255, 0.96) 0%,
        rgba(255, 255, 255, 0.94) 100%
    );
}

.smi-toast__icon {
    flex-shrink: 0;
    margin-top: 1px;
    display: none;
}

.smi-toast--error .smi-toast__icon--error {
    display: block;
    color: #dc2626;
}

.smi-toast--info .smi-toast__icon--info {
    display: block;
    color: #2563eb;
}

.smi-toast__text {
    margin: 0;
    flex: 1;
    min-width: 0;
}

.smi-toast__close {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: -6px -8px -6px 0;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.smi-toast__close:hover {
    color: #0f172a;
    background: rgba(15, 23, 42, 0.06);
}

.smi-toast__close:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

@media (min-width: 640px) {
    .smi-toast {
        justify-content: flex-end;
        padding-right: max(24px, env(safe-area-inset-right, 0px));
        padding-left: max(24px, env(safe-area-inset-left, 0px));
    }
}

@media (prefers-reduced-motion: reduce) {
    .smi-toast {
        transition-duration: 0.01ms;
    }
}

/* Загрузка кнопки отправки */

.smi-success {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 0 48px;
}

.smi-success__card {
    text-align: center;
    max-width: 440px;
    padding: 40px 36px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(15, 23, 42, 0.1);
}

.smi-success__icon {
    margin: 0 auto 20px;
}

.smi-success__title {
    margin: 0 0 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.02em;
}

.smi-success__text {
    margin: 0 0 16px;
    font-size: 1.05rem;
    line-height: 1.55;
    color: #374151;
}

.smi-success__hint {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #6b7280;
}

#nextStep.btn-loading,
#stepNav #nextStep.btn-loading {
    position: relative;
    opacity: 0.85;
    pointer-events: none;
}

/* Чат GPT */

/* Стили для единой страницы (без шагов) */
/*
.step {
    display: block !important;
    margin-top: 30px;
}

.step-header {
    margin-bottom: 15px;
}

!* Убираем лишние отступы у карточек *!
.card {
    margin-bottom: 15px;
}

!* Стиль для кнопки отправки *!
#submitFormBtn {
    background: #1f6a2a;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

#submitFormBtn:hover {
    background: #155a1f;
}

#submitFormBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

!* Стили для полей с ошибками *!
.input-error {
    border-color: #d32f2f !important;
}

.input-error-text {
    color: #d32f2f;
    font-size: 12px;
    margin-top: 4px;
}

!* Стили для вкладок (шагов) *!
.step-number {
    font-weight: bold;
    font-size: 18px;
    color: #2e7d32;
    background: #e8f5e9;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}*/
