:root {
  --direct-ink: #0b1550;
  --direct-paper: #f7f4ea;
  --direct-blue: #3f7bff;
  --direct-blue-dark: #0a2fae;
  --direct-yellow: #ffc629;
  --direct-muted: #646b82;
  --direct-line: #ccd4eb;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  background-color: var(--direct-paper);
  background-image:
    linear-gradient(rgba(11, 21, 80, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 21, 80, .045) 1px, transparent 1px);
  background-size: 52px 52px;
  color: var(--direct-ink);
  font-family: 'Plus Jakarta Sans', Arial, sans-serif;
}

button,
input,
select,
textarea { font: inherit; }

button { cursor: pointer; }

a { color: inherit; }

.direct-head {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 2px solid var(--direct-ink);
  background: rgba(247, 244, 234, .97);
  backdrop-filter: blur(12px);
}

.direct-nav {
  width: min(1180px, calc(100% - 40px));
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: auto;
}

.direct-brand { display: inline-flex; }
.direct-brand img { display: block; width: 148px; height: auto; }

.direct-secure {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #46506c;
  font-size: 13px;
  font-weight: 800;
}

.direct-secure svg,
.direct-submit-row svg,
.direct-profile-assurance svg,
.direct-protection svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.direct-back {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--direct-ink);
  border-radius: 999px;
  background: #fff;
  padding: 8px 14px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
}

.direct-back:hover { background: var(--direct-yellow); }

.direct-wrap {
  width: min(1180px, calc(100% - 40px));
  flex: 1;
  margin: 0 auto;
  padding: 28px 0 80px;
}

.direct-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 27px;
  color: var(--direct-muted);
  font-size: 13px;
  font-weight: 750;
}

.direct-breadcrumb a:hover { color: var(--direct-blue-dark); }

.direct-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
  margin-bottom: 25px;
}

.direct-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  border: 2px solid var(--direct-ink);
  border-radius: 999px;
  background: var(--direct-yellow);
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.direct-hero h1 {
  max-width: 780px;
  margin: 0;
  font: 800 clamp(35px, 5vw, 58px)/.98 'Space Grotesk', Arial, sans-serif;
  letter-spacing: -.035em;
}

.direct-hero p {
  max-width: 740px;
  margin: 12px 0 0;
  color: var(--direct-muted);
  font-size: 16px;
  line-height: 1.65;
}

.direct-hero-mark {
  display: grid;
  grid-template-columns: auto auto 28px auto auto 28px auto auto;
  align-items: center;
  gap: 7px;
  padding-bottom: 7px;
  color: var(--direct-muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.direct-hero-mark span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--direct-ink);
  border-radius: 50%;
  background: #fff;
  color: var(--direct-ink);
}

.direct-hero-mark span:first-child { background: var(--direct-yellow); }
.direct-hero-mark i { height: 1px; background: var(--direct-line); }

.direct-professional {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  margin-bottom: 22px;
  overflow: hidden;
  border: 2px solid var(--direct-ink);
  border-radius: 22px;
  background: linear-gradient(105deg, #fff 0 68%, #eaf1ff 68%);
  padding: 15px 18px;
  box-shadow: 4px 4px 0 var(--direct-ink);
}

.direct-profile-visual { position: relative; }

.direct-avatar {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid var(--direct-ink);
  border-radius: 18px;
  background: linear-gradient(145deg, #6ea1ff, var(--direct-blue-dark));
  color: #fff;
  font: 800 18px 'Space Grotesk', Arial, sans-serif;
}

.direct-avatar img { width: 100%; height: 100%; object-fit: cover; }

.direct-online {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 15px;
  height: 15px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #11a665;
}

.direct-profile-copy { min-width: 0; display: grid; gap: 2px; }
.direct-profile-label { color: var(--direct-muted); font-size: 11px; font-weight: 850; text-transform: uppercase; }
.direct-profile-copy strong { font: 800 20px 'Space Grotesk', Arial, sans-serif; overflow-wrap: anywhere; }
.direct-profile-copy > span:last-child { color: var(--direct-muted); font-size: 13px; }

.direct-profile-assurance {
  display: flex;
  max-width: 280px;
  align-items: center;
  gap: 10px;
  border-left: 1px solid #bfcdf2;
  padding: 8px 5px 8px 22px;
  color: var(--direct-blue-dark);
}

.direct-profile-assurance svg { width: 28px; height: 28px; }
.direct-profile-assurance span { display: grid; gap: 2px; }
.direct-profile-assurance strong { font-size: 13px; }
.direct-profile-assurance small { color: var(--direct-muted); font-size: 11px; line-height: 1.4; }

.direct-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(310px, .75fr);
  align-items: start;
  gap: 22px;
}

.direct-card,
.direct-summary {
  border: 2px solid var(--direct-ink);
  border-radius: 25px;
  background: #fff;
  box-shadow: 5px 5px 0 var(--direct-ink);
}

.direct-card { overflow: hidden; }

.direct-card-head,
.direct-summary > header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-bottom: 1px dashed var(--direct-line);
  padding: 20px 22px 17px;
}

.direct-card-head {
  background: linear-gradient(125deg, #fff, #f0f5ff);
}

.direct-step {
  width: 34px;
  height: 34px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid var(--direct-ink);
  border-radius: 10px;
  background: var(--direct-yellow);
  font: 800 12px 'Space Grotesk', Arial, sans-serif;
}

.direct-card-head h2,
.direct-summary h2 { margin: 0; font: 800 21px 'Space Grotesk', Arial, sans-serif; }
.direct-card-head p,
.direct-summary header p { margin: 4px 0 0; color: var(--direct-muted); font-size: 13px; line-height: 1.5; }

#directRequestForm { padding: 21px 22px 23px; }
.direct-card .bf-life-form-grid { gap: 16px; }

.direct-card .bf-life-field label,
.direct-card .bf-life-field > span:first-child {
  color: var(--direct-ink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.direct-card .bf-life-field input,
.direct-card .bf-life-field select,
.direct-card .bf-life-field textarea {
  min-height: 49px;
  border: 1.7px solid #9faac8;
  border-radius: 12px;
  background: #fff;
  padding: 11px 12px;
  color: var(--direct-ink);
  outline: none;
}

.direct-card .bf-life-field textarea { min-height: 145px; resize: vertical; line-height: 1.55; }
.direct-card .bf-life-field input:focus,
.direct-card .bf-life-field select:focus,
.direct-card .bf-life-field textarea:focus { border-color: var(--direct-blue); box-shadow: 0 0 0 4px #dce8ff; }
.direct-card .bf-life-field input::placeholder,
.direct-card .bf-life-field textarea::placeholder { color: #8a91a7; }
.direct-card .bf-life-help { color: var(--direct-muted); font-size: 11px; line-height: 1.45; }

.direct-money { position: relative; }
.direct-money > span { position: absolute; z-index: 1; left: 12px; top: 50%; translate: 0 -50%; font-size: 13px; font-weight: 900; }
.direct-money input { width: 100%; padding-left: 37px !important; }

.direct-no-date {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 10px !important;
  border: 1.5px solid #b9c8ef;
  border-radius: 13px;
  background: #f2f6ff;
  padding: 11px 12px;
  cursor: pointer;
}

.direct-no-date input { width: 17px !important; min-height: 17px !important; margin: 2px 0 0; accent-color: var(--direct-blue-dark); }
.direct-no-date span { display: grid; gap: 2px; }
.direct-no-date strong { font-size: 13px; }

.direct-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 19px;
  padding-top: 18px;
  border-top: 1px dashed var(--direct-line);
}

.direct-submit-row p { max-width: 360px; display: flex; align-items: flex-start; gap: 7px; margin: 0; color: var(--direct-muted); font-size: 12px; line-height: 1.5; }
.direct-submit-row svg { width: 17px; height: 17px; color: var(--direct-blue-dark); }
.direct-submit-row .bf-life-btn { min-height: 45px; gap: 8px; padding-inline: 17px; white-space: nowrap; }

.direct-summary {
  position: sticky;
  top: 98px;
  overflow: hidden;
}

.direct-summary > header { background: var(--direct-ink); color: #fff; }
.direct-summary > header .direct-step { border-color: #fff; color: var(--direct-ink); }
.direct-summary header p { color: #ccd7ff; }

.direct-summary-list { margin: 0; padding: 6px 18px; }
.direct-summary-list > div { display: grid; grid-template-columns: 95px minmax(0, 1fr); gap: 10px; padding: 12px 0; border-bottom: 1px solid #e2e6f1; }
.direct-summary-list dt { color: var(--direct-muted); font-size: 11px; font-weight: 850; text-transform: uppercase; }
.direct-summary-list dd { margin: 0; font-size: 13px; font-weight: 800; overflow-wrap: anywhere; text-align: right; }

.direct-summary-message { margin: 5px 18px 15px; border: 1.5px solid var(--direct-line); border-radius: 13px; background: #fafbff; padding: 11px; }
.direct-summary-message strong { font-size: 11px; text-transform: uppercase; }
.direct-summary-message p { max-height: 112px; margin: 5px 0 0; overflow: auto; color: var(--direct-muted); font-size: 12px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }

.direct-protection { display: flex; gap: 10px; margin: 0 18px 18px; border-radius: 14px; background: #fff1c7; padding: 12px; color: #634a00; }
.direct-protection svg { width: 25px; height: 25px; }
.direct-protection strong { font-size: 13px; }
.direct-protection p { margin: 3px 0 0; font-size: 11px; line-height: 1.5; }

body.bf-account-shell-mounted .direct-wrap { padding-top: 28px; }

:where(a, button, input, select, textarea):focus-visible { outline: 3px solid var(--direct-blue); outline-offset: 3px; }

@media (max-width: 980px) {
  .direct-layout { grid-template-columns: 1fr; }
  .direct-summary { position: static; }
  .direct-hero-mark { display: none; }
  .direct-professional { background: #fff; }
}

@media (max-width: 720px) {
  .direct-nav,
  .direct-wrap { width: min(100% - 24px, 1180px); }
  .direct-nav { min-height: 70px; }
  .direct-secure { display: none; }
  .direct-brand img { width: 120px; }
  .direct-back { min-height: 36px; padding-inline: 11px; }
  .direct-wrap { padding-top: 20px; }
  .direct-breadcrumb { margin-bottom: 20px; }
  .direct-hero { grid-template-columns: 1fr; }
  .direct-hero h1 { font-size: clamp(33px, 11vw, 46px); }
  .direct-professional { grid-template-columns: auto minmax(0, 1fr); padding: 13px; }
  .direct-profile-assurance { grid-column: 1 / -1; max-width: none; border-top: 1px solid #bfcdf2; border-left: 0; padding: 11px 0 0; }
  .direct-card-head,
  .direct-summary > header,
  #directRequestForm { padding-inline: 16px; }
  .direct-card .bf-life-form-grid { grid-template-columns: 1fr; }
  .direct-submit-row { align-items: stretch; flex-direction: column; }
  .direct-submit-row p { max-width: none; }
  .direct-submit-row .bf-life-btn { width: 100%; white-space: normal; }
}

@media (max-width: 430px) {
  .direct-back { font-size: 0; }
  .direct-back::after { content: 'Voltar'; font-size: 12px; }
  .direct-avatar { width: 54px; height: 54px; }
  .direct-profile-copy strong { font-size: 17px; }
  .direct-card,
  .direct-summary,
  .direct-professional { border-radius: 19px; box-shadow: 3px 3px 0 var(--direct-ink); }
  .direct-summary-list > div { grid-template-columns: 78px minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
