:root {
    --ecr-bg: #ffffff;
    --ecr-ink: #3b392f;
    --ecr-muted: #57554d;
    --ecr-line: rgba(59, 57, 47, 0.18);
    --ecr-soft: #f6f4ef;
    --ecr-button: #474436;
    --ecr-button-hover: #323024;
    --ecr-danger: #b42318;
    --ecr-serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
    --ecr-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
}

.ecr-shell {
    width: 100vw;
    min-height: 100vh;
    margin-left: calc(50% - 50vw);
    background: var(--ecr-bg);
    color: var(--ecr-ink);
    font-family: var(--ecr-sans);
}

.ecr-split {
    display: grid;
    grid-template-columns: minmax(320px, 46%) minmax(0, 54%);
    min-height: 100vh;
}

.ecr-story {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(44px, 7vw, 96px) clamp(26px, 5vw, 64px);
    background: #fff;
}

.ecr-date-line,
.ecr-form-kicker,
.ecr-label,
.ecr-confirm-label,
.ecr-visual-note-label {
    margin: 0;
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ecr-ink);
}

.ecr-title {
    margin: 6px 0 0;
    font-family: var(--ecr-serif);
    font-size: clamp(3rem, 5vw, 4.8rem);
    font-weight: 400;
    line-height: 0.96;
    letter-spacing: -0.045em;
}

.ecr-subtitle {
    max-width: 32rem;
    margin: 28px 0 0;
    font-size: clamp(2.05rem, 3vw, 3.35rem);
    line-height: 1.02;
    font-weight: 500;
    color: #3f3d35;
}

.ecr-body {
    max-width: 34rem;
    margin-top: 40px;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ecr-muted);
}

.ecr-body p {
    margin: 0 0 1.2rem;
}

.ecr-body p:last-child {
    margin-bottom: 0;
}

.ecr-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.ecr-hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 242px;
    min-height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: 6px;
    background: var(--ecr-button);
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.78rem;
    font-weight: 700;
    transition: background-color 160ms ease, transform 160ms ease;
}

.ecr-hero-button:hover {
    background: var(--ecr-button-hover);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.ecr-hero-button--submit {
    width: 100%;
    cursor: pointer;
}

.ecr-form-panel {
    max-width: 31rem;
    margin-top: 42px;
    padding-top: 28px;
    border-top: 1px solid var(--ecr-line);
}

.ecr-form-copy {
    max-width: 24rem;
    margin: 10px 0 24px;
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--ecr-muted);
}

.ecr-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ecr-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.ecr-label {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    color: #68655d;
}

.ecr-required {
    color: var(--ecr-danger);
}

.ecr-input {
    width: 100%;
    padding: 12px 0;
    border: 0;
    border-bottom: 1px solid var(--ecr-line);
    background: transparent;
    color: var(--ecr-ink);
    font: inherit;
    font-size: 1.02rem;
    border-radius: 0;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.ecr-input:focus {
    outline: none;
    border-bottom-color: var(--ecr-ink);
    box-shadow: inset 0 -1px 0 var(--ecr-ink);
}

.ecr-field--error .ecr-input {
    border-bottom-color: var(--ecr-danger);
    box-shadow: inset 0 -1px 0 var(--ecr-danger);
}

.ecr-error-msg {
    font-size: 0.8rem;
    color: var(--ecr-danger);
}

.ecr-visual {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: #d9d4cb;
}

.ecr-visual-image,
.ecr-visual-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.ecr-visual-image {
    object-fit: cover;
    object-position: center center;
}

.ecr-visual-fallback {
    display: flex;
    align-items: flex-end;
    padding: 44px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.18)),
        linear-gradient(135deg, #c4b9ab, #877d73);
}

.ecr-visual-fallback-text {
    max-width: 16rem;
    color: #fff;
    font-family: var(--ecr-serif);
    font-size: 2.3rem;
    line-height: 1;
}

.ecr-visual-note {
    position: absolute;
    right: 28px;
    bottom: 28px;
    max-width: 18rem;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
}

.ecr-visual-note-inner {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ecr-visual-note-label {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
}

.ecr-visual-note-text {
    font-size: 1rem;
    line-height: 1.4;
    color: var(--ecr-ink);
}

.ecr-form-panel--success {
    max-width: 28rem;
}

.ecr-confirm-list {
    display: flex;
    flex-direction: column;
    margin-top: 18px;
    border-top: 1px solid var(--ecr-line);
}

.ecr-confirm-item {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 0;
    border-bottom: 1px solid var(--ecr-line);
}

.ecr-confirm-label {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    color: #68655d;
}

.ecr-confirm-value {
    text-align: right;
    font-size: 0.96rem;
    line-height: 1.4;
    color: var(--ecr-ink);
}

@media (max-width: 980px) {
    .ecr-split {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .ecr-visual {
        order: -1;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        min-height: auto;
        padding: 24px 22px 0;
        overflow: visible;
        background: #fff;
    }

    .ecr-visual-image,
    .ecr-visual-fallback {
        position: relative;
        inset: auto;
        width: 100%;
        height: auto;
    }

    .ecr-visual-image {
        object-fit: contain;
        object-position: center top;
    }

    .ecr-visual-fallback {
        min-height: 320px;
    }

    .ecr-story {
        min-height: auto;
    }

    .ecr-visual-note {
        position: static;
        margin: 16px 0 0;
        max-width: none;
        background: var(--ecr-soft);
        backdrop-filter: none;
    }
}

@media (max-width: 640px) {
    .ecr-story {
        padding: 28px 22px 34px;
    }

    .ecr-title {
        font-size: 2.6rem;
    }

    .ecr-subtitle {
        font-size: 2rem;
    }

    .ecr-body {
        margin-top: 28px;
    }

    .ecr-form-panel {
        margin-top: 30px;
        padding-top: 22px;
    }

    .ecr-hero-button,
    .ecr-hero-button--submit {
        width: 100%;
    }

    .ecr-visual {
        padding: 18px 16px 0;
    }

    .ecr-visual-note {
        margin-top: 12px;
    }

    .ecr-confirm-item {
        flex-direction: column;
        gap: 8px;
    }

    .ecr-confirm-value {
        text-align: left;
    }
}
