/* Customer intake form.
   Everything is scoped under .o_intake_wrap so the module cannot leak styles
   into the rest of the website theme. Colours come from the brand red that the
   Boyan site already uses. */

.o_intake_wrap {
  --o-intake-brand: #811D20;
  --o-intake-line: rgba(0, 0, 0, .08);
  --o-intake-muted: #6c757d;
  --o-intake-surface: #ffffff;
}

.o_intake_header {
  max-width: 46rem;
}

.o_intake_title {
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: .5rem;
}

.o_intake_form .o_intake_card {
  background: var(--o-intake-surface);
  border: 1px solid var(--o-intake-line);
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.o_intake_card_title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--o-intake-brand);
  display: inline-block;
}

.o_intake_hint {
  display: block;
  font-size: .8125rem;
  color: var(--o-intake-muted);
}

.o_intake_form .form-label {
  font-weight: 500;
}

/* ---------------------------------------------------------------- honeypot */
/* Kept in the DOM (bots follow the markup, not the pixels) but unreachable
   by humans and by screen readers. */
.o_intake_hp {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ------------------------------------------------------------ photo thumbs */
.o_intake_thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .75rem;
}

.o_intake_thumb {
  width: 88px;
  height: 88px;
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--o-intake-line);
}

.o_intake_thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --------------------------------------------------------------- recorder */
.o_intake_recorder {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
}

.o_intake_rec_dot {
  display: inline-block;
  width: .6rem;
  height: .6rem;
  border-radius: 50%;
  background: var(--o-intake-brand);
  margin-right: .5rem;
  vertical-align: middle;
}

.o_intake_recording .o_intake_rec_dot {
  animation: o_intake_pulse 1.1s ease-in-out infinite;
}

@keyframes o_intake_pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .35; transform: scale(.75); }
}

.o_intake_playback {
  width: 100%;
  max-width: 22rem;
  height: 2.25rem;
}

@media (prefers-reduced-motion: reduce) {
  .o_intake_recording .o_intake_rec_dot { animation: none; }
}

/* ---------------------------------------------------------------- actions */
.o_intake_actions {
  text-align: center;
  margin-top: 1.5rem;
}

.o_intake_ref {
  font-size: 1.125rem;
  letter-spacing: .02em;
}

/* -------------------------------------------------------------- dark mode */
/* Follows the website theme switch rather than the OS, so a light site never
   turns into a dark form by accident. */
[data-bs-theme="dark"] .o_intake_wrap,
.o_website_dark .o_intake_wrap {
  --o-intake-line: rgba(255, 255, 255, .14);
  --o-intake-muted: #adb5bd;
  --o-intake-surface: #1f2226;
}

[data-bs-theme="dark"] .o_intake_card_title,
.o_website_dark .o_intake_card_title {
  border-bottom-color: #e05357;
}
