/* Pilot page */
.inquiry-main { padding: 155px 0 100px; }
.inquiry-intro { margin-bottom: 55px; }
.inquiry-intro h1 { font-size: clamp(2.6rem, 5.5vw, 4.8rem); line-height: 1.06; letter-spacing: -.045em; margin: 20px 0; }
.inquiry-intro > p { max-width: 730px; font-size: 1.15rem; color: var(--text-secondary); line-height: 1.7; }
.inquiry-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(30px, 6vw, 80px); align-items: start; }
.inquiry-summary h2 { font-size: 1.9rem; line-height: 1.2; margin: 12px 0 25px; }
.inquiry-summary > p { margin: 15px 0; line-height: 1.6; }
.inquiry-summary ul { padding-left: 20px; line-height: 1.6; margin: 25px 0; }
.inquiry-summary li + li { margin-top: 10px; }
.inquiry-contact { border-top: 1px solid var(--border); margin-top: 35px; padding-top: 25px; }
.inquiry-contact p { font-size: .9rem; color: var(--text-secondary); margin-top: 15px; }
.inquiry-contact a { display: inline-block; color: var(--primary); margin-top: 12px; overflow-wrap: anywhere; }
.inquiry-card { padding: clamp(22px, 3vw, 38px); border: 1px solid var(--border); border-radius: 24px; background: var(--surface); }
.inquiry-card h2 { font-size: 1.65rem; line-height: 1.25; margin-bottom: 14px; }
.inquiry-modes { display: flex; gap: 8px; margin-bottom: 25px; }
.inquiry-modes button { flex: 1; background: transparent; border: 1px solid var(--border); border-radius: 9px; padding: 10px; color: var(--text-secondary); cursor: pointer; }
.inquiry-modes button[aria-pressed="true"] { border-color: var(--primary); color: var(--primary); }
.inquiry-step { margin-bottom: 22px; }
.inquiry-step label { display: block; font-weight: 700; margin-bottom: 8px; font-size: .9rem; }
.inquiry-step input, .inquiry-step textarea { box-sizing: border-box; display: block; width: 100%; background: var(--background); color: var(--text-primary); border: 1px solid var(--border); border-radius: 9px; padding: 13px; font: inherit; }
.inquiry-step textarea { resize: vertical; min-height: 140px; }
.inquiry-step small { display: block; color: var(--text-secondary); margin-top: 8px; line-height: 1.5; }
.inquiry-optional { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 20px; }
.inquiry-check { display: flex; gap: 12px; align-items: start; font-size: .85rem; line-height: 1.5; margin: 18px 0; cursor: pointer; }
.inquiry-check input { margin-top: 4px; flex-shrink: 0; width: 17px; height: 17px; }
.inquiry-check a { color: var(--primary); text-decoration: underline; }
.inquiry-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.inquiry-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.inquiry-actions .btn { white-space: normal; text-align: center; }
#inquiry-progress { color: var(--primary); font-weight: 700; margin-bottom: 20px; }
#inquiry-review p { overflow-wrap: anywhere; margin: 12px 0; }
#pilot-form-status:not(:empty) { margin: 20px 0; padding: 15px; border-left: 3px solid var(--primary); line-height: 1.6; }
.inquiry-card [hidden] { display: none !important; }
@media (max-width: 800px) { .inquiry-main { padding: 110px 0 65px; }.inquiry-layout { grid-template-columns: 1fr; }.inquiry-card { grid-row: 1; }.inquiry-intro { margin-bottom: 32px; } }
@media (max-width: 400px) { .inquiry-optional { grid-template-columns: 1fr; }.inquiry-modes { flex-wrap: wrap; }.inquiry-card { padding: 20px; } }

.pilot-page {
    overflow-x: clip;
}

.pilot-page-main {
    min-height: calc(100vh - 72px - 340px);
    overflow: clip;
}

.pilot-page #pilot-vorteile,
.pilot-page #pilot-anfrage,
.pilot-page #pilot-kontakt {
    scroll-margin-top: var(--page-anchor-scroll-offset);
}

.pilot-booking-section {
    position: relative;
    padding: 112px 0 128px;
    background:
        radial-gradient(circle at 84% 22%, color-mix(in srgb, var(--primary) 7%, transparent), transparent 25%),
        var(--background);
}

.pilot-layout {
    display: grid;
    grid-template-columns: minmax(0, .88fr) minmax(500px, 1.12fr);
    align-items: start;
    gap: clamp(60px, 8vw, 112px);
}

.pilot-info-col {
    position: sticky;
    top: 154px;
}

.pilot-section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.pilot-section-eyebrow span {
    width: 25px;
    height: 2px;
    background: currentColor;
}

.pilot-page-title {
    max-width: 620px;
    margin: 17px 0 21px;
    font-size: clamp(2.25rem, 3.7vw, 3.7rem);
    font-weight: 650;
    letter-spacing: -.05em;
    line-height: 1.08;
}

.pilot-page-text {
    max-width: 600px;
    margin-bottom: 34px;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.75;
}

.pilot-checklist {
    display: grid;
    margin-bottom: 28px;
    border-block: 1px solid var(--border);
}

.check-item {
    min-height: 58px;
    display: grid;
    grid-template-columns: 27px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: .86rem;
    line-height: 1.45;
}

.check-item + .check-item {
    border-top: 1px solid var(--border);
}

.pilot-check-icon {
    width: 19px;
    height: 19px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: color-mix(in srgb, var(--success) 13%, transparent);
    color: var(--success);
    font-size: .68rem;
    font-weight: 800;
}

.pilot-question-box {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 15px;
    margin-top: 25px;
    padding: 22px;
    border: 1px solid color-mix(in srgb, var(--primary) 31%, var(--border));
    border-radius: 16px;
    background: color-mix(in srgb, var(--primary) 7%, var(--surface));
}

.pilot-question-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
}

.pilot-question-box h3,
.direct-contact-box h3 {
    margin: 1px 0 7px;
    font-size: 1rem;
    letter-spacing: -.02em;
}

.pilot-question-box p,
.direct-contact-box p {
    color: var(--text-secondary);
    font-size: .79rem;
    line-height: 1.6;
}

.pilot-question-box a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 13px;
    color: var(--primary);
    font-size: .77rem;
    font-weight: 700;
}

.pilot-question-box a i {
    font-style: normal;
    transition: transform .2s ease;
}

.pilot-question-box a:hover i {
    transform: translateX(4px);
}

.direct-contact-box {
    margin-top: 14px;
    padding: 20px 22px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
}

.direct-contact-box > small {
    color: var(--text-muted);
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .13em;
}

.direct-contact-box p {
    margin-bottom: 13px;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-size: .81rem;
    font-weight: 700;
}

.contact-email i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-style: normal;
    transition: transform .2s ease;
}

.contact-email i .material-icons-outlined {
    font-size: 0.95rem;
}

.contact-email:hover {
    color: var(--primary-hover);
}

.contact-email:hover i {
    transform: translate(2px, -2px);
}

.pilot-form-col {
    min-width: 0;
}

.pilot-card-container {
    position: relative;
    width: 100%;
    max-width: 580px;
    padding: clamp(28px, 4vw, 44px);
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: 0 30px 90px rgba(15, 23, 42, .11);
}

.pilot-card-container::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #7c93ff, #38c99a);
    content: "";
}

/* Guided application shell */
.pilot-application-shell {
    max-width: 640px;
    min-height: 690px;
    padding: 12px;
    border-color: color-mix(in srgb, var(--primary) 18%, var(--border));
    border-radius: 30px;
    background:
        radial-gradient(circle at 15% 0%, color-mix(in srgb, var(--primary) 8%, transparent), transparent 34%),
        color-mix(in srgb, var(--surface) 96%, transparent);
    box-shadow: 0 32px 100px rgba(15, 23, 42, .13), 0 1px 0 rgba(255,255,255,.7) inset;
}

.pilot-application-shell::before {
    display: none;
}

.pilot-mode-switch {
    position: relative;
    z-index: 3;
    width: min(330px, calc(100% - 24px));
    height: 54px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 7px auto 14px;
    padding: 5px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--text-primary) 12%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface-elevated) 68%, transparent);
    box-shadow: 0 10px 30px rgba(15, 23, 42, .09), inset 0 1px rgba(255,255,255,.72);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
}

.pilot-mode-lens {
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 5px;
    width: calc(50% - 5px);
    border: 1px solid color-mix(in srgb, var(--primary) 24%, rgba(255,255,255,.65));
    border-radius: 999px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.48), rgba(255,255,255,.1)),
        color-mix(in srgb, var(--primary) 15%, var(--surface));
    box-shadow: 0 7px 20px color-mix(in srgb, var(--primary) 20%, transparent), inset 0 1px 1px rgba(255,255,255,.85);
    transition: transform .55s cubic-bezier(.22, 1, .36, 1), width .4s ease;
}

.pilot-mode-switch[data-active="form"] .pilot-mode-lens {
    transform: translateX(100%);
}

.pilot-mode-btn {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 0;
    background: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: .79rem;
    font-weight: 750;
    cursor: pointer;
    transition: color .3s ease, transform .25s ease;
}

.pilot-mode-btn:hover {
    color: var(--text-primary);
}

.pilot-mode-btn:active {
    transform: scale(.97);
}

.pilot-mode-btn.active {
    color: var(--text-primary);
}

.mode-spark {
    color: var(--primary);
    font-size: .9rem;
}

.mode-lines {
    font-size: 1rem;
    transform: rotate(90deg);
}

.pilot-mode-panel {
    animation: pilot-panel-in .5s cubic-bezier(.22, 1, .36, 1);
}

.pilot-mode-panel[hidden] {
    display: none !important;
}

#pilot-form-panel {
    padding: clamp(19px, 4vw, 32px);
}

@keyframes pilot-panel-in {
    from { opacity: 0; transform: translateY(8px) scale(.99); }
    to { opacity: 1; transform: none; }
}

.pilot-chat-app {
    height: 605px;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--primary) 14%, var(--border));
    border-radius: 22px;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--surface) 98%, transparent), color-mix(in srgb, var(--surface-elevated) 96%, transparent));
}

.pilot-chat-header {
    min-height: 72px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(92px, 132px);
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface) 82%, transparent);
    backdrop-filter: blur(18px);
}

.pilot-bot-avatar {
    position: relative;
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(145deg, #8f9dff, var(--primary) 55%, #4651bb);
    color: #fff;
    box-shadow: 0 7px 18px color-mix(in srgb, var(--primary) 28%, transparent), inset 0 1px rgba(255,255,255,.35);
}

.pilot-bot-avatar span {
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
}

.pilot-bot-avatar i {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 11px;
    height: 11px;
    border: 2px solid var(--surface);
    border-radius: 50%;
    background: #24c985;
}

.pilot-chat-identity strong {
    display: block;
    font-size: .89rem;
    letter-spacing: -.01em;
}

.pilot-chat-identity > span {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 3px;
    color: var(--text-muted);
    font-size: .65rem;
}

.pilot-chat-identity > span i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #24c985;
}

.pilot-chat-identity b {
    font-weight: 500;
}

.pilot-chat-progress > span {
    display: block;
    margin-bottom: 6px;
    color: var(--text-muted);
    font-size: .58rem;
    font-weight: 700;
    text-align: right;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.pilot-chat-progress > div {
    height: 4px;
    overflow: hidden;
    border-radius: 9px;
    background: var(--border);
}

.pilot-chat-progress i {
    width: 0;
    height: 100%;
    display: block;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary), #7d8eff, #31c999);
    transition: width .65s cubic-bezier(.22, 1, .36, 1);
}

.pilot-chat-transcript {
    min-height: 0;
    padding: 22px 18px 18px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--text-muted) 25%, transparent) transparent;
}

.pilot-chat-loading {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: var(--text-muted);
}

.pilot-chat-loading span,
.pilot-typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    animation: pilot-dot 1.15s infinite ease-in-out;
}

.pilot-chat-loading span:nth-child(2), .pilot-typing span:nth-child(2) { animation-delay: .14s; }
.pilot-chat-loading span:nth-child(3), .pilot-typing span:nth-child(3) { animation-delay: .28s; }

.pilot-chat-loading b {
    margin-left: 7px;
    font-size: .72rem;
    font-weight: 500;
}

@keyframes pilot-dot {
    0%, 60%, 100% { opacity: .3; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-4px); }
}

.pilot-message-row {
    display: flex;
    align-items: flex-end;
    gap: 9px;
    margin: 0 0 15px;
    animation: pilot-message-in .42s cubic-bezier(.22, 1, .36, 1);
}

.pilot-message-row.user {
    justify-content: flex-end;
}

@keyframes pilot-message-in {
    from { opacity: 0; transform: translateY(10px) scale(.98); }
    to { opacity: 1; transform: none; }
}

.pilot-mini-avatar {
    width: 27px;
    height: 27px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: linear-gradient(145deg, #8f9dff, var(--primary));
    color: #fff;
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: .72rem;
    font-weight: 700;
}

.pilot-message {
    position: relative;
    max-width: min(82%, 440px);
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: 7px 17px 17px 17px;
    background: var(--surface);
    color: var(--text-primary);
    font-size: .84rem;
    line-height: 1.52;
    box-shadow: 0 5px 18px rgba(15,23,42,.045);
}

.pilot-message-row.user .pilot-message {
    border-color: color-mix(in srgb, var(--primary) 75%, transparent);
    border-radius: 17px 17px 7px 17px;
    background: linear-gradient(145deg, color-mix(in srgb, var(--primary) 88%, #7586ff), var(--primary));
    color: #fff;
    box-shadow: 0 7px 20px color-mix(in srgb, var(--primary) 18%, transparent);
}

.pilot-message-row.reaction .pilot-message {
    border-color: color-mix(in srgb, #26b987 24%, var(--border));
    background: color-mix(in srgb, #26b987 5%, var(--surface));
}

.pilot-answer-edit {
    position: absolute;
    top: -8px;
    left: -8px;
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 50%;
    background: color-mix(in srgb, var(--primary) 90%, #000);
    color: #fff;
    font-size: .66rem;
    cursor: pointer;
    opacity: 0;
    transform: scale(.8);
    transition: opacity .2s ease, transform .2s ease;
}

.pilot-message-row.user:hover .pilot-answer-edit,
.pilot-answer-edit:focus-visible {
    opacity: 1;
    transform: none;
}

.pilot-typing {
    width: 57px;
    display: flex;
    gap: 4px;
    padding: 13px 14px;
}

.pilot-chat-composer {
    padding: 12px 14px 10px;
    border-top: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    backdrop-filter: blur(18px);
}

.pilot-chat-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.pilot-chat-option {
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid color-mix(in srgb, var(--primary) 31%, var(--border));
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary) 5%, var(--surface));
    color: var(--text-primary);
    font-family: inherit;
    font-size: .76rem;
    font-weight: 650;
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
}

.pilot-chat-option:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
    transform: translateY(-1px);
}

.pilot-chat-input-row {
    min-height: 51px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 39px;
    align-items: end;
    gap: 8px;
    padding: 5px 5px 5px 14px;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: var(--surface-elevated);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.pilot-chat-input-row:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

#pilot-chat-input {
    max-height: 96px;
    min-height: 39px;
    padding: 9px 0 7px;
    resize: none;
    overflow-y: auto;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text-primary);
    font-family: inherit;
    font-size: .84rem;
    line-height: 1.4;
}

.pilot-chat-send {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 13px;
    background: var(--primary);
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: 0 6px 16px color-mix(in srgb, var(--primary) 25%, transparent);
    transition: transform .2s ease, opacity .2s ease;
}

.pilot-chat-send:hover { transform: translateY(-1px); }
.pilot-chat-send:disabled { opacity: .4; cursor: default; transform: none; }

.pilot-chat-tools {
    min-height: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 7px;
    color: var(--text-muted);
    font-size: .58rem;
}

.pilot-chat-tools > span:last-child {
    margin-left: auto;
}

.pilot-chat-back,
.pilot-chat-skip {
    padding: 2px 0;
    border: 0;
    background: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: .64rem;
    font-weight: 650;
    cursor: pointer;
}

.pilot-chat-back:hover,
.pilot-chat-skip:hover { color: var(--primary); }

.pilot-chat-error {
    margin: 7px 2px 0;
    color: #c03939;
    font-size: .7rem;
}

.pilot-chat-date {
    max-height: 182px;
    overflow-y: auto;
    margin-bottom: 10px;
}

.pilot-date-days,
.pilot-date-times {
    display: flex;
    gap: 7px;
    padding: 2px 1px 7px;
    overflow-x: auto;
    scrollbar-width: none;
}

.pilot-date-days::-webkit-scrollbar,
.pilot-date-times::-webkit-scrollbar { display: none; }

.pilot-date-day,
.pilot-date-time {
    flex: 0 0 auto;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-secondary);
    font-family: inherit;
    cursor: pointer;
    transition: all .2s ease;
}

.pilot-date-day {
    width: 57px;
    padding: 8px 4px;
    border-radius: 13px;
    text-align: center;
}

.pilot-date-day small,
.pilot-date-day b { display: block; }
.pilot-date-day small { font-size: .57rem; text-transform: uppercase; }
.pilot-date-day b { margin-top: 2px; font-size: .91rem; }

.pilot-date-time {
    padding: 7px 11px;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 700;
}

.pilot-date-day.active,
.pilot-date-time.active {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
    box-shadow: 0 5px 14px color-mix(in srgb, var(--primary) 18%, transparent);
}

.pilot-permission-card {
    margin: 4px 0 18px 36px;
    padding: 16px;
    border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--border));
    border-radius: 18px;
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--primary) 8%, var(--surface)), var(--surface));
    box-shadow: 0 10px 32px rgba(15,23,42,.07);
    animation: pilot-message-in .5s cubic-bezier(.22, 1, .36, 1);
}

.pilot-command-line {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
    color: var(--text-muted);
    font-family: monospace;
    font-size: .67rem;
}

.pilot-command-line i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f1b942;
    box-shadow: 0 0 0 4px color-mix(in srgb, #f1b942 15%, transparent);
}

.pilot-permission-card h3 {
    margin: 0 0 7px;
    font-size: 1rem;
    letter-spacing: -.025em;
}

.pilot-permission-card p {
    color: var(--text-secondary);
    font-size: .75rem;
    line-height: 1.5;
}

.pilot-review-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin: 13px 0;
}

.pilot-review-grid button {
    padding: 9px 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: color-mix(in srgb, var(--surface-elevated) 82%, transparent);
    color: var(--text-primary);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}

.pilot-review-grid small,
.pilot-review-grid b { display: block; }
.pilot-review-grid small { color: var(--text-muted); font-size: .56rem; text-transform: uppercase; letter-spacing: .05em; }
.pilot-review-grid b { margin-top: 3px; overflow: hidden; font-size: .68rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }

.pilot-review-grid button:hover { border-color: var(--primary); }

.pilot-permission-actions {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
}

.pilot-permission-edit,
.pilot-permission-allow {
    min-height: 43px;
    border-radius: 12px;
    font-family: inherit;
    font-size: .75rem;
    font-weight: 750;
    cursor: pointer;
}

.pilot-permission-edit {
    padding: 0 14px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-secondary);
}

.pilot-permission-allow {
    border: 0;
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--primary) 23%, transparent);
}

.pilot-permission-allow:disabled { opacity: .55; cursor: wait; }

.pilot-form-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pilot-form-head {
    margin-bottom: 8px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border);
}

.pilot-form-head small {
    color: var(--primary);
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .13em;
}

.pilot-form-head h2 {
    margin: 8px 0 9px;
    font-size: clamp(1.55rem, 2.6vw, 2.15rem);
    letter-spacing: -.04em;
    line-height: 1.15;
}

.pilot-form-head p {
    max-width: 460px;
    color: var(--text-secondary);
    font-size: .82rem;
    line-height: 1.6;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: var(--text-secondary);
    font-size: .8rem;
    font-weight: 700;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background-color: var(--surface-elevated);
    color: var(--text-primary);
    font-family: inherit;
    font-size: .88rem;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.form-group textarea {
    min-height: 104px;
    resize: vertical;
}

.form-group select {
    padding-right: 40px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--surface);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    padding: 12px 15px;
    background-color: var(--surface-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.checkbox-container:hover {
    border-color: var(--primary);
    background-color: var(--surface);
}

.checkbox-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    accent-color: var(--primary);
    cursor: pointer;
    margin: 0;
}

.checkbox-label-text {
    font-weight: 500;
    font-size: .88rem;
    line-height: 1.4;
    color: var(--text-secondary);
}

.checkbox-container input[type="checkbox"]:checked + .checkbox-label-text {
    color: var(--text-primary);
}

.btn-submit-pilot {
    width: 100%;
    min-height: 52px;
    margin-top: 10px;
    border-radius: 11px;
}

/* Calendar Picker Widget */
.calendar-picker-widget {
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin-top: 4px;
    user-select: none;
}

.calendar-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.calendar-widget-header button {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px 12px;
    border-radius: 6px;
    transition: background-color 0.2s, color 0.2s;
}

.calendar-widget-header button:hover {
    background-color: var(--border);
    color: var(--text-primary);
}

.calendar-weekdays-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    opacity: 0.8;
}

.calendar-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-day-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    aspect-ratio: 1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-day-btn:hover:not(:disabled) {
    background-color: var(--primary-glow);
    border-color: var(--primary);
    color: var(--primary);
}

.calendar-day-btn.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.calendar-day-btn:disabled {
    color: var(--text-secondary);
    opacity: 0.35;
    cursor: not-allowed;
    background-color: transparent;
    border-color: transparent;
}

/* Time Slots Widget */
.time-slots-widget {
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin-top: 12px;
    animation: slideDown 0.3s ease;
}

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

.time-slots-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

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

.time-slot-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.time-slot-btn:hover {
    border-color: var(--primary);
    background-color: var(--primary-glow);
    color: var(--primary);
}

.time-slot-btn.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.calendar-info-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-top: 12px;
}

/* Success Box */
.pilot-success-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 0;
    animation: success-fade 0.5s ease;
}

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

.success-icon-circle {
    width: 72px;
    height: 72px;
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.success-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.success-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 32px;
}

/* Utility classes */
.hidden {
    display: none !important;
}

@media (max-width: 1050px) {
    .pilot-layout {
        grid-template-columns: 1fr;
        gap: 58px;
    }

    .pilot-info-col {
        position: static;
    }

    .pilot-card-container {
        max-width: 720px;
    }
}

@media (max-width: 768px) {
    .pilot-booking-section {
        padding: 72px 0 84px;
    }

    .pilot-page-title {
        font-size: clamp(2rem, 10vw, 2.75rem);
    }

    .pilot-card-container {
        padding: 27px 20px;
        border-radius: 17px;
    }

    .pilot-application-shell {
        min-height: 610px;
        padding: 8px;
        border-radius: 23px;
    }

    .pilot-mode-switch {
        display: none !important;
    }

    #pilot-chat-panel {
        display: none !important;
    }

    .pilot-chat-app {
        height: min(590px, calc(100dvh - 160px));
        min-height: 510px;
        border-radius: 18px;
    }

    .pilot-chat-header {
        grid-template-columns: auto minmax(0, 1fr) 85px;
        min-height: 65px;
        padding: 10px 12px;
    }

    .pilot-bot-avatar {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .pilot-chat-transcript {
        padding: 17px 11px 13px;
    }

    .pilot-message {
        max-width: 86%;
        font-size: .8rem;
    }

    .pilot-chat-composer {
        padding: 10px 9px 7px;
    }

    .pilot-chat-tools > span:last-child {
        display: none;
    }

    .pilot-review-grid {
        grid-template-columns: 1fr;
    }

    .pilot-permission-card {
        margin-left: 0;
    }

    #pilot-form-panel {
        padding: 20px 12px;
    }

    .pilot-question-box {
        grid-template-columns: 1fr;
    }

    .calendar-picker-widget {
        padding: 12px 9px;
    }

    .calendar-days-grid {
        gap: 5px;
    }

    .calendar-day-btn {
        border-radius: 6px;
        font-size: .78rem;
    }

    .time-slots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

html[data-theme="dark"] .pilot-mode-switch,
html[data-theme="dark"] .pilot-chat-header,
html[data-theme="dark"] .pilot-chat-composer {
    box-shadow: inset 0 1px rgba(255,255,255,.08);
}

html[data-theme="dark"] .pilot-mode-lens {
    background:
        linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.025)),
        color-mix(in srgb, var(--primary) 24%, var(--surface));
    box-shadow: 0 8px 24px rgba(0,0,0,.28), inset 0 1px rgba(255,255,255,.18);
}

@media (prefers-reduced-motion: reduce) {
    .pilot-mode-lens,
    .pilot-chat-progress i,
    .pilot-message-row,
    .pilot-mode-panel,
    .pilot-permission-card {
        animation: none;
        transition-duration: .01ms;
    }

    .pilot-chat-transcript { scroll-behavior: auto; }
    .pilot-chat-loading span, .pilot-typing span { animation: none; opacity: .65; }
}

.form-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.pilot-form-error {
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(220, 38, 38, .28);
    border-radius: 8px;
    background: rgba(220, 38, 38, .07);
    color: #b91c1c;
    font-size: .85rem;
}

.pilot-privacy-note {
    margin-top: 12px;
    color: var(--text-muted);
    font-size: .74rem;
    line-height: 1.5;
    text-align: center;
}

/* Authentic KnowboundAI app skin - mirrors the employee chat shown on Lösungen. */
.pilot-chat-app {
    --pilot-app-bg: #0a0a0b;
    --pilot-app-drawer: #0f0f11;
    --pilot-app-entry: #111113;
    --pilot-app-line: #27272a;
    --pilot-app-text: #f4f4f5;
    --pilot-app-muted: #a1a1aa;
    --pilot-app-accent: #60a5fa;
    height: 630px;
    display: grid;
    grid-template-rows: 30px minmax(0, 1fr);
    border-color: rgba(117, 132, 153, .42);
    border-radius: 18px;
    background: var(--pilot-app-bg);
    color: var(--pilot-app-text);
    font-family: Carlito, Arial, sans-serif;
    box-shadow: 0 24px 65px rgba(15, 23, 42, .24);
}

.pilot-app-windowbar {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 11px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    background: #393939;
    color: #fff;
}

.pilot-window-dots {
    display: flex;
    gap: 5px;
}

.pilot-window-dots i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff5f57;
}

.pilot-window-dots i:nth-child(2) { background: #febc2e; }
.pilot-window-dots i:nth-child(3) { background: #28c840; }

.pilot-app-windowbar b {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: .59rem;
    font-weight: 500;
    letter-spacing: .02em;
    pointer-events: none;
}

.pilot-app-windowbar small {
    margin-left: auto;
    color: rgba(255,255,255,.58);
    font-size: .46rem;
    letter-spacing: .09em;
}

.pilot-chat-workspace {
    min-height: 0;
    display: grid;
    grid-template-columns: 145px minmax(0, 1fr);
    background: var(--pilot-app-bg);
}

.pilot-app-sidebar {
    position: relative;
    z-index: 4;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 13px 8px 10px;
    overflow: hidden;
    border-right: 1px solid var(--pilot-app-line);
    background: var(--pilot-app-drawer);
}

.pilot-app-wordmark {
    padding: 1px 4px 8px;
    color: var(--pilot-app-text);
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: .83rem;
    line-height: 1;
    white-space: nowrap;
}

.pilot-app-wordmark span { color: var(--pilot-app-accent); }

.pilot-side-new,
.pilot-side-search,
.pilot-side-thread {
    min-height: 31px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 8px;
    overflow: hidden;
    border: 1px solid var(--pilot-app-line);
    border-radius: 8px;
    background: transparent;
    color: var(--pilot-app-text);
    font: inherit;
    font-size: .66rem;
    text-align: left;
    white-space: nowrap;
}

.pilot-side-new { cursor: default; }
.pilot-side-new span { color: var(--pilot-app-accent); font-size: .9rem; }
.pilot-side-new b,
.pilot-side-search b,
.pilot-side-thread b,
.pilot-side-profile b { overflow: hidden; font-weight: 500; text-overflow: ellipsis; }
.pilot-side-search { color: var(--pilot-app-muted); }
.pilot-app-sidebar > small { margin: 8px 4px 0; color: var(--pilot-app-muted); font-size: .48rem; letter-spacing: .08em; }
.pilot-side-thread { border-color: transparent; color: var(--pilot-app-muted); }
.pilot-side-thread.active { border-left: 2px solid var(--pilot-app-accent); background: var(--pilot-app-line); color: var(--pilot-app-text); }
.pilot-side-thread.active i { width: 5px; height: 5px; margin-left: auto; border-radius: 50%; background: #34d399; }
.pilot-side-thread.muted { opacity: .55; }

.pilot-side-profile {
    min-width: 0;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    padding: 9px 2px 0;
    border-top: 1px solid var(--pilot-app-line);
    color: var(--pilot-app-muted);
    font-size: .59rem;
}

.pilot-side-profile > span {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--pilot-app-accent);
    color: #08101f;
    font-weight: 700;
}

.pilot-side-profile i { font-style: normal; }

.pilot-chat-main {
    position: relative;
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-rows: 49px minmax(0, 1fr) auto 20px;
    overflow: hidden;
    background: var(--pilot-app-bg);
}

.pilot-app-lava {
    position: absolute;
    z-index: 0;
    top: 0;
    right: 0;
    left: 0;
    height: 88px;
    overflow: hidden;
    background: linear-gradient(180deg, color-mix(in srgb, var(--pilot-app-accent) 17%, #10233d), transparent);
    opacity: .44;
}

.pilot-app-lava i {
    position: absolute;
    top: -36px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: var(--pilot-app-accent);
    filter: blur(11px);
    opacity: .32;
    animation: pilot-app-lava 5s ease-in-out infinite alternate;
}

.pilot-app-lava i:nth-child(1) { left: 4%; }
.pilot-app-lava i:nth-child(2) { left: 27%; width: 88px; background: #3155f5; animation-delay: -2s; }
.pilot-app-lava i:nth-child(3) { left: 51%; background: #22d3ee; animation-delay: -1s; }
.pilot-app-lava i:nth-child(4) { left: 72%; width: 82px; background: #4338ca; animation-delay: -3s; }
.pilot-app-lava i:nth-child(5) { left: 91%; animation-delay: -1.7s; }

@keyframes pilot-app-lava {
    to { transform: translate(15px, 24px) scale(1.2); }
}

.pilot-chat-header {
    position: relative;
    z-index: 2;
    min-height: 49px;
    display: flex;
    align-items: center;
    padding: 0 13px;
    border-bottom: 0;
    background: transparent;
    backdrop-filter: none;
}

.pilot-app-menu {
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: var(--pilot-app-muted);
    font: 13px Carlito, sans-serif;
}

.pilot-bot-pill {
    position: absolute;
    left: 50%;
    min-height: 30px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 11px;
    border: 1px solid var(--pilot-app-line);
    border-radius: 16px;
    background: color-mix(in srgb, var(--pilot-app-bg) 88%, transparent);
    color: var(--pilot-app-text);
    font-size: .69rem;
    transform: translateX(-50%);
}

.pilot-bot-pill span { color: var(--pilot-app-accent); }
.pilot-bot-pill b { font-weight: 500; white-space: nowrap; }
.pilot-bot-pill i { color: var(--pilot-app-muted); font-size: .55rem; font-style: normal; }

.pilot-chat-progress {
    width: 70px;
    margin-left: auto;
}

.pilot-chat-progress > span { color: var(--pilot-app-muted); font-size: .46rem; }
.pilot-chat-progress > div { height: 3px; background: var(--pilot-app-line); }
.pilot-chat-progress i { background: var(--pilot-app-accent); }

.pilot-chat-transcript {
    position: relative;
    z-index: 1;
    padding: 14px 16px 12px;
    color: var(--pilot-app-text);
    scrollbar-color: #3f3f46 transparent;
}

.pilot-chat-loading { color: var(--pilot-app-muted); }
.pilot-chat-loading span,
.pilot-typing span { background: var(--pilot-app-accent); }

.pilot-message-row {
    width: min(100%, 460px);
    margin: 0 auto 12px;
    gap: 8px;
}

.pilot-mini-avatar {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--pilot-app-accent) 14%, transparent);
    color: var(--pilot-app-accent);
    font-family: Carlito, sans-serif;
    font-size: .7rem;
    text-transform: uppercase;
}

.pilot-message {
    max-width: 86%;
    padding: 6px 3px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--pilot-app-text);
    font-size: .77rem;
    line-height: 1.46;
    box-shadow: none;
}

.pilot-message-row.user .pilot-message {
    max-width: min(82%, 350px);
    padding: 10px 13px;
    border: 0;
    border-radius: 18px;
    background: var(--pilot-app-accent);
    color: #08101f;
    box-shadow: 0 7px 19px rgba(37, 99, 235, .15);
}

.pilot-message-row.reaction .pilot-message {
    padding: 8px 10px;
    border: 1px solid var(--pilot-app-line);
    border-radius: 11px;
    background: var(--pilot-app-entry);
    color: var(--pilot-app-muted);
    font-size: .7rem;
    font-style: italic;
}

.pilot-answer-edit {
    border-color: rgba(8,16,31,.24);
    background: #08101f;
    color: var(--pilot-app-accent);
}

.pilot-typing {
    width: 54px;
    padding: 10px 11px;
    border: 1px solid var(--pilot-app-line);
    border-radius: 12px;
    background: var(--pilot-app-entry);
}

.pilot-chat-composer {
    position: relative;
    z-index: 3;
    width: calc(100% - 26px);
    margin: 0 13px;
    padding: 7px 0 3px;
    border-top: 0;
    background: transparent;
    backdrop-filter: none;
}

.pilot-chat-options {
    gap: 6px;
    margin-bottom: 7px;
}

.pilot-chat-option {
    min-height: 31px;
    padding: 5px 10px;
    border-color: var(--pilot-app-line);
    background: var(--pilot-app-entry);
    color: var(--pilot-app-muted);
    font-family: Carlito, sans-serif;
    font-size: .65rem;
}

.pilot-chat-option:hover {
    border-color: var(--pilot-app-accent);
    background: color-mix(in srgb, var(--pilot-app-accent) 13%, var(--pilot-app-entry));
    color: var(--pilot-app-text);
}

.pilot-chat-input-row {
    min-height: 45px;
    grid-template-columns: 25px minmax(0, 1fr) 33px;
    align-items: center;
    gap: 5px;
    padding: 0 6px 0 10px;
    border-color: var(--pilot-app-line);
    border-radius: 23px;
    background: var(--pilot-app-entry);
}

.pilot-chat-input-row:focus-within {
    border-color: var(--pilot-app-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--pilot-app-accent) 14%, transparent);
}

.pilot-entry-add {
    color: var(--pilot-app-muted);
    font-size: 1rem;
    text-align: center;
}

#pilot-chat-input {
    min-height: 37px;
    color: var(--pilot-app-text);
    font-family: Carlito, Arial, sans-serif;
    font-size: .75rem;
}

#pilot-chat-input::placeholder { color: var(--pilot-app-muted); }

.pilot-chat-send {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--pilot-app-accent);
    color: #08101f;
    font-size: .74rem;
    box-shadow: none;
}

.pilot-chat-tools {
    min-height: 17px;
    margin: 3px 4px 0;
    color: var(--pilot-app-muted);
    font-size: .49rem;
}

.pilot-chat-tools > span:last-child {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
}

.pilot-chat-tools > span:last-child i,
.pilot-app-status i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #34d399;
}

.pilot-chat-tools > span:last-child b { font-weight: 400; }
.pilot-chat-back, .pilot-chat-skip { color: var(--pilot-app-muted); font-family: Carlito, sans-serif; }
.pilot-chat-error { color: #fb7185; }

.pilot-app-status {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    padding: 0 12px;
    color: var(--pilot-app-muted);
    font-size: .48rem;
}

.pilot-chat-date { margin-bottom: 7px; }
.pilot-date-day,
.pilot-date-time { border-color: var(--pilot-app-line); background: var(--pilot-app-entry); color: var(--pilot-app-muted); font-family: Carlito, sans-serif; }
.pilot-date-day.active,
.pilot-date-time.active { border-color: var(--pilot-app-accent); background: var(--pilot-app-accent); color: #08101f; }

.pilot-permission-card {
    width: min(100%, 460px);
    margin: 3px auto 15px;
    padding: 14px;
    border-color: color-mix(in srgb, var(--pilot-app-accent) 34%, var(--pilot-app-line));
    border-radius: 13px;
    background: var(--pilot-app-entry);
    color: var(--pilot-app-text);
    box-shadow: none;
}

.pilot-command-line { color: var(--pilot-app-muted); font-size: .58rem; }
.pilot-permission-card h3 { color: var(--pilot-app-text); font: 700 .91rem Carlito, sans-serif; }
.pilot-permission-card p { color: var(--pilot-app-muted); font-size: .67rem; }
.pilot-review-grid button { border-color: var(--pilot-app-line); background: var(--pilot-app-bg); color: var(--pilot-app-text); font-family: Carlito, sans-serif; }
.pilot-review-grid small { color: var(--pilot-app-muted); }
.pilot-permission-edit { border-color: var(--pilot-app-line); background: var(--pilot-app-bg); color: var(--pilot-app-muted); font-family: Carlito, sans-serif; }
.pilot-permission-allow { background: var(--pilot-app-accent); color: #08101f; font-family: Carlito, sans-serif; box-shadow: none; }

@media (max-width: 768px) {
    .pilot-chat-app {
        height: min(620px, calc(100dvh - 150px));
        min-height: 520px;
        border-radius: 14px;
    }

    .pilot-chat-workspace { grid-template-columns: 47px minmax(0, 1fr); }
    .pilot-app-sidebar { align-items: center; padding: 9px 5px 8px; }
    .pilot-app-wordmark { width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border-radius: 10px; background: color-mix(in srgb, var(--pilot-app-accent) 13%, transparent); color: transparent; font-size: 0; }
    .pilot-app-wordmark::after { color: var(--pilot-app-accent); font: 700 .9rem 'Montserrat Alternates', sans-serif; content: 'K'; }
    .pilot-app-wordmark span,
    .pilot-app-sidebar b,
    .pilot-app-sidebar > small,
    .pilot-side-thread.muted,
    .pilot-side-profile b,
    .pilot-side-profile i { display: none; }
    .pilot-side-new,
    .pilot-side-search,
    .pilot-side-thread { width: 35px; min-height: 35px; justify-content: center; padding: 0; border-color: transparent; }
    .pilot-side-new span { font-size: 1.05rem; }
    .pilot-side-thread.active { border-left: 0; border-bottom: 2px solid var(--pilot-app-accent); }
    .pilot-side-thread.active i { display: none; }
    .pilot-side-profile { display: flex; justify-content: center; padding-inline: 0; }
    .pilot-chat-header { min-height: 46px; padding-inline: 8px; }
    .pilot-bot-pill { min-height: 28px; padding-inline: 9px; }
    .pilot-chat-progress { width: 56px; }
    .pilot-chat-transcript { padding: 11px 9px 9px; }
    .pilot-message { max-width: 89%; font-size: .73rem; }
    .pilot-chat-composer { width: calc(100% - 16px); margin-inline: 8px; padding-bottom: 1px; }
    .pilot-chat-tools > span:last-child { display: none; }
    .pilot-permission-card { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
    .pilot-app-lava i { animation: none; }
}

/* Wide app presentation: no surrounding website card, while the form stays compact. */
.pilot-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 72px;
}

.pilot-info-col {
    position: static;
    max-width: 760px;
}

.pilot-form-col {
    width: 100%;
}

.pilot-application-shell {
    width: 100%;
    max-width: 1120px;
    min-height: 0;
    margin: 0 auto;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.pilot-mode-switch {
    margin-bottom: 18px;
}

.pilot-chat-app {
    width: 100%;
    height: 680px;
}

.pilot-chat-workspace {
    grid-template-columns: 205px minmax(0, 1fr);
}

#pilot-form-panel {
    width: min(580px, 100%);
    margin: 0 auto;
    padding: clamp(28px, 4vw, 44px);
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: 0 30px 90px rgba(15, 23, 42, .11);
}

.pilot-success-box {
    width: min(580px, 100%);
    margin: 0 auto;
    padding: clamp(34px, 5vw, 58px);
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: 0 30px 90px rgba(15, 23, 42, .11);
}

@media (max-width: 768px) {
    .pilot-layout { gap: 48px; }
    .pilot-application-shell { width: 100%; min-height: auto; }
    .pilot-mode-switch { display: none !important; }
    .pilot-chat-app { height: min(640px, calc(100dvh - 145px)); }
    .pilot-chat-workspace { grid-template-columns: 47px minmax(0, 1fr); }
    #pilot-form-panel { padding: 24px 18px; border-radius: 18px; }
}

/* Balanced full-width pilot introduction above the wide application. */
.pilot-info-col {
    width: 100%;
    max-width: 1120px;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
    grid-template-areas:
        "eyebrow eyebrow"
        "title checklist"
        "copy checklist"
        "question contact";
    column-gap: clamp(44px, 7vw, 90px);
    row-gap: 0;
    margin: 0 auto;
}

.pilot-info-col .pilot-section-eyebrow {
    grid-area: eyebrow;
    margin-bottom: 18px;
}

.pilot-info-col .pilot-page-title {
    grid-area: title;
    align-self: end;
    margin: 0 0 20px;
    font-size: clamp(2.45rem, 4.3vw, 4.35rem);
}

.pilot-info-col .pilot-page-text {
    grid-area: copy;
    align-self: start;
    max-width: 610px;
    margin: 0;
    padding-bottom: 40px;
    font-size: 1.02rem;
}

.pilot-info-col .pilot-checklist {
    grid-area: checklist;
    align-self: stretch;
    display: grid;
    grid-template-rows: repeat(4, 1fr);
    margin: 0 0 40px;
    border-block: 1px solid var(--border);
}

.pilot-info-col .check-item {
    min-height: 76px;
    padding: 10px 6px;
    font-size: .9rem;
}

.pilot-info-col .pilot-check-icon {
    width: 22px;
    height: 22px;
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--success) 7%, transparent);
}

.pilot-info-col .pilot-question-box,
.pilot-info-col .direct-contact-box {
    min-height: 196px;
    margin: 0;
    padding: 25px;
}

.pilot-info-col .pilot-question-box {
    grid-area: question;
    grid-template-columns: 46px minmax(0, 1fr);
}

.pilot-info-col .direct-contact-box {
    grid-area: contact;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pilot-info-col .pilot-question-icon {
    width: 46px;
    height: 46px;
}

.pilot-info-col .pilot-question-box h3,
.pilot-info-col .direct-contact-box h3 {
    font-size: 1.08rem;
}

.pilot-info-col .pilot-question-box p,
.pilot-info-col .direct-contact-box p {
    font-size: .82rem;
}

@media (max-width: 820px) {
    .pilot-info-col {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "eyebrow"
            "title"
            "copy"
            "checklist"
            "question"
            "contact";
    }

    .pilot-info-col .pilot-page-title {
        max-width: 680px;
        font-size: clamp(2.2rem, 9vw, 3.35rem);
    }

    .pilot-info-col .pilot-page-text {
        padding-bottom: 30px;
    }

    .pilot-info-col .pilot-checklist {
        margin-bottom: 26px;
    }

    .pilot-info-col .pilot-question-box,
    .pilot-info-col .direct-contact-box {
        min-height: 0;
    }

    .pilot-info-col .direct-contact-box {
        margin-top: 14px;
    }
}

/* Larger conversation typography for the guided pilot chat. */
#pilot-chat-input {
    min-height: 54px;
    font-size: 1.5rem;
    line-height: 1.35;
}

.pilot-chat-input-row {
    min-height: 64px;
    grid-template-columns: 30px minmax(0, 1fr) 43px;
    padding: 4px 8px 4px 13px;
    border-radius: 33px;
}

.pilot-entry-add {
    font-size: 1.35rem;
}

.pilot-chat-send {
    width: 42px;
    height: 42px;
    font-size: 1rem;
}

.pilot-message {
    font-size: 1.54rem;
    line-height: 1.42;
}

.pilot-message-row.user .pilot-message {
    max-width: min(88%, 620px);
    padding: 14px 19px;
}

.pilot-message-row.reaction .pilot-message {
    padding: 12px 15px;
    font-size: 1.4rem;
}

.pilot-typing {
    width: 66px;
    padding: 14px;
}

@media (max-width: 768px) {
    #pilot-chat-input { font-size: 1.5rem; }
    .pilot-message { max-width: 91%; font-size: 1.46rem; }
    .pilot-message-row.reaction .pilot-message { font-size: 1.34rem; }
}

/* Extra desktop width for the app and its actual conversation column. */
@media (min-width: 1100px) {
    .pilot-booking-section > .container {
        max-width: 1400px;
    }

    .pilot-application-shell {
        max-width: 1320px;
    }

    .pilot-chat-workspace {
        grid-template-columns: 190px minmax(0, 1fr);
    }

    .pilot-message-row,
    .pilot-permission-card {
        width: min(100%, 760px);
    }
}
