/* Mi DoctorPC public portal. Visual styles only; form behavior lives in form.js. */
:root {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  color: #000000;
  background: #f5f8fa;
  --cyan: #039BDD;
  --magenta: #DB0184;
  --black: #000000;
  --white: #FFFFFF;
  --muted: #54616e;
  --border: #d6dfe5;
  --link: #006a98;
}
* { box-sizing: border-box; }
body { margin: 0; }
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px max(24px, calc((100vw - 1100px) / 2));
  background: var(--white);
  border-top: 4px solid var(--cyan);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 20px; text-decoration: none; color: var(--black); }
.brand-logo { display: block; width: 128px; height: auto; object-fit: contain; }
.brand-name { font-size: 23px; font-weight: 800; letter-spacing: -.7px; }
.accent { color: var(--link); }
.brand small { display: block; margin-top: 7px; color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: 1.4px; }
.header-note { font-size: 13px; color: var(--muted); }
main { max-width: 820px; margin: 0 auto; padding: 42px 24px 30px; }
.intro { margin-bottom: 28px; }
.eyebrow { display: inline-block; padding-left: 10px; border-left: 3px solid var(--magenta); font-size: 11px; font-weight: 750; letter-spacing: 1.8px; color: var(--link); }
h1 { margin: 14px 0; font-size: 32px; letter-spacing: -.8px; line-height: 1.2; }
p { line-height: 1.6; }
.intro p { margin: 0; max-width: 650px; color: var(--muted); font-size: 15px; }
.card { padding: 32px; border: 1px solid var(--border); border-radius: 18px; background: var(--white); box-shadow: 0 12px 40px #00000008; }
.card-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 25px; padding-bottom: 20px; border-bottom: 2px solid #e1f4fc; }
h2 { margin: 0 0 5px; font-size: 19px; }
.card-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.badge { padding: 8px 10px; border: 1px solid #bce8fa; border-radius: 7px; background: #eaf8fe; color: var(--black); font-size: 10px; font-weight: 700; letter-spacing: .5px; white-space: nowrap; }
.field { min-width: 0; margin-bottom: 21px; }
.grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 650; }
label span:not(.confirmation span), label b { color: #a83236; }
input:not([type=checkbox]):not([type=file]), select, textarea {
  display: block;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--black);
  background: var(--white);
  font: inherit;
  font-size: 16px;
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: #677581; opacity: 1; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--cyan); outline: 2px solid var(--cyan); outline-offset: 2px; box-shadow: 0 0 0 4px #039bdd14; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--magenta); outline-offset: 4px; }
textarea { resize: vertical; min-height: 130px; }
.hint { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.confirmation { display: flex; gap: 12px; margin: 2px 0 24px; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.7; }
.confirmation input { flex-shrink: 0; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--link); }
label small { margin-left: 5px; color: var(--muted); font-size: 11px; font-weight: 400; }
.upload { display: flex; align-items: flex-start; gap: 15px; padding: 19px; border: 1px dashed #94cfe8; border-radius: 10px; background: #f5fbfe; }
.upload > div { min-width: 0; }
.upload-icon { padding: 5px 11px; border-radius: 8px; color: var(--black); background: #dff3fc; font-size: 24px; }
.upload strong { font-size: 13px; }
.upload p { margin: 5px 0 12px; color: var(--muted); font-size: 11px; }
input[type=file] { width: 100%; max-width: 100%; color: var(--muted); font-size: 12px; }
input[type=file]::file-selector-button { padding: 8px 10px; margin-right: 10px; border: 1px solid #94cfe8; border-radius: 6px; background: var(--white); color: var(--link); cursor: pointer; }
#files-info { padding-left: 20px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
#files-info:empty { display: none; }
.submit-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 20px; border-top: 1px solid #e6edf1; }
.privacy { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.privacy small { color: var(--muted); font-size: 11px; }
button { padding: 14px 21px; border: 0; border-radius: 9px; background: var(--cyan); color: var(--black); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; box-shadow: 0 4px 9px #039bdd20; transition: background .15s, box-shadow .15s; }
button span { margin-left: 14px; }
button:hover:not(:disabled) { background: #28b2ed; box-shadow: 0 5px 14px #039bdd30; }
button:disabled { background: #d6e5ec; color: #4d5e68; box-shadow: none; cursor: not-allowed; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.footer-note { margin-top: 24px; text-align: center; color: var(--muted); font-size: 11px; }
footer { padding: 0 20px 25px; text-align: center; color: var(--muted); font-size: 11px; }
/* Preserve semantic success/error colors; brand accent does not change meaning. */
#feedback { padding: 18px; margin-bottom: 24px; border: 1px solid #bdddc9; border-left: 4px solid var(--cyan); border-radius: 10px; background: #edf8f2; color: #256343; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
#feedback.error { border-color: #e6bbb7; border-left-color: #9d3934; background: #fff0ee; color: #9d3934; }
#feedback strong { display: block; margin-top: 6px; font-size: 17px; }
#feedback:focus { outline: 2px solid var(--cyan); outline-offset: 3px; }
#reference { overflow-wrap: anywhere; }
@media (max-width: 600px) {
  header { padding: 14px 16px; }
  .brand { gap: 12px; }
  .brand-logo { width: 98px; }
  .brand-name { font-size: 20px; }
  .brand small { font-size: 9px; letter-spacing: .7px; }
  .header-note, .badge { display: none; }
  main { padding: 28px 12px 20px; }
  h1 { font-size: 27px; }
  .card { padding: 22px 14px; border-radius: 13px; }
  .grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .submit-row { flex-direction: column; align-items: stretch; }
  .submit-row button { width: 100%; }
  .upload { padding: 14px; gap: 10px; }
  .upload-icon { display: none; }
}
/* Turnstile flexible widgets require 300px: keep the CAPTCHA usable at 320px. */
@media (max-width: 360px) {
  main { padding-left: 8px; padding-right: 8px; }
  .card { padding-left: 0; padding-right: 0; }
  .card-heading, .field:not(#captcha), .confirmation, .submit-row, #reference, #feedback { margin-left: 12px; margin-right: 12px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

[hidden] { display: none !important; }
.intro #generate-ticket { margin-top: 20px; white-space: normal; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
