/* ITKapocs v27.3 – Professional Provider Onboarding UI */

.itkOnboardingShell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 18px 54px;
}

.itkOnboardingHero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 24px;
    align-items: center;
    margin-bottom: 22px;
    padding: 34px;
    border: 1px solid rgba(191, 219, 254, .95);
    border-radius: 32px;
    background:
        radial-gradient(circle at 12% 20%, rgba(37, 99, 235, .12), transparent 30%),
        linear-gradient(135deg, rgba(255,255,255,.98), rgba(239,246,255,.88));
    box-shadow: 0 28px 80px rgba(15, 23, 42, .08);
}

.itkEyebrow {
    display: inline-flex;
    align-items: center;
    width: max-content;
    padding: 8px 13px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 12px;
    font-weight: 900;
}

.itkHeroContent h1 {
    margin: 14px 0 10px;
    color: #0f172a;
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1.02;
    letter-spacing: -.055em;
}

.itkHeroContent p,
.itkHeroProgress p {
    margin: 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.7;
}

.itkHeroProgress {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 18px;
    border-radius: 26px;
    background: rgba(255,255,255,.78);
    border: 1px solid #e2e8f0;
}

.itkProgressRing {
    --size: 142px;
    --track: #eaf2ff;
    --value: #2563eb;
    width: var(--size);
    height: var(--size);
    border-radius: 999px;
    display: grid;
    place-items: center;
    background:
        conic-gradient(var(--value) calc(var(--progress) * 1%), var(--track) 0);
    box-shadow: inset 0 0 0 1px rgba(37,99,235,.08);
}

.itkProgressRing > div {
    width: 104px;
    height: 104px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    align-content: center;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15,23,42,.08);
}

.itkProgressRing strong {
    color: #0f172a;
    font-size: 30px;
    line-height: 1;
}

.itkProgressRing span {
    margin-top: 5px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.itkOnboardingGrid {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.itkSetupPanel,
.itkFormPanel {
    border: 1px solid #dbeafe;
    border-radius: 28px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 24px 70px rgba(15, 23, 42, .07);
}

.itkSetupPanel {
    position: sticky;
    top: 92px;
    padding: 22px;
}

.itkFormPanel {
    padding: 24px;
}

.itkCompanyMiniCard {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(135deg, #0f3b82, #2563eb);
    color: #fff;
    box-shadow: 0 18px 45px rgba(37,99,235,.24);
}

.itkCompanyAvatar {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.18);
    color: #fff;
    font-size: 24px;
    font-weight: 900;
}

.itkCompanyMiniCard h2 {
    margin: 0 0 4px;
    font-size: 18px;
    line-height: 1.2;
}

.itkCompanyMiniCard p {
    margin: 0;
    color: rgba(255,255,255,.78);
    font-size: 13px;
    word-break: break-word;
}

.itkProgressBlock {
    margin-top: 18px;
    padding: 16px;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.itkProgressTop {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    color: #334155;
    font-size: 13px;
    font-weight: 900;
}

.itkProgressTrack {
    height: 12px;
    border-radius: 999px;
    background: #eaf2ff;
    overflow: hidden;
}

.itkProgressTrack span,
.miniProgress.large span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb, #0ea5e9);
    box-shadow: 0 10px 22px rgba(37,99,235,.22);
}

.itkChecklist {
    margin-top: 18px;
}

.itkChecklist h3 {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: 16px;
}

.itkChecklistItem {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #eef2f7;
}

.itkChecklistItem span {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #fff7ed;
    color: #c2410c;
    font-size: 12px;
    font-weight: 900;
}

.itkChecklistItem.isDone span {
    background: #dcfce7;
    color: #15803d;
}

.itkChecklistItem p {
    margin: 0;
    color: #334155;
    font-size: 13px;
    font-weight: 800;
}

.itkMissingBox {
    margin-top: 18px;
    padding: 14px;
    border-radius: 18px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

.itkMissingBox strong {
    color: #9a3412;
    font-size: 13px;
}

.itkMissingBox p {
    margin: 6px 0 0;
    color: #9a3412;
    font-size: 13px;
    line-height: 1.55;
}

.itkOnboardingForm {
    display: grid;
    gap: 18px;
}

.itkFormSection {
    padding: 22px;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    background: linear-gradient(180deg, #fff, #f8fbff);
}

.itkSectionHead {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.itkSectionHead > span {
    width: 36px;
    height: 36px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    background: #2563eb;
    color: #fff;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(37,99,235,.20);
}

.itkSectionHead h2 {
    margin: 0 0 4px;
    color: #0f172a;
    font-size: 22px;
    letter-spacing: -.02em;
}

.itkSectionHead p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.55;
}

.itkFieldGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 16px;
}

.itkFieldGrid label,
.itkFullField {
    display: grid;
    gap: 8px;
    color: #334155;
    font-size: 13px;
    font-weight: 900;
}

.itkOnboardingForm input,
.itkOnboardingForm textarea {
    width: 100%;
    border: 1px solid #dbe5f1;
    border-radius: 16px;
    background: #fff;
    color: #0f172a;
    font: inherit;
    font-weight: 650;
    padding: 14px 15px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.itkOnboardingForm textarea {
    resize: vertical;
    min-height: 112px;
    line-height: 1.55;
}

.itkOnboardingForm input:focus,
.itkOnboardingForm textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}

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

.itkMiniBtn {
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    padding: 9px 13px;
    font-weight: 900;
    cursor: pointer;
}

.itkMiniBtn.ghost {
    background: #fff;
    color: #334155;
    border-color: #e2e8f0;
}

.itkCityGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.checkboxCard.itkCityCard {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 13px 15px;
    border: 1px solid #dbe5f1;
    border-radius: 16px;
    background: #fff;
    color: #334155;
    font-weight: 850;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.checkboxCard.itkCityCard:hover {
    transform: translateY(-2px);
    border-color: #93c5fd;
    box-shadow: 0 14px 28px rgba(15,23,42,.08);
}

.checkboxCard.itkCityCard.isChecked,
.checkboxCard.itkCityCard:has(input:checked) {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 12px 28px rgba(37,99,235,.12);
}

.checkboxCard.itkCityCard input {
    width: 16px;
    height: 16px;
    accent-color: #2563eb;
}

.itkActionBar {
    position: sticky;
    bottom: 14px;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    border: 1px solid #dbeafe;
    border-radius: 22px;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(14px);
    box-shadow: 0 20px 55px rgba(15,23,42,.12);
}

.itkActionBar strong {
    color: #0f172a;
}

.itkActionBar p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 13px;
}

.itkPrimaryBtn {
    min-width: 170px;
    justify-content: center;
}

/* JS support */
.onboardingClientNotice {
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .25s ease, transform .25s ease;
    margin-bottom: 16px;
}
.onboardingClientNotice.isVisible {
    opacity: 1;
    transform: translateY(0);
}
.alert.error {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
}
.alert.success {
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    color: #166534;
}
.fieldInvalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 4px rgba(239,68,68,.12) !important;
}
.fieldValid {
    border-color: #cbd5e1 !important;
}
.cityCounter,
.textareaCounter,
.onboardingLiveHint {
    color: #64748b;
    font-size: 13px;
    margin: 8px 0 12px;
}
.warningText {
    color: #b45309 !important;
}

@media (max-width: 980px) {
    .itkOnboardingHero,
    .itkOnboardingGrid {
        grid-template-columns: 1fr;
    }

    .itkSetupPanel {
        position: static;
    }

    .itkHeroProgress {
        justify-items: start;
    }

    .itkProgressRing {
        --size: 116px;
    }

    .itkProgressRing > div {
        width: 84px;
        height: 84px;
    }

    .itkProgressRing strong {
        font-size: 24px;
    }
}

@media (max-width: 720px) {
    .itkOnboardingShell {
        padding: 16px 12px 38px;
    }

    .itkOnboardingHero,
    .itkSetupPanel,
    .itkFormPanel,
    .itkFormSection {
        border-radius: 22px;
        padding: 18px;
    }

    .itkFieldGrid {
        grid-template-columns: 1fr;
    }

    .itkActionBar {
        position: static;
        flex-direction: column;
        align-items: stretch;
    }

    .itkPrimaryBtn {
        width: 100%;
    }
}
