:root {
    --a1cf-primary: #087f8c;
    --a1cf-primary-dark: #075965;
    --a1cf-deep: #092f36;
    --a1cf-accent: #2bbdca;
    --a1cf-light: #e8f8f9;
    --a1cf-bg: #f6fbfb;
    --a1cf-white: #fff;
    --a1cf-text: #607478;
    --a1cf-border: rgba(8, 127, 140, .17);
    --a1cf-shadow: 0 18px 45px rgba(7, 76, 85, .12);
}

.a1cf,
.a1cf * {
    box-sizing: border-box;
}

.a1cf {
    width: 100%;
    padding: 34px 20px;
    font-family: "Poppins", sans-serif;
}

.a1cf a,
.a1cf a:hover,
.a1cf a:focus,
.a1cf a:active {
    text-decoration: none !important;
}

.a1cf button,
.a1cf textarea {
    font: inherit;
}

.a1cf button {
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none;
    text-transform: none;
}

.a1cf__inner {
    display: grid;
    grid-template-columns: 1.05fr 1.3fr auto;
    align-items: center;
    gap: 28px;
    width: min(1220px, 100%);
    margin: 0 auto;
    padding: 27px 28px;
    background:
        radial-gradient(circle at 5% 10%, rgba(43, 189, 202, .12), transparent 30%),
        var(--a1cf-bg);
    border: 1px solid var(--a1cf-border);
    border-radius: 25px;
}

.a1cf__eyebrow {
    display: inline-block;
    margin-bottom: 7px;
    color: var(--a1cf-primary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.a1cf__copy h2 {
    margin: 0 0 8px;
    color: var(--a1cf-deep);
    font-size: clamp(24px, 2.5vw, 34px);
    line-height: 1.22;
    letter-spacing: -.9px;
}

.a1cf__copy p {
    margin: 0;
    color: var(--a1cf-text);
    font-size: 12px;
    line-height: 1.65;
}

.a1cf__paths {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.a1cf__path {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 72px;
    padding: 12px;
    text-align: left;
    cursor: pointer;
    color: var(--a1cf-deep);
    background: var(--a1cf-white);
    border: 1px solid var(--a1cf-border);
    border-radius: 15px;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.a1cf__path:hover,
.a1cf__path:focus-visible {
    border-color: rgba(8, 127, 140, .42);
    box-shadow: 0 10px 24px rgba(7, 76, 85, .09);
    transform: translateY(-2px);
}

.a1cf__path-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    color: var(--a1cf-white);
    font-size: 12px;
    font-weight: 700;
    background: linear-gradient(145deg, var(--a1cf-accent), var(--a1cf-primary-dark));
    border-radius: 11px;
}

.a1cf__path strong,
.a1cf__path small {
    display: block;
}

.a1cf__path strong {
    margin-bottom: 3px;
    font-size: 11px;
    line-height: 1.35;
}

.a1cf__path small {
    color: var(--a1cf-text);
    font-size: 8px;
    line-height: 1.4;
}

.a1cf__actions {
    display: grid;
    gap: 8px;
    min-width: 170px;
}

.a1cf__primary,
.a1cf__secondary {
    min-height: 43px;
    padding: 0 17px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    border-radius: 11px;
    transition: transform .2s ease, background-color .2s ease, color .2s ease;
}

.a1cf__primary {
    color: var(--a1cf-white);
    background: var(--a1cf-primary);
    border: 1px solid var(--a1cf-primary);
}

.a1cf__primary:hover {
    background: var(--a1cf-primary-dark);
    transform: translateY(-2px);
}

.a1cf__secondary {
    color: var(--a1cf-primary-dark);
    background: var(--a1cf-white);
    border: 1px solid var(--a1cf-border);
}

.a1cf__secondary:hover {
    background: var(--a1cf-light);
    transform: translateY(-2px);
}

.a1cf__actions > small {
    text-align: center;
    color: var(--a1cf-text);
    font-size: 8px;
}

.a1cf-modal[hidden] {
    display: none;
}

.a1cf-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: grid;
    place-items: center;
    padding: 18px;
}

.a1cf-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 29, 33, .62);
    backdrop-filter: blur(5px);
}

.a1cf-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(690px, 100%);
    max-height: min(680px, calc(100vh - 36px));
    overflow: auto;
    background: var(--a1cf-white);
    border: 1px solid var(--a1cf-border);
    border-radius: 22px;
    box-shadow: 0 30px 90px rgba(3, 35, 40, .28);
}

.a1cf-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 22px 14px;
}

.a1cf-modal__header span {
    color: var(--a1cf-primary);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

.a1cf-modal__header h3 {
    margin: 4px 0 0;
    color: var(--a1cf-deep);
    font-size: 22px;
    line-height: 1.25;
}

.a1cf-modal__close {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    cursor: pointer;
    color: var(--a1cf-deep);
    background: var(--a1cf-light);
    border: 0;
    border-radius: 12px;
}

.a1cf-modal__close span {
    color: inherit;
    font-size: 25px;
    font-weight: 400;
    line-height: 1;
}

.a1cf-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin: 0 22px;
    padding: 5px;
    background: var(--a1cf-bg);
    border: 1px solid var(--a1cf-border);
    border-radius: 12px;
}

.a1cf-tab {
    min-height: 38px;
    cursor: pointer;
    color: var(--a1cf-text);
    font-size: 11px;
    font-weight: 600;
    background: transparent;
    border: 0;
    border-radius: 9px;
}

.a1cf-tab.is-active {
    color: var(--a1cf-white);
    background: var(--a1cf-primary);
}

.a1cf-panel {
    display: none;
    padding: 22px;
}

.a1cf-panel.is-active {
    display: block;
}

.a1cf-progress {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
    margin-bottom: 22px;
}

.a1cf-progress span {
    height: 4px;
    background: #e4edef;
    border-radius: 20px;
}

.a1cf-progress span.is-active {
    background: var(--a1cf-primary);
}

.a1cf-step {
    display: none;
}

.a1cf-step.is-active {
    display: block;
}

.a1cf-question {
    margin: 0 0 17px;
    color: var(--a1cf-deep);
    font-size: 17px;
    font-weight: 600;
}

.a1cf-options {
    display: grid;
    gap: 10px;
}

.a1cf-options button {
    min-height: 52px;
    padding: 11px 14px;
    text-align: left;
    cursor: pointer;
    color: var(--a1cf-deep);
    font-size: 12px;
    font-weight: 500;
    background: var(--a1cf-bg);
    border: 1px solid var(--a1cf-border);
    border-radius: 12px;
}

.a1cf-options button:hover,
.a1cf-options button:focus-visible {
    color: var(--a1cf-primary-dark);
    background: var(--a1cf-light);
    border-color: rgba(8, 127, 140, .38);
}

.a1cf-back,
.a1cf-link-button {
    margin-top: 15px;
    padding: 0;
    cursor: pointer;
    color: var(--a1cf-primary);
    font-size: 10px;
    font-weight: 600;
    background: transparent;
    border: 0;
}

.a1cf-result {
    padding: 20px;
    background: var(--a1cf-bg);
    border: 1px solid var(--a1cf-border);
    border-radius: 16px;
}

.a1cf-result__label {
    display: inline-block;
    margin-bottom: 7px;
    color: var(--a1cf-primary);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.a1cf-result h4 {
    margin: 0 0 8px;
    color: var(--a1cf-deep);
    font-size: 21px;
}

.a1cf-result p {
    margin: 0 0 16px;
    color: var(--a1cf-text);
    font-size: 12px;
    line-height: 1.7;
}

.a1cf-result a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    color: var(--a1cf-white);
    font-size: 11px;
    font-weight: 600;
    background: var(--a1cf-primary);
    border-radius: 10px;
}

.a1cf-result-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.a1cf-chat__messages {
    display: grid;
    gap: 10px;
    max-height: 280px;
    overflow-y: auto;
    padding: 4px 2px 12px;
}

.a1cf-message {
    max-width: 86%;
    padding: 11px 13px;
    border-radius: 13px;
}

.a1cf-message p {
    margin: 0;
    white-space: pre-line;
    font-size: 11px;
    line-height: 1.65;
}

.a1cf-message--assistant {
    justify-self: start;
    color: var(--a1cf-deep);
    background: var(--a1cf-light);
    border-bottom-left-radius: 4px;
}

.a1cf-message--user {
    justify-self: end;
    color: var(--a1cf-white);
    background: var(--a1cf-primary);
    border-bottom-right-radius: 4px;
}

.a1cf-message--loading p::after {
    content: "...";
    animation: a1cfDots 1s infinite;
}

@keyframes a1cfDots {
    0%, 20% { opacity: .2; }
    50% { opacity: 1; }
    100% { opacity: .2; }
}

.a1cf-prompts {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 8px 0 15px;
}

.a1cf-prompts button {
    padding: 7px 9px;
    cursor: pointer;
    color: var(--a1cf-primary-dark);
    font-size: 8px;
    background: var(--a1cf-white);
    border: 1px solid var(--a1cf-border);
    border-radius: 20px;
}

.a1cf-chat__form label {
    display: block;
    margin-bottom: 6px;
    color: var(--a1cf-deep);
    font-size: 10px;
    font-weight: 600;
}

.a1cf-chat__input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.a1cf-chat__input-row textarea {
    width: 100%;
    min-height: 62px;
    resize: vertical;
    padding: 10px 12px;
    color: var(--a1cf-deep);
    font-size: 11px;
    line-height: 1.55;
    background: var(--a1cf-bg);
    border: 1px solid var(--a1cf-border);
    border-radius: 11px;
}

.a1cf-chat__input-row button {
    align-self: stretch;
    min-width: 82px;
    cursor: pointer;
    color: var(--a1cf-white);
    font-size: 11px;
    font-weight: 600;
    background: var(--a1cf-primary);
    border: 0;
    border-radius: 11px;
}

.a1cf-chat__form > small {
    display: block;
    margin-top: 7px;
    color: var(--a1cf-text);
    font-size: 8px;
    line-height: 1.5;
}

body.a1cf-lock {
    overflow: hidden;
}

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

    .a1cf__copy {
        text-align: center;
    }

    .a1cf__copy p {
        max-width: 650px;
        margin: 0 auto;
    }

    .a1cf__actions {
        grid-template-columns: 1fr 1fr;
        width: min(440px, 100%);
        margin: 0 auto;
    }

    .a1cf__actions > small {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {
    .a1cf {
        padding: 24px 14px;
    }

    .a1cf__inner {
        padding: 23px 18px;
        border-radius: 20px;
    }

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

    .a1cf__path {
        min-height: 64px;
    }

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

    .a1cf__actions > small {
        grid-column: auto;
    }

    .a1cf-modal {
        align-items: end;
        padding: 0;
    }

    .a1cf-modal__dialog {
        width: 100%;
        max-height: 92vh;
        border-radius: 21px 21px 0 0;
    }

    .a1cf-modal__header,
    .a1cf-panel {
        padding-right: 16px;
        padding-left: 16px;
    }

    .a1cf-tabs {
        margin-right: 16px;
        margin-left: 16px;
    }

    .a1cf-chat__input-row {
        grid-template-columns: 1fr;
    }

    .a1cf-chat__input-row button {
        min-height: 43px;
    }
}
