:root {
    --mmtm-blue: #2517ef;
    --mmtm-blue-dark: #1308bf;
    --mmtm-gold: #c8a45a;
    --mmtm-ink: #15151a;
    --mmtm-muted: #6f7180;
    --mmtm-faint: #a5a7b2;
    --mmtm-line: #e6e7eb;
    --mmtm-rail: #f8f8fa;
    --mmtm-white: #fff;
    --mmtm-font-title: "DM Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --mmtm-font-body: "Outfit", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
    margin-top: 0 !important;
}

html,
body.mmtm-photo-form-page {
    margin: 0 !important;
    min-height: 100%;
    background: var(--mmtm-white);
}

body.mmtm-photo-form-page {
    font-weight: 400;
    color: var(--mmtm-ink);
    font-family: var(--mmtm-font-body);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body.mmtm-photo-form-page #wpadminbar {
    display: none;
}

body.mmtm-photo-form-page.admin-bar {
    margin-top: 0 !important;
}

.mmtm-photo-app,
.mmtm-photo-app * {
    box-sizing: border-box;
}

.mmtm-photo-app h1,
.mmtm-photo-app h2,
.mmtm-photo-app h3,
.mmtm-eyebrow,
.mmtm-step-number,
.mmtm-rail-title,
.mmtm-toc,
.mmtm-label,
.mmtm-btn,
.mmtm-chip span,
.mmtm-cover-actions > span,
.mmtm-foot {
    font-family: var(--mmtm-font-title);
}

.mmtm-photo-app button,
.mmtm-photo-app input,
.mmtm-photo-app textarea {
    font: inherit;
}

.mmtm-progress {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    height: 4px;
    background: #ededf1;
}

.mmtm-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: var(--mmtm-blue);
    transition: width .3s ease;
}

.mmtm-layout {
    display: grid;
    grid-template-columns: 390px minmax(0, 1fr);
    min-height: 100vh;
}

.mmtm-rail {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 52px 48px;
    background: var(--mmtm-rail);
}

body, html{
    height: auto !important;
}

.mmtm-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--mmtm-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.mmtm-eyebrow::before {
    width: 7px;
    height: 7px;
    background: var(--mmtm-gold);
    content: "";
}

.mmtm-rail-main {
    margin: auto 0;
}

.mmtm-step-number {
    color: var(--mmtm-blue);
    font-size: clamp(76px, 8vw, 118px);
    font-weight: 700;
    letter-spacing: -.07em;
    line-height: .9;
}

.mmtm-step-number small {
    color: var(--mmtm-faint);
    font-size: 23px;
    font-weight: 600;
    letter-spacing: 0;
}

.mmtm-rail-title {
    max-width: 16ch;
    margin-top: 22px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

.mmtm-toc {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mmtm-toc li {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 8px;
    color: var(--mmtm-faint);
    font-size: 12.5px;
    font-weight: 600;
}

.mmtm-toc li span{
    display: flex;
    align-items: center;
    gap: 4px;
}

.page-template-default{
    padding: 0 !important;
}

.mmtm-toc li.is-current {
    color: var(--mmtm-ink);
}

.mmtm-toc li.is-current span {
    color: var(--mmtm-blue);
}

.mmtm-toc li.is-done span::after {
    color: var(--mmtm-gold);
    content: " ✓";
}

.mmtm-main {
    min-width: 0;
}

.mmtm-wrap {
    width: min(850px, calc(100% - 88px));
    margin: 0 auto;
    padding: 76px 0;
}

.mmtm-screen {
    display: none;
}

.mmtm-screen.is-active {
    display: block;
    animation: mmtm-fade .28s ease both;
}

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

.mmtm-cover {
    max-width: 720px;
    margin: 8vh auto 0;
}

.mmtm-cover h1,
.mmtm-step h2 {
    margin: 0;
    color: var(--mmtm-ink);
    font-weight: 700;
    letter-spacing: -.035em;
}

.mmtm-cover h1 {
    max-width: 15ch;
    margin-top: 26px;
    font-size: clamp(40px, 4.4vw, 60px);
    line-height: 1.06;
}

.mmtm-cover p {
    max-width: 60ch;
    margin: 18px 0 0;
    color: var(--mmtm-muted);
    font-size: 18px;
}

.mmtm-cover .mmtm-lead {
    font-size: 21px;
}

.mmtm-cover .mmtm-big-note {
    color: var(--mmtm-ink);
    font-size: 24px;
    font-weight: 700;
}

.mmtm-cover-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-top: 38px;
}

.mmtm-cover-actions > span,
.mmtm-foot {
    color: var(--mmtm-faint);
    font-size: 13px;
    font-weight: 600;
}

.mmtm-foot {
    margin-top: 60px;
    letter-spacing: .04em;
}

.mmtm-step h2 {
    font-size: clamp(30px, 3.2vw, 40px);
    line-height: 1.08;
    outline: none;
}

.mmtm-subtitle {
    max-width: 54ch;
    margin: 12px 0 0;
    color: var(--mmtm-muted);
    font-size: 17px;
}

.mmtm-fields {
    margin-top: 46px;
}

.mmtm-field {
    margin-bottom: 38px;
}

.mmtm-label {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 700;
}

.mmtm-label span {
    color: var(--mmtm-faint);
    font-size: 12.5px;
    font-weight: 500;
}

.mmtm-field input[type="text"],
.mmtm-field input[type="email"],
.mmtm-field input[type="url"],
.mmtm-field textarea {
    display: block;
    width: 100%;
    margin: 0;
    padding: 10px 2px 12px;
    color: var(--mmtm-ink);
    background: transparent;
    border: 0;
    border-bottom: 2px solid var(--mmtm-line);
    border-radius: 0;
    box-shadow: none;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    transition: border-color .15s ease;
}

.mmtm-field textarea {
    min-height: 112px;
    resize: vertical;
    border: 2px solid var(--mmtm-line);
    padding: 10px;
}

.mmtm-field input:focus,
.mmtm-field textarea:focus {
    border-bottom-color: var(--mmtm-blue);
    outline: none;
}

.mmtm-field input::placeholder,
.mmtm-field textarea::placeholder {
    color: var(--mmtm-faint);
    font-size: .85em;
}

.mmtm-field input.mmtm-invalid,
.mmtm-field textarea.mmtm-invalid {
    border-bottom-color: #c62828;
}

.mmtm-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mmtm-chip {
    cursor: pointer;
}

.mmtm-chip input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.mmtm-chip span {
    display: block;
    padding: 10px 16px;
    color: var(--mmtm-ink);
    background: var(--mmtm-white);
    border: 1.5px solid var(--mmtm-line);
    font-size: 15px;
    font-weight: 650;
    transition: .15s ease;
}

.mmtm-chip:hover span {
    border-color: var(--mmtm-ink);
}

.mmtm-chip input:checked + span {
    color: var(--mmtm-white);
    background: var(--mmtm-blue);
    border-color: var(--mmtm-blue);
}

.mmtm-chip input:focus-visible + span {
    outline: 2px solid var(--mmtm-blue);
    outline-offset: 3px;
}

.mmtm-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 52px;
    padding-top: 28px;
    border-top: 1px solid var(--mmtm-gold);
}

.mmtm-btn {
    appearance: none;
    cursor: pointer;
    border: 0;
    border-radius: 0;
    font-size: 16px;
    font-weight: 700;
    transition: .15s ease;
}

.mmtm-btn:focus-visible {
    outline: 2px solid var(--mmtm-blue);
    outline-offset: 3px;
}

.mmtm-btn-primary {
    padding: 16px 32px;
    color: var(--mmtm-white);
    background: var(--mmtm-blue);
}

.mmtm-btn-primary:hover {
    background: var(--mmtm-blue-dark);
}

.mmtm-btn-primary:disabled {
    cursor: wait;
    opacity: .65;
}

.mmtm-btn-back {
    padding: 8px 2px;
    color: var(--mmtm-muted);
    background: transparent;
}

.mmtm-btn-back:hover {
    color: var(--mmtm-ink);
}

.mmtm-server-error {
    display: grid;
    gap: 4px;
    margin-bottom: 30px;
    padding: 16px 18px;
    color: #7f1d1d;
    background: #fff7f7;
    border: 1px solid #fecaca;
    font-size: 15px;
}

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

.mmtm-done .mmtm-check {
    display: grid;
    place-items: center;
    width: 90px;
    height: 90px;
    margin-bottom: 30px;
    color: var(--mmtm-white);
    background: var(--mmtm-blue);
    border-radius: 50%;
    font-size: 44px;
    font-weight: 800;
}

.mmtm-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 25px;
    color: var(--mmtm-ink);
    background: rgba(255, 255, 255, .97);
    text-align: center;
}

.mmtm-overlay.is-active {
    display: flex;
}

.mmtm-overlay span {
    color: var(--mmtm-muted);
    font-size: 15px;
}

.mmtm-spinner {
    width: 46px;
    height: 46px;
    margin-bottom: 12px;
    border: 3px solid var(--mmtm-line);
    border-top-color: var(--mmtm-blue);
    border-radius: 50%;
    animation: mmtm-spin .75s linear infinite;
}

@keyframes mmtm-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 920px) {
    .mmtm-layout {
        grid-template-columns: 1fr;
    }

    .mmtm-rail {
        position: static;
        display: none;
        height: auto;
    }

    .mmtm-photo-app.is-form-mode .mmtm-rail {
        display: block;
        padding: 24px;
        border-right: 0;
        border-bottom: 1px solid var(--mmtm-line);
    }

    .mmtm-photo-app.is-form-mode .mmtm-rail-main {
        display: flex;
        align-items: end;
        justify-content: space-between;
        gap: 22px;
        margin: 18px 0 0;
    }

    .mmtm-step-number {
        font-size: 48px;
    }

    .mmtm-step-number small {
        font-size: 16px;
    }

    .mmtm-rail-title {
        max-width: 19ch;
        margin: 0;
        text-align: right;
        font-size: 18px;
    }

    .mmtm-toc {
        display: none;
    }

    .mmtm-wrap {
        width: min(100% - 42px, 760px);
        padding: 42px 0 60px;
    }

    .mmtm-cover {
        margin-top: 2vh;
    }
}

@media (max-width: 560px) {
    .mmtm-wrap {
        width: min(100% - 30px, 760px);
    }

    .mmtm-cover h1 {
        font-size: 41px;
    }

    .mmtm-step h2 {
        font-size: 30px;
    }

    .mmtm-nav {
        gap: 18px;
    }

    .mmtm-btn-primary {
        padding-inline: 23px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mmtm-photo-app * {
        scroll-behavior: auto !important;
        animation: none !important;
        transition: none !important;
    }
}
