@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/poppins/poppins-400-latin.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/poppins/poppins-500-latin.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/poppins/poppins-600-latin.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/poppins/poppins-700-latin.woff2") format("woff2"); }

.rpfm, .rpfm * { box-sizing: border-box; }
.rpfm [hidden] { display: none !important; }
.rpfm {
  --rpfm-navy-950: #000C1E;
  --rpfm-navy-900: #071528;
  --rpfm-navy-800: #0D2A56;
  --rpfm-gold: #FFC100;
  --rpfm-white: #FFFFFF;
  --rpfm-soft-bg: #F7F9FC;
  --rpfm-border: #D8E1EC;
  --rpfm-muted: #667085;
  --rpfm-error: #D92D20;
  --rpfm-success: #168A52;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  color: var(--rpfm-navy-900);
  font-family: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.55;
}
.rpfm-layout {
  display: block;
  width: 100%;
}
/* FORM CARD - WHITE DESIGN */
.rpfm-card {
  position: relative;
  min-height: 0;
  padding: clamp(34px, 4.5vw, 56px) clamp(24px, 5vw, 64px) clamp(32px, 4.4vw, 52px);
  overflow: visible;
  border: 1px solid var(--rpfm-border);
  border-radius: 18px;
  background: var(--rpfm-white);
  box-shadow: 0 16px 42px rgba(7, 21, 40, 0.09);
  color: var(--rpfm-navy-900);
}
.rpfm-card::before {
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, var(--rpfm-gold), var(--rpfm-navy-800));
  content: "";
}
.rpfm-header { max-width: 720px; margin: 0 auto 30px; text-align: center; }
.rpfm-header h2 { margin: 0 0 10px; color: var(--rpfm-navy-900); font-size: clamp(27px, 3vw, 38px); font-weight: 650; line-height: 1.2; }
.rpfm-header p { max-width: 650px; margin: 0 auto; color: var(--rpfm-muted); font-size: 14px; }

/* PROGRESS */
.rpfm-progress { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 640px; margin: 0 auto 38px; padding: 0; list-style: none; }
.rpfm-progress li { position: relative; display: grid; justify-items: center; gap: 8px; min-width: 0; color: var(--rpfm-muted); text-align: center; }
.rpfm-progress li:not(:last-child)::after { position: absolute; z-index: 0; top: 17px; left: calc(50% + 22px); width: calc(100% - 44px); height: 1px; background: var(--rpfm-border); content: ""; }
.rpfm-progress li.is-complete:not(:last-child)::after { background: var(--rpfm-navy-800); }
.rpfm-progress li > span { position: relative; z-index: 1; display: grid; width: 35px; height: 35px; place-items: center; border: 1px solid var(--rpfm-border); border-radius: 50%; background: var(--rpfm-soft-bg); color: var(--rpfm-muted); font-size: 13px; font-weight: 650; }
.rpfm-progress li.is-active > span, .rpfm-progress li.is-complete > span { border-color: var(--rpfm-navy-800); background: var(--rpfm-navy-800); color: var(--rpfm-white); }
.rpfm-progress li.is-complete > span { font-size: 0; }
.rpfm-progress li.is-complete > span::before { font-size: 15px; content: "✓"; }
.rpfm-progress li small { color: inherit; font-size: 11.5px; font-weight: 550; line-height: 1.3; }
.rpfm-progress li.is-active small { color: var(--rpfm-navy-900); }
.rpfm-progress li.is-complete small { color: var(--rpfm-navy-900); }

.rpfm-step h3 { margin: 0 0 24px; color: var(--rpfm-navy-900); font-size: clamp(19px, 2vw, 24px); font-weight: 600; line-height: 1.3; }
.rpfm-step h3:focus { outline: none; }
.rpfm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; }
.rpfm-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.rpfm-field--full { grid-column: 1 / -1; }
.rpfm-field > label, .rpfm-field > legend { display: block; margin: 0 0 8px; padding: 0; color: var(--rpfm-navy-900); font-size: 12.5px; font-weight: 550; line-height: 1.45; }
.rpfm-field label b, .rpfm-field legend b { color: var(--rpfm-navy-800); font-weight: 600; }
.rpfm-field label small { color: var(--rpfm-muted); font-size: 11px; font-weight: 450; }

/* INPUTS */
.rpfm input:not([type="checkbox"]):not([type="radio"]), .rpfm select, .rpfm textarea { display: block; width: 100%; min-width: 0; min-height: 52px; margin: 0; border: 1px solid var(--rpfm-border); border-radius: 8px; outline: none; background: var(--rpfm-white); color: var(--rpfm-navy-900); font: 500 14.5px/1.4 Poppins, system-ui, sans-serif; transition: border-color .16s ease, box-shadow .16s ease; }
.rpfm input:not([type="checkbox"]):not([type="radio"]), .rpfm select { height: 52px; padding: 0 42px 0 14px; }
.rpfm textarea { min-height: 116px; padding: 13px 14px; resize: vertical; }
.rpfm input::placeholder, .rpfm textarea::placeholder { color: var(--rpfm-muted); opacity: 1; }
.rpfm input:focus, .rpfm select:focus, .rpfm textarea:focus { border-color: var(--rpfm-navy-800); box-shadow: 0 0 0 3px rgba(13, 42, 86, 0.1); }
.rpfm input[readonly] { background: var(--rpfm-soft-bg); color: var(--rpfm-muted); cursor: not-allowed; }

/* ERRORS */
.rpfm .rpfm-field.has-error input, .rpfm .rpfm-field.has-error select, .rpfm .rpfm-field.has-error textarea { border-color: var(--rpfm-error); box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.1); }
.rpfm-inline-error { display: block; margin-top: 6px; color: var(--rpfm-error); font-size: 11.5px; }
.rpfm-help { display: block; margin-top: 6px; color: var(--rpfm-muted); font-size: 11px; line-height: 1.5; }

/* PHONE / WHATSAPP - COUNTRY-DRIVEN, FLAG-FREE */
.rpfm-phone-control {
  display: grid;
  grid-template-columns: minmax(68px, auto) minmax(0, 1fr);
  align-items: stretch;
  width: 100%;
  min-height: 52px;
  overflow: hidden;
  border: 1px solid var(--rpfm-border);
  border-radius: 10px;
  background: var(--rpfm-white);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.rpfm-phone-control:focus-within {
  border-color: #AAB8C8;
  box-shadow: 0 0 0 3px rgba(7, 21, 40, .055);
}
.rpfm-phone-control.is-disabled {
  background: var(--rpfm-soft-bg);
  opacity: .78;
}
.rpfm-dial-prefix {
  display: flex;
  min-width: 68px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-right: 1px solid var(--rpfm-border);
  background: #F5F7FA;
  color: var(--rpfm-navy-900);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.rpfm .rpfm-phone-control input[type="tel"] {
  width: 100%;
  min-width: 0;
  height: 50px;
  min-height: 50px;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.rpfm .rpfm-phone-control input[type="tel"]:focus {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}
.rpfm-phone-control.is-linked {
  background: #FAFBFC;
}
.rpfm .rpfm-phone-control.is-linked input[type="tel"] {
  color: var(--rpfm-muted);
}
.rpfm-field.has-error .rpfm-phone-control {
  border-color: var(--rpfm-error);
  box-shadow: 0 0 0 3px rgba(217, 45, 32, .08);
}
.rpfm-other-country-grid {
  padding: 14px;
  border: 1px solid var(--rpfm-border);
  border-radius: 10px;
  background: var(--rpfm-soft-bg);
}

/* CHECKBOXES */
.rpfm-same { margin-top: -9px; }
.rpfm-check { display: flex !important; align-items: flex-start; gap: 10px; min-height: 28px; margin: 0 !important; color: var(--rpfm-navy-900) !important; cursor: pointer; }
.rpfm-check input[type="checkbox"] { flex: 0 0 18px; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--rpfm-navy-800); }
.rpfm-check span { font-size: 12px; font-weight: 450; line-height: 1.55; }

/* DETAILS / SUMMARY / NOTICES */
.rpfm-details, .rpfm-summary, .rpfm-note { border: 1px solid var(--rpfm-border); border-radius: 10px; background: var(--rpfm-soft-bg); }
.rpfm-details { padding: 0; overflow: hidden; }
.rpfm-details-toggle { display: flex; width: 100%; min-height: 56px; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; border: 0 !important; background: var(--rpfm-white) !important; color: var(--rpfm-navy-900) !important; box-shadow: none !important; font: 600 13.5px/1.4 Poppins, sans-serif; cursor: pointer; text-align: left; }
.rpfm-details-toggle:hover { background: #FAFBFC !important; }
.rpfm-details-toggle::after { color: var(--rpfm-navy-800); font-size: 19px; content: "+"; }
.rpfm-details-toggle[aria-expanded="true"]::after { content: "−"; }
.rpfm-details > p { margin: -3px 16px 14px; color: var(--rpfm-muted); font-size: 11px; }
.rpfm-details [data-details-panel] { padding: 18px 16px; border-top: 1px solid var(--rpfm-border); }
.rpfm-summary { padding: 17px 19px; }
.rpfm-summary h4 { margin: 0 0 7px; color: var(--rpfm-navy-900); font-size: 13px; font-weight: 600; }
.rpfm-summary > div { color: var(--rpfm-muted); font-size: 12px; line-height: 1.75; }
.rpfm-summary strong { color: var(--rpfm-navy-900); font-weight: 550; }

/* CHOICE GRID (RADIO/CHECKBOX BUTTONS) */
.rpfm-choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rpfm-choice { position: relative; display: block; margin: 0; cursor: pointer; }
.rpfm-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.rpfm-choice span { display: flex; min-height: 58px; align-items: center; justify-content: center; padding: 11px 13px; border: 1px solid var(--rpfm-border); border-radius: 10px; background: var(--rpfm-white); color: var(--rpfm-navy-900); font-size: 12.5px; font-weight: 550; line-height: 1.35; text-align: center; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.rpfm-choice input:checked + span { border-color: var(--rpfm-navy-800); background: #F3F7FC; color: var(--rpfm-navy-900); box-shadow: inset 0 0 0 1px rgba(13,42,86,.12); }
.rpfm-choice input:focus-visible + span { outline: 2px solid var(--rpfm-navy-800); outline-offset: 2px; }

.rpfm-consult { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; align-items: end; gap: 18px 20px; padding: 18px; }
.rpfm-consult .rpfm-field input,
.rpfm-consult .rpfm-field select { width: 100%; height: 52px; min-height: 52px; }
.rpfm-note { margin: 0; padding: 13px 15px; color: var(--rpfm-muted); font-size: 11px; }
.rpfm-error { display: none; margin-top: 20px; padding: 12px 14px; border: 1px solid var(--rpfm-error); border-radius: 8px; background: #FEF3F2; color: var(--rpfm-error); font-size: 12px; }
.rpfm-error.is-visible { display: block; }

/* CUSTOMISED NOTICE */
.rpf-customised-notice { background: var(--rpfm-soft-bg); border: 1px solid var(--rpfm-border); border-radius: 8px; padding: 16px; margin-top: 16px; }
.rpf-customised-notice .rpf-notice-heading { color: #0D2A56; font-size: 16px; font-weight: 600; margin: 0 0 8px; }
.rpf-notice-text, .rpf-secondary-note { color: var(--rpfm-muted); font-size: 14px; line-height: 1.5; margin: 0; }
.rpf-secondary-note { margin-top: 8px; }

/* NAVIGATION BUTTONS */
.rpfm-nav { display: flex; justify-content: center; gap: 12px; margin-top: 30px; }
.rpfm-nav button { display: inline-flex; min-width: 154px; min-height: 50px; align-items: center; justify-content: center; gap: 10px; padding: 0 24px; border: 1px solid transparent; border-radius: 9px; font: 600 13px/1 Poppins, sans-serif; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease; }
.rpfm-btn-icon { display: inline-flex; min-width: 18px; align-items: center; justify-content: center; font-size: 18px; line-height: 1; }
.rpfm-next, .rpfm-submit { background: var(--rpfm-navy-800); color: var(--rpfm-white); box-shadow: 0 4px 12px rgba(13, 42, 86, 0.15); }
.rpfm-back { border-color: var(--rpfm-border) !important; background: var(--rpfm-white); color: var(--rpfm-muted); }
.rpfm-nav button:hover:not(:disabled) { transform: translateY(-1px); }
.rpfm-next:hover:not(:disabled), .rpfm-submit:hover:not(:disabled) { box-shadow: 0 6px 16px rgba(13, 42, 86, 0.2); }
.rpfm-back:hover:not(:disabled) { color: var(--rpfm-navy-900); border-color: var(--rpfm-muted) !important; }
.rpfm-nav button:focus-visible, .rpfm-details-toggle:focus-visible { outline: 2px solid var(--rpfm-navy-800); outline-offset: 2px; }
.rpfm-nav button:disabled { cursor: not-allowed; opacity: .48; transform: none; }

.rpfm-trust { display: flex; max-width: 520px; align-items: center; justify-content: center; gap: 7px; margin: 15px auto 0; color: var(--rpfm-muted); font-size: 10.5px; text-align: center; }
.rpfm-trust svg { flex: 0 0 14px; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; }

/* SUCCESS STATE */
.rpfm-success { max-width: 590px; margin: 80px auto; text-align: center; }
.rpfm-success .rpfm-icon { display: grid; width: 68px; height: 68px; margin: 0 auto 20px; place-items: center; border: 1px solid rgba(22, 138, 82, 0.3); border-radius: 50%; background: rgba(22, 138, 82, 0.1); color: var(--rpfm-success); }
.rpfm-success h3 { margin: 0 0 10px; color: var(--rpfm-navy-900); font-size: 24px; font-weight: 600;}
.rpfm-success p { color: var(--rpfm-muted); font-size: 14px; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .rpfm-choice-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .rpfm-card { padding: 40px clamp(24px, 5vw, 48px); }
}
@media (max-width: 700px) {
  .rpfm-grid { grid-template-columns: 1fr; gap: 19px; }
  .rpfm-field--full { grid-column: auto; }
  .rpfm-same { margin-top: -6px; }
  .rpfm-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rpfm-progress { margin-bottom: 30px; }
  .rpfm-progress li small { font-size: 10px; }
}
@media (max-width: 480px) {
  .rpfm-card { border-radius: 14px; }
  .rpfm-card { padding: 30px 18px; }
  .rpfm-header { margin-bottom: 26px; }
  .rpfm-header h2 { font-size: 27px; }
  .rpfm-progress li:not(:last-child)::after { left: calc(50% + 18px); width: calc(100% - 36px); top: 15px; }
  .rpfm-progress li > span { width: 31px; height: 31px; }
  .rpfm-progress li small { max-width: 78px; font-size: 9px; }
  .rpfm-choice-grid { grid-template-columns: 1fr; }
  .rpfm-nav { flex-wrap: wrap; }
  .rpfm-nav button { flex: 1 1 100%; width: 100%; }
}
@media (max-width: 360px) {
  .rpfm-card { padding-left: 14px; padding-right: 14px; }
  .rpfm-progress li small { font-size: 8.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .rpfm *, .rpfm *::before, .rpfm *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
/* Final form lock additions */
.rpfm-step-intro{grid-column:1/-1;margin:-8px 0 22px;color:var(--rpfm-muted);font-size:12px;line-height:1.6}
.rpfm-currency-badge{display:inline-flex;align-items:center;gap:5px;margin-top:8px;padding:6px 10px;border:1px solid rgba(13,42,86,.2);border-radius:999px;background:#f6f9fd;color:var(--rpfm-navy-900);font-size:11px;line-height:1}
.rpfm-currency-badge span{color:var(--rpfm-muted)}
.rpfm-fallback-check{margin-top:10px!important}
[data-customised-notice][hidden]{display:none!important}

.rpfm input:not([type="checkbox"]):not([type="radio"]) { padding-right: 14px; }

.rpfm-dynamic.rpfm-grid { grid-template-columns: 1fr; gap: 18px; }
.rpfm-multi-select { min-height: 132px !important; height: auto !important; padding: 10px 12px !important; }

.rpfm-select-wide select {
  width: 100%;
  font-size: 14.5px;
}
.rpfm select {
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 620px) {
  .rpfm-consult { grid-template-columns: 1fr !important; }
}
