.rbw-tool-page {
  background: #f5f8fc;
  color: #08264b;
}

.rbw-tool-page [hidden] {
  display: none !important;
}

.rbw-tool-page .section {
  padding: 64px 0;
}

.rbw-header-search input:focus,
.rbw-header-search button:focus {
  outline: 3px solid rgba(13, 69, 145, 0.18);
  outline-offset: 2px;
}

.rbw-hero {
  background: #0d3f7f;
  color: #fff;
  overflow: hidden;
}

.rbw-hero-grid {
  align-items: center;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 500px);
  min-height: 430px;
  padding-bottom: 54px;
  padding-top: 42px;
}

.rbw-breadcrumb {
  align-items: center;
  color: rgba(255, 255, 255, 0.82);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 700;
  gap: 8px;
  margin-bottom: 28px;
}

.rbw-breadcrumb a {
  color: #fff;
  text-decoration: none;
}

.rbw-kicker {
  color: #ffc400;
  display: block;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.rbw-hero h1 {
  color: #fff;
  font-size: clamp(40px, 4.4vw, 64px);
  line-height: 0.98;
  margin: 0;
  max-width: 860px;
}

.rbw-hero p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
  margin: 22px 0 0;
  max-width: 760px;
}

.rbw-hero-actions,
.rbw-form-actions,
.rbw-result-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.rbw-hero-actions {
  margin-top: 30px;
}

.rbw-btn {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  font-size: 15px;
  font-weight: 900;
  justify-content: center;
  line-height: 1.1;
  min-height: 42px;
  padding: 12px 18px;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.rbw-btn:hover,
.rbw-btn:focus {
  box-shadow: 0 10px 24px rgba(7, 27, 52, 0.14);
  transform: translateY(-1px);
}

.rbw-btn--accent {
  background: #ffc400;
  border-color: #ffc400;
  color: #071b34;
}

.rbw-btn--accent:hover,
.rbw-btn--accent:focus {
  background: #ffd545;
  color: #071b34;
}

.rbw-btn--light {
  background: #fff;
  border-color: #fff;
  color: #0d4591;
}

.rbw-btn--ghost,
.rbw-btn--outline {
  background: #fff;
  border-color: #b7cce7;
  color: #0d4591;
}

.rbw-btn--whatsapp {
  background: #0aa362;
  border-color: #0aa362;
  color: #fff;
}

.rbw-btn--whatsapp:hover,
.rbw-btn--whatsapp:focus {
  background: #07824f;
  color: #fff;
}

.rbw-hero-media {
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  margin: 0;
  overflow: hidden;
}

.rbw-hero-media img {
  aspect-ratio: 4 / 3;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.rbw-hero-media figcaption {
  background: #fff;
  color: #08264b;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  margin: 0;
  padding: 14px 16px;
}

.rbw-tool-core {
  background: #f5f8fc;
}

.rbw-tool-grid {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
}

.rbw-card {
  background: #fff;
  border: 1px solid #d7e2f1;
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(7, 27, 52, 0.06);
}

.rbw-form,
.rbw-results {
  padding: 26px;
}

.rbw-results {
  position: sticky;
  top: 18px;
}

.rbw-card-head {
  align-items: start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 22px;
}

.rbw-card-head h2,
.rbw-info-grid h2,
.rbw-section-head h2 {
  color: #08264b;
  font-size: 28px;
  line-height: 1.12;
  margin: 0;
}

.rbw-card-head p,
.rbw-section-note,
.rbw-inline-note,
.rbw-info-grid p,
.rbw-faq-list p {
  color: #405978;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.55;
}

.rbw-card-head p {
  margin: 8px 0 0;
}

.rbw-link-btn {
  background: #edf4fd;
  border: 1px solid #c6d8ee;
  border-radius: 7px;
  color: #0d4591;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  min-height: 36px;
  padding: 8px 12px;
}

.rbw-alert {
  background: #fff4e6;
  border: 1px solid #ffd699;
  border-radius: 7px;
  color: #8a4b00;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
  margin-bottom: 18px;
  padding: 12px 14px;
}

.rbw-form-section {
  border-top: 1px solid #e0e9f5;
  padding-top: 22px;
}

.rbw-form-section + .rbw-form-section,
.rbw-advanced,
.rbw-form-actions {
  margin-top: 24px;
}

.rbw-form-section h3 {
  color: #08264b;
  font-size: 20px;
  line-height: 1.2;
  margin: 0;
}

.rbw-section-note,
.rbw-inline-note {
  margin: 8px 0 16px;
}

.rbw-inline-note {
  background: #f6f9fd;
  border: 1px solid #d8e5f4;
  border-radius: 7px;
  padding: 11px 13px;
}

.rbw-mode-control {
  border: 0;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px 0 20px;
  padding: 0;
}

.rbw-mode-control label {
  cursor: pointer;
}

.rbw-mode-control input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rbw-mode-control span {
  align-items: center;
  background: #f6f9fd;
  border: 1px solid #c9daef;
  border-radius: 7px;
  color: #0d4591;
  display: flex;
  font-size: 14px;
  font-weight: 900;
  justify-content: center;
  min-height: 42px;
  padding: 10px 12px;
  text-align: center;
}

.rbw-mode-control input:checked + span {
  background: #0d4591;
  border-color: #0d4591;
  color: #fff;
}

.rbw-mode-control input:focus-visible + span {
  outline: 3px solid rgba(255, 196, 0, 0.48);
  outline-offset: 3px;
}

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

.rbw-field-grid label,
.rbw-summary-label {
  color: #17395f;
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 850;
}

.rbw-field-grid span em {
  color: #60748d;
  font-style: normal;
  font-weight: 750;
}

.rbw-field-grid input,
.rbw-field-grid select,
.rbw-summary-label textarea {
  background: #fff;
  border: 1px solid #c9daef;
  border-radius: 7px;
  color: #08264b;
  min-height: 42px;
  padding: 10px 12px;
  width: 100%;
}

.rbw-summary-label textarea {
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.45;
  min-height: 260px;
  resize: vertical;
}

.rbw-advanced {
  background: #f6f9fd;
  border: 1px solid #d8e5f4;
  border-radius: 8px;
  padding: 0;
}

.rbw-advanced summary {
  color: #0d4591;
  cursor: pointer;
  font-size: 15px;
  font-weight: 900;
  padding: 16px 18px;
}

.rbw-advanced .rbw-field-grid {
  border-top: 1px solid #d8e5f4;
  padding: 18px;
}

.rbw-copy-status {
  color: #19764a;
  font-size: 14px;
  font-weight: 900;
  min-width: 72px;
}

.rbw-result-metrics {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
}

.rbw-result-metrics div {
  background: #f6f9fd;
  border: 1px solid #d8e5f4;
  border-radius: 8px;
  min-height: 90px;
  padding: 14px;
}

.rbw-result-metrics span,
.rbw-result-list dt {
  color: #60748d;
  display: block;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.rbw-result-metrics strong {
  color: #08264b;
  display: block;
  font-size: 26px;
  line-height: 1.1;
  margin-top: 8px;
  overflow-wrap: anywhere;
}

.rbw-result-list {
  border: 1px solid #d8e5f4;
  border-radius: 8px;
  margin: 0 0 18px;
  overflow: hidden;
}

.rbw-result-list div {
  display: grid;
  gap: 10px;
  grid-template-columns: 132px minmax(0, 1fr);
  padding: 11px 14px;
}

.rbw-result-list div + div {
  border-top: 1px solid #e4edf7;
}

.rbw-result-list dd {
  color: #17395f;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.4;
  margin: 0;
  overflow-wrap: anywhere;
}

.rbw-result-actions {
  margin-top: 16px;
}

.rbw-info-section,
.rbw-faq-section {
  background: #fff;
}

.rbw-info-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rbw-info-grid article {
  border: 1px solid #d8e5f4;
  border-radius: 8px;
  padding: 24px;
}

.rbw-info-grid ul {
  color: #405978;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  margin: 14px 0 0;
  padding-left: 20px;
}

.rbw-related-section {
  background: #f5f8fc;
}

.rbw-section-head {
  margin-bottom: 20px;
}

.rbw-section-head span {
  color: #0d4591;
  display: block;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.rbw-related-links {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rbw-related-links a {
  background: #fff;
  border: 1px solid #d8e5f4;
  border-radius: 8px;
  color: #0d4591;
  font-size: 15px;
  font-weight: 900;
  min-height: 72px;
  padding: 18px;
  text-decoration: none;
}

.rbw-related-links a:hover,
.rbw-related-links a:focus {
  border-color: #8fb2df;
  box-shadow: 0 12px 28px rgba(7, 27, 52, 0.08);
}

.rbw-faq-list {
  display: grid;
  gap: 12px;
}

.rbw-faq-list details {
  background: #fff;
  border: 1px solid #d8e5f4;
  border-radius: 8px;
  padding: 18px 20px;
}

.rbw-faq-list summary {
  color: #08264b;
  cursor: pointer;
  font-size: 17px;
  font-weight: 900;
}

.rbw-faq-list p {
  margin: 12px 0 0;
}

@media (max-width: 1180px) {
  .rbw-tool-grid {
    grid-template-columns: 1fr;
  }

  .rbw-results {
    position: static;
  }
}

@media (max-width: 980px) {
  .rbw-hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .rbw-hero h1 {
    font-size: 44px;
  }

  .rbw-related-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .rbw-tool-page .section {
    padding: 42px 0;
  }

  .rbw-hero-grid {
    gap: 28px;
    padding-bottom: 36px;
    padding-top: 28px;
  }

  .rbw-hero h1 {
    font-size: 36px;
    line-height: 1.05;
  }

  .rbw-hero p {
    font-size: 16px;
  }

  .rbw-form,
  .rbw-results {
    padding: 18px;
  }

  .rbw-card-head {
    display: grid;
  }

  .rbw-mode-control,
  .rbw-field-grid,
  .rbw-result-metrics,
  .rbw-info-grid,
  .rbw-related-links {
    grid-template-columns: 1fr;
  }

  .rbw-result-list div {
    grid-template-columns: 1fr;
  }

  .rbw-result-metrics strong {
    font-size: 24px;
  }

  .rbw-btn {
    width: 100%;
  }

  .rbw-copy-status {
    min-height: 20px;
    width: 100%;
  }
}

@media (max-width: 420px) {
  .rbw-hero h1 {
    font-size: 32px;
  }

  .rbw-breadcrumb {
    font-size: 12px;
  }

  .rbw-card-head h2,
  .rbw-info-grid h2,
  .rbw-section-head h2 {
    font-size: 24px;
  }
}
