/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #4F46E5;
    --primary-light: #818CF8;
    --primary-dark: #3730A3;
    --secondary: #F59E0B;
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --bg: #F8FAFC;
    --bg-card: #FFFFFF;
    --text: #1E293B;
    --text-secondary: #64748B;
    --border: #E2E8F0;
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --radius: 12px;
    --radius-sm: 8px;
    --spouse1-color: #3B82F6;
    --spouse2-color: #EC4899;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== HEADER ========== */
.header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    padding: 24px 0;
    text-align: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 28px;
    font-weight: 800;
}

.logo-icon {
    font-size: 36px;
}

.header-subtitle {
    margin-top: 6px;
    opacity: 0.85;
    font-size: 15px;
}

/* ========== STEPS NAV ========== */
.steps-nav {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    overflow-x: auto;
}

.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-width: 700px;
}

.step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.step:hover {
    background: #F1F5F9;
}

.step.active {
    color: var(--primary);
    font-weight: 600;
}

.step.completed {
    color: var(--success);
}

.step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.3s;
}

.step.active .step-number {
    background: var(--primary);
    color: white;
}

.step.completed .step-number {
    background: var(--success);
    color: white;
}

.step.completed .step-number::after {
    content: '✓';
}

.step-line {
    width: 24px;
    height: 2px;
    background: var(--border);
    flex-shrink: 0;
}

/* ========== MAIN ========== */
.main {
    padding: 24px 0 100px;
}

/* ========== CARDS ========== */
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.card-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border);
}

/* ========== STEP CONTENT ========== */
.step-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.step-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== FORMS ========== */
.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 20px;
}

@media (max-width: 640px) {
    .two-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.column-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
}

.spouse-1-title {
    background: rgba(59, 130, 246, 0.1);
    color: var(--spouse1-color);
    border-left: 3px solid var(--spouse1-color);
}

.spouse-2-title {
    background: rgba(236, 72, 153, 0.1);
    color: var(--spouse2-color);
    border-left: 3px solid var(--spouse2-color);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text);
}

.form-group small {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

input[type="text"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s;
    background: white;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

textarea {
    min-height: 80px;
    resize: vertical;
}

/* ========== TOGGLE GROUP ========== */
.toggle-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.toggle {
    cursor: pointer;
}

.toggle input {
    display: none;
}

.toggle-btn {
    display: inline-block;
    padding: 8px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: all 0.2s;
    font-weight: 500;
}

.toggle input:checked + .toggle-btn {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.toggle-btn:hover {
    border-color: var(--primary-light);
}

/* ========== CHECKBOX ========== */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.checkbox-label:hover {
    background: #F8FAFC;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

/* ========== COUNTER ========== */
.counter {
    display: flex;
    align-items: center;
    gap: 16px;
}

.counter-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--border);
    border-radius: 50%;
    background: white;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: var(--text);
}

.counter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.counter-value {
    font-size: 24px;
    font-weight: 700;
    min-width: 40px;
    text-align: center;
}

/* ========== INFO BOX ========== */
.info-box {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: #EEF2FF;
    border: 1px solid #C7D2FE;
    border-radius: var(--radius-sm);
    margin: 16px 0;
    font-size: 14px;
    line-height: 1.5;
}

.info-box ul {
    margin-top: 6px;
    padding-left: 20px;
}

.info-box li {
    margin-bottom: 2px;
}

.info-icon {
    font-size: 20px;
    flex-shrink: 0;
}

/* ========== CHILD CARD ========== */
.child-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-bottom: 16px;
    position: relative;
    background: #FAFBFC;
}

.child-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.child-card-title {
    font-weight: 600;
    font-size: 16px;
}

.remove-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: var(--danger);
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.remove-btn:hover {
    transform: scale(1.1);
}

.child-card .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 480px) {
    .child-card .form-row {
        grid-template-columns: 1fr;
    }
}

/* ========== ALIMONY PREVIEW ========== */
.alimony-result-preview {
    background: linear-gradient(135deg, #EEF2FF, #E0E7FF);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    margin: 16px 0;
}

.preview-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.preview-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 16px;
}

.preview-value.highlight {
    color: var(--success);
    font-size: 32px;
}

/* ========== PROPERTY CATEGORY ========== */
.property-category {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    overflow: hidden;
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #FAFBFC;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.category-header:hover {
    background: #F1F5F9;
}

.category-total {
    color: var(--primary);
    font-weight: 700;
    margin-left: auto;
    margin-right: 12px;
}

.chevron {
    transition: transform 0.3s;
    font-size: 12px;
    color: var(--text-secondary);
}

.chevron.rotated {
    transform: rotate(180deg);
}

.category-body {
    padding: 16px 18px;
    display: none;
    border-top: 1px solid var(--border);
}

.category-body.open {
    display: block;
}

/* ========== PROPERTY ITEM ========== */
.property-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 12px;
    background: white;
}

.property-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.property-item .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.property-item .form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

@media (max-width: 640px) {
    .property-item .form-row,
    .property-item .form-row-3 {
        grid-template-columns: 1fr;
    }
}

/* ========== DEBT ITEM ========== */
.debt-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 12px;
    background: #FFFBEB;
    border-left: 4px solid var(--warning);
}

/* ========== BUTTONS ========== */
.btn {
    padding: 12px 28px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: #F1F5F9;
    color: var(--text);
}

.btn-secondary:hover {
    background: #E2E8F0;
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.add-btn {
    width: 100%;
    padding: 14px;
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.add-btn:hover {
    border-color: var(--primary);
    background: #EEF2FF;
}

/* ========== SUMMARY BOX ========== */
.summary-box {
    background: linear-gradient(135deg, #F0FDF4, #DCFCE7);
    border: 1px solid #BBF7D0;
    border-radius: var(--radius);
    padding: 24px;
    margin-top: 24px;
}

.summary-box h3 {
    font-size: 18px;
    margin-bottom: 16px;
}

.summary-grid {
    display: grid;
    gap: 12px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row.total {
    font-weight: 700;
    font-size: 16px;
    padding-top: 12px;
    border-top: 2px solid rgba(0,0,0,0.1);
}

/* ========== PROPERTY SUMMARY VISUAL ========== */
.bar-chart {
    margin-bottom: 20px;
}

.bar-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.bar-container {
    background: #E2E8F0;
    border-radius: 8px;
    height: 36px;
    overflow: hidden;
}

.bar {
    height: 100%;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 13px;
    transition: width 0.5s ease;
}

.bar-joint {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.split-visual {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 16px 0;
}

.split-half {
    flex: 1;
    text-align: center;
    padding: 16px;
    border-radius: var(--radius-sm);
    background: white;
}

.split-half:first-child {
    border: 2px solid var(--spouse1-color);
}

.split-half:last-child {
    border: 2px solid var(--spouse2-color);
}

.split-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.split-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}

.split-divider {
    font-weight: 800;
    color: var(--primary);
    font-size: 16px;
    white-space: nowrap;
}

.personal-property {
    margin-top: 16px;
    display: grid;
    gap: 8px;
}

.personal-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: white;
    border-radius: var(--radius-sm);
    font-size: 14px;
}

/* ========== STEP NAVIGATION ========== */
.step-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
    gap: 12px;
}

/* ========== DIVIDER ========== */
.divider {
    height: 1px;
    background: var(--border);
    margin: 24px 0;
}

/* ========== FINAL REPORT ========== */
.report-section {
    margin-bottom: 24px;
    padding: 20px;
    background: #FAFBFC;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.report-section h3 {
    font-size: 16px;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.report-table th {
    text-align: left;
    padding: 8px 12px;
    background: #E2E8F0;
    font-weight: 600;
}

.report-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
}

.report-total-box {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    margin-bottom: 24px;
}

.report-total-box h3 {
    font-size: 18px;
    margin-bottom: 16px;
    opacity: 0.9;
}

.report-total-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.report-total-item {
    background: rgba(255,255,255,0.15);
    border-radius: var(--radius-sm);
    padding: 16px;
}

.report-total-label {
    font-size: 13px;
    opacity: 0.8;
    margin-bottom: 4px;
}

.report-total-value {
    font-size: 22px;
    font-weight: 800;
}

.report-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 24px 0;
}

.disclaimer {
    background: #FEF3C7;
    border: 1px solid #FDE68A;
    border-radius: var(--radius-sm);
    padding: 16px;
    font-size: 13px;
    line-height: 1.6;
    color: #92400E;
}

/* ========== EMPTY STATE ========== */
.empty-state {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    padding: 20px;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--text);
    color: rgba(255,255,255,0.6);
    text-align: center;
    padding: 20px;
    font-size: 13px;
    line-height: 1.8;
}

/* ========== TIMELINE ========== */
.alimony-timeline {
    margin-top: 16px;
}

.timeline-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
}

.timeline-row .label {
    color: var(--text-secondary);
}

.timeline-row .value {
    font-weight: 600;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 640px) {
    .card {
        padding: 20px;
    }
    
    .steps {
        justify-content: flex-start;
        padding: 0 16px;
    }
    
    .step span {
        display: none;
    }
    
    .report-total-grid {
        grid-template-columns: 1fr;
    }
    
    .split-visual {
        flex-direction: column;
    }
    
    .report-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ========== PRINT ========== */
@media print {
    .header, .steps-nav, .step-navigation, .report-actions, .footer, .disclaimer {
        display: none !important;
    }
    
    .step-content {
        display: block !important;
    }
    
    .card {
        box-shadow: none;
        border: none;
    }
}

/* ========== ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ========== */

/* Header auth */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-buttons, .user-menu {
    display: flex;
    gap: 8px;
    align-items: center;
}

.user-menu span {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

.btn-ghost {
    background: transparent;
    color: rgba(255,255,255,0.9);
    border: none;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.2s;
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.15);
    color: white;
}

.btn-white-outline {
    background: transparent;
    color: white;
    border: 1.5px solid rgba(255,255,255,0.5);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.2s;
}

.btn-white-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: white;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal {
    background: white;
    border-radius: var(--radius);
    padding: 32px;
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalIn 0.2s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f1f5f9;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #e2e8f0;
}

.modal h2 {
    font-size: 22px;
    margin-bottom: 20px;
}

.modal .form-group {
    margin-bottom: 16px;
}

.modal .btn {
    width: 100%;
    justify-content: center;
}

.modal .switch-link {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-secondary);
}

.modal .switch-link a {
    color: var(--primary);
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
}

/* Сохранение уведомление */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--text);
    color: white;
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    z-index: 2000;
    animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s forwards;
    box-shadow: var(--shadow-lg);
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes toastOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Responsive header */
@media (max-width: 640px) {
    .header-top {
        flex-direction: column;
        gap: 12px;
    }
}
/* ===== FIX: логин не должен блокировать кнопку Далее ===== */
#auth-modal {
    z-index: 9999;
}

#auth-modal[style*="display:none"] {
    pointer-events: none !important;
}

#auth-modal[style*="display:flex"] {
    pointer-events: auto !important;
}

.user-menu {
    position: relative;
    z-index: 60;
}

.step-navigation,
#next-btn,
#prev-btn {
    position: relative;
    z-index: 80;
}

/* ===== КРАСИВАЯ ФОРМА АВТОРИЗАЦИИ ===== */
.modal {
    max-width: 480px;
    padding: 36px 32px;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0,0,0,.2);
}

.modal h2 {
    font-size: 26px;
    text-align: center;
    margin-bottom: 24px;
}

.modal .form-group {
    margin-bottom: 18px;
}

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

.modal .form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color .2s, box-shadow .2s;
    background: #F8FAFC;
}

.modal .form-group input:focus {
    outline: none;
    border-color: #818CF8;
    box-shadow: 0 0 0 4px rgba(129,140,248,.15);
    background: #fff;
}

.modal .form-group input::placeholder {
    color: #94A3B8;
}

.modal .btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    border-radius: 12px;
    justify-content: center;
    margin-top: 8px;
}

.modal .switch-link {
    text-align: center;
    margin-top: 20px;
    font-size: 15px;
    color: #64748B;
}

.modal .switch-link a {
    color: #4F46E5;
    cursor: pointer;
    text-decoration: none;
    font-weight: 700;
}

.modal .switch-link a:hover {
    text-decoration: underline;
}

#auth-error {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #DC2626;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 14px;
    text-align: center;
}

.modal-overlay {
    backdrop-filter: blur(8px);
    background: rgba(15,23,42,.6);
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #F1F5F9;
    border: none;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 16px;
    right: 16px;
    transition: background .2s;
}

.modal-close:hover {
    background: #E2E8F0;
}

/* ===== ЧЕКБОКСЫ СОГЛАСИЯ ===== */
.modal label[style*="display:flex"] {
    background: #F8FAFC;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}

.modal label[style*="display:flex"]:hover {
    border-color: #818CF8;
    background: #EEF2FF;
}

.modal label input[type="checkbox"] {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px;
    accent-color: #4F46E5;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 2px;
}

.modal label a {
    color: #4F46E5;
    font-weight: 600;
    text-decoration: none;
}

.modal label a:hover {
    text-decoration: underline;
}

/* ===== FIX: чекбоксы согласия размер ===== */
.modal label[style*="display:flex"] {
    font-size: 15px !important;
    line-height: 1.5 !important;
    padding: 16px !important;
    gap: 14px !important;
    align-items: center !important;
}

.modal label[style*="display:flex"] input[type="checkbox"] {
    flex-shrink: 0 !important;
}

.modal label[style*="display:flex"] a {
    white-space: nowrap;
}

/* ===== CONSENT CHECKBOX FINAL ===== */
.consent-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #F8FAFC;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 16px;
    cursor: pointer;
    transition: border-color .2s;
    font-size: 14px;
    line-height: 1.5;
    color: #475569;
}
.consent-box:hover {
    border-color: #818CF8;
    background: #EEF2FF;
}
.consent-box input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 1px;
    accent-color: #4F46E5;
    cursor: pointer;
}
.consent-box span {
    flex: 1;
}
.consent-box a {
    color: #4F46E5;
    text-decoration: none;
    font-weight: 600;
}
.consent-box a:hover {
    text-decoration: underline;
}
