:root{
  --rhi-hc-green:#123d2d;
  --rhi-hc-green-2:#1f6048;
  --rhi-hc-green-dark:#0b2c20;
  --rhi-hc-gold:#e4ad13;
  --rhi-hc-gold-soft:#f4d978;
  --rhi-hc-beige:#f4efe5;
  --rhi-hc-card:#fffefa;
  --rhi-hc-line:#e6e0d5;
  --rhi-hc-text:#24372f;
  --rhi-hc-muted:#746f68;
  --rhi-hc-shadow:0 24px 70px rgba(23,45,35,.13);
}

html{min-height:100%}
body.rhi-help-center-bridge-page{min-height:100%;margin:0}
body.rhi-help-center-login-context{
  min-height:100svh!important;
  background-color:var(--rhi-hc-beige)!important;
  background-image:url('../images/rhi-login-pattern-v7.svg')!important;
  background-repeat:repeat!important;
  background-position:50% 0!important;
  background-size:220px 220px!important;
  background-attachment:scroll!important;
  color:var(--rhi-hc-text)!important;
  font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif!important;
}
body.rhi-help-center-login-context *{box-sizing:border-box}

/* v0.3.14 SIMPLE SAFE MODE
   No split shell, no DOM re-parenting, no provider grid rewrite. */
body.rhi-help-center-simple-ready .rhi-hc-outer-unlocked{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin-left:0!important;
  margin-right:0!important;
}
body.rhi-help-center-simple-ready .rhi-hc-flow-unlocked{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  grid-column:1 / -1!important;
  flex:1 1 100%!important;
}
body.rhi-help-center-simple-ready .rhi-help-simple-root{
  width:min(920px,calc(100% - 40px))!important;
  max-width:920px!important;
  min-width:0!important;
  margin:42px auto!important;
  padding:0 38px 38px!important;
  overflow:hidden!important;
  border:1px solid rgba(18,61,45,.10)!important;
  border-radius:30px!important;
  background:linear-gradient(180deg,#fff,#fffdf9)!important;
  box-shadow:var(--rhi-hc-shadow)!important;
  color:var(--rhi-hc-text)!important;
}

.rhi-hc-simple-brand{
  display:grid;
  grid-template-columns:112px minmax(0,1fr);
  align-items:center;
  gap:22px;
  width:calc(100% + 76px);
  min-height:158px;
  margin:0 -38px 34px;
  padding:24px 36px;
  color:#fff;
  background:
    radial-gradient(circle at 18% 10%,rgba(255,255,255,.08),transparent 34%),
    linear-gradient(145deg,var(--rhi-hc-green-2),var(--rhi-hc-green-dark));
}
.rhi-hc-simple-logo{
  display:block;
  width:112px;
  height:112px;
  object-fit:contain;
}
.rhi-hc-simple-brand-text{min-width:0;display:flex;flex-direction:column;justify-content:center;gap:8px}
.rhi-hc-simple-brand-text strong{
  color:var(--rhi-hc-gold-soft);
  font-size:16px;
  font-weight:800;
  line-height:1.2;
  letter-spacing:.14em;
}
.rhi-hc-simple-brand-text span{
  max-width:620px;
  color:#fff;
  font-size:22px;
  font-weight:600;
  line-height:1.4;
}

body.rhi-help-center-simple-ready .rhi-help-simple-provider-brand{display:none!important}
body.rhi-help-center-simple-ready .rhi-help-simple-eyebrow{
  display:block!important;
  margin:0 0 10px!important;
  color:#b28a18!important;
  font-size:13px!important;
  font-weight:800!important;
  line-height:1.3!important;
  letter-spacing:.14em!important;
  text-align:center!important;
  text-transform:uppercase!important;
}
body.rhi-help-center-simple-ready .rhi-help-simple-title{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  color:var(--rhi-hc-green)!important;
  font-size:clamp(34px,5vw,48px)!important;
  font-weight:500!important;
  line-height:1.12!important;
  letter-spacing:-.03em!important;
  text-align:center!important;
}
body.rhi-help-center-simple-ready .rhi-help-simple-intro{
  width:100%!important;
  max-width:720px!important;
  margin:15px auto 26px!important;
  padding:0!important;
  color:var(--rhi-hc-muted)!important;
  font-size:16px!important;
  line-height:1.65!important;
  text-align:center!important;
}
body.rhi-help-center-simple-ready .rhi-help-simple-notice{
  display:block!important;
  width:100%!important;
  max-width:none!important;
  margin:0 0 22px!important;
  padding:15px 18px!important;
  border:1px solid rgba(178,138,24,.22)!important;
  border-radius:16px!important;
  color:#6d5520!important;
  background:#fff8e8!important;
  box-shadow:none!important;
  font-size:14px!important;
  font-weight:700!important;
  line-height:1.5!important;
}
body.rhi-help-center-simple-ready .rhi-help-simple-step{
  display:inline-grid!important;
  place-items:center!important;
  width:52px!important;
  height:52px!important;
  min-width:52px!important;
  margin:0 auto 14px!important;
  border-radius:50%!important;
  color:#755b12!important;
  background:#fff2c7!important;
  font-size:15px!important;
  font-weight:800!important;
  line-height:1!important;
}
body.rhi-help-center-simple-ready .rhi-help-simple-section-title{
  width:100%!important;
  max-width:none!important;
  margin:0 0 6px!important;
  padding:0!important;
  color:var(--rhi-hc-green)!important;
  font-size:26px!important;
  font-weight:650!important;
  line-height:1.25!important;
  letter-spacing:-.02em!important;
  text-align:center!important;
}
body.rhi-help-center-simple-ready .rhi-help-simple-section-copy{
  width:100%!important;
  max-width:660px!important;
  margin:0 auto 22px!important;
  padding:0!important;
  color:var(--rhi-hc-muted)!important;
  font-size:14px!important;
  line-height:1.6!important;
  text-align:center!important;
}

body.rhi-help-center-simple-ready .rhi-help-simple-form{
  display:block!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  padding:24px!important;
  border:1px solid rgba(18,61,45,.13)!important;
  border-radius:20px!important;
  background:#fff!important;
  box-shadow:0 10px 30px rgba(18,61,45,.07)!important;
}
body.rhi-help-center-simple-ready .rhi-help-simple-form > *{
  width:auto;
  max-width:none!important;
  min-width:0!important;
  grid-column:1 / -1!important;
}
body.rhi-help-center-simple-ready .rhi-help-simple-form label{
  display:block!important;
  width:100%!important;
  margin:0 0 8px!important;
  color:var(--rhi-hc-text)!important;
  font-size:14px!important;
  font-weight:700!important;
  line-height:1.4!important;
}
body.rhi-help-center-simple-ready .rhi-help-simple-form :is(input[type="email"],input[type="text"],input[type="tel"],input[type="password"],textarea,select){
  display:block!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  min-height:56px!important;
  margin:0 0 14px!important;
  padding:14px 16px!important;
  border:1px solid var(--rhi-hc-line)!important;
  border-radius:14px!important;
  color:var(--rhi-hc-text)!important;
  background:#fff!important;
  box-shadow:none!important;
  font:inherit!important;
  font-size:16px!important;
  line-height:1.45!important;
}
body.rhi-help-center-simple-ready .rhi-help-simple-form textarea{min-height:132px!important;resize:vertical!important}
body.rhi-help-center-simple-ready .rhi-help-simple-form :is(input,textarea,select):focus{
  border-color:var(--rhi-hc-green)!important;
  outline:none!important;
  box-shadow:0 0 0 4px rgba(18,61,45,.10)!important;
}
body.rhi-help-center-simple-ready .rhi-help-simple-form :is(p,small,.description,.help,.hint){
  width:100%!important;
  max-width:none!important;
  color:var(--rhi-hc-muted)!important;
  font-size:13px!important;
  line-height:1.6!important;
}
body.rhi-help-center-simple-ready .rhi-help-simple-submit{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  min-height:58px!important;
  margin:18px 0 0!important;
  padding:14px 20px!important;
  border:1px solid rgba(232,185,46,.38)!important;
  border-radius:14px!important;
  color:var(--rhi-hc-gold-soft)!important;
  background:linear-gradient(135deg,var(--rhi-hc-green-2),var(--rhi-hc-green-dark))!important;
  box-shadow:0 12px 28px rgba(11,44,32,.17)!important;
  font-size:16px!important;
  font-weight:800!important;
  line-height:1.2!important;
  text-decoration:none!important;
  cursor:pointer!important;
}
.rhi-hc-simple-back{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  margin:22px 0 0;
  color:var(--rhi-hc-green)!important;
  font-size:14px;
  font-weight:700;
  text-decoration:none!important;
}
.rhi-hc-simple-back:hover{text-decoration:underline!important}

/* Logged-in Help Center is not redesigned. */
body.rhi-help-center-member-context{background:var(--rhi-hc-beige)!important}

@media(max-width:767px){
  body.rhi-help-center-login-context{background-size:190px 190px!important}
  body.rhi-help-center-simple-ready .rhi-help-simple-root{
    width:calc(100% - 16px)!important;
    margin:12px auto 24px!important;
    padding:0 16px 22px!important;
    border-radius:24px!important;
  }
  .rhi-hc-simple-brand{
    grid-template-columns:78px minmax(0,1fr);
    gap:12px;
    width:calc(100% + 32px);
    min-height:0;
    margin:0 -16px 28px;
    padding:18px 16px;
  }
  .rhi-hc-simple-logo{width:78px;height:78px}
  .rhi-hc-simple-brand-text{gap:4px}
  .rhi-hc-simple-brand-text strong{font-size:13px;letter-spacing:.12em}
  .rhi-hc-simple-brand-text span{font-size:14px;font-weight:500;line-height:1.42}
  body.rhi-help-center-simple-ready .rhi-help-simple-title{font-size:34px!important}
  body.rhi-help-center-simple-ready .rhi-help-simple-intro{font-size:15px!important;margin-bottom:22px!important}
  body.rhi-help-center-simple-ready .rhi-help-simple-notice{padding:14px 15px!important}
  body.rhi-help-center-simple-ready .rhi-help-simple-section-title{font-size:23px!important}
  body.rhi-help-center-simple-ready .rhi-help-simple-form{padding:18px!important;border-radius:18px!important}
}

@media(max-width:390px){
  body.rhi-help-center-simple-ready .rhi-help-simple-root{width:calc(100% - 10px)!important;margin-top:8px!important;padding-left:12px!important;padding-right:12px!important}
  .rhi-hc-simple-brand{width:calc(100% + 24px);margin-left:-12px;margin-right:-12px;padding:16px 12px;grid-template-columns:70px minmax(0,1fr);gap:10px}
  .rhi-hc-simple-logo{width:70px;height:70px}
  .rhi-hc-simple-brand-text strong{font-size:12px}
  .rhi-hc-simple-brand-text span{font-size:12.5px}
  body.rhi-help-center-simple-ready .rhi-help-simple-title{font-size:30px!important}
  body.rhi-help-center-simple-ready .rhi-help-simple-form{padding:16px!important}
}

/* v0.3.15 Guest Help Center state continuity.
   Keep provider workflow intact; Page RHI only owns guest visual skin. */
body.rhi-help-center-login-context .rhi-help-simple-decorative-icon{
  display:none!important;
}
body.rhi-help-center-simple-ready .rhi-hc-stage-report .rhi-help-simple-title,
body.rhi-help-center-simple-ready .rhi-hc-stage-complete .rhi-help-simple-title{
  color:var(--rhi-hc-green)!important;
}
body.rhi-help-center-simple-ready .rhi-hc-stage-report .rhi-help-simple-form,
body.rhi-help-center-simple-ready .rhi-hc-stage-complete .rhi-help-simple-form{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
}
body.rhi-help-center-simple-ready .rhi-hc-stage-report :is(input,textarea,select),
body.rhi-help-center-simple-ready .rhi-hc-stage-complete :is(input,textarea,select){
  max-width:100%!important;
  min-width:0!important;
}
