:root {
    --rit-public-red: #b91c1c;
    --rit-public-red-dark: #7f1d1d;
    --rit-public-red-deep: #5f1212;
    --rit-public-ink: #101828;
    --rit-public-muted: #667085;
    --rit-public-line: #e4e7ec;
    --rit-public-soft: #f8fafc;
    --rit-public-white: #fff;
    --rit-public-shadow: 0 22px 65px rgba(16, 24, 40, .11);
}

html { scroll-behavior: smooth; }
body { background: #fff; color: var(--rit-public-ink); }

/* Shared public navigation */
.rit-home-nav,
.public-nav {
    position: relative !important;
    z-index: 1040;
    width: 100%;
    border-bottom: 1px solid rgba(15, 23, 42, .07);
    background: rgba(255, 255, 255, .97) !important;
    box-shadow: 0 8px 28px rgba(15, 23, 42, .06) !important;
    padding: 0 !important;
    backdrop-filter: blur(14px);
}

.rit-home-nav-inner,
.public-nav .container {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.rit-home-brand,
.public-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none !important;
}

.rit-home-brand img,
.public-brand img {
    width: auto !important;
    max-width: 190px !important;
    height: 50px !important;
    max-height: 50px !important;
    object-fit: contain;
    filter: none !important;
}

.public-nav .btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    border: 1px solid #d0d5dd !important;
    border-radius: 11px;
    color: #344054 !important;
    background: #fff !important;
    font-weight: 700;
    padding: 9px 15px;
}

.public-nav .btn:hover { border-color: var(--rit-public-red) !important; color: var(--rit-public-red) !important; }

.rit-home-menu {
    margin-left: auto;
    align-items: center;
    gap: 4px;
}

.rit-home-menu.show,
.rit-home-menu.collapsing { display: flex; }

.rit-home-menu a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 7px;
    border-radius: 10px;
    color: #475467;
    font-size: .88rem;
    font-weight: 600;
    padding: 9px 13px;
    text-decoration: none !important;
    transition: .2s ease;
}

.rit-home-menu a:hover { color: var(--rit-public-red); background: #fef2f2; }
.rit-home-menu .rit-nav-login { margin-left: 8px; border: 1px solid #d0d5dd; color: #344054; }
.rit-home-menu .rit-nav-primary { color: #fff; background: linear-gradient(135deg, var(--rit-public-red), var(--rit-public-red-dark)); box-shadow: 0 8px 20px rgba(185, 28, 28, .2); }
.rit-home-menu .rit-nav-primary:hover { color: #fff; background: var(--rit-public-red-dark); transform: translateY(-1px); }

.rit-home-menu-toggle {
    display: none;
    width: 43px;
    height: 43px;
    align-items: center;
    justify-content: center;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    color: #344054;
    background: #fff;
}

/* Home */
.rit-home-page { overflow: hidden; background: #fff; }
.rit-home-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(115deg, rgba(75, 9, 9, .98), rgba(127, 29, 29, .97) 48%, rgba(185, 28, 28, .95)),
        radial-gradient(circle at 10% 20%, rgba(255,255,255,.12), transparent 24%);
    padding: 88px 0 96px;
}

.rit-home-hero::before {
    position: absolute;
    inset: 0;
    content: "";
    opacity: .12;
    background-image: radial-gradient(rgba(255,255,255,.65) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: linear-gradient(to right, #000, transparent 75%);
}

.rit-hero-orb { position: absolute; border-radius: 999px; filter: blur(2px); pointer-events: none; }
.rit-hero-orb-one { width: 380px; height: 380px; top: -220px; right: 8%; background: rgba(255,255,255,.1); }
.rit-hero-orb-two { width: 250px; height: 250px; bottom: -150px; left: 42%; background: rgba(251,191,36,.12); }
.rit-home-hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(330px, .65fr); align-items: center; gap: 70px; }
.rit-eyebrow, .rit-section-kicker { display: inline-flex; align-items: center; gap: 8px; color: #fecaca; font-size: .73rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.rit-home-hero-copy h1 { max-width: 800px; margin: 18px 0; color: #fff; font-size: clamp(2.5rem, 5.4vw, 4.65rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.04; }
.rit-home-hero-copy > p { max-width: 720px; margin: 0; color: rgba(255,255,255,.82); font-size: 1.08rem; line-height: 1.8; }
.rit-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.rit-btn { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 12px; font-weight: 750; padding: 12px 19px; text-decoration: none !important; transition: .2s ease; }
.rit-btn:hover { transform: translateY(-2px); }
.rit-btn-light { color: var(--rit-public-red-dark) !important; background: #fff; box-shadow: 0 12px 26px rgba(0,0,0,.16); }
.rit-btn-ghost { border: 1px solid rgba(255,255,255,.26); color: #fff !important; background: rgba(255,255,255,.08); }
.rit-btn-primary { color: #fff !important; background: linear-gradient(135deg, var(--rit-public-red), var(--rit-public-red-dark)); box-shadow: 0 10px 24px rgba(185,28,28,.22); }
.rit-btn-full { width: 100%; }
.rit-hero-trust { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 25px; color: rgba(255,255,255,.78); font-size: .82rem; }
.rit-hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.rit-hero-trust i { color: #fca5a5; }
.rit-hero-panel { border: 1px solid rgba(255,255,255,.2); border-radius: 24px; background: rgba(255,255,255,.11); box-shadow: 0 28px 80px rgba(41, 7, 7, .3); padding: 20px; backdrop-filter: blur(18px); }
.rit-hero-panel-head { display: flex; align-items: center; gap: 12px; padding: 2px 3px 17px; }
.rit-live-dot { width: 11px; height: 11px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 7px rgba(74,222,128,.12); }
.rit-hero-panel-head div { flex: 1; }
.rit-hero-panel-head small, .rit-hero-panel-head strong { display: block; }
.rit-hero-panel-head small { color: rgba(255,255,255,.58); font-size: .62rem; letter-spacing: .11em; }
.rit-hero-panel-head strong { margin-top: 2px; color: #fff; font-size: 1rem; }
.rit-hero-panel-head > i { color: #fecaca; font-size: 1.25rem; }
.rit-hero-ticket { border-radius: 17px; color: var(--rit-public-ink); background: #fff; padding: 19px; }
.rit-ticket-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; padding-bottom: 13px; border-bottom: 1px dashed #d0d5dd; }
.rit-ticket-top span { color: var(--rit-public-red); font-size: .68rem; font-weight: 800; letter-spacing: .09em; }
.rit-ticket-top strong { font-size: .83rem; }
.rit-ticket-line { display: flex; align-items: center; gap: 11px; padding: 10px 0; color: #344054; font-size: .82rem; }
.rit-ticket-line > i { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; color: var(--rit-public-red); background: #fef2f2; }
.rit-ticket-line span, .rit-ticket-line small { display: block; }
.rit-ticket-line small { margin-bottom: 1px; color: #98a2b3; font-size: .65rem; }
.rit-hero-panel-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 3px 1px; color: rgba(255,255,255,.72); font-size: .7rem; }
.rit-status-chip { border-radius: 999px; color: #bbf7d0; background: rgba(34,197,94,.13); font-weight: 800; padding: 5px 9px; }

.rit-home-metrics { position: relative; z-index: 3; margin-top: -34px; }
.rit-metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--rit-public-line); border-radius: 20px; background: #fff; box-shadow: var(--rit-public-shadow); }
.rit-metric-grid article { position: relative; padding: 25px 28px; }
.rit-metric-grid article + article::before { position: absolute; top: 24%; bottom: 24%; left: 0; width: 1px; content: ""; background: var(--rit-public-line); }
.rit-metric-grid strong, .rit-metric-grid span, .rit-metric-grid small { display: block; }
.rit-metric-grid strong { color: var(--rit-public-red); font-size: 1.75rem; line-height: 1; }
.rit-metric-grid span { margin-top: 9px; color: #344054; font-size: .87rem; font-weight: 750; }
.rit-metric-grid small { margin-top: 4px; color: #98a2b3; font-size: .7rem; }

.rit-home-section { padding: 92px 0; }
.rit-home-soft { background: #f7f9fc; }
.rit-about-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 90px; align-items: start; }
.rit-section-kicker { color: var(--rit-public-red); }
.rit-about-grid h2, .rit-section-heading h2, .rit-feedback-copy h2, .rit-home-cta h2 { margin: 13px 0 0; color: var(--rit-public-ink); font-size: clamp(2rem, 3.6vw, 3.15rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.15; }
.rit-about-copy p { color: #475467; font-size: .98rem; line-height: 1.9; }
.rit-about-copy p:last-child { margin-bottom: 0; }
.rit-section-heading { max-width: 760px; margin-bottom: 42px; }
.rit-section-heading > p { margin: 15px 0 0; color: var(--rit-public-muted); line-height: 1.75; }
.rit-section-heading-center { margin-right: auto; margin-left: auto; text-align: center; }
.rit-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.rit-feature-grid article { min-height: 225px; border: 1px solid #e5e9ef; border-radius: 18px; background: #fff; box-shadow: 0 10px 30px rgba(15,23,42,.045); padding: 25px; transition: .2s ease; }
.rit-feature-grid article:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15,23,42,.09); }
.rit-feature-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 14px; color: var(--rit-public-red); background: #fef2f2; font-size: 1.15rem; }
.rit-feature-grid h3 { margin: 20px 0 9px; color: var(--rit-public-ink); font-size: 1.05rem; font-weight: 800; }
.rit-feature-grid p { margin: 0; color: var(--rit-public-muted); font-size: .85rem; line-height: 1.75; }
.rit-flow-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.rit-flow-grid article { position: relative; min-height: 245px; overflow: hidden; border: 1px solid var(--rit-public-line); border-radius: 18px; background: #fff; padding: 23px; }
.rit-flow-grid article > span { position: absolute; top: 13px; right: 15px; color: #e5e7eb; font-size: 2.2rem; font-weight: 900; }
.rit-flow-grid article > i { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 13px; color: #fff; background: linear-gradient(135deg, var(--rit-public-red), var(--rit-public-red-dark)); box-shadow: 0 9px 20px rgba(185,28,28,.18); }
.rit-flow-grid h3 { margin: 24px 0 10px; font-size: 1rem; font-weight: 800; }
.rit-flow-grid p { margin: 0; color: var(--rit-public-muted); font-size: .79rem; line-height: 1.7; }
.rit-home-cta { color: #fff; background: linear-gradient(125deg, var(--rit-public-red-deep), var(--rit-public-red)); padding: 68px 0; }
.rit-home-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.rit-home-cta .rit-section-kicker { color: #fecaca; }
.rit-home-cta h2 { color: #fff; }
.rit-home-cta p { margin: 12px 0 0; color: rgba(255,255,255,.75); }
.rit-feedback-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(420px, 1.2fr); gap: 70px; align-items: center; }
.rit-feedback-copy > p { margin: 17px 0 25px; color: var(--rit-public-muted); line-height: 1.8; }
.rit-feedback-note { display: flex; gap: 13px; align-items: center; border: 1px solid #fecaca; border-radius: 15px; color: #7f1d1d; background: #fff7f7; padding: 16px; }
.rit-feedback-note > i { font-size: 1.4rem; }
.rit-feedback-note strong, .rit-feedback-note small { display: block; }
.rit-feedback-note small { margin-top: 3px; color: #9f4444; }
.rit-feedback-form-card { border: 1px solid var(--rit-public-line); border-radius: 20px; background: #fff; box-shadow: var(--rit-public-shadow); padding: 28px; }
.rit-feedback-form-card label { color: #344054; font-size: .82rem; font-weight: 700; }
.rit-feedback-form-card .form-control { min-height: 48px; border-color: #d0d5dd; border-radius: 11px; }
.rit-feedback-form-card textarea.form-control { min-height: 135px; }
.rit-feedback-form-card .form-control:focus { border-color: var(--rit-public-red); box-shadow: 0 0 0 .2rem rgba(185,28,28,.1); }

/* Complaint page conflict correction and polish */
.public-complaint-page { min-height: auto !important; color: var(--rit-public-ink); background: #f5f7fb !important; padding-top: 0 !important; }
.public-complaint-hero {
    position: relative;
    overflow: hidden;
    min-height: 0 !important;
    color: #fff !important;
    background:
        radial-gradient(circle at 85% 20%, rgba(255,255,255,.15), transparent 25%),
        linear-gradient(125deg, #5f1212 0%, #8f1919 45%, #b91c1c 100%) !important;
    padding: 58px 0 82px !important;
}
.public-complaint-hero::after { position: absolute; inset: 0; content: ""; opacity: .1; background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 22px 22px; }
.public-complaint-hero .container { position: relative; z-index: 2; }
.public-complaint-hero h1 { max-width: 760px; margin: 12px 0 14px; color: #fff !important; font-size: clamp(2.25rem, 4.7vw, 3.75rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.08; opacity: 1 !important; }
.public-complaint-hero p { max-width: 680px; margin: 0; color: rgba(255,255,255,.82) !important; font-size: 1rem; line-height: 1.75; opacity: 1 !important; }
.public-kicker { color: #fecaca !important; opacity: 1 !important; }
.privacy-card { border: 1px solid rgba(255,255,255,.22) !important; color: #fff; background: rgba(255,255,255,.1) !important; box-shadow: none !important; }
.privacy-card strong { color: #fff !important; }
.privacy-card span { color: rgba(255,255,255,.75) !important; }
.public-form-section { position: relative; z-index: 5; margin-top: -42px !important; padding-bottom: 70px !important; }
.complaint-form-card { border: 1px solid #e3e7ee !important; border-radius: 22px !important; box-shadow: var(--rit-public-shadow) !important; padding: 36px !important; }
.complaint-form-heading h2 { color: var(--rit-public-ink); font-size: 2rem; font-weight: 800; letter-spacing: -.025em; }
.complaint-type-card { min-height: 130px; }
.public-submit-row { border-top: 1px solid #eef1f5; padding-top: 25px; }

/* Footer */
.rit-site-footer { flex-shrink: 0; border-top: 1px solid #e4e7ec; color: #667085; background: #fff; padding: 32px 0 0; }
.rit-site-footer-main { display: flex; align-items: center; justify-content: space-between; gap: 35px; padding-bottom: 25px; }
.rit-site-footer-brand { display: flex; align-items: center; gap: 15px; }
.rit-site-footer-brand img { width: auto; max-width: 150px; height: 46px; object-fit: contain; }
.rit-site-footer-brand strong, .rit-site-footer-brand span { display: block; }
.rit-site-footer-brand strong { color: var(--rit-public-ink); }
.rit-site-footer-brand span { margin-top: 3px; font-size: .76rem; }
.rit-site-footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.rit-site-footer-links a { color: #475467; font-size: .8rem; font-weight: 650; text-decoration: none; }
.rit-site-footer-links a:hover { color: var(--rit-public-red); }
.rit-site-footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid #eaecf0; padding: 18px 0; font-size: .72rem; }
.rit-site-footer-bottom strong { color: var(--rit-public-red); }

@media (min-width: 992px) {
    .rit-home-menu.collapse { display: flex !important; }
}

@media (max-width: 1199px) {
    .rit-home-hero-grid { gap: 38px; }
    .rit-flow-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
    .rit-home-menu-toggle { display: inline-flex; }
    .rit-home-menu { position: absolute; top: calc(100% + 8px); right: 15px; left: 15px; flex-direction: column; align-items: stretch; gap: 4px; border: 1px solid var(--rit-public-line); border-radius: 15px; background: #fff; box-shadow: var(--rit-public-shadow); padding: 12px; }
    .rit-home-menu:not(.show):not(.collapsing) { display: none; }
    .rit-home-menu a { justify-content: flex-start; }
    .rit-home-menu .rit-nav-login { margin-left: 0; }
    .rit-home-hero { padding: 70px 0 84px; }
    .rit-home-hero-grid { grid-template-columns: 1fr; }
    .rit-hero-panel { max-width: 580px; }
    .rit-about-grid, .rit-feedback-layout { grid-template-columns: 1fr; gap: 35px; }
    .rit-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rit-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rit-metric-grid article:nth-child(3)::before { display: none; }
    .rit-home-cta-inner { align-items: flex-start; flex-direction: column; }
    .public-complaint-hero { padding: 45px 0 76px !important; }
}

@media (max-width: 767px) {
    .rit-home-nav-inner, .public-nav .container { min-height: 68px; }
    .rit-home-brand img, .public-brand img { max-width: 150px !important; height: 42px !important; }
    .rit-home-hero-copy h1 { font-size: 2.55rem; }
    .rit-home-section { padding: 68px 0; }
    .rit-feature-grid, .rit-flow-grid { grid-template-columns: 1fr; }
    .rit-flow-grid article { min-height: 0; }
    .rit-feedback-layout { grid-template-columns: 1fr; }
    .rit-site-footer-main, .rit-site-footer-bottom { align-items: flex-start; flex-direction: column; }
    .complaint-form-card { padding: 24px !important; }
    .complaint-form-heading { align-items: flex-start; gap: 15px; }
}

@media (max-width: 479px) {
    .rit-home-hero { padding: 55px 0 72px; }
    .rit-home-hero-copy h1 { font-size: 2.1rem; }
    .rit-home-hero-copy > p { font-size: .94rem; }
    .rit-hero-actions { flex-direction: column; }
    .rit-hero-actions .rit-btn { width: 100%; }
    .rit-metric-grid { grid-template-columns: 1fr; }
    .rit-metric-grid article + article::before { top: 0; right: 25px; bottom: auto; left: 25px; width: auto; height: 1px; }
    .rit-metric-grid article:nth-child(3)::before { display: block; }
    .rit-home-section { padding: 56px 0; }
    .rit-feature-grid article { min-height: 0; }
    .rit-feedback-form-card { padding: 21px; }
    .public-complaint-hero h1 { font-size: 2rem; }
    .public-complaint-hero { padding: 38px 0 70px !important; }
    .public-form-section { margin-top: -32px !important; }
    .complaint-form-card { padding: 19px !important; border-radius: 17px !important; }
}
