@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

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

:root {
    --ink: #17252b;
    --muted: #6f7d7d;
    --paper: #fffdf8;
    --line: #dfe7e2;
    --teal: #177d78;
    --teal-dark: #0e5d5a;
    --coral: #e9785c;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;

    font-family: 'DM Sans', sans-serif;
    color: var(--ink);
    padding: 48px 24px;
    background-color: #e9f0e9;
    background-image: linear-gradient(120deg, rgba(255, 255, 255, .7), transparent 45%), repeating-linear-gradient(0deg, rgba(23, 37, 43, .025) 0, rgba(23, 37, 43, .025) 1px, transparent 1px, transparent 8px);
}

.page-shell {
    width: min(100%, 940px);
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    align-items: center;
    gap: 72px;
}

.intro {
    padding-left: 8px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 24px;
    color: var(--coral);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

h1 {
    max-width: 360px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(42px, 5vw, 68px);
    line-height: .98;
    letter-spacing: -.04em;
}

.intro p {
    max-width: 280px;
    margin-top: 24px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
}

.intro-line {
    width: 72px;
    height: 4px;
    margin-top: 40px;
    background: var(--coral);
}

.form-card {
    padding: 36px;
    background: var(--paper);
    border: 1px solid rgba(23, 37, 43, .08);
    border-radius: 8px;
    box-shadow: 14px 18px 0 rgba(23, 37, 43, .08), 0 24px 60px rgba(23, 37, 43, .12);
}

.card-heading, .result-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-heading {
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 28px;
}

.icon-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: white;
    background: var(--teal);
    border-radius: 50%;
    font-size: 24px;
    font-weight: 400;
}

.card-heading h2, .result-heading h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 21px;
}

.card-heading p {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 14px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: #425252;
    font-size: 12px;
    font-weight: 700;
}

.field-wide {
    grid-column: 1 / -1;
}

input {
    width: 100%;
    padding: 12px 13px;
    color: var(--ink);
    background: #f4f7f2;
    border: 1px solid var(--line);
    border-radius: 4px;
    outline: none;
    font: inherit;
    font-size: 13px;
    font-weight: 400;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

input::placeholder { color: #9aa7a3; }

input:focus {
    background: white;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(23, 125, 120, .14);
}

button {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 26px;
    padding: 14px 16px;
    border: none;
    border-radius: 4px;
    background: var(--teal);
    color: white;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

button:hover { background: var(--teal-dark); transform: translateY(-2px); }

button:active { transform: translateY(0); }

.result-panel {
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.result-heading span {
    padding: 4px 7px;
    color: var(--teal);
    background: #e6f3ed;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
}

#result {
    display: block;
    min-height: 48px;
    margin-top: 14px;
    padding: 13px;
    color: #52615e;
    background: #f4f7f2;
    border-left: 3px solid var(--coral);
    border-radius: 3px;
    font-size: 12px;
    line-height: 1.8;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

@media (max-width: 760px) {
    .page-shell {
        grid-template-columns: 1fr;
        gap: 34px;
        max-width: 560px;
    }

    .intro { padding-left: 0; }
    .intro-line { margin-top: 24px; }
}

@media (max-width: 500px) {
    body { padding: 28px 16px; }
    .form-card { padding: 24px 20px; }
    .field-grid { grid-template-columns: 1fr; }
    .field-wide { grid-column: auto; }
    h1 { font-size: 46px; }
}