/* Landing onboard — layout, panes, modal & general styles.
   Form composer / CTA styles live in landing-onboard-form.css. */
body,
button,
input,
select,
textarea,
div,
span,
p,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
}

.loading-container {
    text-align: center;
}

.loading-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background-color: #522AE9;
    border-radius: 50%;
    animation: loading 1s infinite;
}

.loading-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes loading {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.5);
    }
}

red a {
    color: #522AE9 !important;
    text-decoration: underline !important;
    text-underline-offset: 2px !important;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1500;
    display: none;
    width: 100%;
    height: 100%;
    overflow: hidden;
    outline: 0;
    background: #000000c7;
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: .5rem;
    height: 100%;
    /* height: auto; */
    top: 36%;
}

.modal.fade .modal-dialog {
    transition: -webkit-transform .3s ease-out;
    transition: transform .3s ease-out;
    transition: transform .3s ease-out, -webkit-transform .3s ease-out;
    -webkit-transform: translate(0, -50px);
    transform: translate(0, -50px)
}

@media (prefers-reduced-motion:reduce) {
    .modal.fade .modal-dialog {
        transition: none
    }
}

.modal.show .modal-dialog {
    -webkit-transform: none;
    transform: none
}

.modal-dialog-scrollable {
    display: -ms-flexbox;
    display: flex;
    max-height: calc(100% - 1rem)
}

.modal-dialog-scrollable .modal-content {
    max-height: calc(100vh - 1rem);
    overflow: hidden
}

.modal-dialog-scrollable .modal-footer,
.modal-dialog-scrollable .modal-header {
    -ms-flex-negative: 0;
    flex-shrink: 0
}

.modal-dialog-scrollable .modal-body {
    overflow-y: auto
}

.modal-dialog-centered {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    min-height: calc(100% - 1rem)
}

.modal-dialog-centered::before {
    display: block;
    height: calc(100vh - 1rem);
    content: ""
}

.modal-dialog-centered.modal-dialog-scrollable {
    -ms-flex-direction: column;
    flex-direction: column;
    -ms-flex-pack: center;
    justify-content: center;
    height: 100%
}

.modal-dialog-centered.modal-dialog-scrollable .modal-content {
    max-height: none
}

.modal-dialog-centered.modal-dialog-scrollable::before {
    content: none
}

.modal-content {
    position: relative;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, .2);
    border-radius: .3rem;
    outline: 0;
    justify-content: center;
    margin: auto;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    width: 100vw;
    height: 100vh;
    background-color: #000
}

.modal-backdrop.fade {
    opacity: 0
}

.modal-backdrop.show {
    opacity: .5
}

.modal-header {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: start;
    align-items: flex-start;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 1rem 1rem;
    border-top-left-radius: .3rem;
    border-top-right-radius: .3rem;
    border-bottom: 1px solid #e2e2e2;
}

.modal-header .close {
    padding: 1rem 1rem;
    margin: -1rem -1rem -1rem auto
}

.modal-title {
    margin-bottom: 0;
    line-height: 1.5
}

.modal-body {
    position: relative;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    padding: 1rem
}

button.btn.btn-primary {
    background: var(--ff-primary-color);
    border: 1px solid var(--ff-primary-color);
    padding: 6px;
    font-size: 14px;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    font-size: 14px !important;
    font-weight: 500;
    font-family: var(--font-primary);
    width: max-content;
    min-width: 82px;
}

.modal-footer {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    padding: 1rem;
    border-bottom-right-radius: .3rem;
    border-bottom-left-radius: .3rem;
    border-top: 1px solid #e2e2e2;
}

.modal-footer>:not(:first-child) {
    margin-left: .25rem
}

.modal-footer>:not(:last-child) {
    margin-right: .25rem
}

.modal-scrollbar-measure {
    position: absolute;
    top: -9999px;
    width: 50px;
    height: 50px;
    overflow: scroll
}

@media (min-width:576px) {
    .modal-dialog {
        max-width: 500px;
        margin: auto;
        /* height: 100%; */
    }

    .modal-dialog-scrollable {
        max-height: calc(100% - 3.5rem)
    }

    .modal-dialog-scrollable .modal-content {
        max-height: calc(100vh - 3.5rem)
    }

    .modal-dialog-centered {
        min-height: calc(100% - 3.5rem)
    }

    .modal-dialog-centered::before {
        height: calc(100vh - 3.5rem)
    }

    .modal-sm {
        max-width: 300px
    }
}

@media (min-width:992px) {

    .modal-lg,
    .modal-xl {
        max-width: 800px
    }
}

@media (min-width:1200px) {
    .modal-xl {
        max-width: 1140px
    }
}

.close {
    float: right;
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: .5;
    cursor: pointer;
}

.close:hover {
    color: #000;
    text-decoration: none;
    background-color: #4D2CE0;
}

.close:not(:disabled):not(.disabled):focus,
.close:not(:disabled):not(.disabled):hover {
    opacity: .75
}

button.close {
    padding: 0;
    background-color: transparent;
    border: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none
}

a.close.disabled {
    pointer-events: none
}

* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

red,
.red {
    color: #E91E63;
}

body {
    background-color: #ffffff !important;
    display: flex;
    height: 100vh;
}

:root {
    --primary-color: #522AE9;
    --primary: #522AE9;
    --primary-hover: #6b47ef;
    --primary-dark: #4E2EC4;
    --primary-light: #8B57D8;
    --brand-gradient: linear-gradient(90deg, #4E2EC4 0%, #8B57D8 100%);
    --font-primary: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

.auth-container {
    gap: 15px;
    display: flex;
    align-items: center;
    justify-items: center;
    flex-direction: column;
    justify-content: center;
}

.login-label {
    font-size: 20px;
    font-weight: 500;
    color: #000;
    font-family: var(--font-primary);
    margin-top: -15px;
    margin-bottom: 10px;
}

/* logo container will have logo and title */
.logo-container {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* logo will have 100px width and 100px height */
.logo {
    width: 80px;
    height: 80px;
}

/* h1 will have font size 24px and font weight 500 */
.landing-seo-block {
    margin-bottom: 20px;
}

.left-container .landing-seo-block h1,
.left-container #landing-h1 {
    font-family: 'Plus Jakarta Sans', var(--font-primary), sans-serif;
    font-size: 38px;
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -1px;
    margin: 0 0 14px;
    color: #fff;
}

.left-container .landing-subtitle,
.left-container #landing-subtitle {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    max-width: 340px;
    font-weight: 400;
}

.landing-faq {
    margin-top: 24px;
}

.landing-faq-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 10px;
    color: #1f1f1f;
}

.landing-faq-item {
    border-top: 1px solid #e8eaed;
    padding: 10px 0;
}

.landing-faq-item summary {
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #1f1f1f;
}

.landing-faq-item p {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: #5f6368;
}

h1 {
    font-size: 24px;
    font-weight: 500;
    color: #000;
    font-family: var(--font-primary);
}

.main-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0px;
    flex: 1;
    position: relative;
    width: 100%;
}

.login-logo {
    position: absolute;
    top: 50px;
    left: 44px;
}

.login-logo img {
    width: 100px;
    object-fit: contain;
}

.left-container {
    background: var(--brand-gradient);
    padding: 50px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    color: white;
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 500;
    height: 100vh;
    flex: .4;
    width: 100%;
}

/* Redesigned SEO landing left pane */
.left-container.landing-left {
    background: linear-gradient(145deg, #3b1fb8 0%, #6b35e8 55%, #9b59e8 100%);
    justify-content: space-between;
    padding: 36px 44px 44px;
    position: relative;
    overflow: hidden;
}

.left-container.landing-left::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.left-container.landing-left::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -40px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.landing-brand,
.landing-hero,
.landing-testimonial {
    position: relative;
    z-index: 2;
}

.landing-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.landing-brand-link img {
    height: 38px;
    width: auto;
    object-fit: contain;
    /* Force the logo white on the dark gradient pane */
    filter: brightness(0) invert(1);
}

.landing-brand-name {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.4px;
    color: #fff;
}

.landing-hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px 0 12px;
}

.landing-features {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
    /* Hidden for now per design. */
    display: none;
}

.landing-feature {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
}

.landing-feature-icon {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.landing-testimonial {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    padding: 18px 20px;
}

.landing-testimonial-text {
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    font-style: italic;
    color: rgba(255, 255, 255, 0.92);
    margin: 0 0 14px;
}

.landing-testimonial-user {
    display: flex;
    align-items: center;
    gap: 11px;
}

.landing-testimonial-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.landing-testimonial-meta {
    display: flex;
    flex-direction: column;
}

.landing-testimonial-name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.landing-testimonial-company {
    font-size: 11.5px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 1px;
}

.right-container {
    background-color: #fff;
    border-radius: 0px 8px 8px 0px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 500;
    flex: 0.6;
    width: 100%;
    height: 100%;
    padding: 30px;
    width: 100%;
}

.customer-quote {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.customer-quote-icon {
    margin-bottom: 0px;
}

.customer-quote-text {
    font-size: 28px;
    line-height: 1.5;
    font-weight: 300;
    color: #fff;
    font-family: var(--font-primary);
    margin-bottom: 5px;
}

.customer-quote-footer {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-top: 15px;
    align-items: center;
}

.customer-quote-avatar {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background-color: #fff;
    object-fit: cover;
}

.customer-quote-user-name {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    font-family: var(--font-primary);
}

.customer-quote-company-name {
    font-size: 16px;
    font-weight: 200;
    color: #fff;
    font-family: var(--font-primary);
    margin-top: 6px;
}

@media screen and (max-width: 860px) {
    .main-container {
        flex-direction: column;
        justify-content: unset;
    }

    .right-container {
        padding: 16px !important;
        padding-top: 16px !important;
        height: auto !important;
    }

    .login-logo img {
        width: 60px !important;
    }

    .customer-quote-icon svg {
        height: 24px !important;
        width: 24px !important;
    }

    .login-logo {
        left: 33px !important;
        top: 20px !important;
        display: none;
    }

    .customer-quote-company-name,
    .customer-quote-user-name {
        font-size: 13px !important;
    }

    .customer-quote-icon {
        margin-bottom: 0px !important;
        margin-top: 0px !important;
    }

    .customer-quote .customer-quote-text {
        font-size: 20px !important;
        line-height: 1.5 !important;
        margin-bottom: 8px !important;
    }

    .left-container {
        padding: 48px 32px !important;
        flex: 0.2;
    }

    /* Mobile left band sizes to its content (not a fixed 0.2 flex) so the
       testimonial has breathing room and nothing touches the edges. */
    .left-container.landing-left {
        flex: 0 0 auto !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 22px 24px 26px !important;
        justify-content: flex-start !important;
    }

    .landing-features {
        display: none !important;
    }
    /* Trust branding not needed on tab/mobile (either page). */
    .landing-trust {
        display: none !important;
    }
    /* Compact testimonial on the mobile chooser. */
    .landing-hero {
        flex: 0 0 auto !important;
    }
    .landing-testimonial-hero {
        margin-top: 16px;
    }
    .landing-testimonial-hero::before {
        font-size: 40px !important;
        margin-bottom: 0 !important;
    }
    .landing-testimonial-hero .landing-testimonial-text {
        font-size: 17px !important;
        line-height: 1.35 !important;
        margin: 2px 0 14px !important;
    }
    .landing-testimonial-avatar {
        width: 34px !important;
        height: 34px !important;
    }

    .landing-brand {
        margin-bottom: 18px;
    }

    .landing-brand-link img {
        height: 32px;
    }

    .landing-hero {
        flex: 0 0 auto;
        padding: 0 !important;
    }

    .left-container .landing-seo-block h1,
    .left-container #landing-h1 {
        font-size: 22px !important;
        letter-spacing: -0.5px !important;
    }

    .left-container .landing-subtitle,
    .left-container #landing-subtitle {
        font-size: 14px !important;
    }

    .customer-quote-avatar {
        width: 46px !important;
        height: 46px !important;
    }

    .customer-quote-footer {
        gap: 10px !important;
    }

    .right-container {
        align-items: normal !important;
        flex: 1;
    }

    /* SEO landing chooser/detail: full-width content, aligned to top (no centering gap). */
    .right-container.landing-choose,
    .right-container.landing-detail {
        justify-content: flex-start !important;
        align-items: stretch !important;
        padding: 20px !important;
    }
    .landing-chooser,
    .landing-detail-inner,
    .right-container.landing-detail .form-main-container {
        max-width: 100% !important;
        width: 100% !important;
    }
    .right-container.landing-detail #upload-template .add-attachment {
        min-height: 130px !important;
    }
    /* Chooser keeps the testimonial hidden on mobile; show it on the detail header strip is N/A. */
}

.section-fields {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

.add-new-section {
    background: transparent;
    border: 0px;
    width: fit-content;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 14px;
}

.section-preview-loading {
    width: fit-content;
}

.section-preview-loading .typing-indicator {
    height: 18px;
}

.section-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.section-actions div {
    cursor: pointer;
}

.expand-section {
    align-items: center;
    cursor: pointer;
    display: flex;
}

.expanded .outline-section-header {
    padding-bottom: 6px !important;
}

.save-section {
    align-items: center;
    cursor: pointer;
    display: flex;
    visibility: hidden;
}

.delete-section {
    display: flex;
    align-items: center;
    cursor: pointer;
    visibility: hidden;
}

.delete-section svg {
    fill: #f04b4b;
}

.outline-section-container:hover .delete-section {
    visibility: visible;
}

.brief-boxes {
    width: 100%;
}

.brief-boxes .details-box {
    color: #fff;
    float: left;
    width: 32.7%;
    padding: 10px;
    margin-top: 15px;
    /*min-height:100px;*/
    background-color: yellow;
}

.brief-boxes:after {
    clear: both;
    display: block;
    content: '';
}

.brief-boxes .details-box .stats .number {
    font-size: 40px;
}

.brief-boxes .details-box .stats .stat-title {}

.details-box-shake {
    -webkit-animation: shake 1s ease-in-out;
    animation: shake 1s ease-in-out;
}

@-webkit-keyframes shake {
    0% {
        -webkit-transform: translateX(0);
    }

    20% {
        -webkit-transform: translateX(-10px);
    }

    40% {
        -webkit-transform: translateX(10px);
    }

    60% {
        -webkit-transform: translateX(-10px);
    }

    80% {
        -webkit-transform: translateX(10px);
    }

    100% {
        -webkit-transform: translateX(0);
    }
}

@keyframes shake {
    0% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-10px);
    }

    40% {
        transform: translateX(10px);
    }

    60% {
        transform: translateX(-10px);
    }

    80% {
        transform: translateX(10px);
    }

    100% {
        transform: translateX(0);
    }
}

#view-outline-from-sidebar {
    display: none;
}

.typing-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background-color: var(--ff-primary-color);
    border-radius: 50%;
    display: inline-block;
    animation: typingIndicator 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingIndicator {
    0% {
        transform: translateY(0);
        opacity: 0.3;
    }

    50% {
        transform: translateY(-6px);
        opacity: 1;
    }

    100% {
        transform: translateY(0);
        opacity: 0.3;
    }
}

.restore-this-version {
    font-size: 12px;
    color: #6b7280;
    cursor: pointer;
    margin-top: -8px;
}

.edit-outline-text-button {
    background: transparent;
    border: 0px;
    text-underline-offset: 3px;
    text-decoration: underline;
    color: var(--ff-primary-color);
    font-size: 14px;
    cursor: pointer;
}

.instructions-outline {
    display: flex;
    margin-top: 12px;
    gap: 8px;
    position: relative;
}

.outline-container {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #522ae90d;
    padding: 10px;
    border-radius: 6px;
}

.outline-actions-container {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #522ae90d;
    padding: 10px;
    border-radius: 6px;
}

.outline-undo-redo-btn {
    background: #f8f9fa;
    padding: 3px;
    border-radius: 5px;
    border: 1px solid #e6e7eb;
    display: flex;
    align-items: center;
}

.outline-updates {
    display: flex;
    align-items: center;
    gap: 6px;
}

.outline-answer {
    font-size: 14px;
    font-weight: normal;
    border-radius: 6px;
    line-height: 1.5;
}

.hide-apply-instruction {
    display: none !important;
}

#outline-instruction {
    border: 1px solid #d4d4d4 !important;
    padding: 12px;
    width: 100%;
    padding-bottom: 30px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    border-radius: 6px;
}

#outline-instruction:focus {
    outline: none;
    border-color: var(--ff-primary-color);
    box-shadow: 0 0 0 1.5px var(--ff-primary-color);
}

#apply-instruction {
    font-size: 13px;
    position: absolute;
    bottom: 0px;
    padding: 6px;
    background: var(--primary-color);
    color: white;
    width: 100%;
    text-align: center;
    border: 0px solid #d4d4d4;
    border-radius: 0px 0px 6px 6px;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
}

.edit-outline-button {
    background-color: #949494;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-primary);
    padding: 10px 15px;
    font-size: 14px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: max-content;
}

.edit-outline-button:hover {
    background: #7a7a7a;
}

/* in mobile show it */
@media (max-width: 680px) {
    #view-outline-from-sidebar {
        display: block;
    }

    .chat-sidebar {
        width: 100%;
    }
}

.chat-sidebar.open {
    right: 0;
}

.chat-sidebar-header {
    padding: 20px;
    background: var(--brand-gradient, linear-gradient(90deg, #4E2EC4 0%, #8B57D8 100%));
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
}

.chat-sidebar-title {
    font-size: 22px;
    font-weight: 500;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 6px;
}

.chat-sidebar-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: inherit;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.chat-sidebar-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chat-conversation {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-message {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-message-user {
    align-items: flex-end;
}

.chat-message-ai {
    align-items: flex-start;
}

.chat-message-bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
}

.chat-message-user .chat-message-bubble {
    background: var(--primary-color);
    color: white;
    border-bottom-right-radius: 6px;
}

.chat-message-ai .chat-message-bubble {
    background: #f3f4f6;
    color: #1f2937;
    border-bottom-left-radius: 6px;
}

.chat-input-container {
    padding: 20px;
    border-top: 1px solid #e5e7eb;
    background: white;
}

.chat-input-wrapper {
    display: flex;
    gap: 12px;
    align-items: center;
}

.chat-input {
    flex: 1;
    min-height: 40px;
    max-height: 120px;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    resize: none;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
}

.chat-input:focus {
    border-color: var(--primary-color);
}

.chat-send-button {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    background: var(--brand-gradient, linear-gradient(90deg, #4E2EC4 0%, #8B57D8 100%));
}

.chat-send-button:hover:not(:disabled) {
    background: var(--primary-hover, #6b47ef);
}

.chat-send-button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.chat-apply-button {
    background: #10b981;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.chat-apply-button:hover {
    background: #059669;
}

.form-container-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-direction: row;
    margin-top: 20px;
}

.form-container-flex .form-container {
    padding-bottom: 15px !important;
    flex: 1;
}

/* dropdown icon for select tag */
select.form-input {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23737373' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right .5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    appearance: none;
    border-bottom: 2px solid #d8d8d8 !important;
}

.form-container-flex label.form-label {
    font-size: 17px;
}

.text-button-container {
    font-size: 14px;
    margin-top: 7px;
    font-weight: normal;
}

.text-button {
    background-color: transparent;
    color: var(--primary-color);
    border: none;
    cursor: pointer;
    font-family: var(--font-primary);
    font-weight: 500;
    display: inline-block;
    text-decoration: none;
}

.text-button:hover {
    text-decoration: none;
    text-underline-offset: 3px;
}

red#form-error {
    font-size: 16px;
    margin: 5px 0px 16px 0px;
}

.center {
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#status {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.3px;
    font-family: 'Inter';
    color: #191233;
}

.autofill-quick-links-item-checkbox {
    pointer-events: auto !important;
}

.form-section-inputs input {
    pointer-events: auto !important;
}

input:read-only {
    background-color: #f5f5f5 !important;
    /* Light gray background */
    color: #555 !important;
    /* Darker text color */
    border-bottom: 2px solid #ccc !important;
    /* Gray border */
    pointer-events: none;
}

.progressbar {
    position: relative;
    width: 100%;
    margin: -4px auto 0;
    height: 4px;
    background: #d4edda;
    overflow: hidden;
}

span.progress {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: #28a745;
    /* Green color for progress */
    transition: all .3s;
}

/* Loader animation */
span.progress::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.3);
    /* Semi-transparent overlay */
    animation: loader 1s infinite linear;
    /* Animation duration and type */
    transform: translateX(-100%);
    /* Start position for animation */
}

@keyframes loader {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.template-checkbox {
    border: 2px solid #cdcdcd;
    height: auto;
    padding: 6px;
    height: 10px;
    width: auto;
    border-radius: 109px;
}

.template-active .template-checkbox {
    border: 2px solid var(--primary-color);
    background: var(--primary-color);
    content: '✓';
    color: white;
}

.template-chips {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 12px;
}

.template-chip .checkbox-svg {
    display: none !important;
}

.template-chip .checkbox-outline-svg {
    display: block !important;
}

.template-chip.template-active .checkbox-svg {
    fill: var(--primary-color);
    display: block !important
}

.template-chip.template-active .checkbox-outline-svg {
    display: none !important;
}

.template-chip-custom input,
input#template-other-title {
    border: 0px;
    background-color: transparent;
    border-radius: 0px !important;
    padding: 0px;
    font-family: var(--font-primary);
    width: 100%;
    font-size: 14px !important;
    outline: 0px !important;
}

.template-chip-custom input:focus,
input#template-other-title:focus,
.template-active input#template-other-title {
    outline: 0px !important;
    border-bottom: 1px solid var(--primary-color) !important;
    box-shadow: none !important;
    padding-bottom: 0px !important;
}

input#create-form {
    box-shadow: none !important;
    border: 0px !important;
    border-bottom: 2px solid #d8d8d8 !important;
    background-color: #f4f4f4 !important;
    border-radius: 3px !important;
}

input#create-form:focus {
    border-bottom: 2px solid var(--primary-color) !important;
}

#template-other-title-wrapper,
.template-custom-wrapper {
    width: 100%;
}

#template-other-title:focus,
.template-custom-wrapper input:focus,
.template-active .template-custom-wrapper input {
    outline: none;
    border: 0px;
    border-bottom: 1px solid var(--primary-color) !important;
    padding-bottom: 6.5px !important;
    font-weight: 500;
}

.template-chip {
    font-size: 14px;
    font-weight: 400;
    border: 2px solid #f0f0f0;
    padding: 13px 16px;
    border-radius: 6px;
    color: #191233;
    text-decoration: none;
    cursor: pointer;
    width: 100%;
    display: flex;
    gap: 10px;
    flex-direction: row;
    align-items: center;
}

#footer-button-import-google-form {
    margin-top: 7.5px !important;
}

.stick-top#footer-button-import-google-form {
    margin-bottom: -15px !important;
    margin-top: 20px !important;
    color: #4f4a4a;
    font-size: 13px;
}

.template-chip.template-active {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    background: #522ae90d;
    cursor: default;
}

.template-chip:hover {
    background: #522ae90d;
    color: var(--primary-color);
}

.template-suggested-title {
    font-size: 12px;
    color: #555;
    font-weight: 500;
    margin-bottom: 8px;
    margin-top: 12px;
}

.template-active .template-chip-custom input.template-chip,
.template-active input#template-other-title,
.template-active input#template-url-title,
.template-active input#template-upload-title {
    color: var(--primary-color);
    padding-bottom: 10px !important;
    width: 100%;
}

.did-you-mean {
    display: none;
    font-size: 12px;
    color: #555;
    font-weight: 500;
    margin-top: 10px;
    line-height: 1.5;
}

#suggested-template-title {
    font-size: 12px;
    color: var(--primary-color);
    cursor: pointer;
}

#suggested-template-title:hover {
    text-decoration: underline;
}

.template-custom-wrapper {
    position: relative;
}

#ghost-text {
    position: absolute;
    inset: 0;
    color: #aaa;
    pointer-events: none;
    background-color: transparent !important;
    opacity: .6;
    top: -5px;
    border-bottom: 0px !important;
}

[data-ghost-text="true"] {
    background: transparent !important;
    inset: 0 !important;
    background: transparent !important;
}

.template-active #template-upload-title {
    display: none;
}

#other-template.template-active .checkbox-svg {
    margin-top: -34px !important;
}

.add-attachment {
    display: none !important;
}

.add-attachment .text {
    display: flex;
    align-items: center;
    gap: 4px;
    width: fit-content;
    border-radius: 10px;
    padding: 4px;
    cursor: pointer;
    margin-left: -4px;
}

.add-attachment .text:hover {
    background: #522ae914;
}

.add-attachment .text svg {
    fill: var(--primary-color);
    width: 21px;
    height: 21px;
}

.template-active .add-attachment {
    display: block !important;
    margin-top: 10px !important;
}

.template-chip-custom:not(.template-active) input.template-chip::placeholder,
.template-chip-custom:not(.template-active) input#template-other-title::placeholder,
.template-chip-custom:not(.template-active) input#template-url-title::placeholder,
.template-chip-custom:not(.template-active) input#template-upload-title::placeholder {
    color: #191233;
    opacity: 1;
}

.template-chip-custom:not(.template-active) #ghost-text {
    display: none !important;
}

#ff-onboard div#progress {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#ff-onboard button.action {
    width: fit-content;
    margin-top: 16px;
    border-radius: 4px;
    font-size: 14px !important;
}

#ff-onboard a.autofill-quick-links-item-text {
    font-size: 16px;
    font-weight: 400;
}

#ff-onboard .autofill-quick-links-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

#ff-onboard div#progress input[type="checkbox"] {
    border: 0px !important;
}

#ff-onboard div#progress input[type="checkbox"]:checked {
    background-color: var(--primary) !important;
    border-radius: 2px;
}

#ff-onboard a.action.button {
    width: fit-content !important;
    background: var(--primary);
    font-size: 14px !important;
    font-weight: 400;
    border-radius: 4px;
    color: white !important;
    margin-top: 14px;
}

#ff-onboard a.link {
    font-size: 14px;
    color: var(--primary);
    /* text-decoration: underline; */
    text-underline-offset: 3px;
    font-weight: 400 !important;
}

#ff-onboard div#progress input[disabled] {
    background-color: #a7a7a7 !important;
    border-radius: 2px;
}

#ff-onboard div#progress input[type="checkbox"]:checked {
    background-color: var(--primary-color) !important;
    border-radius: 2px;
    cursor: pointer !important;
}

#ff-onboard div#progress input[type="checkbox"]:disabled {
    background-color: #a7a7a7 !important;
    border-radius: 2px;
    cursor: not-allowed !important;
}

#ff-onboard {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

#document-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* ── SEO landing: method chooser (State A) + detail (State B) ───────────── */

/* Detail screens: show only the active method's input (back button returns to chooser). */
.right-container.landing-detail .template-chip-custom:not(.template-active) {
    display: none !important;
}

.landing-back {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--primary-color);
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    margin-bottom: 18px;
}
.landing-back:hover { opacity: 0.8; }

/* Compact trust line on the detail left pane (replaces the quote). */
.landing-trust {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
}
.landing-trust-icon {
    flex-shrink: 0;
}

.landing-detail-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
}
.landing-detail .landing-back { align-self: flex-start; margin: 0 0 16px; }

/* Chooser (State A) right pane. */
.landing-chooser { width: 100%; }

/* Desktop only: cap the right-pane content at the chooser width (440px) and center it.
   On mobile the @media (max-width: 860px) block makes everything full-width. */
@media (min-width: 861px) {
    .right-container.landing-detail { justify-content: center; align-items: center; }
    .landing-detail-inner { max-width: 440px; }
    .right-container.landing-detail .form-main-container {
        width: 100% !important;
        max-width: 440px !important;
    }
    .landing-chooser { max-width: 440px; }
}
.landing-chooser-label {
    font-size: 22px;
    font-weight: 700;
    color: #0f0f1a;
    margin-bottom: 24px;
}
.landing-chooser-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.landing-chooser-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    text-align: left;
    border: 1.5px solid #e7e7f0;
    background: #fff;
    border-radius: 12px;
    padding: 16px 18px;
    cursor: pointer;
    text-decoration: none;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.landing-chooser-btn:hover {
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(82, 42, 233, .1);
    transform: translateY(-1px);
}
.landing-chooser-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #f4f2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.landing-chooser-text {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: #0f0f1a;
}
.landing-chooser-arrow {
    color: var(--primary-color);
    font-size: 20px;
}

/* ── Upload method: modern drag-&-drop dropzone (detail screen) ─────────── */
/* Hide the radio glyphs and the separate title input — the dropzone is the whole UI. */
.right-container.landing-detail #upload-template .checkbox-svg,
.right-container.landing-detail #upload-template .checkbox-outline-svg,
.right-container.landing-detail #upload-template #template-upload-title {
    display: none !important;
}
.right-container.landing-detail #upload-template {
    display: block;
    border: none;
    box-shadow: none;
    padding: 0;
}
.right-container.landing-detail #upload-template .template-custom-wrapper {
    width: 100%;
}
.right-container.landing-detail #upload-template .add-attachment {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    min-height: 160px;
    margin-top: 0 !important;
    padding: 32px 20px;
    border: 2px dashed #cbc3f0;
    border-radius: 12px;
    background: #faf9ff;
    color: #6b6b76;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.right-container.landing-detail #upload-template .add-attachment:hover,
.right-container.landing-detail #upload-template .add-attachment.dragover {
    border-color: var(--primary-color);
    background: #f3f0ff;
}
.right-container.landing-detail #upload-template .add-attachment::before {
    content: '';
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #ede8ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24' viewBox='0 -960 960 960' fill='%23522AE9'%3E%3Cpath d='M440-320v-326L336-542l-56-58 200-200 200 200-56 58-104-104v326h-80ZM240-160q-33 0-56.5-23.5T160-240v-120h80v120h480v-120h80v120q0 33-23.5 56.5T720-160H240Z'/%3E%3C/svg%3E") center/24px no-repeat;
    margin-bottom: 6px;
}
.right-container.landing-detail #upload-template .add-attachment::after {
    content: 'PDF, DOC, PNG, JPG';
    font-size: 12px;
    color: #a3a0ad;
}
.right-container.landing-detail #upload-template .add-attachment .text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: auto;
    max-width: 100%;
    margin: 0;
    padding: 0;
    font-weight: 500;
    color: #4a4a55;
    text-align: center;
}
.right-container.landing-detail #upload-template .add-attachment .text:hover {
    background: transparent;
}

/* Hide the radio glyphs on the detail screens (only the active method shows anyway). */
.right-container.landing-detail .checkbox-svg,
.right-container.landing-detail .checkbox-outline-svg {
    display: none !important;
}

/* Chooser testimonial — editorial quote (no card), leads the left pane. */
.landing-testimonial.landing-testimonial-hero {
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
}
.landing-testimonial-hero::before {
    content: '\201C';
    display: block;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 64px;
    line-height: 0.6;
    opacity: 0.35;
    margin-bottom: 4px;
}
.landing-testimonial-hero .landing-testimonial-text {
    font-size: 26px;
    font-weight: 600;
    font-style: normal;
    line-height: 1.3;
    letter-spacing: -0.3px;
    margin: 10px 0 22px;
    color: #fff;
}

/* ── Style A: clean bordered input box on detail screens (name + URL) ───── */
/* Make the active chip a single neutral box; the inner input fills it (no underline). */
/* The box provides the padding so the input, ghost-suggestion and "did you mean"
   all share it (keeps the ghost text aligned and the suggestion inside the box). */
.right-container.landing-detail #other-template.template-chip-custom.template-active,
.right-container.landing-detail #url-template.template-chip-custom.template-active {
    border: 1.5px solid #e0e0ea !important;
    background: #fff !important;
    border-radius: 10px !important;
    padding: 14px 16px !important;
    transition: border-color .15s, box-shadow .15s;
}
.right-container.landing-detail #other-template.template-active:focus-within,
.right-container.landing-detail #url-template.template-active:focus-within {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(82, 42, 233, .1) !important;
}
.right-container.landing-detail #other-template:hover,
.right-container.landing-detail #url-template:hover {
    background: #fff !important;
}
/* Inner input: borderless, no underline, no own padding (box pads it). */
.right-container.landing-detail input#template-other-title,
.right-container.landing-detail input#template-url-title,
.right-container.landing-detail input#template-other-title:focus,
.right-container.landing-detail input#template-url-title:focus,
.right-container.landing-detail .template-active input#template-other-title,
.right-container.landing-detail .template-active input#template-url-title {
    border: 0 !important;
    border-bottom: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    font-size: 15px !important;
    font-weight: 500;
    color: #0f0f1a !important;
    width: 100%;
}
/* Keep the ghost suggestion on a single line, top-aligned so it coincides with the typed text. */
.right-container.landing-detail #ghost-text {
    padding: 0 !important;
    top: 0 !important;
    bottom: auto !important;
    height: auto !important;
    font-size: 15px !important;
    line-height: 22.5px !important;
    font-weight: 500 !important;
}
/* "Did you mean" now sits BELOW the input box (outside it), as a hint. */
.right-container.landing-detail .did-you-mean {
    margin-top: 10px !important;
    padding-left: 2px;
}
