﻿@charset "UTF-8";
/* ─────────────────────────────────────────────────────────────────────────────
   site.css — global styles for Mediare.IntakeWeb

   Modeled after the production MCP intake form (MCP.IntakeForm.Web) so the
   three tenants (MCP / MMS / WHMC) share a clean, consistent look driven by
   --primary-color / --secondary-color (set in _Host.cshtml from BrandSettings).

   Header/top chrome lives in nav.css; footer lives in footer.css.
   Intro band and main form layout are below (appended from the old intake.css).
   ───────────────────────────────────────────────────────────────────────── */
/* ─── Typography ─────────────────────────────────────────────────────────── */
h1 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

/* Skip-to-form link — visible only when keyboard-focused */
.skip-link {
  position: absolute;
  left: 0;
  top: 0;
  padding: 8px 16px;
  background: var(--primary-color);
  color: #fff;
  text-decoration: none;
  z-index: 1000;
  -webkit-transform: translateY(-100%);
      -ms-transform: translateY(-100%);
          transform: translateY(-100%);
}

.skip-link:focus {
  -webkit-transform: translateY(0);
      -ms-transform: translateY(0);
          transform: translateY(0);
  outline: 2px solid #fff;
  outline-offset: -4px;
}

main:focus {
  outline: none;
}

/* ─── Form controls ──────────────────────────────────────────────────────── */
label {
  margin-bottom: 0.25rem;
  display: inline-block;
}

/* Bootstrap + browsers render <legend> larger than a label by default — override
   so "Do you need an interpreter?", "I have the appropriate equipment…", etc.
   read at the same size/weight as any other primary field label. */
legend.legendstyle,
.legendstyle {
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 700;
  float: none;
  width: auto;
  padding: 0;
  margin-bottom: 0.25rem;
}

/* Primary field/group labels — bold. Two ways to trigger:
     1. explicit .b3-strong class (used for group headers that are <span>/<legend>
        above multi-input groups: Name, Address, Pronouns, …)
     2. any <label> containing a required-asterisk (.req) span — so every "*"
        field is bold automatically without touching the Razor markup.
   Sub-field labels inside groups (First, Last, City, State, Attorney's Email,
   etc.) stay regular weight. */
.b3-strong,
label:has(> .req) {
  font-weight: 700;
  display: inline-block;
  margin-bottom: 0.25rem;
}

.form-control,
.e-input-group,
.e-ddl input.e-input,
input[type=text],
input[type=email],
input[type=tel],
input[type=number],
input[type=date],
textarea {
  border: 1px solid #c8ccd1;
  border-radius: 4px;
  background-color: #fff;
  -webkit-transition: border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
  transition: border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
}

.form-control:focus,
input:focus,
textarea:focus {
  border-color: var(--primary-color);
  -webkit-box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--primary-color) 20%, transparent);
          box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--primary-color) 20%, transparent);
  outline: none;
}

textarea {
  resize: none !important;
}

.req {
  color: red !important;
  font-weight: bold;
  margin: 0;
  padding: 0;
}

/* ─── Validation ─────────────────────────────────────────────────────────── */
.valid.modified:not([type=checkbox]) {
  outline: 1px solid #26b050;
}

.invalid {
  outline: 1px solid red;
}

.validation-message {
  color: red;
}

/* ─── Accessibility: visible focus ring (WCAG 2.4.7) ─────────────────────── */
/* Default keyboard focus ring — applies to anything not explicitly overridden
   below. Skip link + .form-control:focus already have their own treatment. */
:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Syncfusion wrappers don't propagate :focus to the outer element — use
   :focus-within so the ring is visible when the inner <input> is focused. */
.e-input-group:focus-within,
.e-ddl:focus-within,
.e-control-wrapper:focus-within {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Buttons need a thicker, offset ring so it's visible against the filled
   background colors (primary/secondary fills can hide a thin outline). */
button:focus-visible,
.btn-clear-form:focus-visible,
.btn-cancel:focus-visible,
.btn-confirm-clear:focus-visible,
.btn-continue:focus-visible,
.btn-start-fresh:focus-visible,
.btn-return:focus-visible,
.submit-button:focus-visible,
.submit-button.e-primary:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 3px;
}

/* Validation summary, when programmatically focused after a failed submit,
   should not show a default browser ring (it already has role=alert styling). */
[role=alert]:focus {
  outline: none;
}

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn-primary {
  color: #fff;
  background-color: var(--primary-color);
  border-color: color-mix(in srgb, var(--primary-color) 85%, black);
}

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--secondary-color);
  border-color: color-mix(in srgb, var(--secondary-color) 85%, black);
}

/* Primary submit button — rounded, uppercase, letter-spaced (matches prod). */
.submit-button,
.submit-button.e-primary {
  min-width: 260px;
  border-radius: 100px;
  padding: 14px 64px;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 600;
  color: #fff !important;
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

.submit-button:hover:not(:disabled),
.submit-button.e-primary:hover:not(:disabled) {
  background-color: color-mix(in srgb, var(--primary-color) 85%, black) !important;
  border-color: color-mix(in srgb, var(--primary-color) 85%, black) !important;
}

/* Submit row layout. Desktop default mirrors the previous d-flex justify-content-between
   shape (Clear left, Submit right). Mobile stacks Submit on top as a full-width thumb-
   friendly button and Clear below as a secondary action. NN/g mobile guidance: primary
   action in the thumb zone, both targets ≥ 44px tall, no cramped side-by-side row on
   320–414px viewports. */
.intake-submit-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
@media (max-width: 576px) {
  .intake-submit-row {
    -webkit-box-orient: vertical;
    -webkit-box-direction: reverse;
        -ms-flex-direction: column-reverse;
            flex-direction: column-reverse;
    gap: 0.75rem;
    -webkit-box-align: stretch;
        -ms-flex-align: stretch;
            align-items: stretch;
  }
  .intake-submit-row .submit-button,
  .intake-submit-row .submit-button.e-primary {
    width: 100%;
    min-width: 0;
    padding: 16px 24px;
  }
  .intake-submit-row .btn-clear-form {
    width: 100%;
    padding: 12px 20px;
  }
}

/* Secondary "Clear Form" button — outlined pill. */
.btn-clear-form {
  background-color: transparent;
  color: #6c757d;
  border: 1px solid #6c757d;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 500;
  cursor: pointer;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
  font-size: 14px;
}

.btn-clear-form:hover:not(:disabled) {
  background-color: #6c757d;
  color: #fff;
}

.btn-clear-form:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ─── Syncfusion dropdown tweaks ─────────────────────────────────────────── */
.definedlist-dropdown input {
  height: 40px !important;
}

/* ─── Clear-form confirmation modal ──────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1040;
}

.clear-form-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
      -ms-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  z-index: 1050;
  background: #fff;
  border-radius: 12px;
  -webkit-box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
          box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  max-width: 400px;
  width: 90%;
}

.clear-form-modal .modal-content {
  padding: 24px;
}

.clear-form-modal h4 {
  margin: 0 0 12px 0;
  color: #333;
  font-family: Merriweather, Georgia, serif;
}

.clear-form-modal p {
  margin: 0 0 20px 0;
  color: #666;
}

.modal-actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 12px;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
}

.btn-cancel {
  background-color: transparent;
  color: #6c757d;
  border: 1px solid #6c757d;
  padding: 8px 20px;
  border-radius: 20px;
  cursor: pointer;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
}

.btn-cancel:hover {
  background-color: #6c757d;
  color: #fff;
}

.btn-confirm-clear {
  background-color: #dc3545;
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  cursor: pointer;
  -webkit-transition: background-color 0.2s;
  transition: background-color 0.2s;
}

.btn-confirm-clear:hover {
  background-color: #c82333;
}

/* ─── /BotDetected page ─────────────────────────────────────────────────── */
.bot-detected-content {
  max-width: 700px;
  margin: 2rem auto;
  padding: 2rem 1.5rem;
}

.bot-detected-message {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  -webkit-box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
          box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border-left: 4px solid #ffc107;
}

.bot-detected-message h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.bot-detected-message p {
  color: #4a5568;
  line-height: 1.7;
  font-size: 1.05rem;
}

.btn-return {
  display: inline-block;
  padding: 10px 30px;
  background-color: var(--secondary-color);
  color: #fff;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 1px;
  -webkit-transition: background-color 0.2s;
  transition: background-color 0.2s;
}

.btn-return:hover {
  background-color: color-mix(in srgb, var(--secondary-color) 85%, black);
  color: #fff;
}

/* ─── Form-state restore notification ────────────────────────────────────── */
.form-restore-notification {
  background: color-mix(in srgb, var(--secondary-color) 15%, #fff);
  border: 1px solid var(--secondary-color);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 24px;
  -webkit-box-shadow: 0 2px 8px color-mix(in srgb, var(--secondary-color) 25%, transparent);
          box-shadow: 0 2px 8px color-mix(in srgb, var(--secondary-color) 25%, transparent);
  -webkit-transition: opacity 0.3s ease, -webkit-transform 0.3s ease;
  transition: opacity 0.3s ease, -webkit-transform 0.3s ease;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transition: opacity 0.3s ease, transform 0.3s ease, -webkit-transform 0.3s ease;
}

.form-restore-notification.hide {
  opacity: 0;
  -webkit-transform: translateY(-10px);
      -ms-transform: translateY(-10px);
          transform: translateY(-10px);
  pointer-events: none;
  height: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.form-restore-notification.show {
  opacity: 1;
  -webkit-transform: translateY(0);
      -ms-transform: translateY(0);
          transform: translateY(0);
}

.notification-content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 12px;
}

.notification-text {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  min-width: 200px;
  color: color-mix(in srgb, var(--primary-color) 85%, #000);
  font-size: 0.95rem;
}

.notification-actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 8px;
}

.btn-continue {
  background-color: var(--secondary-color);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 500;
  cursor: pointer;
  -webkit-transition: background-color 0.2s;
  transition: background-color 0.2s;
}

.btn-continue:hover {
  background-color: color-mix(in srgb, var(--secondary-color) 85%, black);
}

.btn-start-fresh {
  background-color: transparent;
  color: var(--secondary-color);
  border: 1px solid var(--secondary-color);
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 500;
  cursor: pointer;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
}

.btn-start-fresh:hover {
  background-color: var(--secondary-color);
  color: #fff;
}

@media (max-width: 576px) {
  .notification-content {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    text-align: center;
  }
  .notification-actions {
    width: 100%;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
  }
}
/* ─── Blazor error UI ────────────────────────────────────────────────────── */
.content {
  padding-top: 1.1rem;
}

#blazor-error-ui {
  background: lightyellow;
  bottom: 0;
  -webkit-box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
          box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
  display: none;
  left: 0;
  padding: 0.6rem 1.25rem 0.7rem 1.25rem;
  position: fixed;
  width: 100%;
  z-index: 1000;
}

#blazor-error-ui .dismiss {
  cursor: pointer;
  position: absolute;
  right: 0.75rem;
  top: 0.5rem;
}

.blazor-error-boundary {
  background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
  padding: 1rem 1rem 1rem 3.7rem;
  color: white;
}

.blazor-error-boundary::after {
  content: "An error has occurred.";
}

/* Respect users who prefer reduced motion (vestibular disorders, motion sensitivity).
   WCAG 2.3.3. Disables decorative transitions site-wide; hover effects snap to their
   end state instead of animating. Buttons and the form-restore notification both have
   their own transitions defined above — this single block neutralizes all of them. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after,
  .btn-clear-form,
  .btn-cancel,
  .btn-confirm-clear,
  .btn-continue,
  .btn-start-fresh,
  .btn-return,
  .submit-button,
  .submit-button.e-primary,
  .form-restore-notification,
  .modal-backdrop,
  .clear-form-modal {
    -webkit-transition: none !important;
    transition: none !important;
    -webkit-animation-duration: 0.01ms !important;
            animation-duration: 0.01ms !important;
    -webkit-animation-iteration-count: 1 !important;
            animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
/* ─── Intro band (directly below header) ─────────────────────────────────── */
.intake-intro {
  background: -webkit-gradient(linear, left top, left bottom, from(#f8f9fa), to(#fff));
  background: linear-gradient(180deg, #f8f9fa 0%, #fff 100%);
  padding: 2.5rem 0 0;
}

.intro-content {
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 2rem;
}

.intro-content h2 {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}

.intro-content p {
  color: #4a5568;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

/* ─── Main form area ─────────────────────────────────────────────────────── */
.main-form {
  width: auto;
  margin: auto;
  max-width: 1020px;
  padding: 0.75rem 1.5rem 4rem;
  background: #fff;
}

@media (min-width: 520px) {
  .main-form {
    padding: 12px 58px 64px;
  }
}
/* First section heading inside the form sits right under the intro — no extra
   top margin needed (intro already provides breathing room). */
.main-form > *:first-child h3:first-child,
.main-form > div > *:first-child h3:first-child {
  margin-top: 0;
}
/*# sourceMappingURL=wwwroot\css\site.css.map */