:root {
    --green: #087c56;
    --green-dark: #056345;
    --green-light: #e9f5f0;
    --blue: #0072b8;
    --text: #23313b;
    --muted: #64727d;
    --border: #dce3e7;
    --background: #f5f8f9;
    --white: #ffffff;
    --radius: 12px;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    font-family:
        Inter, system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--background);
    line-height: 1.5;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}


/* HEADER */

.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--green);
    text-decoration: none;
}

.brand-mark {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--green);
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-text strong {
    font-size: 1.25rem;
}

.brand-text small {
    margin-top: 3px;
    color: var(--muted);
    font-size: .67rem;
}

.main-nav {
    display: flex;
    gap: 28px;
}

.main-nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--green);
}


/* HERO */

.hero {
    background:
        linear-gradient(
            110deg,
            rgba(3, 71, 55, .94),
            rgba(7, 125, 86, .72)
        );
    color: white;
    padding: 48px 0;
}

.hero h1 {
    margin: 0 0 8px;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.05;
}

.hero p {
    margin: 0;
    max-width: 680px;
    font-size: 1.05rem;
}


/* CONTENT */

.page-content {
    padding-block: 36px 64px;
}

.intro h2 {
    margin-top: 0;
}

.report-type {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 36px;
}

.type-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 92px;
    padding: 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    cursor: pointer;
    transition: .15s ease;
}

.type-card:hover {
    border-color: #9ab9ad;
}

.type-card.active {
    border-color: var(--green);
    background: var(--green-light);
}

.type-card input {
    position: absolute;
    opacity: 0;
}

.type-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: white;
    color: var(--green);
    font-size: 1.5rem;
}

.type-card strong,
.type-card small {
    display: block;
}

.type-card small {
    margin-top: 3px;
    color: var(--muted);
}


/* FORM + MAP */

.form-map-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .95fr);
    gap: 28px;
    align-items: start;
}

.form-section,
.map-card,
.submit-section {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.form-section {
    padding: 24px;
    margin-bottom: 20px;
}

.form-section h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px;
    font-size: 1.15rem;
}

.step {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--green);
    color: white;
    font-size: .9rem;
}

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

label {
    display: block;
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    margin-top: 7px;
    padding: 12px 13px;
    border: 1px solid #cbd5da;
    border-radius: 8px;
    background: white;
    color: var(--text);
    font: inherit;
}

input:focus,
select:focus,
textarea:focus {
    outline: 3px solid rgba(8, 124, 86, .14);
    border-color: var(--green);
}

textarea {
    resize: vertical;
}

.form-section > label + label,
.form-section fieldset + label,
.form-section label + fieldset {
    margin-top: 20px;
}

.help-text {
    color: var(--muted);
}

.location-value {
    padding: 12px 14px;
    border-radius: 8px;
    background: var(--green-light);
}

.location-value strong,
.location-value span {
    display: block;
}

.location-value span {
    margin-top: 3px;
    color: var(--muted);
    font-size: .9rem;
}


/* INTENSITY */

.intensity {
    margin: 20px 0 0;
    padding: 0;
    border: 0;
}

.intensity legend {
    font-weight: 600;
    margin-bottom: 10px;
}

.scale {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.scale label {
    position: relative;
}

.scale input {
    position: absolute;
    opacity: 0;
}

.scale span {
    display: grid;
    place-items: center;
    min-height: 46px;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
}

.scale input:checked + span {
    border-color: var(--green);
    background: var(--green);
    color: white;
}

.scale-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    color: var(--muted);
    font-size: .8rem;
}


/* MAP */

.map-card {
    overflow: hidden;
    position: sticky;
    top: 20px;
}

#map {
    height: 520px;
    width: 100%;
}

.map-help {
    padding: 18px 20px;
}

.map-help p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: .9rem;
}


/* SUBMIT */

.submit-section {
    margin-top: 28px;
    padding: 24px;
    text-align: center;
}

.privacy-note {
    max-width: 680px;
    margin: 0 auto 22px;
    padding: 15px 18px;
    border-radius: 8px;
    background: #edf7fb;
    text-align: left;
}

.privacy-note p {
    margin: 4px 0 0;
}

.submit-button {
    min-height: 50px;
    padding: 0 28px;
    border: 0;
    border-radius: 8px;
    background: var(--green);
    color: white;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.submit-button:hover {
    background: var(--green-dark);
}

.development-note {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: .85rem;
}


/* FOOTER */

.site-footer {
    padding: 30px 0;
    background: #203037;
    color: white;
}

.site-footer .container {
    display: flex;
    flex-direction: column;
}


/* TABLET */

@media (max-width: 900px) {

    .main-nav {
        display: none;
    }

    .form-map-grid {
        grid-template-columns: 1fr;
    }

    .map-column {
        grid-row: 2;
    }

    .map-card {
        position: static;
    }

    #map {
        height: 430px;
    }
}


/* MOBILE */

@media (max-width: 600px) {

    .container {
        width: min(100% - 22px, 1180px);
    }

    .header-inner {
        min-height: 70px;
    }

    .brand-text small {
        display: none;
    }

    .hero {
        padding: 32px 0;
    }

    .page-content {
        padding-top: 24px;
    }

    .report-type {
        grid-template-columns: 1fr;
    }

    .type-card {
        min-height: 76px;
    }

    .form-section {
        padding: 18px;
    }

    .two-columns {
        grid-template-columns: 1fr;
    }

    #map {
        height: 360px;
    }

    .submit-section {
        padding: 18px;
    }

    .submit-button {
        width: 100%;
    }
}
