* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  color: #4b4b4b;
  background: #ffffff;
  overflow-x: hidden;
}

html, body {
  width: 100%;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ====================== TOPBAR ====================== */
.topbar {
  background: #3f474f;
  color: #ffffff;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 8px 0 6px 0;
}

.topbar-inner {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 32px;
  gap: 24px;
}

.logo-top {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.logo-top--fcc {
  height: 38px;
  max-width: min(280px, 72vw);
}

.menu {
  margin-left: auto;
  display: flex;
  align-items: flex-end;
  gap: 4px;
}

.menu-item {
  font-size: 13px;
  font-weight: 700;
  color: #e7eded;
  padding: 10px 14px 12px 14px;
  border-radius: 6px 6px 0 0;
  transition: background 0.15s ease, color 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.menu-item.active {
  background: #ffffff;
  color: #b0132f;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.rss-tag {
  background: #ff8400;
  color: #fff;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 700;
}

/* ====================== CONTENT ====================== */
.content-wrapper {
  max-width: 1180px;
  margin: 24px auto 30px auto;
  display: flex;
  gap: 30px;
  padding: 0 20px;
  width: 100%;
  align-items: flex-start;
}

.sidebar {
  width: 285px;
  flex-shrink: 0;
}

.logo-box {
  margin-bottom: 14px;
}

.logo-fcc {
  width: 220px;
  height: auto;
}

.section-heading {
  font-size: 17px;
  color: #b0132f;
  margin: 18px 0 8px 0;
  font-weight: 700;
}

.section-heading:first-of-type {
  margin-top: 0;
}

.panel {
  background: #f2f2f2;
  border: 1px solid #d8d8d8;
  padding: 14px;
  line-height: 1.4;
  font-size: 13px;
}

.cargos-panel {
  font-size: 13px;
}

.panel-title {
  color: #b0132f;
  font-weight: 700;
  margin: 0 0 6px 0;
}

.list {
  list-style: none;
  padding-left: 0;
}

.list li {
  margin-bottom: 3px;
}

.main {
  flex: 1;
  min-width: 0;
}

.title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4px;
}

.title-row h1 {
  font-size: 20px;
  color: #b0132f;
  font-weight: 700;
}

.subtitle {
  color: #777777;
  font-size: 14px;
}

.back-link {
  font-size: 12px;
  color: #7b7b7b;
  text-decoration: none;
  margin-top: 6px;
}

.update {
  font-size: 12px;
  color: #808080;
  margin: 6px 0 14px 0;
  text-align: right;
}

.alert-panel {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.alert-text {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.icon {
  display: inline-block;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

.pdf-icon {
  width: 20px;
  height: 20px;
  background-image: url("images/marca_24.png");
  background-size: contain;
}

.pdf-icon.large {
  width: 28px;
  height: 28px;
  margin-top: 3px;
}

.globe-icon {
  width: 18px;
  height: 18px;
  background-image: url("images/mundo.gif");
  background-size: contain;
}

.acrobat-icon {
  width: 18px;
  height: 18px;
  background-image: url("images/acrobat.jpg");
  background-size: contain;
  margin-right: 6px;
  vertical-align: middle;
}

.attention-icon {
  height: 26px;
  width: auto;
  margin-top: 2px;
}

.section-heading + .link-panel {
  margin-top: 6px;
}

.link-panel {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.link-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #4b4b4b;
}

.link-row + .link-row {
  padding-top: 8px;
  border-top: 1px dotted #c7c7c7;
}

.pdf-link-icon {
  width: 20px;
  height: 20px;
  background-image: url("images/_pdf.gif");
  background-size: contain;
}

.acrobat-help {
  background: #f7f3e8;
  border: 1px solid #ead9a4;
  padding: 10px 12px;
  font-size: 13px;
  color: #4b4b4b;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.acrobat-help a {
  color: #b0132f;
  text-decoration: underline;
}

.info-panel p {
  margin-bottom: 12px;
  font-size: 13px;
}

.info-panel p:last-child {
  margin-bottom: 0;
}

.publications-panel {
  font-size: 13px;
  margin-bottom: 10px;
}

/* sidebar bottom blocks */
.sidebar-block {
  margin-top: 18px;
}

.sidebar-block h4 {
  font-size: 16px;
  color: #b0132f;
  margin-bottom: 8px;
  font-weight: 700;
}

.btn-arrow {
  background: #4c4e52;
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 200px;
  transition: background .15s ease;
}

.btn-arrow:hover {
  background: #34373a;
}

.btn-arrow::before {
  content: ">";
  display: inline-block;
  font-weight: 700;
  font-size: 12px;
}

.other-link {
  font-size: 13px;
  color: #4b4b4b;
}

.other-link a {
  color: #b0132f;
  text-decoration: underline;
}

/* ====================== FOOTER ====================== */
.footer {
  background: #f6f6f6;
  border-top: 1px solid #dcdcdc;
  margin-top: 10px;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 20px 16px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.foot-col h5 {
  font-size: 15px;
  color: #777777;
  margin-bottom: 10px;
}

.foot-col ul {
  list-style: none;
  padding-left: 12px;
  color: #4b4b4b;
  font-size: 13px;
  line-height: 1.6;
}

.foot-col ul li::before {
  content: "-";
  margin-right: 6px;
  color: #777777;
}

.foot-text {
  font-size: 12px;
  line-height: 1.5;
  color: #4b4b4b;
  margin-bottom: 10px;
}

.footer-bottom {
  background: #9b0d31;
  color: #ffffff;
  text-align: center;
  padding: 10px 0;
  font-size: 12px;
}

/* ====================== FLOAT/CHAT ICONS ====================== */
.float-icons {
  position: fixed;
  right: 8px;
  top: 220px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 10;
}

.float-btn {
  width: 36px;
  height: 36px;
  background: #3f6f8a;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
}

.chat-bubble {
  position: fixed;
  left: 16px;
  bottom: 16px;
  width: 50px;
  height: 50px;
  background: #b31432;
  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  font-weight: 700;
}

/* ====================== INSC FORM (cadastro) ====================== */
.insc-body {
  font-family: Arial, sans-serif;
  background: #ffffff;
  color: #333333;
}

.insc-header {
  background: #a60c32;
  padding: 10px 18px;
}

.insc-header-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.insc-logo {
  height: 46px;
  width: auto;
  object-fit: contain;
}

.insc-main {
  max-width: 1180px;
  margin: 20px auto 40px auto;
  padding: 0 20px;
}

.insc-card {
  border: 1px solid #dcdcdc;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  padding: 16px;
}

.insc-title {
  background: #a60c32;
  color: #ffffff;
  padding: 10px 12px;
  border-radius: 3px;
  font-size: 15px;
  margin: 18px 0 12px 0;
}

.insc-title:first-of-type {
  margin-top: 0;
}

.grid {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.grid.two { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid.four { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}

.field span {
  color: #4b4b4b;
  font-weight: 700;
}

.field input,
.field select {
  padding: 8px 10px;
  border: 1px solid #cfcfcf;
  border-radius: 3px;
  font-size: 13px;
  font-family: Arial, sans-serif;
}

.field input:focus,
.field select:focus {
  outline: 2px solid #a60c32;
  border-color: #a60c32;
}

.muted {
  color: #666666;
  font-size: 12px;
}

.error {
  color: #c91532;
  font-size: 12px;
}

.captcha-area {
  margin: 12px 0 18px 0;
}

.captcha-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.captcha-box {
  background: #f2f2f2;
  border: 1px solid #cfcfcf;
  padding: 10px 14px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #4b4b4b;
}

.actions {
  margin-top: 10px;
}

.btn-primary {
  align-self: flex-start;
  background: #a60c32;
  color: #ffffff;
  border: none;
  padding: 10px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.btn-primary:hover {
  background: #8d0a2a;
}

.btn-primary.small {
  padding: 8px 12px;
}

.password-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.password-row input {
  flex: 1;
}

.btn-eye {
  border: 1px solid #cfcfcf;
  background: #f6f6f6;
  padding: 8px 10px;
  border-radius: 4px;
  cursor: pointer;
}

.btn-eye i {
  font-size: 15px;
  color: #444;
  pointer-events: none;
}

.spinner-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 200;
}

.spinner-overlay.open {
  display: flex;
}

.spinner {
  width: 46px;
  height: 46px;
  border: 5px solid #ffffff;
  border-top-color: #a60c32;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 10px;
}

.spinner-text {
  color: #ffffff;
  font-weight: 700;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ====================== SUCCESS / FORM PAGE ====================== */
.success-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.success-sidebar {
  background: #ffffff;
  color: #000000;
  padding: 0 16px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.success-header {
  background: #a60c32;
  width: calc(100% + 32px);
  margin-left: -16px;
  margin-right: -16px;
  padding: 18px 16px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.avatar-box {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.7);
}

.avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-name {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.side-link {
  color: #000000;
  text-decoration: none;
  display: block;
  padding: 8px 0;
  font-weight: 600;
}

.side-link.active,
.side-link:hover {
  text-decoration: underline;
  color: #a60c32;
}

.success-main {
  background: #f7f7f7;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.success-main.centered {
  justify-content: center;
}

.success-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  text-align: center;
  max-width: 720px;
  width: 100%;
}

.success-card h1 {
  color: #a60c32;
  font-size: 22px;
  margin-bottom: 10px;
}

.success-card p {
  margin-bottom: 18px;
  color: #4b4b4b;
}

.form-header-card {
  width: 100%;
  max-width: 1080px;
  margin-bottom: 16px;
}

.form-title {
  font-size: 20px;
  font-weight: 700;
  color: #a60c32;
  margin-bottom: 10px;
}

.form-job-card {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #dcdcdc;
  background: #ffffff;
  padding: 12px;
  margin-bottom: 12px;
}

.tabs {
  display: flex;
  gap: 18px;
  margin-top: 8px;
  border-bottom: 1px solid #dcdcdc;
}

.tab {
  padding-bottom: 6px;
  border-bottom: 3px solid transparent;
  font-weight: 700;
  color: #a60c32;
  cursor: pointer;
}

.tab.active {
  border-color: #a60c32;
}

.card-list h2 {
  margin-bottom: 16px;
  color: #a60c32;
}

/* form topbar */
.form-page .form-topbar {
  width: 100%;
  background: #b0132f;
  padding: 10px 18px;
  box-sizing: border-box;
  position: sticky;
  top: 0;
  z-index: 500;
}

.form-page .form-topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.form-page .form-topbar .logo {
  height: 46px;
  width: auto;
  object-fit: contain;
}

.form-page .form-container {
  width: 100%;
  max-width: 1080px;
  background: #f8f8f8;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-page .form-job-card {
  margin-bottom: 0;
}

.section-card {
  background: #ffffff;
  border: 1px solid #dcdcdc;
  width: 100%;
}

.section-header {
  background: #b0132f;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  cursor: pointer;
  user-select: none;
}

.section-header .title {
  font-weight: 700;
}

.section-header .toggle {
  font-weight: 700;
}

.section-body {
  padding: 12px 14px;
}

.section-collapsed .section-body {
  display: none;
}

.section-collapsed .toggle {
  transform: rotate(-90deg);
}

.data-grid-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  font-size: 13px;
}

.data-grid-form div strong {
  display: block;
  margin-bottom: 2px;
}

.warning {
  color: #c91532;
  font-size: 13px;
  margin-top: 6px;
}

.btn-block {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ===== Revisão formulário SEFAZ CE (layout FCC, sem sidebar) ===== */
.fcc-sefaz-review-page .form-topbar {
  display: none;
}

.fcc-sefaz-topbar {
  background: #99113a;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 500;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.fcc-sefaz-topbar-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  gap: 8px;
}

.fcc-sefaz-topbar-logo-wrap {
  flex: 1;
  display: flex;
  justify-content: center;
}

.fcc-sefaz-topbar-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.fcc-sefaz-topbar-tools {
  display: flex;
  gap: 4px;
}

.fcc-sefaz-ic-btn {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  padding: 6px 8px;
  cursor: pointer;
  border-radius: 4px;
  opacity: 0.95;
}

.fcc-sefaz-ic-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.fcc-sefaz-review-main {
  background: #f0f0f0;
  min-height: calc(100vh - 56px);
  padding: 20px 14px 80px;
  box-sizing: border-box;
}

.fcc-sefaz-review-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fcc-sefaz-review-page-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 4px;
  text-align: center;
  padding-bottom: 10px;
  border-bottom: 2px solid #99113a;
}

.fcc-sefaz-job-card .card-title {
  color: #99113a;
  font-size: 0.95rem;
  line-height: 1.3;
}

.fcc-sefaz-job-card .card-subtitle {
  color: #111;
  font-weight: 700;
  font-size: 0.82rem;
  margin-top: 4px;
}

.fcc-sefaz-stepper {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  gap: 8px;
  padding: 14px 8px 6px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
}

.fcc-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  padding: 6px 4px 10px;
  border-bottom: 3px solid transparent;
  max-width: 120px;
}

.fcc-step-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c97b8f;
}

.fcc-step-lb {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #c97b8f;
  text-align: center;
}

.fcc-step-active .fcc-step-ic,
.fcc-step-active .fcc-step-lb {
  color: #99113a;
}

.fcc-step-active {
  border-bottom-color: #99113a;
}

.fcc-step-muted {
  cursor: default;
  opacity: 0.95;
}

.fcc-step-link:hover .fcc-step-ic,
.fcc-step-link:hover .fcc-step-lb {
  color: #99113a;
}

.fcc-sefaz-cand-head {
  margin-top: 4px;
}

.fcc-sefaz-cand-title {
  font-size: 1rem;
  font-weight: 700;
  color: #222;
  margin: 0 0 6px;
}

.fcc-sefaz-cand-line {
  height: 2px;
  background: #99113a;
  opacity: 0.85;
  max-width: 100%;
}

.fcc-sefaz-review-page .section-header {
  background: #99113a;
}

.fcc-review-acc.section-collapsed .toggle.fcc-acc-chev {
  transform: none;
}

.fcc-review-body {
  padding: 16px 14px !important;
}

.fcc-rv-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}

.fcc-rv-field .fcc-rv-lab {
  font-size: 11px;
  font-weight: 600;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.fcc-rv-field .fcc-rv-val {
  font-size: 15px;
  font-weight: 700;
  color: #111;
  line-height: 1.35;
  word-break: break-word;
}

.fcc-rv-row {
  display: grid;
  gap: 12px 16px;
  margin-bottom: 4px;
}

.fcc-rv-row-1 { grid-template-columns: 1fr; }
.fcc-rv-row-2 { grid-template-columns: repeat(2, 1fr); }
.fcc-rv-row-3 { grid-template-columns: repeat(3, 1fr); }
.fcc-rv-row-4 { grid-template-columns: repeat(4, 1fr); }

.fcc-rv-row .fcc-rv-field {
  margin-bottom: 0;
}

.fcc-rv-cpf-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.fcc-rv-cpf-field {
  flex: 1;
  min-width: 200px;
}

.fcc-rv-cpf-field .fcc-rv-field {
  margin-bottom: 0;
}

.btn-fcc-outline-maroon {
  flex-shrink: 0;
  margin-top: 18px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  color: #99113a;
  background: #fff;
  border: 2px solid #99113a;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
}

.btn-fcc-outline-maroon:hover {
  background: #fff5f7;
}

.fcc-rv-hint {
  margin-top: -6px;
  margin-bottom: 8px;
  padding: 10px 12px;
  border: 1px solid #99113a;
  border-radius: 4px;
  font-size: 13px;
  color: #99113a;
  line-height: 1.45;
  background: #fff;
}

.fcc-rv-nest {
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fafafa;
  padding: 14px 14px 4px;
  margin-top: 12px;
  margin-bottom: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.fcc-rv-nest-title {
  font-size: 15px;
  font-weight: 700;
  color: #111;
  margin-bottom: 12px;
}

.fcc-rv-nest .fcc-rv-field {
  margin-bottom: 10px;
}

.fcc-review-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
  padding-bottom: 24px;
}

.btn-fcc-avancar {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  background: #99113a;
  color: #fff;
  border: 0;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(153, 17, 58, 0.35);
}

.btn-fcc-avancar:hover {
  filter: brightness(1.05);
}

.btn-fcc-avancar-arw {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  color: #99113a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

@media (max-width: 700px) {
  .fcc-rv-row-4,
  .fcc-rv-row-3,
  .fcc-rv-row-2 {
    grid-template-columns: 1fr;
  }

  .fcc-rv-cpf-row {
    flex-direction: column;
  }

  .btn-fcc-outline-maroon {
    margin-top: 0;
    width: 100%;
  }

  .fcc-review-footer {
    justify-content: stretch;
  }

  .btn-fcc-avancar {
    width: 100%;
    justify-content: center;
  }
}

/* ===== Ficha de inscrição (etapa INSCRIÇÃO) ===== */
.fcc-ficha-inner {
  max-width: 760px;
}

.fcc-ficha-field {
  margin-bottom: 18px;
}

.fcc-ficha-lab {
  display: block;
  font-weight: 700;
  font-size: 14px;
  color: #111;
  line-height: 1.35;
}

.fcc-ast {
  color: #c62828;
  font-weight: 700;
}

.fcc-ficha-select {
  width: 100%;
  margin-top: 8px;
  padding: 12px 11px;
  font-size: 14px;
  border: 1px solid #b0b0b0;
  border-radius: 6px;
  background: #fff;
  box-sizing: border-box;
}

.fcc-ficha-field.is-invalid .fcc-ficha-select {
  border-color: #99113a;
  box-shadow: 0 0 0 1px #99113a;
}

.fcc-ficha-field-err {
  display: none;
  font-size: 12px;
  color: #c62828;
  margin-top: 6px;
  font-weight: 600;
}

.fcc-ficha-field-err.show {
  display: block;
}

.ficha-instr-body {
  padding-top: 12px !important;
}

.fcc-ficha-alert {
  border: 1px solid #9e9e9e;
  background: #ececec;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 13px;
  line-height: 1.45;
}

.fcc-ficha-ul {
  margin: 0 0 0 18px;
  padding: 0;
  line-height: 1.55;
  font-size: 14px;
}

.fcc-ficha-ul li {
  margin-bottom: 8px;
}

.fcc-ficha-cb-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.fcc-ficha-cb {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.35;
  cursor: pointer;
}

.fcc-ficha-cb input {
  margin-top: 3px;
  flex-shrink: 0;
}

#wrapDivulgacao.is-invalid {
  outline: 2px solid #99113a;
  outline-offset: 2px;
  border-radius: 6px;
}

.fcc-req-hint {
  color: #c62828;
  font-weight: 700;
  font-size: 13px;
  margin: 0 0 12px;
}

.fcc-ficha-req {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 12px;
  cursor: pointer;
}

.fcc-ficha-req input {
  margin-top: 3px;
  flex-shrink: 0;
}

.fcc-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
  padding-bottom: 40px;
}

.btn-fcc-voltar {
  padding: 14px 24px;
  background: #99113a;
  color: #fff;
  border: 0;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.btn-fcc-voltar:hover {
  filter: brightness(1.06);
}

.fcc-confirm-actions .btn-fcc-voltar {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fcc-confirm-actions .btn-fcc-avancar {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fcc-confirm-actions .btn-fcc-avancar .btn-fcc-avancar-arw {
  display: none;
}

.fcc-confirm-summary .section-header {
  cursor: default;
}

.fcc-confirm-summary .section-header .title {
  font-size: 15px;
}

.fcc-confirm-summary .fcc-rv-lab {
  font-size: 14px;
  font-weight: 700;
  color: #111;
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.4;
  display: block;
  margin-bottom: 6px;
}

.fcc-confirm-summary .fcc-rv-val {
  font-weight: 400;
  color: #222;
  font-size: 14px;
  display: block;
  margin-top: 4px;
}

.fcc-confirm-summary .fcc-rv-field {
  margin-bottom: 18px;
}

.fcc-confirm-summary .fcc-ficha-ul {
  margin: 6px 0 0 20px;
}

@media (max-width: 520px) {
  .fcc-confirm-actions {
    flex-direction: column-reverse;
  }
  .fcc-confirm-actions .btn-fcc-avancar,
  .fcc-confirm-actions .btn-fcc-voltar {
    width: 100%;
  }
}

/* modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 600;
}

.modal-box {
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.25);
  min-width: 280px;
  max-width: 420px;
  padding: 16px;
}

.modal-actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn-cancel {
  background: #d32f2f;
  color: #ffffff;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 700;
}

.btn-ok {
  background: #2e7d32;
  color: #ffffff;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 700;
}

.card-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  padding: 14px;
  margin-bottom: 12px;
}

.card-logo {
  width: 72px;
  height: auto;
  object-fit: contain;
}

.card-info .card-title {
  font-weight: 700;
}

.card-info .card-subtitle {
  color: #444;
  font-size: 13px;
}

.card-actions {
  margin-left: auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-secondary {
  background: #e5e5e5;
  border: 1px solid #cfcfcf;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  color: #333;
  font-size: 13px;
}

.btn-secondary:hover {
  background: #d8d8d8;
}

.steps {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.step {
  padding: 8px 12px;
  border: 1px solid #cfcfcf;
  border-radius: 4px;
  background: #ffffff;
  font-weight: 700;
}

.step.active {
  background: #a60c32;
  color: #ffffff;
  border-color: #a60c32;
}

.data-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  padding: 14px;
  margin-bottom: 12px;
  width: 100%;
  max-width: 1080px;
}

.data-card h3 {
  margin-bottom: 10px;
  color: #a60c32;
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  font-size: 13px;
}

.success-main .tabs {
  margin-bottom: 16px;
  width: 100%;
  max-width: 1080px;
}

/* contact page */
.contact-wrapper {
  max-width: 640px;
  margin: 40px auto;
  padding: 0 20px;
}

.contact-wrapper h1 {
  font-size: 22px;
  color: #b0132f;
  margin-bottom: 6px;
}

.contact-desc {
  font-size: 14px;
  color: #4b4b4b;
  margin-bottom: 16px;
}

.contact-form {
  background: #f8f8f8;
  border: 1px solid #dcdcdc;
  padding: 16px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row label {
  font-size: 13px;
  font-weight: 700;
  color: #4b4b4b;
}

.form-row input,
.form-row textarea {
  padding: 8px 10px;
  border: 1px solid #cfcfcf;
  border-radius: 3px;
  font-size: 13px;
  font-family: Arial, sans-serif;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal.open {
  display: flex;
}

.modal-content {
  background: #ffffff;
  padding: 18px 20px;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  max-width: 320px;
}

/* ====================== RESPONSIVE ====================== */
@media (max-width: 1100px) {
  .content-wrapper {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
  }

  .title-row {
    flex-direction: column;
    gap: 6px;
  }

  .menu {
    gap: 6px;
  }

  .menu-item {
    padding: 8px 10px 10px 10px;
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  .topbar, .form-topbar {
    padding: 10px 12px;
  }
  .topbar-inner, .form-topbar-inner {
    flex-wrap: wrap;
    gap: 12px;
    max-width: 100%;
    padding: 0 12px;
  }
  .menu {
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
    margin-left: 0;
  }
  .content-wrapper {
    padding: 0 12px;
    margin: 12px auto;
  }
  .success-layout {
    grid-template-columns: 1fr;
  }
  .success-sidebar {
    width: 100%;
    padding: 12px 16px 16px 16px;
  }
  .success-header {
    width: 100%;
    margin-left: -16px;
    margin-right: -16px;
    padding: 16px;
  }
  .success-main {
    padding: 16px;
  }
  .form-container, .form-header-card, .section-card {
    width: 100%;
  }
  img, svg {
    max-width: 100%;
    height: auto;
  }
  .logo-fcc {
    width: 180px;
    height: auto;
  }
  .card-item {
    flex-wrap: wrap;
  }
  .card-actions {
    margin-left: 0;
    width: 100%;
  }
  .float-icons {
    display: none;
  }
}

@media (max-width: 720px) {
  .insc-title {
    font-size: 14px;
  }
  .grid.three, .grid.four {
    grid-template-columns: 1fr;
  }
}

/* ====================== FCC CADASTRO (inscricao.html — layout prints) ====================== */
.fcc-cadastro-page { background: #ececec; }
.fcc-form-shell {
  max-width: 920px;
  margin: 0 auto;
  padding: 16px 16px 80px;
}
.fcc-form-card {
  background: #fff;
  border: 1px solid #d5d5d5;
  border-radius: 4px;
  padding: 8px 14px 20px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

/* Acordeão */
.fcc-acc {
  border: 1px solid #c9c9c9;
  border-radius: 4px;
  margin-bottom: 12px;
  overflow: hidden;
  background: #fff;
}
.fcc-acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: #99113a;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: Arial, sans-serif;
}
.fcc-acc-head:hover { filter: brightness(1.05); }
.fcc-acc-head:focus { outline: 2px solid #fff; outline-offset: -2px; }
.fcc-chev { font-size: 12px; opacity: 0.95; transition: transform .2s; }
.fcc-acc.is-collapsed .fcc-chev { transform: rotate(180deg); }
.fcc-acc-panel { padding: 16px 14px 8px; }
.fcc-acc.is-collapsed .fcc-acc-panel { display: none; }

/* Floating label fields */
.fcc-fl { position: relative; margin-bottom: 14px; }
.fcc-fl input,
.fcc-fl select {
  width: 100%;
  padding: 20px 10px 8px;
  border: 1px solid #b8b8b8;
  border-radius: 4px;
  font-size: 14px;
  font-family: Arial, sans-serif;
  background: #fff;
  appearance: none;
  box-sizing: border-box;
}
.fcc-fl select { background-image: linear-gradient(45deg, transparent 50%, #555 50%), linear-gradient(135deg, #555 50%, transparent 50%); background-position: calc(100% - 16px) calc(50% + 3px), calc(100% - 11px) calc(50% + 3px); background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 28px; }
.fcc-fl label {
  position: absolute;
  left: 10px;
  top: 7px;
  font-size: 11px;
  font-weight: 700;
  color: #99113a;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  pointer-events: none;
}
.fcc-fl.is-invalid input,
.fcc-fl.is-invalid select { border-color: #c91532; }
.fcc-field-err {
  color: #c91532;
  font-size: 12px;
  margin: -8px 0 10px 2px;
  display: none;
}
.fcc-field-err.show { display: block; }

.fcc-row {
  display: grid;
  gap: 12px;
  margin-bottom: 4px;
}
.fcc-row.cols-2 { grid-template-columns: repeat(2, 1fr); }
.fcc-row.cols-3 { grid-template-columns: repeat(3, 1fr); }
.fcc-row.cols-4 { grid-template-columns: repeat(4, 1fr); }
.fcc-row.num-comp { grid-template-columns: 1fr 2fr; }
.fcc-row.cols-13 { grid-template-columns: 1fr 3fr; }
.fcc-row.cols-tres-iguais { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 768px) {
  .fcc-row.cols-2, .fcc-row.cols-3, .fcc-row.cols-4 { grid-template-columns: 1fr; }
  .fcc-row.num-comp { grid-template-columns: 1fr; }
  .fcc-row.cols-13, .fcc-row.cols-tres-iguais { grid-template-columns: 1fr; }
}

.fcc-mini-tag {
  display: inline-block;
  background: #99113a;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.fcc-hint-box {
  border: 1px solid #99113a;
  color: #333;
  font-size: 12px;
  padding: 10px 12px;
  border-radius: 4px;
  margin: -6px 0 14px;
  line-height: 1.45;
  display: none;
}
.fcc-hint-box.show { display: block; }

.fcc-br-hidden { display: none !important; }

.fcc-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 400;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.fcc-modal-overlay.open { display: flex; }
.fcc-modal-box {
  background: #fff;
  border-radius: 8px;
  padding: 22px 20px;
  max-width: 440px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}
.fcc-modal-title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #111;
}
.fcc-modal-sub {
  margin: 0 0 16px;
  font-size: 13px;
  color: #555;
  line-height: 1.45;
}
.fcc-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}
.fcc-modal-btn-cancel {
  background: #444;
  color: #fff;
  border: 0;
  padding: 10px 18px;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
  font-size: 12px;
}
.fcc-modal-btn-ok {
  background: #99113a;
  color: #fff;
  border: 0;
  padding: 10px 18px;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
  font-size: 12px;
}
.fcc-curso-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-bottom: 8px;
  background: #fafafa;
}
.fcc-curso-rem {
  flex-shrink: 0;
  border: 1px solid #99113a;
  background: #fff;
  color: #99113a;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
}

/* CEP + busca */
.fcc-cep-wrap { position: relative; }
.fcc-cep-wrap input { padding-right: 76px; }
.fcc-cep-search {
  position: absolute;
  right: 8px;
  top: 22px;
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  color: #99113a;
  font-family: Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.fcc-cep-search:hover { text-decoration: underline; }

/* Nome social switch */
.fcc-switch-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #333;
}
.fcc-switch-row input { width: 18px; height: 18px; margin-top: 2px; accent-color: #99113a; }

.fcc-btn-add {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #99113a;
  color: #fff;
  border: 0;
  padding: 10px 16px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  margin: 8px 0 4px;
  font-family: Arial, sans-serif;
}
.fcc-btn-add:hover { filter: brightness(1.06); }
.fcc-add-caption { font-size: 12px; color: #444; margin-bottom: 14px; }

.fcc-extra-block {
  border: 1px dashed #bbb;
  padding: 12px;
  border-radius: 4px;
  margin-bottom: 12px;
  position: relative;
  background: #fafafa;
}
.fcc-extra-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  border: 0;
  background: #e0e0e0;
  border-radius: 4px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 12px;
}

.fcc-newsletter { margin: 16px 0; font-size: 13px; display: flex; gap: 10px; align-items: flex-start; }
.fcc-newsletter input { width: 18px; height: 18px; margin-top: 2px; accent-color: #99113a; }

.fcc-mail-warn {
  background: #e8e8e8;
  border: 1px solid #cfcfcf;
  padding: 12px 14px;
  font-size: 13px;
  text-align: center;
  margin: 12px 0 16px;
  border-radius: 4px;
  line-height: 1.45;
}

.fcc-captcha-wrap { margin-top: 10px; margin-bottom: 4px; }

.fcc-captcha-row--compact {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 8px;
  max-width: 100%;
}

.fcc-captcha-field--compact {
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
}

.fcc-captcha-field--compact input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #b8b8b8;
  border-radius: 4px;
  font-size: 13px;
  box-sizing: border-box;
}

.fcc-captcha-code--compact {
  flex: 0 0 auto;
  min-width: 0;
  padding: 8px 12px;
  border: 1px solid #c5c5c5;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: #4a2566;
  background: #ececec;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  white-space: nowrap;
}

.fcc-captcha-tools--compact {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
}

.fcc-captcha-ic--outline {
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #99113a;
  background: #fff;
  color: #99113a;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.15s ease, color 0.15s ease;
}

.fcc-captcha-ic--outline:hover {
  background: #fdf2f5;
  color: #7a0f2a;
}

.fcc-captcha-ic--outline i {
  pointer-events: none;
}

.fcc-field-cell .fcc-field-err {
  margin-bottom: 6px;
}

@media (max-width: 600px) {
  .fcc-captcha-row--compact {
    flex-wrap: wrap;
  }
  .fcc-captcha-code--compact {
    order: 3;
    width: 100%;
    justify-content: center;
    letter-spacing: 0.2em;
  }
  .fcc-captcha-tools--compact {
    flex-direction: row;
    margin-left: auto;
  }
}

.fcc-captcha-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  margin-top: 8px;
}
.fcc-captcha-field {
  flex: 1;
  min-width: 180px;
  position: relative;
}
.fcc-captcha-field input {
  width: 100%;
  padding: 20px 10px 8px 36px;
  border: 1px solid #b8b8b8;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}
.fcc-captcha-shield {
  position: absolute;
  left: 10px;
  top: 22px;
  font-size: 16px;
  opacity: 0.65;
}
.fcc-captcha-code {
  min-width: 120px;
  padding: 10px 18px;
  border: 2px solid #99113a;
  border-radius: 4px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 4px;
  color: #5b2d6e;
  background: #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}
.fcc-captcha-tools { display: flex; flex-direction: column; gap: 6px; }
.fcc-captcha-ic {
  border: 0;
  background: #99113a;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

.fcc-form-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.fcc-btn-salvar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #99113a;
  color: #fff;
  border: 0;
  padding: 12px 22px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  font-family: Arial, sans-serif;
}
.fcc-btn-salvar:hover { filter: brightness(1.06); }

.fcc-page .float-icons { z-index: 50; }
.fcc-page .chat-bubble { z-index: 50; }

.apiStatus.fcc-api { margin: -6px 0 10px; display: block; }

.fcc-fl-wrap { position: relative; width: 100%; }
.fcc-fl-wrap .btn-eye { position: absolute; right: 8px; top: 22px; z-index: 2; }

/* ====================== Pagamento PIX (modal BuckPay) ====================== */
.pay-md-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 16px;
}
.pay-md-overlay.active { display: flex; }

.pay-md-dialog {
  background: #fff;
  border-radius: 12px;
  max-width: 520px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  position: relative;
}

.pay-md-accent {
  height: 4px;
  background: linear-gradient(90deg, #99113a, #a60c32);
  border-radius: 12px 12px 0 0;
}

.pay-md-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 18px;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.pay-md-close:hover { background: #e5e7eb; }

.pay-md-head {
  padding: 22px 24px 14px;
  text-align: center;
  border-bottom: 1px solid #eee;
}
.pay-md-head img { height: 36px; margin: 0 auto 12px; display: block; }
.pay-md-head h3 {
  font-size: 17px;
  font-weight: 700;
  color: #99113a;
  margin: 0 0 4px;
}
.pay-md-head p { font-size: 12px; color: #6b7280; margin: 0; }

.pay-md-head--brand {
  background: linear-gradient(180deg, #99113a 0%, #7a0f2a 100%);
  border-bottom: none;
  padding-bottom: 18px;
}
.pay-md-head--brand img {
  height: 40px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}
.pay-md-head--brand h3 {
  color: #fff;
}
.pay-md-head--brand p {
  color: rgba(255, 255, 255, 0.92);
}

.pay-nf { padding: 16px 22px 8px; }
.pay-nf-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 13px;
}
.pay-nf-row:last-child { border-bottom: 0; }
.pay-nf-lab { color: #6b7280; flex-shrink: 0; }
.pay-nf-val { font-weight: 600; color: #333; text-align: right; word-break: break-word; max-width: 58%; }

.pay-sg { padding: 0 22px 8px; }
.pay-sg-box {
  display: flex;
  gap: 12px;
  padding: 14px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  user-select: none;
}
.pay-sg-box:hover { border-color: #99113a; }
.pay-sg-box.active { border-color: #166534; background: #f0fdf4; }
.pay-sg-box input { width: 18px; height: 18px; margin-top: 2px; accent-color: #166534; cursor: pointer; flex-shrink: 0; }
.pay-sg-info { flex: 1; }
.pay-sg-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.pay-sg-title { font-size: 13px; font-weight: 700; color: #374151; }
.pay-sg-price { font-size: 12px; font-weight: 700; color: #166534; background: #ecfdf5; padding: 2px 8px; border-radius: 4px; }
.pay-sg-desc { font-size: 11.5px; color: #6b7280; line-height: 1.45; margin: 0; }

.pay-vl { padding: 12px 22px 8px; }
.pay-vl-bg { background: #f9fafb; border-radius: 8px; padding: 12px 14px; }
.pay-vl-row { display: flex; justify-content: space-between; font-size: 13px; color: #6b7280; padding: 4px 0; }
.pay-vl-row-seguro { display: none; }
.pay-vl-row-seguro.show { display: flex; }
.pay-vl-total {
  display: flex;
  justify-content: space-between;
  font-size: 17px;
  font-weight: 700;
  color: #99113a;
  padding-top: 10px;
  margin-top: 6px;
  border-top: 1px solid #e5e7eb;
}

.pay-bt-wrap { padding: 16px 22px 22px; }
.pay-bt-pix {
  width: 100%;
  padding: 14px 18px;
  background: #99113a;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: filter 0.2s;
}
.pay-bt-pix:hover { filter: brightness(1.06); }
.pay-bt-pix:disabled { background: #9ca3af; cursor: not-allowed; filter: none; }
.pay-bt-pix .fa-pix { font-size: 1.25rem; }

/* Modal etapa 2 — QR */
.pay-px-head { padding: 20px 22px 12px; text-align: center; }
.pay-px-head h3 { font-size: 17px; font-weight: 700; color: #166534; margin: 0 0 4px; }
.pay-px-head p { font-size: 12px; color: #6b7280; margin: 0; }

.pay-px-warn {
  margin: 0 22px 16px;
  padding: 12px 14px;
  background: #fffbeb;
  border-left: 3px solid #f59e0b;
  border-radius: 0 6px 6px 0;
}
.pay-px-warn strong { display: block; font-size: 13px; color: #b45309; margin-bottom: 2px; }
.pay-px-warn p { font-size: 12px; color: #92400e; margin: 0; }

.pay-px-qr {
  text-align: center;
  margin-bottom: 16px;
}
.pay-px-qr-box {
  width: 216px;
  height: 216px;
  margin: 0 auto;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fff;
}
.pay-px-qr-box img,
.pay-px-qr-box canvas { max-width: 200px !important; max-height: 200px !important; }
.pay-px-scan { font-size: 12px; color: #6b7280; margin-top: 8px; }

.pay-px-valbox {
  text-align: center;
  background: #fdf2f4;
  margin: 0 22px 16px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #f3e8eb;
}
.pay-px-val { font-size: 26px; font-weight: 700; color: #99113a; }
.pay-px-sg { font-size: 11.5px; color: #166534; display: none; margin-top: 4px; }
.pay-px-sg.show { display: block; }

.pay-px-code { margin: 0 22px 16px; }
.pay-px-code label { font-size: 12px; font-weight: 600; color: #333; display: block; margin-bottom: 6px; }
.pay-px-code-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pay-px-code input {
  flex: 1;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 11px;
  font-family: "Courier New", monospace;
  background: #f9fafb;
}
.pay-px-copy {
  padding: 10px 18px;
  background: #99113a;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.pay-px-copy:hover { filter: brightness(1.06); }
.pay-px-copy.copiado { background: #166534; }

.pay-px-steps { margin: 0 22px 16px; background: #f9fafb; border-radius: 8px; padding: 12px 14px; }
.pay-px-steps p { font-size: 12px; color: #6b7280; line-height: 1.75; margin: 0; }

.pay-px-status {
  text-align: center;
  padding: 12px 14px;
  margin: 0 22px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  background: #fffbeb;
  color: #b45309;
}
.pay-px-status.ok { background: #ecfdf5; color: #166534; }

.pay-px-foot { padding: 12px 22px 20px; text-align: center; }
.pay-px-fechar {
  padding: 10px 28px;
  background: #f3f4f6;
  color: #374151;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.pay-px-fechar:hover { background: #e5e7eb; }

.pay-px-comp {
  margin: 0 22px 16px;
  padding: 14px;
  border: 1px dashed #d1d5db;
  border-radius: 8px;
  background: #fafafa;
  display: none;
}
.pay-px-comp.visible { display: block; }
.pay-px-comp p { font-size: 12px; color: #6b7280; margin: 0 0 10px; line-height: 1.5; }
.pay-px-comp-file { display: none; }
.pay-px-comp-lbl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px;
  border: 2px dashed #d1d5db;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 10px;
}
.pay-px-comp-lbl.sel { border-color: #166534; background: #f0fdf4; color: #166534; }
.pay-px-comp-bt {
  width: 100%;
  padding: 11px;
  background: #444;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}
.pay-px-comp-bt:disabled { background: #9ca3af; cursor: not-allowed; }

.pay-ld {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 20000;
}
.pay-ld.active { display: flex; }
.pay-ld-spin {
  width: 44px;
  height: 44px;
  border: 4px solid #e5e7eb;
  border-top-color: #99113a;
  border-radius: 50%;
  animation: pay-spin 0.85s linear infinite;
}
@keyframes pay-spin { to { transform: rotate(360deg); } }
.pay-ld p { margin-top: 14px; font-size: 14px; font-weight: 600; color: #6b7280; }

.pay-main-bt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 360px;
  margin: 8px auto 0;
  padding: 14px 22px;
  background: #a60c32;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.pay-main-bt:hover { filter: brightness(1.06); }
.pay-main-bt .fa-pix { font-size: 1.35rem; }

@media (max-width: 768px) {
  .pay-nf-row { flex-direction: column; }
  .pay-nf-val { text-align: left; max-width: 100%; }
  .pay-px-code-row { flex-direction: column; }
  .pay-px-copy { width: 100%; }
}
