:root {
    --color-white: #fff;
    --color-black: #111827;
    --color-gray: #9ca3af;
    --color-main: #e6ccca;
    --c50: #f9fafb;
    --c100: #f3f4f6;
    --c200: #e5e7eb;
    --c300: #d1d5db;
    --c500: #6b7280;
    --c600: #4b5563;
    --c700: #374151;
    --c800: #1f2937;
    --blue: #2563eb;
    --r16: 16px;
    --r24: 24px;
    --r32: 32px;
    --pill: 9999px;
    --shadow-sm: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
    --shadow-md: 0px 8px 30px 0px #0000000a;
    --shadow-lg: 0px 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* ── Reset ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    -webkit-text-size-adjust: 100%;
    line-height: 1.5;
}
body {
    font-family: "Inter", sans-serif;
    color: var(--color-black);
    background: var(--color-white);
}
a {
    text-decoration: unset;
}
img {
    max-width: 100%;
    display: block;
}
button {
    font: inherit;
    cursor: pointer;
    border: none;
}
input {
    font: inherit;
}

/* ── Shared transition ── */
.form-input,
.form-textarea,
.form-button,
.care-option-text,
.nav-button,
.service-option,
.service-info,
.nav-item,
.btn-create,
.tab-item,
.btn-order,
.btn-esia,
.dropzone,
.file-remove,
.btn-submit-files,
.modal-close,
.profile-logout,
.download-link {
    transition: all 0.2s;
}

/* ── Layout ── */
.header {
    padding: 32px 0;
}
.container {
    max-width: 1152px;
    padding: 0 24px;
    margin: 0 auto;
}

/* ── Progress ── */
.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--c100);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 32px;
}
.progress-fill {
    height: 100%;
    background: var(--color-main);
    border-radius: 10px;
    transition: width 0.3s ease;
}
.progress-meta {
    margin-top: -16px;
    margin-bottom: 20px;
}

/* ── Typography utilities ── */
.text-10 {
    font-size: 10px;
}
.text-12 {
    font-size: 12px;
}
.text-14 {
    font-size: 14px;
}
.text-16 {
    font-size: 16px;
}
.text-18 {
    font-size: 18px;
}
.text-20 {
    font-size: 20px;
}
.text-24 {
    font-size: 24px;
}
.text-32 {
    font-size: 32px;
}
.text-40 {
    font-size: 40px;
}
.text-48 {
    font-size: 48px;
}
.text-gray {
    color: var(--c500);
}
.text-normal {
    font-weight: 400;
}
.text-medium {
    font-weight: 500;
}
.text-semibold {
    font-weight: 600;
}
.text-bold {
    font-weight: 700;
}

/* ── Review block ── */
.review__block,
.price-block {
    padding: 32px;
    border-radius: var(--r32);
    background: white;
    box-shadow: var(--shadow-md);
}

/* ── Survey ── */
.survey__wrapper {
    margin-top: 52px;
    padding: 16px 0;
    display: grid;
    grid-template-columns: 1fr 384px;
    gap: 32px;
}
.survey__steps {
    display: flex;
    flex-direction: column;
    gap: 52px;
}
.survey__step.is-hidden {
    display: none;
}
.survey__aside {
    display: flex;
    flex-direction: column;
    gap: 32px;
    height: fit-content;
}
.survey__body {
    max-width: 624px;
    width: 100%;
    min-width: 0;
}

/* ── Stats ── */
.stats {
    display: flex;
    gap: 12px;
}
.stat-badges {
    display: flex;
}
.badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: 2px solid var(--color-white);
    color: var(--c700);
}
.badge:nth-child(1) {
    background: #ead6d5;
    z-index: 3;
}
.badge:nth-child(2) {
    background: #d6c2c1;
    z-index: 2;
    margin-left: -14px;
}
.badge:nth-child(3) {
    background: #dbeafe;
    z-index: 1;
    margin-left: -14px;
}
.stat-number {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-black);
    margin-top: 8px;
}
.stat-text {
    font-size: 16px;
    color: var(--color-gray);
}

/* ── Testimonial ── */
.testimonial {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    border-radius: var(--r16);
    background: var(--c50);
    position: relative;
    margin-top: 24px;
}
.testimonial .icon {
    position: absolute;
    left: -2px;
    top: -4px;
}
.testimonial p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--c600);
    font-style: italic;
}
.testimonial cite {
    font-style: normal;
    font-size: 10px;
    color: var(--color-gray);
    letter-spacing: 0.5px;
}

.verification {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 24px;
}

.l-title {
    font-size: clamp(1.5rem, 1.0625rem + 1.25vw, 2rem);
    line-height: 48px;
    font-weight: 400;
    margin-bottom: 8px;
}

/* ── Form ── */
.form {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.form-label {
    font-size: 12px;
    color: var(--color-gray);
    letter-spacing: 0.5px;
}

.form-input,
.form-textarea {
    padding: 16px 20px;
    border: 2px solid var(--c200);
    border-radius: var(--r16);
    font-size: 16px;
    background: white;
    outline: none;
}
.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--color-gray);
}
.form-input:focus,
.form-textarea:focus {
    border-color: var(--color-main);
}
.form-input:invalid:not(:placeholder-shown),
.form-input.error {
    border-color: #ef4444;
    background: #fef2f2;
}
.form-input.is-invalid,
.form-textarea.is-invalid {
    border-color: #ef4444;
    background: #fef2f2;
}
.form-input:valid:not(:placeholder-shown) {
    border-color: #22c55e;
}

.form-textarea {
    border-width: 1px;
    resize: vertical;
    font-family: inherit;
    display: none;
}
.form-textarea::placeholder {
    color: var(--c300);
}
#other-checkbox:checked ~ .form-textarea {
    display: block;
}

.form-button {
    padding: 16px 32px;
    background: var(--color-main);
    color: #5a4a48;
    border-radius: var(--pill);
    font-size: 16px;
    margin-top: 8px;
}
.form-button:disabled {
    color: var(--color-gray);
    background: var(--c100);
    pointer-events: none;
}
.form-button:hover {
    background: var(--c300);
}
.form:valid .form-button {
    background: var(--color-main);
    color: #5a4a48;
}
.form:valid .form-button:hover {
    background: var(--color-main);
}
.form-code {
    margin-top: 16px;
    border: 1px solid var(--c200);
    border-radius: var(--r24);
    padding: 24px;
    background: var(--c50);
}
.code-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}
.code-resend {
    background: transparent;
    padding: 0;
}
.code-resend:disabled {
    opacity: 0.7;
    pointer-events: none;
}
.error-text {
    color: #dc2626;
}
.form-error {
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid #fecaca;
    border-radius: 12px;
    background: #fef2f2;
    font-size: 14px;
    line-height: 1.4;
}
.diagnosis-picker {
    position: relative;
}
.diagnosis-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    max-height: 220px;
    overflow-y: auto;
    overflow-x: hidden;
    background: #fff;
    border: 1px solid var(--c200);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    z-index: 30;
    display: flex;
    flex-direction: column;
}

/* Иначе display:flex !important ниже ломает нативное скрытие по атрибуту hidden */
.diagnosis-dropdown[hidden] {
    display: none !important;
}
.diagnosis-item {
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    padding: 10px 12px;
    font-size: 14px;
    color: var(--c700);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    box-sizing: border-box;
    cursor: pointer;
}
.diagnosis-item .checkbox {
    flex-shrink: 0;
    margin-top: 2px;
}
.diagnosis-item span {
    flex: 1;
    min-width: 0;
    line-height: 1.4;
}
.diagnosis-item:hover {
    background: var(--c50);
}
.diagnosis-item-empty {
    color: var(--c500);
    cursor: default;
    display: block;
}

/* Список диагнозов (мультивыбор): жёстко один столбец, строка = чекбокс + текст */
.diagnosis-dropdown--diseases {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    width: 100%;
    box-sizing: border-box;
}

.diagnosis-dropdown--diseases .diagnosis-item {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
    box-sizing: border-box !important;
}

.diagnosis-dropdown--diseases .diagnosis-item .checkbox {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    margin-top: 2px;
}

.diagnosis-dropdown--diseases .diagnosis-item span {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: 100%;
    line-height: 1.45;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.diagnosis-dropdown--diseases .diagnosis-item-empty {
    display: block !important;
    width: 100% !important;
}

/* ── Care options ── */
.care-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.care-option {
    position: relative;
    cursor: pointer;
    display: block;
}
.care-option:last-child {
    grid-column: span 2;
}
.care-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.care-option-text {
    display: block;
    padding: 20px 24px;
    border: 2px solid var(--c100);
    border-radius: var(--r24);
    font-size: 14px;
    font-weight: 500;
    color: #333;
    background: white;
    text-align: center;
}
.care-option input[type="radio"]:checked + .care-option-text {
    border-color: var(--color-main);
    background: #e6ccca1a;
}
.care-option:hover .care-option-text {
    border-color: var(--color-main);
}

/* ── Navigation ── */
.form-navigation {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 5px;
    margin-top: 8px;
}
.nav-button {
    padding: 20px 32px;
    border-radius: var(--r24);
    font-size: 16px;
    font-weight: 700;
    background: transparent;
    color: #5a4a48;
    height: 64px;
}
.nav-back {
    background: #e6ccca33;
}
.nav-back:hover {
    background: var(--c100);
}
.nav-continue {
    background: var(--color-main);
    color: #5a4a48;
    box-shadow: 0px 10px 15px -3px #fce7f3;
}
.nav-continue:hover {
    background: #d9b8b5;
}
.care-form:invalid .nav-continue {
    background: var(--c100);
    color: var(--color-gray);
    pointer-events: none;
}

/* ── Services ── */
.service-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 42px;
    border-bottom: 1px solid var(--c100);
    margin-bottom: 40px;
}
.service-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 17px;
    border: 1px solid var(--c200);
    border-radius: var(--r16);
    background: white;
    cursor: pointer;
    position: relative;
}
.service-option:hover {
    border-color: var(--color-main);
}
.checkbox {
    width: 24px;
    height: 24px;
    cursor: pointer;
    accent-color: var(--color-main);
}
.service-text {
    flex: 1;
    font-size: 16px;
    color: #1e293b;
}
.service-price {
    font-size: 16px;
    color: var(--c500);
    margin-right: 8px;
}

.service-info {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--color-gray);
    padding: 0;
    border-radius: 50%;
    position: relative;
}
.service-info:hover {
    background: var(--c100);
    color: var(--c500);
}
.service-info[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    background: var(--c800);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.4;
    white-space: normal;
    width: 200px;
    z-index: 10;
    pointer-events: none;
}
.service-info[data-tooltip]:hover::before {
    content: "";
    position: absolute;
    bottom: calc(100% + 2px);
    right: 8px;
    border: 6px solid transparent;
    border-top-color: var(--c800);
    z-index: 10;
}

/* ── Price block ── */
.price-title {
    font-size: 20px;
    font-weight: 400;
    color: var(--color-black);
    padding-bottom: 16px;
    border-bottom: 1px solid var(--c100);
}
.price-total {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: 32px;
}
.price-amount {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.price-value {
    font-size: 30px;
    font-weight: 700;
    color: var(--color-black);
    line-height: 36px;
}

/* ── Map & input icon ── */
.map-placeholder {
    width: 100%;
    height: 190px;
    background: var(--c50);
    border-radius: var(--r16);
    margin-bottom: 8px;
    border: 2px solid var(--c200);
}
.input-with-icon {
    position: relative;
}
.input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}
.form-input.with-icon {
    padding-left: 52px;
    width: 100%;
}

@media (max-width: 992px) {
    .survey__wrapper {
        grid-template-columns: 1fr;
    }

    .survey__aside {
        order: -1;
    }
}

/* ── LK Layout ── */
.lk__wrapper {
    display: flex;
    min-height: 100vh;
}
.lk__aside {
    width: 256px;
    background: var(--c50);
    border-right: 1px solid var(--c100);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}
.lk__logo {
    padding: 32px;
}
.logo-link {
    display: block;
}
.lk__nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 17px;
    border-radius: var(--r16);
    font-size: 16px;
    font-weight: 500;
    color: var(--c500);
    text-decoration: none;
}
.nav-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.nav-item:hover {
    background: var(--c100);
}
.nav-item--active {
    background: white;
    border: 1px solid var(--c50);
    box-shadow: var(--shadow-sm);
    color: var(--color-black);
}

.lk__profile {
    border-top: 1px solid var(--c100);
    padding: 25px 24px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #eedcda;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-black);
    flex-shrink: 0;
}
.profile-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.profile-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-black);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}
.profile-logout {
    font-size: 12px;
    color: var(--color-gray);
    text-decoration: none;
}
.profile-logout:hover {
    color: var(--c500);
}

.lk__body {
    flex: 1;
    padding: 48px;
    background: white;
    max-width: 1024px;
    margin: 0 auto;
}

/* ── LK Header ── */
.lk__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 48px;
}
.lk__title-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.lk__subtitle {
    font-size: 10px;
    font-weight: 700;
    color: var(--color-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 15px;
}
.lk__title {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-black);
    line-height: 40px;
}

.btn-create {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: #eedcda;
    border-radius: var(--pill);
    font-size: 16px;
    font-weight: 500;
    color: var(--color-black);
}
.btn-create:hover {
    background: var(--color-main);
}
.btn-create svg {
    width: 16px;
    height: 16px;
}

/* ── Tabs ── */
.lk__tabs {
    display: flex;
    gap: 32px;
    border-bottom: 1px solid var(--c100);
    margin-bottom: 40px;
    overflow-x: auto;
}
.tab-item {
    padding: 0 4px 18px;
    font-size: 16px;
    font-weight: 500;
    color: var(--color-gray);
    background: none;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}
.tab-item:hover {
    color: var(--c500);
}
.tab-item--active {
    color: var(--color-black);
    font-weight: 600;
    border-bottom-color: var(--color-black);
}

/* ── Orders ── */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.order-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 25px;
    background: white;
    border: 1px solid var(--c100);
    border-radius: var(--r32);
    position: relative;
}
.order-card:hover {
    box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.08);
}
.order-card--found {
    overflow: hidden;
}
.order-card--draft {
    background: rgba(249, 250, 251, 0.5);
}

.order-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--r16);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.order-icon--blue {
    background: #eff6ff;
}
.order-icon--gray {
    background: var(--c100);
}
.order-icon--orange {
    background: rgba(249, 115, 22, 0.1);
}
.order-icon--white {
    background: white;
    border: 1px solid var(--c100);
}

.order-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.order-content--draft {
    opacity: 0.6;
}
.order-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.order-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-black);
    line-height: 28px;
}
.order-title--draft {
    color: var(--c700);
}

.order-badge {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 15px;
}
.order-badge--green {
    background: #eff6ff;
    color: #16a34a;
}
.order-badge--green-dark {
    background: var(--c100);
    color: #059669;
}
.order-badge--blue {
    background: #eff6ff;
    color: var(--blue);
}
.order-badge--orange {
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
}
.order-badge--gray {
    background: var(--c200);
    color: var(--c500);
}

.order-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--c500);
    line-height: 20px;
}
.meta-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--c300);
}
.meta-price {
    font-weight: 500;
    color: var(--color-black);
}

.order-actions {
    display: flex;
    gap: 8px;
}
.btn-order {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: var(--pill);
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
}
.btn-order svg {
    width: 16px;
    height: 16px;
}
.btn-order--primary {
    background: var(--color-black);
    color: white;
}
.btn-order--primary:hover {
    background: var(--c800);
}
.btn-order--secondary,
.btn-order--draft {
    background: transparent;
    border: 1px solid var(--c200);
    color: var(--c700);
    padding: 15px 25px;
    font-size: 14px;
    letter-spacing: 0.35px;
    text-transform: uppercase;
}
.btn-order--draft {
    background: white;
    color: var(--c600);
}
.btn-order--secondary:hover,
.btn-order--draft:hover {
    background: var(--c50);
}
.btn-order--light {
    background: var(--c50);
    color: var(--c600);
}
.btn-order--light:hover {
    background: var(--c100);
}
.btn-order--orange {
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
}
.btn-order--orange:hover {
    background: rgba(249, 115, 22, 0.2);
}

/* ── Modal ── */
.modal {
    border: none;
    padding: 0;
    max-width: 100vw;
    max-height: 100vh;
    background: transparent;
    overflow: visible;
}
.modal::backdrop {
    background: rgba(17, 24, 39, 0.4);
    backdrop-filter: blur(2px);
    animation: fadeIn 0.2s ease-out;
}
.modal[open] {
    animation: fadeIn 0.2s ease-out;
}
.modal[open] .modal-window {
    animation: slideUp 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    padding: 24px;
}
.modal-window {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 896px;
    max-height: calc(100vh - 48px);
    background: white;
    border-radius: var(--r32);
    box-shadow: var(--shadow-lg);
    overflow: auto;
}
.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    background: var(--c50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-close:hover {
    background: var(--c100);
}

.modal-left {
    width: 373px;
    background: var(--c50);
    border-right: 1px solid var(--c100);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex-shrink: 0;
}
.modal-right {
    flex: 1;
    padding: 48px;
    max-width: 522px;
}
.modal-right .inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-black);
    line-height: 28px;
}
.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-black);
    line-height: 32px;
}
.modal-description {
    font-size: 14px;
    color: var(--c500);
    line-height: 22.75px;
    margin-bottom: 8px;
}

/* ── Modal: caregiver ── */
.caregiver-card {
    background: white;
    border: 1px solid var(--c100);
    border-radius: var(--r16);
    padding: 17px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.caregiver-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}
.caregiver-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--c200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    color: var(--color-black);
}
.caregiver-verified {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    background: #22c55e;
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.caregiver-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.caregiver-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-black);
    line-height: 20px;
}
.caregiver-note {
    font-size: 14px;
    color: var(--c500);
    line-height: 22.75px;
    margin-top: -8px;
}

/* ── Modal: services ── */
.modal-services {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}
.modal-services-title {
    font-size: 10px;
    font-weight: 700;
    color: var(--color-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 15px;
}
.services-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.service-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: var(--c700);
    line-height: 20px;
}
.service-item svg {
    flex-shrink: 0;
}

.modal-total {
    border-top: 1px solid var(--c200);
    padding-top: 17px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.modal-total-label {
    font-size: 12px;
    color: var(--c500);
    line-height: 16px;
}
.modal-total-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
}
.price-period {
    font-size: 16px;
    color: var(--c500);
    line-height: 24px;
}

/* ── Modal: divider ── */
.modal-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 8px 0;
}
.modal-divider::before,
.modal-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--c100);
}
.modal-divider span {
    font-size: 10px;
    font-weight: 700;
    color: var(--color-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 15px;
}

/* ── ESIA button ── */
.btn-esia {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #0d6efd;
    border-radius: var(--r16);
    box-shadow:
        0px 10px 15px -3px rgba(59, 130, 246, 0.2),
        0px 4px 6px -4px rgba(59, 130, 246, 0.2);
}
.btn-esia:hover {
    background: #0b5ed7;
}
.esia-icon {
    background: white;
    padding: 6px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
}
.esia-text {
    text-align: left;
    flex: 1;
}
.esia-title {
    font-size: 16px;
    font-weight: 700;
    color: white;
    line-height: 24px;
}
.esia-subtitle {
    font-size: 12px;
    color: #dbeafe;
    line-height: 16px;
    opacity: 0.9;
}

/* ── File upload ── */
.download-link {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 500;
    color: var(--blue);
    line-height: 20px;
}
.download-link:hover {
    color: #1d4ed8;
}
.download-note {
    font-size: 12px;
    color: var(--c500);
    line-height: 16px;
    margin-top: -12px;
}

.dropzone {
    border: 2px dashed var(--c200);
    border-radius: var(--r16);
    padding: 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.dropzone:hover {
    border-color: var(--c300);
    background: var(--c50);
}
.dropzone.dragover {
    border-color: var(--blue);
    background: #eff6ff;
}
.dropzone-icon {
    width: 40px;
    height: 40px;
    background: var(--c100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}
.dropzone-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--c700);
    line-height: 20px;
}
.dropzone-hint {
    font-size: 12px;
    color: var(--color-gray);
    line-height: 16px;
}

.files-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 430px;
}
.file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid var(--c200);
    border-radius: 12px;
}
.file-icon {
    width: 40px;
    height: 40px;
    background: white;
    border: 1px solid var(--c200);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.file-info {
    flex: 1;
    min-width: 0;
}
.file-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-black);
    line-height: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.file-size {
    font-size: 12px;
    color: var(--c500);
    line-height: 16px;
}
.file-remove {
    width: 32px;
    height: 32px;
    background: transparent;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.file-remove:hover {
    background: #fee2e2;
}

.btn-submit-files {
    padding: 16px 32px;
    background: var(--color-black);
    color: white;
    border-radius: var(--pill);
    font-size: 16px;
    font-weight: 500;
}
.btn-submit-files:hover {
    background: var(--c800);
}

/* ─── Global Loader ─────────────────────────────────────────────────────────────── */
.global-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.global-loader.active {
    opacity: 1;
    pointer-events: all;
}

.global-loader__spinner {
    width: 48px;
    height: 48px;
}

.global-loader__spinner-inner {
    width: 100%;
    height: 100%;
    border: 4px solid rgba(230, 204, 202, 0.3);
    border-top-color: #e6ccca;
    border-radius: 50%;
    animation: global-loader-spin 0.8s linear infinite;
}

@keyframes global-loader-spin {
    to {
        transform: rotate(360deg);
    }
}