.contact-page { background: #fff; color: #283d4c; }
.contact-page .public-shell { display: block; padding: 0 28px; background: #fff; }
.contact-page .public-card { width: min(790px, 100%); margin: 0 auto; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: #fff; }
.contact-page .public-header { min-height: 94px; padding: 22px 0; margin: 0; border-bottom: 1px solid #e1e7ec; gap: 24px; }
.contact-brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.contact-brand img { width: 154px; height: auto; filter: none; }
.contact-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 20px; }
.contact-nav a { color: #506b7d; text-decoration: none; font-size: 12px; line-height: 1.5; }
.contact-nav a:hover, .contact-text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact-content { padding: 34px 0 42px; }
.contact-heading h1, .contact-unavailable h1 { font-size: 26px; line-height: 1.3; font-weight: 650; margin: 0 0 24px; letter-spacing: 0; }
.contact-owner { display: flex; align-items: center; gap: 12px; border-left: 3px solid var(--party-color, #176ba8); padding-left: 14px; margin-bottom: 32px; }
.contact-owner > img { width: 44px; height: 52px; object-fit: cover; object-position: top; border: 1px solid #e1e7ec; border-radius: 4px; background: #f4f7f9; }
.contact-owner > div { display: grid; gap: 4px; min-width: 0; }
.contact-owner span { color: #738390; font-size: 11px; }
.contact-owner strong { color: #2b4659; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.contact-form { display: grid; gap: 28px; }
.contact-section { display: grid; gap: 16px; min-width: 0; margin: 0; padding: 0 0 28px; border: 0; border-bottom: 1px solid #e1e7ec; }
.contact-section legend { padding: 0 0 20px; color: #304e63; font-size: 15px; font-weight: 600; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; min-width: 0; }
.contact-subject-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.contact-form label { display: grid; gap: 7px; min-width: 0; color: #425e70; font-size: 13px; font-weight: 500; line-height: 1.55; }
.contact-form :is(input:not([type=checkbox]), select, textarea) { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid #cfdce5; border-radius: 5px; background: #fff; color: #273f51; font-family: inherit; font-size: 14px; line-height: 1.45; font-weight: 400; box-shadow: none; }
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form ::placeholder { color: #8b98a2; opacity: 1; }
.contact-page :is(input, select, textarea, a, button, summary):focus-visible { outline: 2px solid #2685b8; outline-offset: 3px; }
.contact-form :is(input, select, textarea)[aria-invalid=true] { border-color: #b85148; }
.contact-form .required-mark { color: #768a98; font-weight: 400; }
.contact-form .field-error { font-size: 12px; line-height: 1.5; color: #a23e35; font-weight: 400; }
.contact-hint { margin: -7px 0 0; color: #788996; font-size: 12px; line-height: 1.5; }
.contact-optional { margin-top: 2px; padding-top: 2px; }
.contact-optional > summary { width: fit-content; font-size: 12px; color: #506f84; cursor: pointer; }
.contact-optional-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: end; padding-top: 18px; }
.contact-form input[type=checkbox] { width: 18px; height: 18px; min-height: 18px; margin: 1px 0 0; padding: 0; accent-color: #176ba8; flex: 0 0 18px; }
.contact-family { display: flex; gap: 24px; min-height: 44px; align-items: center; }
.contact-family label, .contact-form .contact-checkbox { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; }
.contact-permissions { gap: 18px; padding-bottom: 0; border-bottom: 0; }
.contact-permissions > p { margin: -4px 0 0; font-size: 12px; color: #728492; line-height: 1.65; }
.contact-checkbox small { display: block; color: #7c8b96; font-size: 11px; font-weight: 400; margin-top: 4px; }
.contact-checkbox a { color: #176ba8; text-underline-offset: 3px; }
.contact-form-footer { display: flex; justify-content: flex-end; padding-top: 4px; }
.contact-submit { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; border: 1px solid #176ba8; border-radius: 5px; padding: 11px 22px; background: #176ba8; color: #fff; font-family: inherit; font-size: 14px; line-height: 1.4; font-weight: 550; cursor: pointer; text-decoration: none; }
.contact-submit:hover { background: #135b90; }
.contact-submit:disabled { background: #7097b1; border-color: #7097b1; cursor: wait; }
.contact-footer { display: flex; justify-content: space-between; gap: 16px; padding: 22px 0 30px; border-top: 1px solid #e1e7ec; color: #84929d; font-size: 11px; }
.contact-footer a { color: #6e8190; text-decoration: none; }
.contact-errors { padding: 14px 16px; border-left: 3px solid #ba6458; background: #fff4f1; font-size: 13px; line-height: 1.6; color: #914238; }
.contact-errors strong { font-weight: 550; }
.contact-errors ul { margin: 8px 0 0; padding-left: 18px; }
.contact-success { padding: 6px 0 20px; max-width: 620px; }
.contact-success-status { display: flex; align-items: center; gap: 8px; color: #2a7651; font-size: 13px; margin: 0 0 20px; }
.contact-success-status img { filter: invert(37%) sepia(13%) saturate(1695%) hue-rotate(101deg); }
.contact-protocol { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; border-block: 1px solid #dfe7ed; }
.contact-protocol > div { display: grid; gap: 9px; min-width: 0; }
.contact-protocol span { font-size: 12px; color: #788996; }
.contact-protocol output { font-size: 23px; color: #245d80; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; user-select: all; }
.contact-icon-button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid #d3dee6; background: #fff; border-radius: 5px; flex: 0 0 40px; cursor: pointer; }
.contact-icon-button:hover { background: #f2f7fa; }
.contact-copy-status { min-height: 18px; color: #567184; font-size: 12px; margin: 8px 0; }
.contact-email-status { font-size: 13px; color: #647d8d; line-height: 1.7; overflow-wrap: anywhere; }
.contact-email-status strong { font-weight: 500; }
.contact-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 28px; }
.contact-text-link { color: #176ba8; font-size: 13px; text-decoration: none; }
.service-document { color: #4c6576; font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.service-document .service-intro { margin: 0 0 28px; color: #657e8e; }
.service-document > section { padding: 22px 0; border-top: 1px solid #e1e7ec; }
.service-document h2 { margin: 0 0 8px; font-size: 16px; line-height: 1.5; font-weight: 600; color: #304e63; }
.service-document p { margin: 0; }
.service-document strong { font-weight: 600; }
.contact-secondary-button { min-height: 44px; padding: 11px 16px; border: 1px solid #cfdce5; border-radius: 5px; background: #fff; color: #3f627a; font: inherit; font-size: 13px; line-height: 1.4; cursor: pointer; }
.contact-secondary-button:hover { background: #f2f7fa; }
.service-lookup-error { margin-top: 30px; }
.service-lookup-error p { margin: 4px 0 0; }
.service-result { margin-top: 34px; padding-top: 26px; border-top: 1px solid #dce6ec; }
.service-result-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.service-result-heading h2 { margin: 0; font-size: 19px; line-height: 1.5; font-weight: 600; color: #304e63; overflow-wrap: anywhere; min-width: 0; }
.service-status { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 4px; background: #eaf3fa; color: #21608a; font-size: 12px; line-height: 1.5; flex: 0 0 auto; }
.service-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.service-status--em_analise { color: #805900; background: #fff4d9; }
.service-status--em_andamento { color: #14697b; background: #e9f5f6; }
.service-status--respondida, .service-status--concluida { color: #286643; background: #eaf5ed; }
.service-status--arquivada { color: #626b73; background: #eff1f3; }
.service-result-details { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 24px 0; }
.service-result-details > div { min-width: 0; }
.service-result-details dt { margin: 0 0 5px; color: #748693; font-size: 12px; }
.service-result-details dd { margin: 0; color: #3d586b; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.service-answer { border-top: 1px solid #e1e7ec; padding-top: 22px; }
.service-answer h3 { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: #304e63; }
.service-answer > div { font-size: 14px; line-height: 1.8; color: #4c6576; overflow-wrap: anywhere; }
.contact-unavailable { padding: 30px 0 100px; }
.contact-unavailable p { max-width: 480px; margin: 0 0 22px; color: #6b8190; font-size: 14px; line-height: 1.7; }
@media (max-width: 600px) {
  .contact-page .public-shell { padding: 0 18px; }
  .contact-page .public-header { padding: 20px 0; min-height: 82px; flex-wrap: wrap; gap: 18px; }
  .contact-brand img { width: 142px; }
  .contact-nav { gap: 14px; justify-content: flex-start; }
  .contact-nav a { font-size: 11px; }
  .contact-content { padding-top: 28px; }
  .contact-heading h1, .contact-unavailable h1 { font-size: 23px; }
  .contact-grid, .contact-subject-grid, .contact-optional-fields { grid-template-columns: 1fr; gap: 16px; }
  .contact-form { gap: 24px; }
  .contact-form :is(input:not([type=checkbox]), select, textarea) { font-size: 16px; }
  .contact-section { padding-bottom: 24px; }
  .contact-permissions { padding-bottom: 0; }
  .contact-section legend { font-size: 14px; }
  .contact-form-footer .contact-submit { width: 100%; }
  .contact-actions { align-items: stretch; flex-direction: column; }
  .contact-actions .contact-text-link { text-align: center; padding: 8px; }
  .contact-protocol output { font-size: 20px; }
  .service-result-heading { flex-wrap: wrap; gap: 12px; }
  .service-result-details { grid-template-columns: 1fr; gap: 18px; }
}
