/* The quiet line the map explorer shows under a search typed in the home box, and the "tell us" dialog. */
.ss-context { margin: 0 0 6px; padding: 2px 2px 10px; border-bottom: 1px solid #e3e7ee; color: #5f6b7a; font-size: 13px; line-height: 1.45; }
.ss-context__row { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; }
.ss-context__text strong { color: #000c14; font-weight: 600; }
.ss-context__text em { font-style: normal; color: #5f6b7a; }
.ss-context__ask { border: 0; background: transparent; padding: 0; color: #000c14; font-weight: 600; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ss-context__ask:hover { color: #000; text-decoration-thickness: 2px; }
.ss-context__sub { margin: 3px 0 0; }
.ss-context__sub a { color: inherit; text-decoration: underline; }

/* Centred explicitly: the site resets a dialog's margin elsewhere, which pins it to a corner. */
.ss-dialog { position: fixed; inset: 0; margin: auto; height: fit-content; width: min(520px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow: auto; padding: 0; border: 0; border-radius: 18px; box-shadow: 0 24px 70px rgba(10, 18, 30, .35); color: #000c14; background: #fff; }
.ss-dialog::backdrop { background: rgba(10, 18, 30, .5); }
.ss-dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 24px 8px; }
.ss-dialog__head h2 { font-size: 20px; font-weight: 700; margin: 0 0 4px; }
.ss-dialog__head p { margin: 0; font-size: 14px; color: #5f6b7a; }
.ss-dialog__close { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid #e3e7ee; background: #fff; font-size: 22px; line-height: 1; cursor: pointer; color: #3a4554; }
.ss-dialog__close:hover { background: #f4f6f9; }
.ss-dialog form { display: flex; flex-direction: column; gap: 12px; padding: 14px 24px 24px; }
.ss-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* The same boxes as the project page's request form: 8px corners, roomy padding. */
.ss-dialog input[type=text], .ss-dialog input[type=email], .ss-dialog input[type=number], .ss-dialog textarea { width: 100%; padding: 14px 16px; border: 1px solid #cfd6e0; border-radius: 8px; font-size: 15px; background: #fff; box-sizing: border-box; }
.ss-dialog input[type=number] { -moz-appearance: textfield; }
.ss-dialog input[type=number]::-webkit-outer-spin-button, .ss-dialog input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ss-dialog textarea { resize: vertical; min-height: 64px; }
.ss-dialog input:focus, .ss-dialog textarea:focus { outline: 0; border-color: #171617; box-shadow: 0 0 0 3px rgba(23, 22, 23, .08); }
.ss-phone { display: flex; gap: 10px; align-items: center; }
.ss-phone .country-dropdown { position: relative; flex: none; width: 92px; }
.ss-phone .country-select { width: 100%; padding: 13px 8px; border: 1px solid #cfd6e0; border-radius: 8px; font-size: 14px; background: #fff; }
/* Select2 country dropdown (flags), sized to match the inputs; its list opens inside the dialog. */
.ss-dialog .img-flag { width: 24px; height: 26px; margin-right: 5px; vertical-align: middle; }
.ss-dialog .select2-container { width: 100% !important; }
.ss-dialog .select2-container--default .select2-selection--single { height: 50px; border: 1px solid #cfd6e0; border-radius: 8px; }
.ss-dialog .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 48px; padding-left: 12px; padding-right: 22px; }
.ss-dialog .select2-container--default .select2-selection--single .select2-selection__arrow { height: 48px; right: 4px; }
/* The list is as wide as a country name needs. The site's own rule for this dropdown (100vw, up to 500px) left half of it empty. */
.ss-dialog .select2-dropdown { width: 320px !important; min-width: 0; max-width: calc(100vw - 40px); border: 1px solid #cfd6e0; border-radius: 8px; z-index: 3000; }
.ss-dialog .select2-container--default .select2-results, .ss-dialog .select2-results { width: auto !important; max-width: none !important; }
.ss-dialog .select2-results__options { max-height: 260px; }
.ss-dialog .select2-results__option { padding: 8px 12px; font-size: 14px; }
.ss-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: #3a4554; margin: 2px 0 0; }
.ss-consent input { margin-top: 3px; flex: none; }
.ss-consent a { color: #171617; }
.ss-send { width: 100%; border: 0; border-radius: 8px; background: #171617; color: #fff; padding: 14px 20px; font-weight: 600; font-size: 15px; cursor: pointer; margin-top: 4px; }
.ss-send:hover { background: #000; }
.ss-send:disabled { opacity: .6; cursor: default; }
.ss-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ss-status { margin: 10px 0 0; font-size: 14px; text-align: center; }
.ss-status:empty { display: none; }
.ss-status.err { color: #b42318; }
.ss-status.ok { color: #067647; font-weight: 600; }


/* Wide screens: the dialog is shorter than the window, so let the country list hang out of it instead of being cut by it. */
@media (min-width: 561px) and (min-height: 640px) {
    .ss-dialog { overflow: visible; }
}

@media (max-width: 560px) {
    .ss-dialog form { padding: 12px 18px 20px; }
    .ss-dialog__head { padding: 18px 18px 6px; }
}
