/* The theme's forms. Mobile first. */
:root {
	--er-form-text: #222;
	--er-form-muted: #666;
	--er-form-line: #d5d5d5;
	--er-form-bg: #fff;
	--er-form-error: #b3261e;
	--er-form-accent: #c2185b;
	--er-form-radius: 6px;
}
.er-form { color: var(--er-form-text); max-width: 760px; }
.er-form, .er-form-message { scroll-margin-top: 110px; }
.er-field { margin: 0 0 20px; }
.er-field[hidden], .er-honeypot { display: none; }
.er-label { display: block; margin: 0 0 6px; font-weight: 600; }
.er-required { color: var(--er-form-error); }
.er-help { margin: 0 0 8px; color: var(--er-form-muted); font-size: .9em; }
.er-form input[type=text], .er-form input[type=email], .er-form input[type=url], .er-form input[type=number], .er-form select, .er-form textarea {
	width: 100%; min-height: 44px; margin: 0; padding: 8px 12px; font-size: 16px; color: inherit; background: var(--er-form-bg);
	border: 1px solid var(--er-form-line); border-radius: var(--er-form-radius); box-shadow: none; box-sizing: border-box;
}
.er-form select[multiple] { min-height: 160px; }
.er-form input:focus, .er-form select:focus, .er-form textarea:focus { outline: 2px solid var(--er-form-accent); outline-offset: 1px; }
.er-form .er-has-error input:not([type=checkbox]):not([type=radio]), .er-form .er-has-error select, .er-form .er-has-error textarea { border-color: var(--er-form-error); }
.er-error { margin: 6px 0 0; color: var(--er-form-error); font-size: .9em; }
.er-choices { display: grid; gap: 4px 16px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.er-check { display: flex; align-items: center; gap: 8px; min-height: 36px; margin: 0; font-weight: 400; }
.er-check input { margin: 0; }
.er-input-append { display: flex; align-items: center; gap: 8px; }
.er-form-message { padding: 12px 14px; border-radius: var(--er-form-radius); }
.er-form-message-error { color: var(--er-form-error); background: #fdecea; }
.er-form-message-success { color: #1e6b3a; background: #e8f5ec; }
.er-form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.er-submit, .er-button { min-height: 44px; margin: 0; padding: 0 22px; color: #fff; background: var(--er-form-accent); border: 0; border-radius: var(--er-form-radius); font-weight: 600; cursor: pointer; }
.er-form .er-button-plain { color: var(--er-form-text); background: #e9e9e9; }
.er-submit.is-busy { opacity: .6; cursor: wait; }
@media (max-width: 549px) { .er-submit { width: 100%; } }
.er-media-items { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.er-media-item { position: relative; width: 110px; height: 110px; background: #f2f2f2; border-radius: var(--er-form-radius); overflow: hidden; }
.er-media-item img { display: block; width: 100%; height: 100%; object-fit: cover; }
.er-media-name { display: block; padding: 8px; font-size: .85em; word-break: break-word; }
.er-form .er-media-remove { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; min-width: 0; min-height: 0; margin: 0; padding: 0; color: #fff; background: rgba(0,0,0,.65); border: 0; border-radius: 50%; line-height: 1; cursor: pointer; }
[data-er-media="gallery"] .er-media-item { cursor: move; }
.er-group { padding: 14px; background: #fafafa; border: 1px solid var(--er-form-line); border-radius: var(--er-form-radius); }
.er-rows { display: grid; gap: 10px; }
.er-row { display: grid; gap: 10px; padding: 12px; background: #fafafa; border: 1px solid var(--er-form-line); border-radius: var(--er-form-radius); }
.er-row .er-field { margin: 0; }
.er-locked { font-weight: 600; }
@media (min-width: 700px) {
	.er-row { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); align-items: end; }
}
.er-choices-scroll { max-height: 240px; overflow-y: auto; padding: 8px; border: 1px solid var(--er-form-line); border-radius: var(--er-form-radius); }
.er-field.hide_this_field, .er-field.remove_from_front { display: none; }

/* Dropdowns look like dropdowns */
.er-form select:not([multiple]) {
	appearance: none; -webkit-appearance: none; padding-right: 38px; background-repeat: no-repeat; background-position: right 12px center; background-size: 14px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%23555' stroke-width='2'%3E%3Cpath d='M2 5l5 5 5-5'/%3E%3C/svg%3E");
}
/* Sections */
.er-section, .er-field-group > .er-label { margin: 32px 0 14px; padding-bottom: 8px; font-size: 1.15em; font-weight: 700; border-bottom: 1px solid var(--er-form-line); }
.er-form > [data-er-scope] > .er-section:first-child { margin-top: 0; }
.er-add-city { margin-top: 4px; }
.er-field.er-collapsed { display: none; }
.er-choices-search { margin-bottom: 8px !important; }
/* On/off switch */
.er-field-true_false input[type=checkbox] { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 44px; height: 26px; background: #bbb; border-radius: 13px; cursor: pointer; transition: background .15s; }
.er-field-true_false input[type=checkbox]::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; transition: transform .15s; }
.er-field-true_false input[type=checkbox]:checked { background: var(--er-form-accent); }
.er-field-true_false input[type=checkbox]:checked::after { transform: translateX(18px); }
/* Rows as a list */
.er-rows-head { display: none; }
.er-rows-list { gap: 0; border: 1px solid var(--er-form-line); border-radius: var(--er-form-radius); overflow: hidden; }
.er-rows-list .er-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; align-items: center; padding: 10px 12px; background: var(--er-form-bg); border: 0; border-bottom: 1px solid var(--er-form-line); border-radius: 0; }
.er-rows-list .er-row:last-child { border-bottom: 0; }
.er-rows-list .er-field { min-width: 0; }
.er-rows-list .er-label { margin-bottom: 2px; font-size: .8em; font-weight: 400; color: var(--er-form-muted); }
.er-rows-list .er-choices { display: block; }
.er-rows-compact .er-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (min-width: 700px) {
	.er-rows-head { display: grid; gap: 12px; padding: 8px 12px; font-size: .85em; font-weight: 600; color: var(--er-form-muted); background: #f5f5f5; border-bottom: 1px solid var(--er-form-line); }
	.er-rows-list .er-row, .er-rows-head { grid-template-columns: minmax(0, 1.5fr) repeat(var(--er-rest), minmax(0, 1fr)); }
	.er-rows-list .er-row > .er-field { grid-column: var(--er-col); grid-row: 1; }
	.er-rows-list .er-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
.er-rows-rates .er-locked { grid-column: 1 / -1; }
@media (min-width: 700px) { .er-rows-rates .er-locked { grid-column: var(--er-col); } }
.er-form textarea { height: auto; min-height: 130px; }
.er-form .chat-textarea textarea { min-height: 44px; }

/* City search: the list stays in the page and carries the value. */
.er-city-native, .er-field.er-city-other { display: none !important; }
.er-field-city { position: relative; }
.er-city-list { position: absolute; z-index: 50; left: 0; right: 0; max-height: 280px; margin: 2px 0 0; padding: 4px; overflow-y: auto; list-style: none; background: #fff; border: 1px solid #d0d0d0; border-radius: 6px; box-shadow: 0 6px 18px rgba(0, 0, 0, .12); }
.er-city-list[hidden] { display: none; }
.er-city-list li { margin: 0; padding: 9px 10px; border-radius: 4px; cursor: pointer; }
.er-city-list li:hover, .er-city-list li[aria-selected="true"] { background: #f1f1f1; }
.er-city-list .er-city-typed { border-top: 1px solid #eee; color: #555; font-size: .92em; }
