.askora-form-wrap {
    width: 100%;
    max-width: 940px;
    margin: 0 auto;
    padding: 36px 18px 56px;
    box-sizing: border-box;
}

.askora-form-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(117, 91, 255, 0.14);
    border-radius: 28px;
    box-shadow: 0 18px 55px rgba(34, 28, 78, 0.10);
    padding: 34px;
}

.askora-form-head {
    text-align: center;
    margin-bottom: 28px;
}

.askora-form-kicker {
    display: inline-flex;
    margin: 0 0 10px;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(115, 94, 255, 0.10);
    color: #5b4bd6;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.askora-form-title {
    margin: 0;
    color: #17142f;
    font-size: clamp(22px, 2.4vw, 30px);
    line-height: 1.14;
    font-weight: 800;
}

.askora-form-description {
    max-width: 680px;
    margin: 10px auto 0;
    color: #5f6074;
    font-size: 16px;
    line-height: 1.65;
}

.askora-form {
    display: grid;
    gap: 20px;
}

.askora-form-field {
    display: grid;
    gap: 9px;
}

.askora-form-label {
    color: #26243d;
    font-weight: 750;
    font-size: 15px;
}

.askora-form-required {
    color: #7c4dff;
    margin-left: 4px;
}

.askora-form-field input[type="text"],
.askora-form-field textarea,
.askora-form-field select {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(37, 34, 62, 0.14);
    border-radius: 18px;
    background: #fff;
    color: #1c1a31;
    padding: 14px 16px;
    font-size: 16px;
    line-height: 1.5;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.askora-form-field textarea {
    resize: vertical;
    min-height: 132px;
}

.askora-form-field input[type="text"]:focus,
.askora-form-field textarea:focus,
.askora-form-field select:focus {
    border-color: rgba(111, 83, 255, 0.75);
    box-shadow: 0 0 0 4px rgba(111, 83, 255, 0.10);
}

.askora-form-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.askora-form-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 13px;
    border: 1px solid rgba(37, 34, 62, 0.12);
    border-radius: 999px;
    background: rgba(250, 250, 255, 0.88);
    color: #2c2a42;
    cursor: pointer;
}

.askora-form-option input {
    margin: 0;
}

.askora-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
}

.askora-form-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 15px;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.askora-form-button:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.askora-form-button-primary {
    background: linear-gradient(135deg, #6757ff, #8a58ff);
    color: #fff;
    box-shadow: 0 12px 28px rgba(103, 87, 255, 0.28);
}

.askora-form-button-secondary {
    background: rgba(103, 87, 255, 0.08);
    color: #4e43bf;
    border-color: rgba(103, 87, 255, 0.14);
}

.askora-form-message {
    margin: 0 0 22px;
    padding: 14px 16px;
    border-radius: 18px;
    font-weight: 650;
    line-height: 1.5;
}

.askora-form-message-error {
    background: #fff0f0;
    color: #9d2424;
    border: 1px solid rgba(204, 65, 65, 0.20);
}

.askora-form-message-info {
    background: rgba(103, 87, 255, 0.08);
    color: #39316f;
    border: 1px solid rgba(103, 87, 255, 0.14);
}

.askora-form-error {
    margin: 0;
    color: #a32727;
    font-size: 13px;
    font-weight: 650;
}

.askora-form-field-has-error input,
.askora-form-field-has-error textarea,
.askora-form-field-has-error select {
    border-color: rgba(196, 49, 49, 0.55);
}

.askora-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 24px 0;
}

.askora-summary-item {
    border-radius: 20px;
    background: rgba(248, 248, 255, 0.95);
    border: 1px solid rgba(37, 34, 62, 0.08);
    padding: 16px;
}

.askora-summary-item strong {
    display: block;
    color: #24213f;
    margin-bottom: 8px;
}

.askora-summary-item p {
    margin: 0;
    color: #55566a;
    line-height: 1.55;
}

.askora-context-box {
    margin: 24px 0;
    border-radius: 22px;
    background: #17142f;
    color: #fff;
    padding: 20px;
}

.askora-context-box h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 20px;
}

.askora-context-box pre {
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-family: inherit;
    line-height: 1.6;
}

.askora-summary-actions {
    margin-top: 20px;
}

@media (max-width: 720px) {
    .askora-form-wrap {
        padding: 24px 14px 42px;
    }

    .askora-form-card {
        border-radius: 22px;
        padding: 22px;
    }

    .askora-form-head {
        text-align: left;
    }

    .askora-form-title {
        font-size: clamp(22px, 7vw, 28px);
    }

    .askora-form-description {
        margin-left: 0;
        margin-right: 0;
        font-size: 15px;
    }

    .askora-summary-grid {
        grid-template-columns: 1fr;
    }

    .askora-form-actions,
    .askora-form-options {
        flex-direction: column;
        align-items: stretch;
    }

    .askora-form-button,
    .askora-form-option {
        width: 100%;
        box-sizing: border-box;
    }
}

/* Hotfix: summary screen title reduced by about 20%. */
.askora-form-summary-card .askora-form-title {
    font-size: clamp(25px, 2.4vw, 31px);
    line-height: 1.16;
}

@media (max-width: 720px) {
    .askora-form-summary-card .askora-form-title {
        font-size: clamp(25px, 6vw, 29px);
    }
}

/* Hotfix: summary screen top spacing. */
.askora-form-summary-card .askora-form-kicker {
    margin-bottom: 18px;
}

.askora-form-summary-card .askora-form-title {
    margin-bottom: 16px;
}

.askora-form-summary-card .askora-form-description {
    margin-top: 0;
    line-height: 1.75;
}

@media (max-width: 720px) {
    .askora-form-summary-card .askora-form-kicker {
        margin-bottom: 14px;
    }

    .askora-form-summary-card .askora-form-title {
        margin-bottom: 12px;
    }
}

/* Hotfix: primary send button on summary screen. */
.askora-form-button-primary,
.askora-form-button-primary:visited,
.askora-form-button-primary:hover,
.askora-form-button-primary:focus {
    color: #fff;
}

.askora-summary-actions .askora-form-button-primary {
    min-width: 230px;
}

.askora-form-message-highlight {
    box-shadow: 0 0 0 4px rgba(103, 87, 255, 0.10);
}

.askora-summary-edit-form {
    margin: 0;
    display: inline-flex;
}

.askora-summary-edit-form .askora-form-button {
    font-family: inherit;
}

@media (max-width: 640px) {
    .askora-summary-edit-form {
        width: 100%;
    }

    .askora-summary-edit-form .askora-form-button {
        width: 100%;
        justify-content: center;
    }
}


/* Hotfix: summary actions order and visual hierarchy. */
.askora-summary-actions {
    justify-content: center;
    gap: 14px;
}

.askora-summary-actions .askora-form-button-answer {
    min-width: 160px;
    order: 3;
}

.askora-summary-actions .askora-form-button-edit,
.askora-summary-actions .askora-form-button-category {
    min-width: 190px;
}

.askora-summary-actions .askora-summary-edit-form {
    order: 1;
}

.askora-summary-actions .askora-form-button-category {
    order: 2;
    background: rgba(103, 87, 255, 0.05);
}

.askora-summary-actions .askora-form-button-edit {
    background: rgba(103, 87, 255, 0.10);
    border-color: rgba(103, 87, 255, 0.20);
}

@media (max-width: 640px) {
    .askora-summary-actions .askora-summary-edit-form,
    .askora-summary-actions .askora-form-button-category,
    .askora-summary-actions .askora-form-button-answer {
        order: initial;
        min-width: 0;
    }
}

/* Hotfix: make the edit button readable as an outline secondary action. */
.askora-summary-actions .askora-form-button-edit,
.askora-summary-actions .askora-form-button-edit:visited,
.askora-summary-actions .askora-form-button-edit:hover,
.askora-summary-actions .askora-form-button-edit:focus {
    background: #ffffff;
    color: #2563eb !important;
    border-color: #2563eb;
    box-shadow: none;
}

.askora-summary-actions .askora-form-button-edit:hover,
.askora-summary-actions .askora-form-button-edit:focus {
    background: rgba(37, 99, 235, 0.06);
}

/* Hotfix: explicit blue border around the edit button. */
.askora-summary-actions .askora-form-button-edit,
.askora-summary-actions .askora-form-button-edit:visited,
.askora-summary-actions .askora-form-button-edit:hover,
.askora-summary-actions .askora-form-button-edit:focus {
    background: #ffffff !important;
    color: #2563eb !important;
    border: 1.5px solid #2563eb !important;
    box-shadow: none !important;
}

/* Hotfix: make edit and category buttons identical secondary actions. */
.askora-summary-actions .askora-form-button-edit,
.askora-summary-actions .askora-form-button-edit:visited,
.askora-summary-actions .askora-form-button-edit:hover,
.askora-summary-actions .askora-form-button-edit:focus,
.askora-summary-actions .askora-form-button-category,
.askora-summary-actions .askora-form-button-category:visited,
.askora-summary-actions .askora-form-button-category:hover,
.askora-summary-actions .askora-form-button-category:focus {
    background: rgba(103, 87, 255, 0.05) !important;
    color: #2563eb !important;
    border: 1px solid rgba(103, 87, 255, 0.16) !important;
    box-shadow: none !important;
}

.askora-summary-actions .askora-form-button-edit:hover,
.askora-summary-actions .askora-form-button-edit:focus,
.askora-summary-actions .askora-form-button-category:hover,
.askora-summary-actions .askora-form-button-category:focus {
    background: rgba(103, 87, 255, 0.09) !important;
}

/* Hotfix: clean paste and microphone tools inside text fields. */
.askora-form-input-wrap {
    position: relative;
    width: 100%;
}

.askora-form-input-wrap textarea,
.askora-form-input-wrap input[type="text"] {
    padding-right: 100px;
}

.askora-form-input-wrap-textarea textarea {
    padding-bottom: 58px;
}

.askora-form-field-tools {
    position: absolute;
    right: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}

.askora-form-input-wrap-textarea .askora-form-field-tools {
    bottom: 12px;
}

.askora-form-input-wrap-text .askora-form-field-tools {
    top: 50%;
    transform: translateY(-50%);
}

.askora-form-tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #f1f5f9 !important;
    color: #334155 !important;
    box-shadow: none !important;
    cursor: pointer;
    pointer-events: auto;
    line-height: 1;
    font-family: inherit;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.askora-form-tool:hover,
.askora-form-tool:focus {
    background: #e8eef7 !important;
    color: #0f172a !important;
    outline: none;
}

.askora-form-tool:focus-visible {
    box-shadow: 0 0 0 4px rgba(54, 88, 245, 0.12);
}

.askora-form-tool-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.askora-form-paste-icon svg,
.askora-form-mic-icon svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: currentColor;
}

.askora-form-mic-icon {
    width: 18px;
    height: 18px;
    transform-origin: 50% 50%;
    will-change: transform;
}

.askora-form-mic.is-listening,
.askora-form-mic[aria-pressed="true"] {
    background: #eef3ff !important;
    color: #3658f5 !important;
    box-shadow: none !important;
    transform: none;
}

.askora-form-mic.is-listening .askora-form-mic-icon,
.askora-form-mic[aria-pressed="true"] .askora-form-mic-icon {
    animation: askora-form-mic-pulse-icon 2.625s ease-in-out infinite;
}

.askora-form-voice-status {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.askora-form-input-wrap.is-paste-ok .askora-form-paste {
    background: #eef3ff !important;
    color: #3658f5 !important;
}

.askora-form-input-wrap.is-paste-error .askora-form-paste,
.askora-form-input-wrap.is-voice-error .askora-form-mic {
    background: #fff0f0 !important;
    color: #a32727 !important;
}

@keyframes askora-form-mic-pulse-icon {
    0% {
        transform: scale(0.84);
    }
    50% {
        transform: scale(1.52);
    }
    100% {
        transform: scale(0.84);
    }
}

@media (prefers-reduced-motion: reduce) {
    .askora-form-mic.is-listening .askora-form-mic-icon,
    .askora-form-mic[aria-pressed="true"] .askora-form-mic-icon {
        animation: none;
    }
}

@media (max-width: 640px) {
    .askora-form-input-wrap textarea,
    .askora-form-input-wrap input[type="text"] {
        padding-right: 92px;
    }

    .askora-form-input-wrap-textarea textarea {
        padding-bottom: 54px;
    }

    .askora-form-field-tools {
        right: 10px;
        gap: 7px;
    }

    .askora-form-tool {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
    }
}

/* Etap 4 micro-hotfix: SEO form tools must match the light overlay tools. */
.askora-form-card .askora-form-tool,
.askora-form-overlay .askora-form-tool {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #f1f5f9 !important;
    color: #334155 !important;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.askora-form-card .askora-form-tool:hover,
.askora-form-card .askora-form-tool:focus,
.askora-form-overlay .askora-form-tool:hover,
.askora-form-overlay .askora-form-tool:focus {
    background: #e8eef7 !important;
    color: #0f172a !important;
}

.askora-form-card .askora-form-tool svg,
.askora-form-overlay .askora-form-tool svg {
    width: 18px !important;
    height: 18px !important;
    display: block !important;
    fill: currentColor !important;
}

.askora-form-card .askora-form-mic.is-listening,
.askora-form-card .askora-form-mic[aria-pressed="true"],
.askora-form-overlay .askora-form-mic.is-listening,
.askora-form-overlay .askora-form-mic[aria-pressed="true"] {
    background: #eef3ff !important;
    color: #3658f5 !important;
}
