*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  background: #f2f2f2;
  color: #3a3a3a;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.topbar {
  background: #2f2f2f;
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.2px;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 12px;
}

.brand img {
  height: 32px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.nav a {
  color: #d9d9d9;
  font-weight: 500;
}

.nav span {
  color: #7a7a7a;
  font-weight: 700;
}

.candidate-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #000;
  color: #fff;
  padding: 10px 14px;
  border-radius: 22px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(0,0,0,0.22);
}

.candidate-btn::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #fff;
  position: relative;
}

.mobile-menu {
  display: none;
  align-items: center;
  gap: 8px;
  color: #3a3a3a;
  font-weight: 600;
}

.mobile-menu__label {
  text-transform: uppercase;
  font-size: 14px;
}

.hamburger {
  width: 28px;
  display: grid;
  gap: 5px;
}

.hamburger span {
  display: block;
  height: 3px;
  background: #3a3a3a;
  border-radius: 3px;
}

.page {
  padding: 32px 0 56px;
}

.page__title {
  margin: 0 0 18px;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #3b3b3b;
}

.card {
  background: #fff;
  border-radius: 4px;
  padding: 32px;
  box-shadow: 0 2px 14px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.card__header {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  gap: 24px;
}

.card__logo img {
  width: 110px;
  height: auto;
  display: block;
}

.card__label {
  margin: 0 0 6px;
  font-size: 14px;
  color: #5f5f5f;
}

.card__name {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.3;
  color: #2b2b2b;
  font-weight: 700;
}

.card__dates {
  margin: 0;
  font-size: 14px;
  color: #3b3b3b;
}

.cta {
  background: #06a009;
  color: #fff;
  padding: 14px 20px;
  border-radius: 6px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
  font-size: 15px;
}

.tabs {
  display: flex;
  gap: 10px;
}

.tab {
  background: #565656;
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 4px 4px 0 0;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: default;
}

.tab .caret,
.section__title .caret {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #3a3a3a;
  display: inline-block;
}

.panel {
  background: #f7f7f7;
  padding: 18px 18px 22px;
  border-radius: 0 4px 4px 4px;
  font-size: 14px;
  display: grid;
  gap: 8px;
}

.panel strong {
  font-weight: 700;
}

.ghost-btn {
  align-self: start;
  margin-top: 4px;
  background: #fff;
  border: 1px solid #c4c4c4;
  border-radius: 20px;
  padding: 10px 14px;
  font-weight: 700;
  color: #3a3a3a;
  cursor: pointer;
}

.section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #565656;
  color: #fff;
  padding: 11px 16px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 15px;
  width: fit-content;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.bullet-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  font-size: 14px;
}

.pub-list {
  list-style: none;
  margin: 0;
  padding: 0 6px;
  display: grid;
  gap: 8px;
  font-size: 14px;
}

.pub-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #2b2b2b;
}

.pdf-icon {
  width: 14px;
  height: 16px;
  background: linear-gradient(135deg, #c0392b, #e74c3c);
  border-radius: 2px;
  position: relative;
}

.pdf-icon::after {
  content: '';
  position: absolute;
  right: 2px;
  top: 2px;
  width: 4px;
  height: 4px;
  border-top: 4px solid #fff;
  border-right: 4px solid #fff;
}

.pub-date {
  color: #898989;
  font-size: 12px;
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.schedule {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.schedule th,
.schedule td {
  border: 1px solid #dcdcdc;
  padding: 10px 12px;
  vertical-align: top;
}

.schedule th {
  width: 70%;
  text-align: left;
  font-weight: 700;
}

.schedule td {
  width: 30%;
  text-align: right;
  color: #3a3a3a;
}

.schedule .highlight-row {
  font-weight: 800;
}

.muted {
  color: #5f5f5f;
  font-weight: 500;
}

.jobs {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.jobs th,
.jobs td {
  border: 1px solid #dcdcdc;
  padding: 10px 12px;
}

.jobs thead th {
  background: #e9e9e9;
  text-align: left;
  font-weight: 800;
}

.jobs td:nth-child(1) {
  width: 70px;
}

.jobs td:nth-child(3),
.jobs td:nth-child(4) {
  white-space: nowrap;
}

.footer {
  margin-top: 24px;
  background: #f5f5f5;
  padding: 18px 0 26px;
  text-align: center;
  color: #4a4a4a;
  font-size: 13px;
}

.footer__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.footer__links a {
  color: #0c5cb6;
  font-weight: 600;
}

.footer__links span {
  color: #999;
}

.footer__secure {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid #d5d5d5;
  border-radius: 8px;
  margin-bottom: 8px;
}

.lock {
  position: relative;
  width: 28px;
  height: 28px;
}

.lock__body {
  position: absolute;
  bottom: 0;
  width: 28px;
  height: 16px;
  background: #f7f1c7;
  border: 2px solid #c1a44c;
  border-radius: 4px;
}

.lock__shackle {
  position: absolute;
  top: -4px;
  left: 6px;
  width: 16px;
  height: 16px;
  border: 2px solid #c1a44c;
  border-bottom: none;
  border-radius: 10px 10px 0 0;
}

.secure__text {
  color: #0c5cb6;
  font-weight: 700;
}

.footer__brand {
  margin-top: 4px;
  color: #9a9a9a;
}

/* Termos */
.terms-card {
  gap: 22px;
}

.terms-head {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  align-items: center;
}

.terms-info .card__name {
  margin-top: 4px;
}

.terms-body {
  background: #f6f6f6;
  border: 1px solid #e4e4e4;
  border-radius: 6px;
  padding: 20px 18px 18px;
  display: grid;
  gap: 14px;
  font-size: 14px;
}

.terms-body__title {
  font-weight: 700;
  margin: 0;
}

.consent-form {
  display: grid;
  gap: 14px;
  font-size: 14px;
}

.consent-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.consent-check input {
  width: 16px;
  height: 16px;
}

.action-row {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 20px;
  padding: 10px 18px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 13px;
}

.btn--outline {
  background: #fff;
  color: #3a3a3a;
  border-color: #c4c4c4;
}

.btn--primary {
  background: #f5f5f5;
  color: #3a3a3a;
  border-color: #c4c4c4;
}

.btn--disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Login */
.login-card {
  max-width: 540px;
}

.login-text {
  margin: 0 0 18px;
  font-size: 14px;
}

.login-form {
  display: grid;
  gap: 12px;
  max-width: 320px;
}

.login-btn {
  width: 140px;
  justify-content: center;
}

.field-label {
  font-weight: 600;
  font-size: 14px;
  color: #3a3a3a;
}

.text-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cfcfcf;
  border-radius: 3px;
  font-size: 14px;
  font-family: inherit;
}

.text-input:focus {
  outline: 2px solid #9ac7ff;
  border-color: #7bb1f5;
}

.field-error {
  border-color: #d9534f !important;
}

.error-inline {
  color: #d9534f;
  font-size: 14px;
  margin-top: 8px;
}

/* Formulário grande */
.form-card {
  display: grid;
  gap: 18px;
}

.section-banner {
  background: #f3f3f3;
  color: #3a3a3a;
  padding: 12px 14px;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid #ececec;
  text-align: center;
  margin-top: 14px;
}

.form-card .section-banner:first-of-type {
  margin-top: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.form-grid .wide {
  grid-column: span 2;
}

.field {
  display: grid;
  gap: 6px;
}

.pass-wrap {
  position: relative;
}

.pass-wrap .text-input {
  padding-right: 64px;
}

.toggle-pass {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: #f5f5f5;
  border: 1px solid #c4c4c4;
  border-radius: 12px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
}

.password-hint {
  margin: 0;
  font-size: 12px;
  color: #4a4a4a;
}

.submit-row {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Resumo */
.resumo-body {
  background: #f5f5f5;
}

.resumo-card {
  padding: 28px;
  gap: 18px;
}

.resumo-card .section-banner {
  margin-top: 10px;
}

.resumo-title {
  margin-bottom: 8px;
}

.resume-header {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  align-items: center;
}

.resume-logo img {
  width: 110px;
  height: auto;
  display: block;
}

.resume-info .card__name {
  margin: 4px 0 8px;
}

.resume-info .card__dates {
  margin: 0;
  font-size: 14px;
}

.resume-grid {
  background: #f4f4f4;
  border: 1px solid #ebebeb;
  border-radius: 4px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 20px;
}

.resume-col {
  display: grid;
  gap: 8px;
}

.resume-row {
  display: flex;
  gap: 8px;
  font-size: 14px;
}

.resume-label {
  font-weight: 700;
  min-width: 110px;
  color: #3b3b3b;
}

.resume-note {
  font-size: 13px;
  margin: 8px 0 4px;
}

.resume-note a {
  color: #0c5cb6;
}

.center {
  text-align: center;
}

.vaga-box {
  background: #f4f4f4;
  border: 1px solid #ebebeb;
  border-radius: 4px;
  padding: 16px 18px;
}

.hidden {
  display: none !important;
}

.cond-alert {
  background: #fff7d6;
  border: 1px solid #f0e1a0;
  border-radius: 4px;
  padding: 12px;
  font-size: 14px;
  margin-top: 12px;
}

.cond-opcoes {
  margin-top: 14px;
  display: grid;
  gap: 14px;
}

.cond-subtitle {
  margin: 0 0 4px;
  font-weight: 700;
}

.cond-group {
  border-top: 1px solid #dcdcdc;
  padding-top: 10px;
  display: grid;
  gap: 6px;
}

.cond-group:first-of-type {
  border-top: none;
  padding-top: 0;
}

.cond-title {
  font-weight: 800;
  color: #3a3a3a;
}

.reserva-box {
  margin-top: 10px;
  display: grid;
  gap: 6px;
}

.terms-list {
  margin: 10px 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  font-size: 14px;
}

.cta-row {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

/* Resumo final */
.resumo-final-card {
  gap: 16px;
}

.final-block {
  background: #f7f7f7;
  border: 1px solid #ededed;
  border-radius: 4px;
  padding: 14px 16px;
}

.final-block h3 {
  margin: 0 0 8px;
  font-size: 16px;
  text-transform: uppercase;
  color: #2c2c2c;
}

.final-list {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 14px;
}

.print-area {
  display: none;
}

@media print {
  body * { visibility: hidden; }
  #print-area, #print-area * { visibility: visible; }
  #print-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    padding: 16px;
    font-family: Arial, sans-serif;
  }
  .print-header {
    display: grid;
    grid-template-columns: 80px 1fr 100px;
    align-items: center;
    margin-bottom: 12px;
  }
  .print-logo { font-size: 26px; font-weight: 700; }
  .print-logo-right img { width: 100px; }
  .print-title { text-align: center; font-size: 12px; }
  .print-row { display: flex; justify-content: space-between; border-top: 1px solid #000; padding: 4px 0; font-size: 12px; }
  .print-row.small { font-size: 11px; }
  .print-subtitle { text-align: center; font-weight: 700; margin: 6px 0; font-size: 12px; }
  .print-table { width: 100%; border-collapse: collapse; font-size: 12px; }
  .print-table td { border: 1px solid #000; padding: 3px 4px; }
}

/* Pix modal */
.pix-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: grid;
  place-items: center;
  z-index: 9999;
  padding: 14px;
}
.pix-dialog {
  background: #fff;
  max-width: 420px;
  width: 100%;
  border-radius: 10px;
  padding: 16px 18px;
  box-shadow: 0 16px 50px rgba(0,0,0,0.25);
  position: relative;
}
.pix-close {
  position: absolute;
  right: 10px;
  top: 10px;
  border: none;
  background: #f2f2f2;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
}
.pix-info { margin: 4px 0; color: #444; font-size: 14px; }
.pix-info.muted { color: #777; font-size: 13px; }
.pix-amount { margin: 10px 0; font-size: 16px; display: flex; gap: 8px; align-items: baseline; }
.pix-qrcode {
  background: #f8f8f8;
  border: 1px dashed #ccc;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  min-height: 180px;
  display: grid;
  place-items: center;
}
.pix-code-block { margin-top: 10px; display: grid; gap: 6px; }
.pix-code-block textarea {
  width: 100%;
  min-height: 80px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: monospace;
  font-size: 13px;
}
.pix-code-block button {
  width: fit-content;
  padding: 8px 12px;
  border: 1px solid #0c5cb6;
  border-radius: 6px;
  background: #0c5cb6;
  color: #fff;
  cursor: pointer;
}
.pix-status { margin-top: 10px; font-weight: 700; color: #0c5cb6; font-size: 14px; }

.pay-success {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #d6e7d3;
  border-radius: 6px;
  background: #f5fbf4;
  color: #2d3e2c;
  font-size: 14px;
  display: grid;
  gap: 6px;
}
.muted-text {
  color: #727272;
  font-size: 12px;
}

.pay-addon {
  margin: 8px 0 10px;
  padding: 8px 10px;
  border: 1px solid #e2e2e2;
  border-radius: 6px;
  background: #fafafa;
  font-size: 14px;
}
.pay-addon input {
  margin-right: 8px;
}
.pay-total {
  margin: 6px 0 12px;
  font-weight: 700;
  color: #2b3e52;
  font-size: 14px;
}

@media (max-width: 1100px) {
  .nav {
    display: none;
  }

  .candidate-btn {
    display: none;
  }

  .mobile-menu {
    display: inline-flex;
  }

  .topbar {
    background: #fff;
  }

  .topbar__inner {
    justify-content: space-between;
  }

  .brand img {
    height: 30px;
  }
}

@media (max-width: 880px) {
  .page {
    padding: 16px 0 32px;
  }

  .page__title {
    padding-left: 12px;
    padding-right: 12px;
    margin-bottom: 14px;
  }

  .container {
    padding: 0 14px;
  }

  .card {
    padding: 18px;
    gap: 18px;
  }

  .card__header {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .card__logo img {
    width: 96px;
  }

  .card__name {
    font-size: 20px;
  }

  .cta {
    width: 100%;
    text-align: center;
  }

  .tabs {
    margin-top: -4px;
  }

  .panel {
    border-radius: 4px;
  }

  .section__title {
    width: 100%;
    justify-content: center;
  }
  .terms-head {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 12px;
  }
  .terms-card {
    padding: 18px;
  }
  .action-row {
    justify-content: space-between;
  }
  
  .schedule th,
  .schedule td,
  .jobs th,
  .jobs td {
    font-size: 13px;
    padding: 10px 10px;
  }
}

@media (max-width: 540px) {
  .card__name {
    font-size: 19px;
  }

  .bullet-list li {
    line-height: 1.4;
  }

  .pub-list {
    gap: 6px;
  }

  .jobs thead {
    display: none;
  }

  .jobs tr {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .jobs td {
    border: 1px solid #dcdcdc;
  }

  .login-card {
    max-width: 100%;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-grid .wide {
    grid-column: span 1;
  }

  .submit-row {
    flex-direction: column-reverse;
    align-items: stretch;
  }
}

