.flyer-hero {
    padding: 58px 0 52px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--cream), #fff 58%, var(--blue-soft));
    border-bottom: 1px solid var(--line);
}

.flyer-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.flyer-hero h1 {
    margin: 10px 0 14px;
    font-size: clamp(2.5rem, 5vw, 4.4rem);
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.flyer-hero p {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
    font-size: 1.08rem;
}

.flyer-hero img {
    flex: 0 0 auto;
    width: 260px;
    height: 170px;
    object-fit: contain;
}

.flyer-assistant-section { padding-top: 36px; }

.flyer-assistant-window {
    padding: clamp(24px, 4vw, 42px);
    max-width: 900px;
    margin-inline: auto;
}
.flyer-assistant-header { display: flex; align-items: center; gap: 14px; }
.flyer-assistant-avatar { display: grid; place-items: center; flex: 0 0 48px; height: 48px; background: var(--blue); color: #fff; border-radius: 16px; font-size: 1.5rem; font-weight: 800; }
.flyer-assistant-header h2 { margin-bottom: 4px; }
.flyer-assistant-header p { font-size: 0.9rem; }

.flyer-assistant-window h2 {
    margin: 0 0 12px;
    color: var(--blue);
    font-size: 1.45rem;
}

.flyer-assistant-window p {
    max-width: 850px;
    margin: 0;
    color: var(--muted);
}

.flyer-assistant-guide { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.flyer-assistant-guide-heading, .flyer-assistant-navigation { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.flyer-assistant-progress { color: var(--muted); font-size: 0.8rem; }
.flyer-assistant-text-button { padding: 6px 0; border: 0; background: transparent; color: var(--blue-dark); font: inherit; font-size: 0.83rem; cursor: pointer; text-align: left; }
.flyer-assistant-text-button:hover { text-decoration: underline; }
.flyer-assistant-text-button:disabled { color: var(--muted); cursor: default; text-decoration: none; }
.flyer-assistant-conversation { max-height: 340px; overflow-y: auto; overscroll-behavior: contain; padding: 18px 8px 12px; margin-block: 12px; scrollbar-width: thin; }
.flyer-assistant-answers { display: grid; gap: 18px; list-style: none; margin: 0; padding: 0; }
.flyer-assistant-answers li { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.flyer-assistant-prompt, .flyer-assistant-window .flyer-assistant-past-question { width: fit-content; max-width: 90%; padding: 14px 18px; border-radius: 18px 18px 18px 4px; background: #f0f4f7; color: var(--ink); }
.flyer-assistant-prompt { margin-top: 18px; }
.flyer-assistant-answers:empty + .flyer-assistant-prompt { margin-top: 0; }
.flyer-assistant-speaker { display: block; margin-bottom: 4px; color: var(--blue-dark); font-size: 0.72rem; font-weight: 700; }
.flyer-assistant-question { margin: 0; font-size: 1.05rem; line-height: 1.5; }
.flyer-assistant-choices { display: flex; flex-wrap: wrap; gap: 9px; }
.flyer-assistant-window .flyer-assistant-hint { margin-bottom: 16px; font-size: 0.85rem; }
.flyer-assistant-bubble { max-width: 100%; padding: 9px 16px; color: var(--blue-dark); background: #fff; border: 1px solid #83c8e9; border-radius: 22px; font: inherit; font-size: 0.9rem; text-align: left; overflow-wrap: anywhere; cursor: pointer; transition: background-color 150ms ease, border-color 150ms ease; }
.flyer-assistant-bubble:hover { background: #d9effa; border-color: var(--blue); }
.flyer-assistant-bubble:focus-visible, .flyer-assistant-text-button:focus-visible { outline: 3px solid rgba(7, 139, 210, 0.25); outline-offset: 3px; }
.flyer-assistant-bubble:disabled { color: var(--muted); background: #f5f6f7; border-color: var(--line); cursor: not-allowed; }
.flyer-assistant-answer { align-self: flex-end; padding: 10px 16px; background: var(--blue); border-color: var(--blue); color: #fff; border-radius: 18px 18px 4px 18px; font-size: 0.88rem; }
.flyer-assistant-answer:hover { background: var(--blue-dark); color: #fff; }
.flyer-assistant-window .flyer-assistant-adjustment { font-size: 0.83rem; border-left: 3px solid var(--blue); }
.flyer-assistant-navigation { margin-top: 16px; }
.flyer-assistant-custom-quantity { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.flyer-assistant-custom-quantity .flyer-field { flex: 1 1 180px; }
.flyer-assistant-compose { display: flex; align-items: end; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.flyer-assistant-compose .flyer-field { flex: 1 1 320px; }
.flyer-field textarea { width: 100%; min-height: 90px; padding: 12px 14px; color: var(--ink); background: #fff; border: 1px solid #cfd8df; border-radius: 11px; font: inherit; resize: vertical; }
.flyer-field textarea:focus { outline: 3px solid rgba(7, 139, 210, 0.16); border-color: var(--blue); }
.flyer-assistant-send { min-width: 130px; }
.flyer-assistant-status, .flyer-assistant-request { margin-top: 18px; padding: 16px; background: var(--blue-soft); border-radius: 12px; }
.flyer-assistant-status { font-size: 0.88rem; }
.flyer-assistant-text-chat { margin-top: 20px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fbfdff; }
.flyer-assistant-text-chat h3 { margin: 0 0 12px; font-size: 1rem; }
.flyer-assistant-text-chat { scroll-margin-top: 110px; }
.flyer-assistant-written-answer a { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 3px; }
.flyer-assistant-follow-up { display: grid; gap: 10px; width: 100%; padding: 12px 0; }
.flyer-assistant-follow-up .flyer-assistant-choices { gap: 8px; }
.flyer-assistant-follow-up .flyer-field { max-width: 260px; }
#flyer-result { scroll-margin-top: 110px; }
.flyer-assistant-text-conversation { height: clamp(240px, 40vh, 360px); overflow-y: scroll; overscroll-behavior: contain; scrollbar-gutter: stable; padding: 4px 10px 4px 0; }
.flyer-assistant-text-conversation::-webkit-scrollbar { width: 8px; }
.flyer-assistant-text-conversation::-webkit-scrollbar-track { background: #eef4f7; border-radius: 8px; }
.flyer-assistant-text-conversation::-webkit-scrollbar-thumb { background: #83c8e9; border-radius: 8px; }
.flyer-assistant-text-conversation:focus-visible { outline: 3px solid rgba(7, 139, 210, 0.25); outline-offset: 4px; }
.flyer-assistant-text-exchanges { display: grid; gap: 24px; margin: 0; padding: 0; list-style: none; }
.flyer-assistant-text-exchanges li { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.flyer-assistant-window .flyer-assistant-previous-label { align-self: flex-end; font-size: 0.78rem; }
.flyer-assistant-window .flyer-assistant-written-question,
.flyer-assistant-window .flyer-assistant-written-answer { max-width: 92%; padding: 14px 18px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.9rem; }
.flyer-assistant-window .flyer-assistant-written-question { align-self: flex-end; background: var(--blue); color: #fff; border-radius: 18px 18px 4px 18px; }
.flyer-assistant-window .flyer-assistant-written-answer { align-self: flex-start; background: var(--blue-soft); color: var(--ink); border-radius: 18px 18px 18px 4px; }
.flyer-assistant-request h3 { margin: 0 0 10px; font-size: 1rem; }
.flyer-assistant-request ul { margin: 0; padding-left: 20px; font-size: 0.88rem; }
.flyer-assistant-price-link { margin-top: 16px; }
.flyer-assistant-window .flyer-assistant-footnote { margin-top: 20px; font-size: 0.8rem; }
.flyer-assistant-free-text { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.flyer-assistant-free-text summary { cursor: pointer; color: var(--blue-dark); font-size: 0.85rem; }
.flyer-assistant-free-text summary span { display: inline-block; margin-left: 6px; color: var(--muted); font-size: 0.75rem; }
.flyer-assistant-window [hidden] { display: none !important; }

.flyer-calculator-section { padding: 64px 0 90px; }
.flyer-assistant-section + .flyer-calculator-section { padding-top: 28px; }

.flyer-calculator-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
    gap: 28px;
    align-items: start;
}

.flyer-assistant-window,
.flyer-form,
.flyer-result {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 12px 36px rgba(23, 27, 34, 0.06);
}

.flyer-form { padding: clamp(24px, 4vw, 42px); }

.flyer-form-heading {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 30px;
}

.flyer-step {
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: #fff;
    background: var(--blue);
    border-radius: 50%;
    font-weight: 850;
}

.flyer-form-heading h2,
.flyer-result h2 { margin: 2px 0 5px; font-size: 1.45rem; }
.flyer-form-heading p,
.flyer-result-placeholder p { margin: 0; color: var(--muted); }

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

.flyer-field { display: grid; gap: 7px; }
.flyer-field-wide { grid-column: span 2; }
.flyer-field > span { font-size: 0.9rem; font-weight: 780; }
.flyer-field small { color: var(--muted); font-size: 0.77rem; }
.flyer-field .flyer-tool-cost-warning { color: #b00020; font-weight: 800; }

.pad-type-fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.pad-type-fieldset legend {
    margin-bottom: 10px;
    font-size: 0.9rem;
    font-weight: 780;
}

.pad-type-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    align-items: center;
}

.pad-type-option { cursor: pointer; }
.pad-type-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.pad-type-card {
    display: grid;
    min-height: 92px;
    padding: 8px 6px;
    place-items: center;
    align-content: center;
    gap: 3px;
    text-align: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.pad-type-card img { width: 58px; height: 48px; object-fit: contain; }
.pad-type-card strong { font-size: 0.82rem; }
.pad-type-option:hover .pad-type-card { background: var(--blue-soft); transform: scale(1.02); }
.pad-type-option input:focus-visible + .pad-type-card { outline: 3px solid rgba(7, 139, 210, 0.16); }
.pad-type-option input:checked + .pad-type-card {
    background: #fff;
    border-color: #078bd2;
    box-shadow: 0 3px 12px rgba(7, 139, 210, 0.13);
    transform: scale(1.06);
}

.flyer-field select,
.flyer-field input {
    box-sizing: border-box;
    width: 100%;
    height: 50px;
    min-height: 50px;
    padding: 0 14px;
    color: var(--ink);
    background: #fff;
    border: 1px solid #cfd8df;
    border-radius: 11px;
    font: inherit;
}

.flyer-field .pad-type-option input {
    width: 1px;
    height: 1px;
    min-height: 0;
    padding: 0;
    border: 0;
}

.flyer-field select:focus,
.flyer-field input:focus {
    outline: 3px solid rgba(7, 139, 210, 0.16);
    border-color: var(--blue);
}

.flyer-deadline { margin-top: 4px; }
.flyer-order-button { width: 100%; margin-top: 22px; }
.flyer-order-button:disabled {
    color: #68737e;
    background: #dce2e7;
    box-shadow: none;
}
.flyer-order-note { margin: 8px 0 0; color: var(--muted); font-size: 0.78rem; text-align: center; }
.flyer-result.is-loading { opacity: 0.72; }

.flyer-message {
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.9rem;
}

.flyer-message.is-error {
    color: #8c1f2d;
    background: #fff0f2;
    border: 1px solid #f1b7bf;
}

.flyer-result {
    position: sticky;
    top: 108px;
    min-height: 310px;
    padding: 30px;
}

.flyer-result-placeholder .flyer-step { margin-bottom: 22px; }
.flyer-result-kicker { color: var(--blue-dark); font-size: 0.76rem; font-weight: 850; letter-spacing: 0.1em; text-transform: uppercase; }
.flyer-result-primary { margin: 8px 0 0; font-size: 0.95rem; }
.flyer-result-primary strong { font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.05; letter-spacing: -0.045em; }
.flyer-result-primary span { margin-left: 2px; font-weight: 750; }
.flyer-result-gross-label { margin: 8px 0 0; color: var(--muted); font-size: 0.86rem; }
.flyer-result-gross { margin: 0 0 24px; font-size: 1.45rem; line-height: 1.2; }

.flyer-price-details { margin: 0; border-top: 1px solid var(--line); }
.flyer-price-details div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.flyer-price-details dt { color: var(--muted); }
.flyer-price-details dd { margin: 0; text-align: right; font-weight: 750; }

.flyer-result-summary { margin-top: 22px; }
.flyer-result-summary h3 { margin: 0 0 8px; font-size: 0.9rem; }
.flyer-result-summary ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.flyer-result-summary li { padding: 5px 8px; color: #3e4a55; background: var(--blue-soft); border-radius: 6px; font-size: 0.74rem; }
.flyer-custom-quote { padding: 18px; background: #fff4e5; border: 1px solid #f1c27d; border-radius: 12px; }
.flyer-custom-quote p { margin: 10px 0 18px; font-size: 1.05rem; font-weight: 750; }

.flyer-result .button { width: 100%; }

@media (max-width: 900px) {
    .flyer-calculator-layout { grid-template-columns: 1fr; }
    .flyer-result { position: static; scroll-margin-top: 92px; }
}

@media (max-width: 600px) {
    .flyer-hero { padding: 44px 0; }
    .flyer-hero img { display: none; }
    .flyer-calculator-section { padding: 38px 0 64px; }
    .flyer-fields { grid-template-columns: 1fr; }
    .flyer-field-wide { grid-column: auto; }
    .flyer-form, .flyer-result { padding: 22px; }
    .flyer-assistant-send { width: 100%; }
    .pad-type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
