* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; height: 100%; }

body {
    font-family: 'Geologica', -apple-system, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    color: #1a1a1a;
    background: #fff;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
}

a { color: #0054a6; }

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 40px;
    border-bottom: 4px solid #0054a6;
    flex: none;
}

.page-header__logo { display: block; line-height: 0; flex: none; }

.page-header__logo img { display: block; height: 71px; width: auto; }

.page-header__nav {
    display: flex;
    align-items: center;
    gap: 26px;
    flex: none;
}

.page-header__nav a {
    font-size: 16px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
}

.page-header__nav a:hover { color: #0054a6; }

.page-header__link { font-size: 16px; color: #333; text-decoration: none; }
.page-header__link:hover { color: #0054a6; }

.page-body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
}

.page-pane--survey {
    flex: 1 1 55%;
    min-width: 0;
    overflow-y: auto;
    padding: 44px 48px 64px;
}

.page-pane--map {
    flex: 1 1 45%;
    min-width: 0;
    position: relative;
    border-left: 1px solid #e0e0e0;
    background: #eee;
}

#proposal-map { width: 100%; height: 100%; }

.survey { max-width: 660px; }

.survey__heading {
    font-size: 38px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.01em;
    color: #1a1a1a;
    margin: 0 0 20px;
}

.survey__lead {
    font-size: 17px;
    line-height: 1.6;
    color: #333;
    margin: 0 0 34px;
    max-width: 600px;
}

.survey__page-title {
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -.01em;
    line-height: 1.2;
    margin: 0 0 22px;
    color: #1a1a1a;
}

.survey__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 32px;
}

button.survey__tab {
    border: 0;
    background: none;
    color: #565656;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.3;
    padding: 8px 13px;
    cursor: pointer;
}

button.survey__tab:hover:not(:disabled):not(.is-current) { color: #0054a6; }
button.survey__tab.is-done { color: #1a1a1a; }

button.survey__tab.is-current {
    background: #0054a6;
    color: #fff;
    font-weight: 500;
}

button.survey__tab.is-current:hover {
    background: #003c78;
    color: #fff;
}

button.survey__tab:disabled { color: #9b9b9b; cursor: default; }

.survey__stepline {
    font-size: 15px;
    color: #565656;
    margin: 0 0 6px;
}

.survey__group-name {
    font-size: 17px;
    font-weight: 600;
    color: #0054a6;
    margin: 0 0 30px;
}

.question { margin: 0 0 40px; }
.question:last-child { margin-bottom: 0; }

.question__name {
    font-weight: 600;
    font-size: 21px;
    line-height: 1.35;
    margin: 0 0 16px;
    color: #1a1a1a;
}

.question__optional {
    font-weight: 400;
    font-size: 16px;
    color: #565656;
}

.question__option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    padding: 8px 0;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.5;
    color: #262626;
    cursor: pointer;
}

.question__option input {
    margin: 5px 0 0 !important;
    padding: 0 !important;
    width: 19px !important;
    height: 19px;
    flex: none;
    accent-color: #0054a6;
    cursor: pointer;
}

.question__option:hover { color: #0054a6; }

.question__alt { margin: 12px 0 0 31px; }

.question__alt-label {
    display: block;
    font-size: 16px;
    font-weight: 400;
    color: #444;
    margin: 0 0 8px;
}

.question__alt-input,
.question__text {
    display: block;
    width: 100%;
    border: 1px solid #b6b6b6;
    padding: 13px 15px !important;
    font-size: 17px;
    font-family: inherit;
    line-height: 1.5;
    color: #1a1a1a;
    background: #fff;
    border-radius: 0;
}

.question__text { resize: vertical; min-height: 130px; }

.question__alt-input:focus,
.question__text:focus { border-color: #0054a6; outline: none; }

.question__privacy,
.map-form__privacy {
    font-size: 15px;
    line-height: 1.45;
    color: #565656;
    margin: 9px 0 0;
}

.survey__consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 40px 0 0;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.55;
    color: #333;
    cursor: pointer;
}

.survey__consent input {
    margin: 5px 0 0 !important;
    width: 19px !important;
    height: 19px;
    flex: none;
    accent-color: #0054a6;
    cursor: pointer;
}

.survey__hp,
.map-form__hp {
    position: absolute !important;
    top: 0 !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0;
}

.survey__callout {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 34px 0 0;
    padding: 16px 20px;
    background: #e7eef7;
    border-left: 4px solid #0054a6;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.35;
    color: #1a1a1a;
}

.survey__callout-mark {
    flex: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #0054a6;
    color: #fff;
    font-size: 22px;
    font-style: normal;
    font-weight: 400;
    line-height: 32px;
    text-align: center;
}

.survey__nav {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 48px 0 0;
}

.survey__hint {
    font-size: 15px;
    line-height: 1.4;
    color: #565656;
    margin-left: 10px;
}

.survey__hint--error { color: #c81a12; font-weight: 500; }

button.survey__btn,
button.btn {
    border: 0;
    border-radius: 0;
    font-size: 17px;
    font-family: inherit;
    font-weight: 500;
    line-height: 1;
    padding: 15px 32px;
    cursor: pointer;
    transition: background .15s, color .15s;
}

button.survey__btn--primary,
button.btn--primary { background: #0054a6; color: #fff; }
button.survey__btn--primary:hover:not(:disabled),
button.btn--primary:hover:not(:disabled) { background: #003c78; }
button.survey__btn--primary:disabled,
button.btn--primary:disabled { background: #d4d4d4; color: #767676; cursor: not-allowed; }

button.survey__btn--ghost,
button.btn--ghost { background: #ededed; color: #333; }
button.survey__btn--ghost:hover,
button.btn--ghost:hover { background: #dfe8f2; color: #0054a6; }

.survey__intro { padding: 12px 0 0; }
.survey__finish { padding: 30px 0 40px; }

a.survey__finish-link {
    display: inline-block;
    margin: 30px 0 0;
    text-decoration: none;
}

.survey__finish-image { display: block; max-width: 100%; height: auto; margin: 0 0 36px; }

.survey__finish-mark {
    width: 84px;
    height: 84px;
    margin: 0 0 30px;
    border-radius: 50%;
    background: #e7eef7;
    position: relative;
}

.survey__finish-mark:after {
    content: "";
    position: absolute;
    left: 30px;
    top: 25px;
    width: 21px;
    height: 36px;
    border: solid #0054a6;
    border-width: 0 3px 3px 0;
    transform: rotate(42deg);
}

#proposal-map img,
#proposal-map .leaflet-tile {
    max-width: none !important;
    max-height: none !important;
    padding: 0 !important;
    border: 0 !important;
}

.leaflet-container { font-family: inherit; }

button.map-add {
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 900;
    width: 56px;
    height: 56px;
    border: 0;
    border-radius: 50%;
    background: #0054a6;
    color: #fff;
    font-family: inherit;
    font-size: 30px;
    font-weight: 400;
    line-height: 52px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .3);
}

button.map-add:hover { background: #003c78; }

button.map-add.is-active {
    background: #e2231a;
    transform: rotate(45deg);
}

.map-pick-hint,
.map-notice,
.map-empty {
    position: absolute;
    left: 20px;
    right: 92px;
    top: 20px;
    z-index: 900;
    padding: 12px 16px;
    font-size: 16px;
    line-height: 1.4;
    color: #fff;
    background: rgba(0, 84, 166, .95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
}

.map-notice { background: rgba(88, 145, 20, .96); }

.map-notice--warn { background: rgba(200, 30, 22, .96); }

.map-empty {
    top: auto;
    bottom: 26px;
    right: 20px;
    background: rgba(255, 255, 255, .97);
    color: #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
}

.leaflet-container.is-picking { cursor: crosshair; }

.map-form {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 950;
    background: #fff;
    padding: 22px 24px 24px;
    box-shadow: 0 3px 18px rgba(0, 0, 0, .3);
}

.map-form__head {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 4px;
}

.map-form__cat {
    font-size: 15px;
    color: #0054a6;
    font-weight: 500;
    margin: 0 0 14px;
}

.map-form__label {
    display: block;
    font-size: 16px;
    color: #333;
    margin: 0 0 8px;
}

.map-form__select {
    display: block;
    width: 100%;
    border: 1px solid #b6b6b6;
    padding: 11px 14px !important;
    margin: 0 0 18px;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.4;
    color: #1a1a1a;
    background: #fff;
}

.map-form__select:focus { border-color: #0054a6; outline: none; }

.map-form__text {
    display: block;
    width: 100%;
    border: 1px solid #b6b6b6;
    padding: 12px 14px !important;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.5;
    color: #1a1a1a;
    resize: vertical;
    min-height: 90px;
}

.map-form__text:focus { border-color: #0054a6; outline: none; }

.map-form__privacy { margin: 9px 0 0; }

.map-form__error {
    font-size: 15px;
    color: #c81a12;
    font-weight: 500;
    min-height: 20px;
    margin: 6px 0 0;
}

.map-form__row { display: flex; gap: 12px; margin: 8px 0 0; }
.map-form__row button { padding: 13px 26px; font-size: 16px; }

.pcard { min-width: 200px; }

.pcard__date { font-size: 15px; color: #565656; margin: 0 0 6px; }

.pcard__text {
    font-size: 16px;
    line-height: 1.45;
    color: #1a1a1a;
    margin: 0 0 12px;
}

.pcard__foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

button.pcard__vote {
    border: 0;
    background: #0054a6;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    padding: 9px 16px;
    cursor: pointer;
}

button.pcard__vote:hover:not(:disabled) { background: #003c78; }
button.pcard__vote:disabled { background: #d4d4d4; color: #767676; }

.pcard__voted { font-size: 15px; color: #4f7a12; font-weight: 500; }
.pcard__votes { font-size: 15px; color: #333; font-weight: 500; }

.pcard__tag {
    margin: 12px 0 0;
    padding: 6px 10px;
    display: inline-block;
    background: #eef2f7;
    color: #0054a6;
    font-size: 14px;
}

.leaflet-popup-content { margin: 14px 16px; font-size: 16px; }

.leaflet-control-attribution {
    background: rgba(255, 255, 255, .82);
    padding: 2px 7px;
    font-size: 12px;
    color: #555;
}

.leaflet-control-attribution a { color: #0054a6; }

@media (max-width: 900px) {
    html, body { height: auto; }

    .page-header { padding: 12px 18px; gap: 14px; }
    .page-header__logo img { height: 52px; }
    .page-header__nav { gap: 16px; }
    .page-header__nav a, .page-header__link { font-size: 15px; }

    .page-body { display: block; }

    .page-pane--survey {
        overflow: visible;
        padding: 28px 18px 40px;
    }

    .page-pane--map {
        border-left: 0;
        border-top: 1px solid #e0e0e0;
        height: 460px;
    }

    .survey__heading { font-size: 27px; }
    .survey__page-title { font-size: 24px; }
    .question__name { font-size: 19px; }
    .question__option { padding: 10px 0; }

    .survey__tabs { gap: 4px; margin-bottom: 26px; }
    button.survey__tab { font-size: 15px; padding: 7px 10px; }

    .survey__nav { margin-top: 36px; flex-wrap: wrap; gap: 10px; }
    .survey__hint { order: 3; flex-basis: 100%; margin-left: 0; }
    button.survey__btn { padding: 15px 24px; flex: 1; }

    button.map-add { width: 50px; height: 50px; font-size: 27px; line-height: 46px; }
    .map-form { left: 12px; right: 12px; bottom: 12px; padding: 18px; }
    .map-pick-hint, .map-notice { left: 12px; right: 76px; top: 12px; }
    .map-empty { left: 12px; right: 12px; bottom: 16px; }
}
