.psh-ai-intake,
.psh-ai-intake * {
    box-sizing: border-box;
}

.psh-ai-intake {
    --psh-ai-accent: #8b5cf6;
    --psh-ai-accent-rgb: 139, 92, 246;
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    color: #f8fafc;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.psh-ai-shell {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 28px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .045), transparent 34%),
        rgba(9, 9, 13, .94);
    box-shadow:
        0 28px 80px rgba(0, 0, 0, .45),
        inset 0 1px 0 rgba(255, 255, 255, .06);
    backdrop-filter: blur(24px);
}

.psh-ai-shell::before {
    position: absolute;
    z-index: 0;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .5), transparent 70%);
    content: "";
}

.psh-ai-ambient {
    position: absolute;
    z-index: 0;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(110px);
    opacity: .18;
}

.psh-ai-ambient-one {
    top: -210px;
    right: -110px;
    background: var(--psh-ai-accent);
}

.psh-ai-ambient-two {
    bottom: -280px;
    left: -130px;
    background: #2563eb;
    opacity: .12;
}

.psh-ai-header,
.psh-ai-progress-wrap,
.psh-ai-stage,
.psh-ai-footer {
    position: relative;
    z-index: 1;
}

.psh-ai-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px 18px;
}

.psh-ai-brand {
    display: flex;
    gap: 12px;
    align-items: center;
}

.psh-ai-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 13px;
    color: #ddd6fe;
    background: linear-gradient(145deg, rgba(139, 92, 246, .2), rgba(255, 255, 255, .025));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
}

.psh-ai-mark svg {
    width: 24px;
    height: 24px;
}

.psh-ai-brand strong,
.psh-ai-eyebrow {
    display: block;
}

.psh-ai-eyebrow {
    margin-bottom: 3px;
    color: #a78bfa;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .18em;
}

.psh-ai-brand strong {
    color: #f8fafc;
    font-size: 14px;
    font-weight: 650;
}

.psh-ai-live {
    display: flex;
    gap: 7px;
    align-items: center;
    padding: 7px 11px;
    border: 1px solid rgba(74, 222, 128, .14);
    border-radius: 99px;
    color: #86efac;
    background: rgba(22, 163, 74, .07);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.psh-ai-live span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 4px rgba(74, 222, 128, .1), 0 0 12px rgba(74, 222, 128, .8);
    animation: pshAiPulse 2s infinite;
}

.psh-ai-progress-wrap {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 0 30px;
}

.psh-ai-progress-track {
    position: relative;
    flex: 1;
    height: 3px;
    overflow: hidden;
    border-radius: 10px;
    background: rgba(255, 255, 255, .07);
}

.psh-ai-progress-bar {
    display: block;
    width: 4%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--psh-ai-accent), #c4b5fd);
    box-shadow: 0 0 16px rgba(139, 92, 246, .55);
    transition: width .55s cubic-bezier(.22, 1, .36, 1);
}

.psh-ai-progress-text {
    min-width: 82px;
    color: #71717a;
    font-size: 10px;
    font-weight: 700;
    text-align: right;
    text-transform: uppercase;
}

.psh-ai-stage {
    display: flex;
    min-height: 480px;
    padding: 48px 76px 42px;
    align-items: center;
    justify-content: center;
    transition: opacity .15s ease, transform .15s ease;
}

.psh-ai-stage.is-changing {
    opacity: 0;
    transform: translateY(5px);
}

.psh-ai-intro-copy {
    display: none;
}

.psh-ai-question,
.psh-ai-thinking,
.psh-ai-success,
.psh-ai-fatal-error,
.psh-ai-loading {
    width: 100%;
    animation: pshAiEnter .4s cubic-bezier(.22, 1, .36, 1) both;
}

.psh-ai-question-head {
    max-width: 720px;
    margin-bottom: 28px;
}

.psh-ai-step-label {
    display: inline-flex;
    margin-bottom: 12px;
    color: #a78bfa;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .17em;
}

.psh-ai-question-head h2,
.psh-ai-thinking h2,
.psh-ai-success h2,
.psh-ai-fatal-error h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(27px, 4vw, 43px);
    font-weight: 650;
    line-height: 1.12;
    letter-spacing: -.035em;
}

.psh-ai-question-head p,
.psh-ai-thinking p,
.psh-ai-success p,
.psh-ai-fatal-error p {
    max-width: 680px;
    margin: 13px 0 0;
    color: #a1a1aa;
    font-size: 15px;
    line-height: 1.65;
}

.psh-ai-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.psh-ai-choice {
    position: relative;
    display: grid;
    min-height: 68px;
    grid-template-columns: 32px 1fr 22px;
    gap: 10px;
    align-items: center;
    padding: 14px 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 14px;
    color: #d4d4d8;
    background: rgba(255, 255, 255, .025);
    cursor: pointer;
    transition: border-color .2s ease, transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.psh-ai-choice:hover {
    border-color: rgba(167, 139, 250, .45);
    background: rgba(139, 92, 246, .07);
    transform: translateY(-1px);
}

.psh-ai-choice.is-selected {
    border-color: var(--psh-ai-accent);
    color: #fff;
    background: linear-gradient(135deg, rgba(139, 92, 246, .18), rgba(139, 92, 246, .06));
    box-shadow: 0 0 0 1px rgba(139, 92, 246, .12), 0 10px 30px rgba(0, 0, 0, .15);
}

.psh-ai-choice input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.psh-ai-choice-index {
    color: #52525b;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 10px;
    font-weight: 700;
}

.psh-ai-choice-text {
    font-size: 14px;
    font-weight: 560;
    line-height: 1.35;
}

.psh-ai-choice-check {
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    color: transparent;
    font-size: 10px;
    transition: all .2s ease;
}

.psh-ai-choice.is-selected .psh-ai-choice-check {
    border-color: var(--psh-ai-accent);
    color: #fff;
    background: var(--psh-ai-accent);
    box-shadow: 0 0 14px rgba(139, 92, 246, .5);
}

.psh-ai-yes-no {
    max-width: 520px;
}

.psh-ai-yes-no .psh-ai-choice {
    grid-template-columns: 1fr 22px;
    min-height: 74px;
}

.psh-ai-yes-no .psh-ai-choice-text {
    font-size: 16px;
}

.psh-ai-text-field {
    position: relative;
}

.psh-ai-text-field input,
.psh-ai-text-field textarea,
.psh-ai-contact-field input,
.psh-ai-repeater-row input {
    width: 100%;
    outline: none;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 14px;
    color: #fff;
    background: rgba(255, 255, 255, .035);
    font-family: inherit;
    font-size: 15px;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.psh-ai-text-field input {
    min-height: 58px;
    padding: 0 18px;
}

.psh-ai-text-field textarea {
    min-height: 154px;
    padding: 17px 18px 34px;
    line-height: 1.6;
    resize: vertical;
}

.psh-ai-text-field input::placeholder,
.psh-ai-text-field textarea::placeholder,
.psh-ai-contact-field input::placeholder,
.psh-ai-repeater-row input::placeholder {
    color: #52525b;
}

.psh-ai-text-field input:focus,
.psh-ai-text-field textarea:focus,
.psh-ai-contact-field input:focus,
.psh-ai-repeater-row input:focus {
    border-color: rgba(167, 139, 250, .75);
    background: rgba(139, 92, 246, .055);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, .08), 0 15px 35px rgba(0, 0, 0, .12);
}

.psh-ai-counter {
    position: absolute;
    right: 14px;
    bottom: 10px;
    color: #52525b;
    font-size: 10px;
}

.psh-ai-repeater {
    display: grid;
    gap: 12px;
}

.psh-ai-repeater-list {
    display: grid;
    gap: 8px;
}

.psh-ai-repeater-row {
    display: grid;
    grid-template-columns: 22px 1fr 34px;
    gap: 8px;
    align-items: center;
}

.psh-ai-repeater-row input {
    min-height: 50px;
    padding: 0 14px;
}

.psh-ai-drag-dot {
    color: #3f3f46;
    font-size: 10px;
    letter-spacing: -1px;
}

.psh-ai-repeater-row button,
.psh-ai-uploaded-file button {
    display: grid;
    width: 32px;
    height: 32px;
    padding: 0;
    place-items: center;
    outline: none;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 9px;
    color: #71717a;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
}

.psh-ai-repeater-row button:hover,
.psh-ai-uploaded-file button:hover {
    border-color: rgba(248, 113, 113, .25);
    color: #f87171;
    background: rgba(248, 113, 113, .06);
}

.psh-ai-add-row {
    justify-self: start;
    padding: 9px 13px;
    border: 1px dashed rgba(255, 255, 255, .12);
    border-radius: 10px;
    color: #a1a1aa;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
}

.psh-ai-add-row span {
    margin-right: 5px;
    color: #c4b5fd;
    font-size: 16px;
}

.psh-ai-add-row:hover {
    border-color: rgba(167, 139, 250, .35);
    color: #fff;
    background: rgba(139, 92, 246, .05);
}

.psh-ai-upload-zone {
    display: flex;
    min-height: 190px;
    padding: 28px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border: 1px dashed rgba(167, 139, 250, .35);
    border-radius: 18px;
    text-align: center;
    background: rgba(139, 92, 246, .035);
    cursor: pointer;
    transition: all .2s ease;
}

.psh-ai-upload-zone:hover,
.psh-ai-upload-zone.is-dragging {
    border-color: #a78bfa;
    background: rgba(139, 92, 246, .09);
    transform: translateY(-1px);
}

.psh-ai-upload-zone.is-uploading {
    pointer-events: none;
    opacity: .65;
}

.psh-ai-file-input {
    display: none;
}

.psh-ai-upload-icon {
    display: grid;
    width: 52px;
    height: 52px;
    margin-bottom: 13px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 16px;
    color: #c4b5fd;
    background: rgba(255, 255, 255, .04);
}

.psh-ai-upload-icon svg {
    width: 26px;
    height: 26px;
}

.psh-ai-upload-zone strong {
    color: #e4e4e7;
    font-size: 14px;
}

.psh-ai-upload-zone small {
    margin-top: 7px;
    color: #52525b;
    font-size: 11px;
}

.psh-ai-upload-list {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.psh-ai-uploaded-file {
    display: grid;
    grid-template-columns: 42px 1fr 34px;
    gap: 11px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    background: rgba(255, 255, 255, .025);
}

.psh-ai-file-symbol {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 10px;
    color: #c4b5fd;
    background: rgba(139, 92, 246, .12);
    font-size: 9px;
    font-weight: 800;
}

.psh-ai-uploaded-file strong,
.psh-ai-uploaded-file small {
    display: block;
}

.psh-ai-uploaded-file strong {
    overflow: hidden;
    color: #e4e4e7;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.psh-ai-uploaded-file small {
    margin-top: 3px;
    color: #52525b;
    font-size: 10px;
}

.psh-ai-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.psh-ai-contact-field span {
    display: block;
    margin-bottom: 7px;
    color: #a1a1aa;
    font-size: 11px;
    font-weight: 650;
}

.psh-ai-contact-field input {
    min-height: 52px;
    padding: 0 14px;
}

.psh-ai-privacy {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 16px;
    color: #71717a;
    cursor: pointer;
    font-size: 11px;
    line-height: 1.5;
}

.psh-ai-privacy input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--psh-ai-accent);
}

.psh-ai-privacy a {
    color: #a78bfa;
}

.psh-ai-error {
    min-height: 20px;
    margin-top: 10px;
    color: #f87171;
    font-size: 12px;
}

.psh-ai-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: center;
    margin-top: 17px;
}

.psh-ai-button {
    display: inline-flex;
    min-height: 48px;
    padding: 0 20px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    outline: none;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    transition: all .2s ease;
}

.psh-ai-button-primary {
    border: 1px solid rgba(255, 255, 255, .15);
    color: #fff;
    background: linear-gradient(135deg, var(--psh-ai-accent), #6d28d9);
    box-shadow: 0 10px 28px rgba(109, 40, 217, .22), inset 0 1px 0 rgba(255, 255, 255, .18);
}

.psh-ai-button-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 14px 34px rgba(109, 40, 217, .3), inset 0 1px 0 rgba(255, 255, 255, .2);
}

.psh-ai-button-primary svg {
    width: 18px;
    height: 18px;
    transition: transform .2s ease;
}

.psh-ai-button-primary:hover svg {
    transform: translateX(2px);
}

.psh-ai-button-back {
    justify-self: start;
    border: 1px solid rgba(255, 255, 255, .08);
    color: #a1a1aa;
    background: rgba(255, 255, 255, .025);
}

.psh-ai-button-back:hover {
    border-color: rgba(255, 255, 255, .16);
    color: #fff;
}

.psh-ai-thinking,
.psh-ai-success,
.psh-ai-fatal-error,
.psh-ai-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.psh-ai-thinking h2,
.psh-ai-success h2,
.psh-ai-fatal-error h2 {
    max-width: 650px;
    margin-top: 24px;
    font-size: clamp(25px, 3.5vw, 38px);
}

.psh-ai-thinking p,
.psh-ai-success p,
.psh-ai-fatal-error p {
    margin-right: auto;
    margin-left: auto;
}

.psh-ai-brain {
    position: relative;
    display: grid;
    width: 88px;
    height: 88px;
    place-items: center;
}

.psh-ai-brain::before,
.psh-ai-brain::after,
.psh-ai-brain i {
    position: absolute;
    border: 1px solid rgba(167, 139, 250, .25);
    border-radius: 50%;
    content: "";
}

.psh-ai-brain::before {
    inset: 0;
    animation: pshAiSpin 5s linear infinite;
    border-top-color: #a78bfa;
}

.psh-ai-brain::after {
    inset: 10px;
    animation: pshAiSpinReverse 3.5s linear infinite;
    border-right-color: #c4b5fd;
}

.psh-ai-brain-core {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: radial-gradient(circle at 35% 30%, #ddd6fe, var(--psh-ai-accent) 45%, #4c1d95);
    box-shadow: 0 0 35px rgba(139, 92, 246, .55);
    animation: pshAiCore 1.8s ease-in-out infinite;
}

.psh-ai-brain i:nth-of-type(1) {
    width: 5px;
    height: 5px;
    top: 5px;
    left: 42px;
    border: 0;
    background: #c4b5fd;
    box-shadow: 0 0 10px #a78bfa;
}

.psh-ai-brain i:nth-of-type(2) {
    width: 4px;
    height: 4px;
    right: 11px;
    bottom: 19px;
    border: 0;
    background: #818cf8;
}

.psh-ai-brain i:nth-of-type(3) {
    width: 4px;
    height: 4px;
    bottom: 16px;
    left: 14px;
    border: 0;
    background: #e879f9;
}

.psh-ai-thinking-lines {
    display: flex;
    gap: 5px;
    margin-top: 22px;
}

.psh-ai-thinking-lines span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #71717a;
    animation: pshAiDots 1.2s infinite;
}

.psh-ai-thinking-lines span:nth-child(2) {
    animation-delay: .15s;
}

.psh-ai-thinking-lines span:nth-child(3) {
    animation-delay: .3s;
}

.psh-ai-success-icon {
    display: grid;
    width: 82px;
    height: 82px;
    margin-bottom: 20px;
    place-items: center;
    border: 1px solid rgba(74, 222, 128, .2);
    border-radius: 50%;
    color: #86efac;
    background: radial-gradient(circle, rgba(34, 197, 94, .16), rgba(34, 197, 94, .04));
    box-shadow: 0 0 50px rgba(34, 197, 94, .12);
}

.psh-ai-success-icon svg {
    width: 42px;
    height: 42px;
}

.psh-ai-success-reference {
    margin-top: 25px;
    padding: 13px 19px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    background: rgba(255, 255, 255, .025);
}

.psh-ai-success-reference span,
.psh-ai-success-reference strong {
    display: block;
}

.psh-ai-success-reference span {
    margin-bottom: 4px;
    color: #52525b;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.psh-ai-success-reference strong {
    color: #c4b5fd;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 13px;
}

.psh-ai-error-symbol {
    display: grid;
    width: 68px;
    height: 68px;
    place-items: center;
    border: 1px solid rgba(248, 113, 113, .2);
    border-radius: 50%;
    color: #fca5a5;
    background: rgba(248, 113, 113, .06);
    font-size: 30px;
}

.psh-ai-fatal-error .psh-ai-button {
    margin-top: 22px;
}

.psh-ai-loading p {
    color: #71717a;
    font-size: 12px;
}

.psh-ai-orb {
    display: flex;
    gap: 6px;
    margin-bottom: 15px;
}

.psh-ai-orb span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #a78bfa;
    animation: pshAiDots 1.2s infinite;
}

.psh-ai-orb span:nth-child(2) {
    animation-delay: .15s;
}

.psh-ai-orb span:nth-child(3) {
    animation-delay: .3s;
}

.psh-ai-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 52px;
    padding: 13px 30px;
    border-top: 1px solid rgba(255, 255, 255, .055);
    color: #52525b;
    font-size: 9px;
}

.psh-ai-shield {
    display: inline-grid;
    width: 15px;
    height: 15px;
    margin-right: 5px;
    place-items: center;
    border-radius: 50%;
    color: #86efac;
    background: rgba(34, 197, 94, .08);
}

.psh-ai-reference {
    color: #71717a;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    letter-spacing: .03em;
}

.psh-ai-honeypot {
    position: absolute !important;
    left: -99999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}

.psh-ai-noscript {
    padding: 16px;
    border: 1px solid #3f3f46;
    border-radius: 12px;
    color: #fff;
    background: #18181b;
}

@keyframes pshAiEnter {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pshAiPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .45; }
}

@keyframes pshAiSpin {
    to { transform: rotate(360deg); }
}

@keyframes pshAiSpinReverse {
    to { transform: rotate(-360deg); }
}

@keyframes pshAiCore {
    0%, 100% { transform: scale(.92) rotate(0); }
    50% { transform: scale(1.05) rotate(5deg); }
}

@keyframes pshAiDots {
    0%, 80%, 100% { opacity: .3; transform: translateY(0); }
    40% { opacity: 1; transform: translateY(-5px); }
}

@media (max-width: 760px) {
    .psh-ai-shell {
        min-height: 650px;
        border-radius: 20px;
    }

    .psh-ai-header {
        padding: 20px 19px 15px;
    }

    .psh-ai-live {
        padding: 7px 9px;
        font-size: 8px;
    }

    .psh-ai-brand strong {
        font-size: 12px;
    }

    .psh-ai-eyebrow {
        font-size: 8px;
    }

    .psh-ai-progress-wrap {
        padding: 0 19px;
    }

    .psh-ai-stage {
        min-height: 510px;
        padding: 38px 20px 30px;
        align-items: flex-start;
    }

    .psh-ai-question-head h2,
    .psh-ai-thinking h2,
    .psh-ai-success h2,
    .psh-ai-fatal-error h2 {
        font-size: 28px;
    }

    .psh-ai-choice-grid,
    .psh-ai-contact-grid {
        grid-template-columns: 1fr;
    }

    .psh-ai-choice {
        min-height: 62px;
    }

    .psh-ai-actions {
        grid-template-columns: auto 1fr;
    }

    .psh-ai-button-primary {
        width: 100%;
    }

    .psh-ai-footer {
        gap: 10px;
        padding: 13px 19px;
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .psh-ai-intake *,
    .psh-ai-intake *::before,
    .psh-ai-intake *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
