/* Header density matched to the Cuba reference (90px bar, 1240px container, one-line notice),
   plus readable sections, a full-width application button, and both color themes. */

html body.rve-design .nav {
  background: #fffdf8 !important;
  color: #142729 !important;
  border-bottom: 1px solid #e4d9c8 !important;
}
html body.rve-design .nav .wrap {
  width: min(1240px, calc(100% - 80px)) !important;
  max-width: 1240px !important;
}
html body.rve-design .nav-inner {
  height: auto !important;
  min-height: 90px !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 20px !important;
  padding: 6px 0 !important;
}
html body.rve-design .nav-links {
  flex: 1;
  justify-content: center;
  gap: 20px !important;
  margin-left: 0 !important;
}
html body.rve-design .wordmark {
  font-size: 16px !important;
  line-height: 1.05 !important;
  color: #142729 !important;
}
html body.rve-design .wordmark span { color: #8a5a12 !important; }
html body.rve-design .rve-brand-byline {
  color: #3d4a48 !important;
  font-size: 11px !important;
}
html body.rve-design .brand-partner {
  background: #fffdf8 !important;
  padding: 2px 4px !important;
}
html body.rve-design .brand-partner img,
html body.rve-design .brand-partner img:first-child,
html body.rve-design .brand-partner img:last-child {
  width: auto !important;
  max-width: 92px !important;
  max-height: 28px !important;
  height: auto !important;
}
html body.rve-design .nav-links a,
html body.rve-design .lang summary {
  color: #142729 !important;
  font-size: 12px !important;
}
html body.rve-design .header-phone {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  width: auto !important;
  max-width: 230px !important;
  margin: 0 0 0 auto !important;
  padding: 0 0 0 14px !important;
  border: 0 !important;
  border-left: 1px solid #e4d9c8 !important;
  border-top: 0 !important;
  grid-template-columns: none !important;
  order: 0 !important;
  line-height: 1.2 !important;
  text-decoration: none;
  color: #142729 !important;
}
html body.rve-design .header-phone > span,
html body.rve-design .header-phone small {
  font-size: 12px !important;
  font-weight: 650 !important;
  line-height: 1.25 !important;
  color: #243330 !important;
  max-width: 220px !important;
  white-space: normal !important;
}
html body.rve-design .header-phone strong {
  font-size: 15px !important;
  line-height: 1.2 !important;
  color: #142729 !important;
  grid-column: auto !important;
  grid-row: auto !important;
}
html body.rve-design .nav-tools {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin-left: 0 !important;
  flex-shrink: 0;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 44px;
  min-height: 44px;
  padding: 6px 2px;
  border: 0;
  background: transparent;
  color: #142729;
  font: 700 12px/1 Manrope, "Source Sans 3", sans-serif;
  cursor: pointer;
}
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .moon svg { fill: currentColor; stroke: none; }
.theme-toggle .sun { display: none; }
html[data-theme="dark"] .theme-toggle .sun { display: inline-flex; }
html[data-theme="dark"] .theme-toggle .moon { display: none; }
.theme-toggle:focus-visible { outline: 3px solid #c2a465; outline-offset: 3px; }
.language-picker select {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: inherit;
  font: 700 12px/1 Manrope, "Source Sans 3", sans-serif;
  cursor: pointer;
}

.rve-private-banner.banner-oneline {
  padding: 4px 16px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  white-space: normal;
  background: #0e1b3d;
  color: #f7f4ee;
}
@media (min-width: 1280px) {
  .rve-private-banner.banner-oneline { white-space: nowrap; }
}
.rve-private-banner.banner-oneline a { color: #fff; font-weight: 700; }

@media (max-width: 1100px) {
  html body.rve-design .nav .wrap { width: calc(100% - 56px) !important; }
}
@media (max-width: 1279px) {
  .rve-private-banner.banner-oneline {
    font-size: 12px;
    line-height: 1.35;
    padding: 6px 12px;
  }
}
@media (max-width: 850px) {
  html body.rve-design .nav-inner {
    min-height: 76px !important;
    height: auto !important;
    flex-wrap: nowrap !important;
    padding: 4px 0 !important;
    gap: 8px !important;
  }
  html body.rve-design .header-phone > span { display: none !important; }
  html body.rve-design .header-phone { padding-left: 8px !important; max-width: 150px !important; }
  html body.rve-design .header-phone strong { font-size: 13px !important; }
  html body.rve-design .header-phone small { font-size: 10px !important; }
  html body.rve-design .rve-brand-byline { display: none; }
}
@media (max-width: 560px) {
  html body.rve-design .nav .wrap { width: calc(100% - 28px) !important; }
  html body.rve-design .wordmark { font-size: 13px !important; }
  .theme-toggle .theme-text { display: none; }
  html body.rve-design .brand-partner img,
  html body.rve-design .brand-partner img:first-child,
  html body.rve-design .brand-partner img:last-child { max-width: 64px !important; max-height: 22px !important; }
}

/* Hero phone block */
html body.rve-design .hero-bottom,
.hero-bottom {
  display: flex !important;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  max-width: none;
  margin-top: 28px;
  padding-top: 0;
  border-top: 0;
}
.hero-help {
  display: grid;
  gap: 2px;
  max-width: 34rem;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 10px;
  background: rgba(8, 18, 32, .62);
  color: #f7f4ee;
}
.hero-help-title { margin: 0; font-size: 15px; font-weight: 750; line-height: 1.3; color: #fff; }
.hero-help-phone { font-size: 22px; font-weight: 800; line-height: 1.2; color: #fff; text-decoration: none; }
.hero-help-hours,
.hero-help-who { margin: 0; font-size: 14px; font-weight: 650; line-height: 1.4; color: #f7f4ee; }
.hero-help-mail { font-size: 14px; font-weight: 700; color: #fff; }
.hero-bottom > a[href="#how-it-works"] { color: #f3e2c0; font-size: 14px; font-weight: 700; }
@media (max-width: 850px) {
  html body.rve-design .hero-bottom,
  .hero-bottom { flex-direction: column; align-items: flex-start; }
}

/* Application button and consent */
.passport-site .rve-form-actions {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 12px;
  width: 100%;
}
.passport-site .rve-form-actions #prevBtn { align-self: flex-start; order: 1; }
.passport-site .rve-form-actions .rve-early-start { order: 2; width: 100%; margin: 0; }
.passport-site .rve-form-actions #nextBtn,
.passport-site .rve-form-actions #submitBtn {
  order: 3;
  width: 100% !important;
  max-width: none !important;
  min-height: 78px;
  margin-left: 0 !important;
  padding: 16px 22px !important;
  font-size: 22px !important;
  line-height: 1.2 !important;
}
.passport-site .rve-form-actions .rve-action-button small { font-size: 14px !important; }
.rve-early-start { font-size: 15px; color: #142729; }

/* Readable preparation and how-it-works sections (WCAG AA on the ivory ground) */
html body.rve-design .service-strip,
html body.rve-design .section { color: #142729; }
html body.rve-design .service-strip h2,
html body.rve-design .section-heading h2,
html body.rve-design .rve-reviews-intro h2,
html body.rve-design .route h3,
html body.rve-design .stat-num {
  color: #142729 !important;
  font-weight: 700 !important;
}
html body.rve-design .stat-label,
html body.rve-design .section-heading p,
html body.rve-design .route p,
html body.rve-design .rve-reviews-intro > div > p,
html body.rve-design .rve-review-contact > span,
html body.rve-design .rve-reviews-note {
  color: #142729 !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
}
html body.rve-design .stat-label { font-size: 16px !important; }

/* Footer: larger text, withdrawal is a text link */
html body.rve-design .footer-note {
  font-size: 16px !important;
  font-weight: 550 !important;
  line-height: 1.6 !important;
  color: #f4f7fb !important;
}
html body.rve-design .footer-links a {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #f4f7fb !important;
}
html body.rve-design .copyright {
  font-size: 14px !important;
  color: #d7e0ea !important;
}
.rve-cookie-settings {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.rve-cookie-settings-wrap { margin: 0 0 12px; }

.rve-withdraw-link {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: #f4f7fb;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.rve-withdraw-wrap { margin: 0 0 18px; }

.rve-legal-withdraw {
  margin-top: 36px;
  padding: 28px 24px;
  border: 2px solid #c8102e;
  border-radius: 12px;
  background: #fffdf8;
  color: #142729;
}
.rve-legal-withdraw h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
  color: #142729;
}
.rve-legal-withdraw p,
.rve-legal-withdraw label { color: #142729; font-size: 16px; line-height: 1.55; }
.rve-legal-withdraw input {
  background: #fff;
  color: #142729;
  border: 1px solid #c3ccdd;
}
.rve-legal-withdraw .rve-withdraw { margin-top: 4px; font-size: 18px; padding: 14px 18px; }

html[data-theme="light"] body.rve-design {
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #142729;
  --text-muted: #243330;
  --border-color: #e4e9e6;
  background: #faf8f3 !important;
  color: #142729 !important;
}

html[data-theme="dark"] body.rve-design {
  --bg-page: #0e1b3d;
  --bg-card: #15284f;
  --text-main: #f4f7fb;
  --text-muted: #d5deee;
  --border-color: #2a3d6b;
  --header-bg: #0e1b3d;
  --fg: #f4f7fb;
  --fg-muted: #d5deee;
  --ink: #f4f7fb;
  --bg: #0e1b3d;
  --bg-raised: #15284f;
}
html[data-theme="dark"] body.rve-design .nav {
  background: #0e1b3d !important;
  color: #f4f7fb !important;
  border-bottom-color: #2a3d6b !important;
}
html[data-theme="dark"] body.rve-design .wordmark,
html[data-theme="dark"] body.rve-design .nav-links a,
html[data-theme="dark"] body.rve-design .lang summary,
html[data-theme="dark"] body.rve-design .rve-brand-byline,
html[data-theme="dark"] body.rve-design .header-phone,
html[data-theme="dark"] body.rve-design .header-phone > span,
html[data-theme="dark"] body.rve-design .header-phone strong,
html[data-theme="dark"] body.rve-design .header-phone small,
html[data-theme="dark"] body.rve-design .theme-toggle,
html[data-theme="dark"] body.rve-design #mobile-menu,
html[data-theme="dark"] body.rve-design #mobile-menu a {
  color: #f4f7fb !important;
}
html[data-theme="dark"] body.rve-design .wordmark span { color: #e4c56a !important; }
html[data-theme="dark"] body.rve-design .header-phone { border-left-color: #2a3d6b !important; }
html[data-theme="dark"] body.rve-design #mobile-menu { background: #0e1b3d !important; }
html[data-theme="dark"] .rve-private-banner.banner-oneline { background: #091330; color: #f4f7fb; }
html[data-theme="dark"] body.rve-design .service-strip,
html[data-theme="dark"] body.rve-design .section {
  background: #0e1b3d !important;
  color: #f4f7fb !important;
}
html[data-theme="dark"] body.rve-design .service-strip h2,
html[data-theme="dark"] body.rve-design .section-heading h2,
html[data-theme="dark"] body.rve-design .rve-reviews-intro h2,
html[data-theme="dark"] body.rve-design .route h3,
html[data-theme="dark"] body.rve-design .stat-num,
html[data-theme="dark"] body.rve-design .stat-label,
html[data-theme="dark"] body.rve-design .section-heading p,
html[data-theme="dark"] body.rve-design .route p,
html[data-theme="dark"] body.rve-design .rve-reviews-intro > div > p,
html[data-theme="dark"] body.rve-design .rve-review-contact > span,
html[data-theme="dark"] body.rve-design .rve-reviews-note,
html[data-theme="dark"] body.rve-design .route li {
  color: #f4f7fb !important;
}
html[data-theme="dark"] body.rve-design .route li { border-top-color: #3c5270; }
html[data-theme="dark"] .rve-legal-withdraw,
html[data-theme="dark"] .rve-legal-withdraw h2,
html[data-theme="dark"] .rve-legal-withdraw p,
html[data-theme="dark"] .rve-legal-withdraw label {
  background: #15284f;
  color: #f4f7fb;
}
html[data-theme="dark"] body.rve-design input,
html[data-theme="dark"] body.rve-design textarea,
html[data-theme="dark"] body.rve-design select {
  background: #fffdf8;
  color: #142729;
}
html[data-theme="dark"] body.rve-design .lang-list {
  background: #15284f;
  color: #f4f7fb;
  border-color: #2a3d6b;
}
html[data-theme="dark"] body.rve-design .lang-list a { color: #f4f7fb; }
