* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  color: #4b4b4b;
  background: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
}

.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;
}

.menu {
  margin-left: auto;
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.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;
}

.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);
}

.content-wrapper {
  max-width: 1180px;
  margin: 24px auto 30px auto;
  display: flex;
  gap: 30px;
  padding: 0 20px;
}

.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-bottom: 8px;
  font-weight: 700;
}

.panel {
  background: #f2f2f2;
  border: 1px solid #d8d8d8;
  padding: 14px;
  line-height: 1.4;
}

.cargos-panel {
  font-size: 13px;
}

.panel-title {
  color: #b0132f;
  font-weight: 700;
  margin: 12px 0 6px 0;
}

.panel-title:first-of-type {
  margin-top: 0;
}

.list {
  list-style: none;
  padding-left: 0;
}

.list li {
  margin-bottom: 3px;
}

.main {
  flex: 1;
}

.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;
}

.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;
}

.pdf-icon {
  width: 20px;
  height: 20px;
  background-image: url("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("mundo.gif");
  background-size: contain;
}

.acrobat-icon {
  width: 18px;
  height: 18px;
  background-image: url("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("_pdf.gif");
  background-size: contain;
}

.info-panel p {
  margin-bottom: 12px;
  font-size: 13px;
}

.publications-panel {
  font-size: 13px;
  margin-bottom: 10px;
}

.bottom-section {
  max-width: 1180px;
  margin: 0 auto 26px auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bottom-block h4 {
  font-size: 17px;
  color: #b0132f;
  margin-bottom: 10px;
  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: 180px;
}

.btn-arrow::before {
  content: ">";
  display: inline-block;
  font-weight: 700;
  font-size: 12px;
}

.other-link {
  font-size: 12px;
  color: #4b4b4b;
}

.footer {
  background: #f6f6f6;
  border-top: 1px solid #dcdcdc;
  margin-top: 10px;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 20px 12px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.foot-col h5 {
  font-size: 15px;
  color: #777777;
  margin-bottom: 8px;
}

.foot-col ul {
  list-style: none;
  padding-left: 12px;
  color: #4b4b4b;
  font-size: 13px;
  line-height: 1.5;
}

.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-icons {
  position: fixed;
  right: 24px;
  top: 220px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 10;
}

.float-btn {
  width: 42px;
  height: 42px;
  background: #3f6f8a;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.float-btn.hand::before,
.float-btn.audio::before,
.float-btn.eye::before {
  content: "";
  display: block;
  width: 22px;
  height: 22px;
  margin: 10px auto 0 auto;
  border: 2px solid #ffffff;
  border-radius: 2px;
  opacity: 0.85;
}

.chat-bubble {
  position: fixed;
  left: 16px;
  bottom: 16px;
  width: 62px;
  height: 62px;
  background: #b31432;
  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

.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: 42px;
  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;
}

.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;
}

.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:hover {
  background: #eaeaea;
}

.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-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 {
  text-decoration: underline;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #a60c32;
  font-weight: 700;
  margin-bottom: 14px;
}

.back-link:hover {
  text-decoration: underline;
}

.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%;
}

.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;
}

.tab.active {
  border-color: #a60c32;
}

.card-list h2 {
  margin-bottom: 16px;
}

/* 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;
}

/* 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;
}

.btn-secondary {
  background: #e5e5e5;
  border: 1px solid #cfcfcf;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  color: #333;
}

.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;
}

.data-card h3 {
  margin-bottom: 10px;
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  font-size: 13px;
}

@media (max-width: 720px) {
  .insc-title {
    font-size: 14px;
  }
}

.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;
}

.btn-primary {
  align-self: flex-start;
  background: #b0132f;
  color: #ffffff;
  border: none;
  padding: 10px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.btn-primary.small {
  padding: 8px 12px;
}

.btn-primary:hover {
  background: #921028;
}

.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;
}

@media (max-width: 1100px) {
  .content-wrapper {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
  }

  .title-row {
    flex-direction: column;
    gap: 6px;
  }

  .menu {
    gap: 14px;
  }
}

