/* reachable contact form. Colours come from custom properties so the host
   page can restyle it; fonts are inherited. Same look as the bookable widget. */
.rc {
  --rc-accent: #e65533;
  --rc-accent-text: #c2410c;
  --rc-accent-soft: rgba(230, 85, 51, 0.1);
  --rc-text: #333333;
  --rc-muted: #6b6b6b;
  --rc-line: #e5e5e5;
  --rc-surface: #ffffff;
  --rc-radius: 10px;
  color: var(--rc-text);
  text-align: left;
}

.rc *, .rc *::before, .rc *::after { box-sizing: border-box; }

.rc-panel {
  padding: 24px;
  background: var(--rc-surface);
  border: 1px solid var(--rc-line);
  border-radius: var(--rc-radius);
}

.rc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.rc-field { margin-bottom: 16px; }
.rc-field label { display: block; margin-bottom: 4px; font-weight: 600; font-size: 15px; }
.rc-field input, .rc-field textarea, .rc-field select {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  color: var(--rc-text);
  background: var(--rc-surface);
  border: 1px solid #cfcfcf;
  border-radius: 8px;
}
.rc-field textarea { resize: vertical; min-height: 140px; }
.rc-field[hidden] { display: none; }
.rc-field [aria-invalid="true"] { border-color: #b42318; }

.rc-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rc-extra[hidden] { display: none; }

.rc-more { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-bottom: 8px; }
.rc-extra-code[hidden] { display: none; }
.rc-code-field { display: flex; border: 1px solid var(--rc-line, #d0d0d0); border-radius: var(--rc-radius, 6px); background: var(--rc-surface, #fff); overflow: hidden; }
.rc-code-field:focus-within { outline: 2px solid var(--rc-accent, #ff6440); outline-offset: 1px; }
.rc-code-gutter { flex: none; margin: 0; padding: 10px 8px 10px 10px; min-width: 2.5em; overflow: hidden; color: var(--rc-muted, #777); background: #f6f6f6; border-right: 1px solid var(--rc-line, #e3e3e3); font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; text-align: right; user-select: none; }
.rc-field .rc-code-field textarea.rc-code { flex: 1; min-width: 0; min-height: 180px; margin: 0; border: 0; border-radius: 0; outline: none; font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre; overflow-x: auto; tab-size: 4; }

.rc-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.rc-privacy { font-size: 14px; color: var(--rc-muted); }
.rc-hint { margin: 4px 0 0; font-size: 13px; color: var(--rc-muted); }
.rc-privacy a { color: var(--rc-accent-text); }
.rc-muted { color: var(--rc-muted); }
.rc-error { min-height: 1em; color: #b42318; }
.rc-error:empty { min-height: 0; margin: 0; }

.rc-submit {
  padding: 12px 24px;
  font: inherit;
  font-weight: 600;
  color: #ffffff;
  background: var(--rc-accent);
  border: 2px solid var(--rc-accent);
  border-radius: 8px;
  cursor: pointer;
}
.rc-submit:disabled { opacity: 0.6; cursor: progress; }

.rc-link { margin: 0 0 16px; padding: 0; font: inherit; font-size: 14px; color: var(--rc-accent-text); background: none; border: 0; text-decoration: underline; cursor: pointer; }
.rc-link[hidden] { display: none; }

.rc-done h3 { margin-top: 0; }
.rc-done:focus { outline: none; }

.rc button:focus-visible, .rc input:focus-visible, .rc textarea:focus-visible, .rc select:focus-visible, .rc a:focus-visible {
  outline: 3px solid var(--rc-accent);
  outline-offset: 2px;
}

@media (max-width: 720px) {
  .rc-panel { padding: 16px; }
  .rc-row, .rc-extra { grid-template-columns: 1fr; gap: 0; }
}
.rc-code-field:has([aria-invalid="true"]) { border-color: #b42318; }
