.fm-form-wrap {
    max-width: 720px;
}

.fm-feedback-list {
    max-width: none;
    width: 100%;
}

.fm-field {
    margin: 0 0 14px;
}

.fm-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

.fm-field input,
.fm-field select,
.fm-field textarea {
    width: 100%;
    max-width: 100%;
}

.fm-field-checkbox .fm-checkbox-label {
    align-items: flex-start;
    cursor: pointer;
    display: inline-flex;
    gap: 0.6em;
    margin-bottom: 0;
}

.fm-field-checkbox .fm-checkbox-label input {
    flex: 0 0 auto;
    margin-top: 0.25em;
    width: auto;
}

.fm-field-checkbox .fm-checkbox-label span {
    display: inline;
}

.fm-hp {
    position: absolute;
    left: -9999px;
}

.fm-message {
    margin: 12px 0;
}

.fm-message-success {
    color: #146c2e;
}

.fm-message-error {
    color: #b32d2e;
}

.fm-feedback-items {
    display: grid;
    gap: 20px;
}

.fm-feedback-item {
    width: 100%;
}

.fm-feedback-item header {
    display: flex;
    gap: 12px;
}

.fm-feedback-item dl {
    display: grid;
    grid-template-columns: minmax(100px, 160px) 1fr;
    gap: 6px 12px;
}

.fm-feedback-template > :first-child {
    margin-top: 0;
}

.fm-feedback-template > :last-child {
    margin-bottom: 0;
}

.fm-feedback-image {
    margin: 0 0 1em;
}

.fm-feedback-image img {
    display: block;
    height: auto;
    max-width: 100%;
}

.fm-feedback-image-left .fm-feedback-item,
.fm-feedback-image-right .fm-feedback-item {
    align-items: start;
    display: grid;
    gap: 1.5em;
    grid-template-columns: minmax(160px, 32%) minmax(0, 1fr);
}

.fm-feedback-image-left .fm-feedback-template,
.fm-feedback-image-right .fm-feedback-template {
    min-width: 0;
}

.fm-feedback-image-right .fm-feedback-image {
    order: 2;
}

.fm-feedback-image-left .fm-feedback-image,
.fm-feedback-image-right .fm-feedback-image {
    margin: 0;
}

.fm-pagination {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    margin-top: 1.5em;
}

.fm-pagination a,
.fm-pagination-current,
.fm-pagination-ellipsis {
    display: inline-flex;
    justify-content: center;
    line-height: 1.4;
}

.fm-pagination-ellipsis {
    min-width: 1.5em;
}

.fm-demo-page {
    --fm-demo-ink: #17110d;
    --fm-demo-muted: #6d625b;
    --fm-demo-line: #eadfd7;
    --fm-demo-accent: #d65228;
    --fm-demo-soft: #f6eee7;
    background: #fffaf5;
    color: var(--fm-demo-ink);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow: hidden;
    width: 100%;
}

.fm-demo-active .wp-site-blocks > header.wp-block-template-part,
.fm-demo-active .wp-site-blocks > footer.wp-block-template-part,
.fm-demo-active .wp-block-post-title {
    display: none;
}

.fm-demo-active main.wp-block-group {
    margin-top: 0 !important;
}

.fm-demo-active .entry-content > .fm-demo-page:first-child,
.fm-demo-active main .fm-demo-page:first-child {
    margin-block-start: 0;
}

.fm-demo-page,
.fm-demo-page * {
    box-sizing: border-box;
}

.fm-demo-page a {
    color: inherit;
}

.fm-demo-page :where(h1, h2, p, figure) {
    margin-block-start: 0;
}

.fm-demo-shell {
    margin: 0 auto;
    max-width: 1180px;
    padding: 0 clamp(18px, 4vw, 40px);
}

.fm-demo-nav {
    align-items: center;
    border-bottom: 1px solid rgba(23, 17, 13, 0.08);
    display: flex;
    gap: 24px;
    justify-content: space-between;
    min-height: 82px;
}

.fm-demo-brand {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 700;
    letter-spacing: 0;
    text-decoration: none;
    white-space: nowrap;
}

.fm-demo-menu,
.fm-demo-tabs {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
}

.fm-demo-menu a,
.fm-demo-tabs a {
    border-radius: 2px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-decoration: none;
    text-transform: uppercase;
}

.fm-demo-menu a {
    padding: 8px 0;
}

.fm-demo-cta {
    background: var(--fm-demo-accent);
    border-radius: 2px;
    color: #fff !important;
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    justify-content: center;
    min-width: 112px;
    padding: 13px 18px;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.fm-demo-hero {
    align-items: center;
    display: grid;
    gap: clamp(28px, 5vw, 68px);
    grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.75fr);
    min-height: min(68vh, 620px);
    padding: clamp(42px, 7vw, 84px) 0 clamp(48px, 7vw, 86px);
}

.fm-demo-hero h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(54px, 9vw, 118px);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 0.92;
    margin: 0 0 26px;
    max-width: 820px;
}

.fm-demo-hero p {
    color: var(--fm-demo-muted);
    font-size: clamp(19px, 2.2vw, 27px);
    line-height: 1.35;
    margin: 0;
    max-width: 620px;
}

.fm-demo-hero img {
    aspect-ratio: 0.86;
    border-radius: 2px;
    box-shadow: 0 24px 70px rgba(23, 17, 13, 0.12);
    display: block;
    max-height: 540px;
    object-fit: cover;
    width: 100%;
}

.fm-demo-intro {
    background: #fff;
    border-top: 1px solid var(--fm-demo-line);
    padding: clamp(38px, 5vw, 62px) 0 30px;
}

.fm-demo-intro h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 4vw, 56px);
    letter-spacing: 0;
    line-height: 1.05;
    margin: 0;
    max-width: 760px;
}

.fm-demo-tabs {
    border-top: 1px solid var(--fm-demo-line);
    margin-top: 28px;
    padding-top: 22px;
}

.fm-demo-tabs a {
    border-bottom: 2px solid transparent;
    color: var(--fm-demo-muted);
    padding-bottom: 7px;
}

.fm-demo-tabs a:first-child {
    border-color: var(--fm-demo-accent);
    color: var(--fm-demo-ink);
}

.fm-demo-section {
    background: #fff;
    padding: clamp(36px, 5vw, 64px) 0;
}

.fm-demo-section + .fm-demo-section {
    border-top: 1px solid var(--fm-demo-line);
}

.fm-demo-section h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 3vw, 42px);
    letter-spacing: 0;
    line-height: 1.1;
    margin: 0 0 28px;
}

.fm-demo-section .fm-feedback-list {
    display: grid;
    gap: 0;
    max-width: none;
}

.fm-demo-section .fm-feedback-item {
    align-items: start;
    border-top: 1px solid var(--fm-demo-line);
    gap: clamp(20px, 4vw, 44px);
    padding: 30px 0;
}

.fm-demo-section .fm-feedback-item:first-child {
    border-top: 0;
    padding-top: 0;
}

.fm-demo-section .fm-feedback-image img {
    aspect-ratio: 1.18 / 1;
    border-radius: 2px;
    object-fit: cover;
    width: 100%;
}

.fm-demo-testimonial-card {
    display: grid;
    gap: 18px;
    max-width: 760px;
}

.fm-demo-testimonial-copy {
    color: #2b231e;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(22px, 2.2vw, 31px);
    line-height: 1.36;
}

.fm-demo-testimonial-copy p {
    margin: 0 0 12px;
}

.fm-demo-testimonial-copy p:last-child {
    margin-bottom: 0;
}

.fm-demo-testimonial-meta {
    color: var(--fm-demo-muted);
    font-size: 15px;
    line-height: 1.45;
}

.fm-demo-testimonial-meta strong {
    color: #5c514a;
    display: block;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.fm-demo-testimonial-meta span:empty {
    display: none;
}

.fm-demo-section .fm-pagination {
    border-top: 1px solid var(--fm-demo-line);
    gap: 8px;
    margin-top: 0;
    padding-top: 26px;
}

.fm-demo-section .fm-pagination a,
.fm-demo-section .fm-pagination span {
    border: 1px solid var(--fm-demo-line);
    border-radius: 2px;
    min-width: 36px;
    padding: 7px 10px;
    text-align: center;
    text-decoration: none;
}

.fm-demo-section .fm-pagination .fm-pagination-current {
    background: var(--fm-demo-accent);
    border-color: var(--fm-demo-accent);
    color: #fff;
}

.fm-demo-section .fm-pagination .fm-pagination-ellipsis {
    background: transparent;
    border-color: transparent;
    color: var(--fm-demo-muted);
}

.fm-demo-form-page .fm-demo-hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding-bottom: clamp(34px, 5vw, 56px);
}

.fm-demo-form-page .fm-demo-hero p {
    max-width: 720px;
}

.fm-demo-form-section {
    background: #fff;
    border-top: 1px solid var(--fm-demo-line);
    padding: clamp(38px, 6vw, 74px) 0;
}

.fm-demo-form-layout {
    align-items: start;
    display: grid;
    gap: clamp(28px, 5vw, 64px);
    grid-template-columns: minmax(240px, 0.55fr) minmax(0, 1fr);
}

.fm-demo-form-aside {
    border-top: 3px solid var(--fm-demo-accent);
    display: grid;
    gap: 16px;
    padding-top: 20px;
}

.fm-demo-form-aside h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 3.2vw, 48px);
    letter-spacing: 0;
    line-height: 1.05;
    margin: 0;
}

.fm-demo-form-aside p {
    color: var(--fm-demo-muted);
    font-size: 17px;
    line-height: 1.55;
    margin: 0;
}

.fm-demo-form-panel {
    background: #fffaf5;
    border: 1px solid var(--fm-demo-line);
    border-radius: 2px;
    padding: clamp(20px, 4vw, 38px);
}

.fm-demo-form-panel .fm-form-wrap {
    max-width: none;
}

.fm-demo-form-panel .fm-message {
    border-radius: 2px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    margin: 0 0 20px;
    padding: 13px 15px;
}

.fm-demo-form-panel .fm-message-success {
    background: #ecf8ef;
    border: 1px solid #b8dfc0;
    color: #155f2b;
}

.fm-demo-form-panel .fm-message-error {
    background: #fff0ed;
    border: 1px solid #efb7aa;
    color: #9b2f1e;
}

.fm-demo-form-panel .fm-form {
    display: grid;
    gap: 18px;
}

.fm-demo-form-panel .fm-field,
.fm-demo-form-panel .fm-form > p {
    margin: 0;
}

.fm-demo-form-panel .fm-field label {
    color: var(--fm-demo-ink);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 8px;
}

.fm-demo-form-panel .fm-field input,
.fm-demo-form-panel .fm-field select,
.fm-demo-form-panel .fm-field textarea {
    background: #fff;
    border: 1px solid #d8c9be;
    border-radius: 2px;
    color: var(--fm-demo-ink);
    font: inherit;
    min-height: 46px;
    padding: 11px 12px;
}

.fm-demo-form-panel .fm-field textarea {
    min-height: 150px;
    resize: vertical;
}

.fm-demo-form-panel .fm-field-checkbox {
    align-items: start;
    display: grid;
    gap: 8px;
    grid-template-columns: 22px minmax(0, 1fr);
}

.fm-demo-form-panel .fm-field-checkbox label {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
}

.fm-demo-form-panel .fm-field-checkbox input {
    grid-column: 1;
    grid-row: 1;
    min-height: 0;
    width: 18px;
}

.fm-demo-form-panel .fm-submit {
    background: var(--fm-demo-accent);
    border: 0;
    border-radius: 2px;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    min-height: 48px;
    padding: 13px 20px;
    text-transform: uppercase;
}

.fm-demo-success-section {
    background: #fff;
    border-top: 1px solid var(--fm-demo-line);
    padding: clamp(46px, 7vw, 90px) 0;
}

.fm-demo-success-card {
    border-left: 4px solid var(--fm-demo-accent);
    display: grid;
    gap: 18px;
    max-width: 760px;
    padding-left: clamp(20px, 4vw, 34px);
}

.fm-demo-success-card h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 4vw, 58px);
    letter-spacing: 0;
    line-height: 1.05;
    margin: 0;
}

.fm-demo-success-card p {
    color: var(--fm-demo-muted);
    font-size: 18px;
    line-height: 1.55;
    margin: 0;
}

.fm-demo-success-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.fm-demo-success-actions a {
    border: 1px solid var(--fm-demo-line);
    border-radius: 2px;
    font-size: 13px;
    font-weight: 800;
    padding: 12px 16px;
    text-decoration: none;
    text-transform: uppercase;
}

.fm-demo-success-actions a:first-child {
    background: var(--fm-demo-accent);
    border-color: var(--fm-demo-accent);
    color: #fff;
}

@media (max-width: 780px) {
    .fm-demo-nav,
    .fm-demo-hero,
    .fm-feedback-image-left .fm-feedback-item,
    .fm-feedback-image-right .fm-feedback-item,
    .fm-demo-form-layout {
        grid-template-columns: 1fr;
    }

    .fm-demo-nav {
        align-items: flex-start;
        display: grid;
        min-height: 0;
        padding: 18px 0;
    }

    .fm-demo-hero {
        min-height: 0;
        padding-top: 22px;
    }

    .fm-demo-hero img {
        max-height: none;
    }

    .fm-demo-hero p,
    .fm-demo-testimonial-copy {
        font-size: 20px;
    }

    .fm-demo-menu,
    .fm-demo-tabs {
        gap: 8px 14px;
    }
}
