/* Páginas públicas de associação, inscrição e acompanhamento. */
.atendimento {
  --forest: #073f30;
  --leaf: #00683e;
  --paper: #f5f2e8;
  --rule: #c0c9c1;
  color: #162d24;
}
.atendimento .wrap { width: min(1140px, calc(100% - 80px)); }
.atendimento h1, .atendimento h2, .atendimento h3, .atendimento legend {
  margin: 0;
  color: var(--forest);
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.035em;
}
.atendimento h1 { font-size: clamp(2rem, 3.7vw, 3.1rem); }
.atendimento h2 { font-size: clamp(1.55rem, 2.5vw, 2.1rem); }
.atendimento h3, .atendimento legend { font-size: clamp(1.12rem, 1.65vw, 1.42rem); }
.atendimento p { margin: .65rem 0 0; font: 400 1rem/1.58 Rubik, Arial, sans-serif; }
.atendimento a, .atendimento button { text-decoration: none; }
.atendimento a:focus-visible, .atendimento button:focus-visible { outline: 3px solid #c68110; outline-offset: 3px; }
.service-mast { background: var(--forest); color: white; }
.atendimento .service-mast h1 { color: white; }
.mast-content p { max-width: 57ch; }
.atendimento .service-button, .atendimento .service-track, .atendimento .context-link, .atendimento .mast-track {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  width: fit-content; min-height: 44px; padding: 9px 16px; border: 1px solid transparent; border-radius: 5px;
  font: 700 .92rem/1.3 "Red Hat Display", Arial, sans-serif; text-align: center; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.atendimento .service-button { color: white; background: var(--leaf); }
.atendimento .service-button:hover { background: var(--forest); }
.atendimento .service-button.light { color: var(--forest); background: white; }
.atendimento .service-button.light:hover { background: #e1e9db; }
.atendimento .mast-track { color: white; padding-inline: 9px; }
.atendimento .mast-track:hover, .exam-sources a:hover { background: #126049; }
.atendimento .context-link, .atendimento .service-track { background: transparent; color: var(--forest); border-color: #789183; }
.atendimento .context-link:hover, .atendimento .service-track:hover { background: var(--forest); color: white; border-color: var(--forest); }
.mast-content { display: grid; grid-template-columns: 1.65fr 1fr; gap: 32px; align-items: center; padding-block: 35px; }
.mast-content .mast-track { margin: 9px 0 0 -10px; }
.exam-sources { display: flex; flex-wrap: wrap; align-content: start; gap: 9px; }
.exam-sources a { padding: 12px; border-radius: 4px; border: 1px solid #8fb5a3; font-weight: 700; font-size: .9rem; }
.service-layout { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(220px, .85fr); gap: clamp(34px, 7vw, 88px); align-items: start; padding-block: 40px 64px; scroll-margin-top: 20px; }
.atendimento .service-form, .atendimento .protocol-form, .atendimento .record-action { display: grid; gap: 20px; min-width: 0; margin: 0; }
.atendimento .simulation { background: var(--paper); color: #263d31; border: 0; padding: 14px 17px; border-radius: 4px; }
.atendimento .simulation strong { font-size: .87rem; }
.atendimento .simulation p { margin: 3px 0 0; font-size: .92rem; }
.service-form fieldset { min-width: 0; border: 0; padding: 0; margin: 0; }
.service-form legend { padding: 0; margin: 0 0 12px; }
.service-options { display: flex; flex-wrap: wrap; gap: 8px; }
.service-options label, .service-consent { display: flex; align-items: center; gap: 9px; font-size: .95rem; cursor: pointer; margin: 0; }
.service-options label { padding: 9px 13px; min-height: 44px; background: white; border: 1px solid #889e90; border-radius: 4px; font-weight: 650; transition: background-color .2s, color .2s, border-color .2s; }
.service-options label:hover { border-color: var(--leaf); }
.service-options label:has(:checked) { background: var(--forest); color: white; border-color: var(--forest); }
.service-options input[type=radio], .service-consent input[type=checkbox] { accent-color: #007849; width: 18px; height: 18px; min-height: 18px; flex: none; margin: 0; }
.service-section { display: grid; gap: 12px; }
.service-pair { display: grid; grid-template-columns: minmax(0,.7fr) minmax(0,1fr); gap: 15px; }
.service-field { display: grid; gap: 5px; min-width: 0; }
.service-field label { margin: 0; font-size: .92rem; font-weight: 650; }
.service-field input { width: 100%; min-width: 0; min-height: 44px; border: 1px solid #86988b; padding: 9px 11px; border-radius: 4px; color: #162d24; background: white; }
.service-field input[type=file] { font: 400 .92rem/1.45 Rubik,Arial,sans-serif; }
.service-field input::file-selector-button { color: var(--forest); padding: 4px 9px; font: inherit; margin-right: 10px; background: white; border: 1px solid #789183; border-radius: 4px; cursor: pointer; }
.service-field [aria-invalid=true] { border-color: #ad3234; }
.service-field .field-hint { font-size: .87rem; color: #42594b; }
.service-error, .service-feedback { color: #902c28; }
.service-error { font-size: .88rem; }
.service-feedback { background: #fff2ed; padding: 12px 15px; border: 1px solid #b65951; }
.service-consent { align-items: flex-start; line-height: 1.4; }
.service-support { padding-block: 15px; border-top: 2px solid var(--leaf); }
.service-support h2 { font-size: 1.45rem; }
.service-support .service-track { margin-top: 14px; }
.service-record { padding-block: 46px 64px; }
.service-record h1 { margin-bottom: 24px; }
.service-record .protocol-form, .service-record .record-action { max-width: 540px; }
.record-facts { display: flex; flex-wrap: wrap; gap: 16px 36px; padding-block: 17px; border-block: 1px solid var(--rule); }
.record-facts dt { font-size: .88rem; }
.record-facts dd { margin: 4px 0 0; font-weight: 700; font-size: 1.12rem; overflow-wrap: anywhere; }
.record-action, .service-record h2 { margin-top: 26px !important; }
.record-history { padding-left: 1.3rem; max-width: 680px; }
.record-history li { padding: 10px 0; }
.record-history time { margin-right: 12px; }
@media (max-width: 800px) {
  .atendimento .wrap { width: calc(100% - 44px); }
  .service-layout { grid-template-columns: 1fr; }
}
@media (max-width: 580px) {
  .atendimento .wrap { width: calc(100% - 36px); }
  .mast-content, .service-pair { grid-template-columns: 1fr; }
  .mast-content { gap: 18px; padding-block: 26px; }
  .service-layout { padding-block: 26px 40px; }
}
@media (prefers-reduced-motion: no-preference) {
  html:has(.atendimento) { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  .atendimento *, .atendimento *::after { transition-duration: 0s !important; scroll-behavior: auto !important; }
}
