/* HERO */
.bc3-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 25px 27px;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(115deg,
            #5043a0 0%,
            #6855c4 60%,
            #8670ce 100%);
    box-shadow: 0 9px 25px rgba(71, 53, 138, .12);
}

.bc3-hero::before,
.bc3-hero::after {
    content: '';
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
}

.bc3-hero::before {
    width: 260px;
    height: 260px;
    right: -45px;
    top: -180px;
    border: 1px solid rgba(255, 255, 255, .18);
}

.bc3-hero::after {
    width: 190px;
    height: 190px;
    right: 45px;
    bottom: -145px;
    background: rgba(255, 255, 255, .055);
}

.bc3-hero__layout {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.bc3-hero__content {
    min-width: 0;
    max-width: 760px;
}

.bc3-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 12px;
    padding: 6px 11px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 30px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.bc3-title {
    margin: 0;
    color: #fff;
    font-size: clamp(23px, 2.3vw, 31px);
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: -.03em;
    overflow-wrap: anywhere;
}

.bc3-lead {
    max-width: 630px;
    margin: 10px 0 0;
    color: rgba(255, 255, 255, .88);
    font-size: 14px;
    line-height: 1.6;
}

.bc3-profile {
    display: flex;
    align-items: center;
    gap: 7px;
    max-width: 100%;
    margin-top: 15px;
    color: #fff;
    font-size: 12px;
    font-weight: 650;
}

.bc3-profile span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.bc3-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 13px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 10px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: background .16s ease;
}

.bc3-back:hover {
    color: #fff;
    background: rgba(255, 255, 255, .23);
    border-color: #fff;
}

/* STEPS */
.bc3-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bc3-step {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    padding: 12px 13px;
    border: 1px solid var(--bc-border);
    border-radius: 12px;
    background: var(--bc-surface);
}

.bc3-step--current {
    background: #faf8ff;
    border-color: #c9bdf5;
}

.bc3-step__number {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: var(--bc-soft);
    color: var(--bc-primary);
    font-size: 13px;
    font-weight: 800;
}

.bc3-step--current .bc3-step__number {
    background: var(--bc-primary);
    color: #fff;
}

.bc3-step__text {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.bc3-step__text strong {
    color: var(--bc-text);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.3;
}

.bc3-step__text small {
    color: var(--bc-muted);
    font-size: 12px;
    line-height: 1.4;
}

/* LAYOUT */
.bc3-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.bc3-panel {
    min-width: 0;
    padding: 22px 23px;
    border: 1px solid var(--bc-border);
    border-radius: 15px;
    background: var(--bc-surface);
    box-shadow: 0 3px 15px rgba(21, 24, 43, .04);
}

.bc3-panel__head {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 17px;
}

.bc3-panel__icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 11px;
    background: var(--bc-soft);
    color: var(--bc-primary);
    font-size: 18px;
}

.bc3-panel__copy {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.bc3-panel__copy h2 {
    margin: 0;
    color: var(--bc-text);
    font-size: 16px;
    font-weight: 750;
}

.bc3-panel__copy p {
    margin: 0;
    color: var(--bc-muted);
    font-size: 13px;
    line-height: 1.5;
}

/* EXISTING YII2 FORM */
.bc3-form,
.bc3-form form {
    min-width: 0;
}

.bc3-form :is(textarea,
    select,
    input:not([type=checkbox]):not([type=radio])) {
    max-width: 100%;
}

.bc3-form :is(.form-control, .form-select) {
    border: 1px solid #daddea;
    border-radius: 10px;
    background-color: #fff;
    color: var(--bc-text);
    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}

.bc3-form :is(.form-control, .form-select):focus {
    border-color: var(--bc-primary);
    box-shadow: 0 0 0 3px rgba(103, 86, 200, .12);
}

.bc3-form textarea.form-control {
    min-height: 210px;
    line-height: 1.65;
    resize: vertical;
}

.bc3-form .form-label {
    color: var(--bc-text);
    font-size: 13px;
    font-weight: 650;
}

.bc3-form :is(button[type=submit],
    input[type=submit],
    .btn-primary) {
    min-height: 42px;
    border-radius: 10px;
    font-weight: 700;
}

.bc3-form .form-check-input:checked {
    background-color: var(--bc-primary);
    border-color: var(--bc-primary);
}

.bc3-form input[type=file] {
    width: 100%;
}

.bc3-form input[type=file]::file-selector-button {
    padding: 10px 12px;
    margin-right: 11px;
    border: 0;
    border-right: 1px solid var(--bc-border);
    background: var(--bc-soft);
    color: var(--bc-primary);
}

/* SIDEBAR */
.bc3-aside {
    display: grid;
    min-width: 0;
    gap: 13px;
}

.bc3-aside__panel {
    min-width: 0;
    padding: 17px;
    border: 1px solid var(--bc-border);
    border-radius: 14px;
    background: #fafbfe;
}

.bc3-aside__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--bc-text);
    font-size: 15px;
    font-weight: 750;
}

.bc3-aside__title i {
    color: var(--bc-primary);
    font-size: 17px;
}

p.bc3-aside__description {
    margin: 7px 0 13px;
    color: var(--bc-muted);
    font-size: 13px;
    line-height: 1.55;
}

.bc3-snippets {
    display: grid;
    gap: 7px;
}

.bc3-snippet {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-width: 0;
    min-height: 43px;
    padding: 10px 11px;
    border: 1px solid #e2ddf2;
    border-radius: 9px;
    background: #fff;
    text-align: left;
    cursor: pointer;
    transition:
        background .15s ease,
        border-color .15s ease;
}

.bc3-snippet:hover {
    background: #f3f0ff;
    border-color: #bfb3ef;
}

.bc3-snippet code {
    min-width: 0;
    color: #5947a8;
    font-size: 12px;
    font-weight: 700;
    white-space: normal;
    overflow-wrap: anywhere;
}

.bc3-snippet i {
    flex: 0 0 auto;
    color: var(--bc-primary);
}

p.bc3-aside__hint {
    margin: 10px 0 0;
    color: var(--bc-muted);
    font-size: 13px;
    line-height: 1.5;
}

.bc3-status {
    min-height: 18px;
    margin-top: 7px;
    color: #18734f;
    font-size: 13px;
}

.bc3-counter {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--bc-border);
    color: var(--bc-muted);
    font-size: 13px;
}

.bc3-counter strong {
    color: var(--bc-text);
    font-variant-numeric: tabular-nums;
}

/* PREVIEW */
.bc3-preview {
    overflow: hidden;
    margin-top: 12px;
    border: 1px solid var(--bc-border);
    border-radius: 10px;
    background: #fff;
}

.bc3-preview summary {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 12px;
    cursor: pointer;
    list-style: none;
    color: var(--bc-text);
    font-size: 13px;
    font-weight: 700;
}

.bc3-preview summary::-webkit-details-marker {
    display: none;
}

.bc3-preview summary::after {
    content: '+';
    margin-left: auto;
    color: var(--bc-primary);
    font-size: 18px;
}

.bc3-preview[open] summary::after {
    content: '−';
}

.bc3-preview__body {
    padding: 12px;
    border-top: 1px solid var(--bc-border);
}

.bc3-preview__text {
    max-height: 270px;
    margin: 0;
    overflow-y: auto;
    overflow-wrap: anywhere;
    color: var(--bc-text);
    font-size: 13px;
    line-height: 1.65;
    white-space: pre-wrap;
}

.bc3-preview__note {
    margin: 10px 0 0;
    color: var(--bc-muted);
    font-size: 13px;
    line-height: 1.5;
}

/* SHARED HELP */
.bc3-help {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--bc-border);
    border-radius: 14px;
    background: var(--bc-surface);
}

.bc3-help summary {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 65px;
    padding: 13px 18px;
    cursor: pointer;
    list-style: none;
}

.bc3-help summary::-webkit-details-marker {
    display: none;
}

.bc3-help__icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 10px;
    background: var(--bc-soft);
    color: var(--bc-primary);
    font-size: 17px;
}

.bc3-help__copy {
    display: grid;
    flex: 1;
    min-width: 0;
    gap: 3px;
}

.bc3-help__copy strong {
    color: var(--bc-text);
    font-size: 14px;
}

.bc3-help__copy small {
    color: var(--bc-muted);
    font-size: 13px;
    line-height: 1.4;
}

.bc3-help__chevron {
    color: var(--bc-primary);
    transition: transform .16s ease;
}

.bc3-help[open] .bc3-help__chevron {
    transform: rotate(180deg);
}

.bc3-help__body {
    min-width: 0;
    padding: 2px 18px 19px;
    border-top: 1px solid var(--bc-border);
    overflow-wrap: anywhere;
}

.bc3-help__body :is(img, video, iframe) {
    max-width: 100%;
}

