/* ==========================================================
   Fact Forces - shared styles
   Palette from the logo: teal, navy, small red accent
   ========================================================== */

:root {
    --teal: #0f7c86;
    --teal-dark: #0a5c64;
    --teal-soft: #e6f4f5;
    --navy: #16324a;
    --text: #33475b;
    --muted: #6b7f92;
    --line: #d9e4ea;
    --bg: #f3f8fa;
    --red: #e03a3e;
    --ok: #1f8f5f;
    --warn: #b7791f;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: linear-gradient(135deg, #eaf5f6 0%, #f7fafc 55%, #eef3f8 100%);
    min-height: 100vh;
    line-height: 1.5;
}

a { color: var(--teal-dark); }
img { max-width: 100%; }
:focus-visible { outline: 3px solid rgba(15, 124, 134, .4); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn, .button {
    display: inline-block;
    padding: 12px 22px;
    font: inherit;
    font-weight: 600;
    color: #fff;
    background: var(--teal);
    border: 1px solid var(--teal);
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.btn:hover, .button:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.btn { width: 100%; margin-top: 8px; }
.button.small { padding: 8px 16px; font-size: .9rem; }
.button.outline, .btn.ghost { background: transparent; color: var(--teal-dark); border-color: var(--line); }
.button.outline:hover, .btn.ghost:hover { background: var(--teal-soft); border-color: var(--teal); }
.btn.ghost { margin-top: 0; }
.row { display: flex; gap: 12px; margin-top: 14px; }

/* ---------- Header / navigation ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.navbar {
    max-width: 1080px; margin: 0 auto; padding: 12px 20px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo img { height: 42px; width: auto; display: block; }
.academy-button { display: inline-flex; align-items: center; justify-content: center; padding: 4px 8px; background: #fff; border-color: var(--navy); }
.academy-button img { height: 34px; width: auto; display: block; }
.academy-button:hover { background: var(--teal-soft); border-color: var(--teal); }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a:not(.button) { color: var(--navy); text-decoration: none; font-weight: 500; }
.nav-links a:not(.button):hover { color: var(--teal); }
.nav-toggle {
    display: none; background: none; border: 1px solid var(--line); border-radius: 8px;
    padding: 8px 12px; font: inherit; color: var(--navy); cursor: pointer;
}

/* ---------- Home page ---------- */
.hero { padding: 84px 20px 72px; text-align: center; background: linear-gradient(180deg, #e3f2f4 0%, rgba(227, 242, 244, 0) 100%); }
.hero-inner { max-width: 760px; margin: 0 auto; }
.hero h1 { color: var(--navy); font-size: 2.6rem; line-height: 1.15; margin-bottom: 18px; }
.hero p { font-size: 1.1rem; color: var(--muted); margin: 0 auto 30px; max-width: 58ch; }
.hero-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

.section { max-width: 1080px; margin: 0 auto; padding: 56px 20px; }
.section.alt { text-align: center; }
.section-title { color: var(--navy); text-align: center; font-size: 1.6rem; margin-bottom: 28px; }
.section-note { color: var(--muted); margin-top: 18px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
    background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--teal);
    border-radius: 12px; padding: 30px 32px; box-shadow: 0 12px 36px rgba(22, 50, 74, .08);
}
.features .card { padding: 26px; box-shadow: 0 6px 18px rgba(22, 50, 74, .06); }
.features .card h3 { color: var(--navy); margin: 12px 0 8px; }
.features .card p { color: var(--muted); font-size: .95rem; }
.step-no {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 50%; background: var(--teal-soft);
    color: var(--teal-dark); font-weight: 700;
}
.features .card:first-child .step-no { background: #fdecec; color: var(--red); }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.chips span {
    padding: 10px 20px; background: #fff; border: 1px solid var(--line);
    border-radius: 999px; color: var(--navy); font-weight: 600;
}

.site-footer { text-align: center; padding: 28px 20px; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); background: #fff; }

/* ---------- Login / register layout ---------- */
.page {
    max-width: 1080px; margin: 0 auto; padding: 32px 20px; min-height: 100vh;
    display: grid; grid-template-columns: 5fr 7fr; gap: 32px; align-items: center;
}
.brand { padding: 8px 8px 8px 0; }
.brand img { width: 240px; height: auto; display: block; margin-bottom: 28px; }
.brand h2 { color: var(--navy); font-size: 1.9rem; line-height: 1.25; margin-bottom: 14px; }
.brand p { margin-bottom: 22px; line-height: 1.65; color: var(--muted); max-width: 40ch; }
.points { list-style: none; display: grid; gap: 12px; }
.points li { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; }
.points li::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--teal); }
.points li:first-child::before { background: var(--red); }

.page .card { padding: 34px 36px; }
.card h1 { color: var(--navy); font-size: 1.55rem; margin-bottom: 4px; }
.sub { margin-bottom: 22px; color: var(--muted); font-size: .95rem; }

.steps { display: flex; gap: 8px; margin-bottom: 22px; }
.steps span { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.steps span.on { background: var(--teal); }

/* ---------- Forms ---------- */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.full { grid-column: 1 / -1; }

label, .lbl { display: block; font-size: .87rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.req { color: var(--red); }
.opt { color: var(--muted); font-weight: 400; }

input[type=text], input[type=email], input[type=tel], input[type=password], select {
    width: 100%; padding: 11px 13px; font: inherit; color: var(--navy);
    background: #fbfdfe; border: 1px solid var(--line); border-radius: 8px;
    transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15, 124, 134, .15); background: #fff; }
.has-error input, .has-error select { border-color: var(--red); }
.err { color: var(--red); font-size: .82rem; margin-top: 5px; }

.pw { position: relative; }
.pw button {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    background: none; border: 0; color: var(--teal-dark); font-size: .8rem; font-weight: 600; cursor: pointer; padding: 6px;
}

.rules { list-style: none; margin-top: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; font-size: .8rem; color: var(--muted); }
.rules li::before { content: "○ "; }
.rules li.ok { color: var(--ok); }
.rules li.ok::before { content: "● "; }

.radios { display: flex; gap: 12px; }
.radios label {
    flex: 1; display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 13px;
    border: 1px solid var(--line); border-radius: 8px; font-weight: 500; cursor: pointer; background: #fbfdfe;
}
.radios input:checked + span { color: var(--teal-dark); font-weight: 700; }
.radios label:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); }
#companyWrap[hidden] { display: none; }

.otp { text-align: center; font-size: 1.7rem !important; letter-spacing: .5em; font-weight: 700; padding: 14px !important; }

.alert { padding: 12px 14px; border-radius: 8px; font-size: .9rem; margin-bottom: 18px; }
.alert.bad { background: #fdecec; color: #a12327; border: 1px solid #f5c6c8; }
.alert.good { background: #e8f6ef; color: #166b47; border: 1px solid #bfe5d1; }

.foot { margin-top: 20px; text-align: center; font-size: .9rem; color: var(--muted); }
.foot a { font-weight: 600; text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* ---------- Dashboard ---------- */
.dash { max-width: 1080px; margin: 0 auto; padding: 32px 20px 56px; }
.dash-hero {
    display: flex; align-items: center; gap: 20px; padding: 28px 30px; margin-bottom: 24px;
    background: linear-gradient(120deg, #dff0f2 0%, #eef6f8 100%);
    border: 1px solid var(--line); border-left: 5px solid var(--teal); border-radius: 12px;
}
.dash-hero h1 { color: var(--navy); font-size: 1.6rem; margin-bottom: 4px; }
.dash-hero p { color: var(--muted); }
.avatar {
    flex: none; width: 60px; height: 60px; border-radius: 50%; background: var(--teal); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700;
}
.dash-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 24px; align-items: start; }
.panel {
    background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 26px 28px;
    box-shadow: 0 8px 24px rgba(22, 50, 74, .06);
}
.panel h2 { color: var(--navy); font-size: 1.15rem; margin-bottom: 14px; }
.muted { color: var(--muted); margin-bottom: 12px; }
.info > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.info > div:last-child { border-bottom: 0; }
.info dt { color: var(--muted); font-size: .9rem; }
.info dd { color: var(--navy); font-weight: 600; text-align: right; overflow-wrap: anywhere; }

.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; vertical-align: middle; }
.badge.ok { background: #e8f6ef; color: var(--ok); }
.badge.bad { background: #fdecec; color: #a12327; }
.badge.wait { background: #fdf3e0; color: var(--warn); }

.connect-button { margin-top: 18px; }
.connect-button.loading { opacity: .7; pointer-events: none; }
.notice { margin-top: 16px; padding: 12px 14px; background: #fdf3e0; color: #7a4f10; border-radius: 8px; font-size: .9rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .page { grid-template-columns: 1fr; padding: 20px 14px; gap: 20px; min-height: 0; }
    .brand { text-align: center; }
    .brand img { margin: 0 auto 16px; width: 190px; }
    .brand h2, .brand p, .points { display: none; }
    .page .card { padding: 26px 20px; }
    .features, .dash-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2rem; }
}
@media (max-width: 720px) {
    .site-header .nav-toggle { display: block; }
    .site-header .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; padding: 16px 20px; gap: 14px; }
    .site-header .nav-links.open { display: flex; }
    /* The home header keeps its links visible at every width (no Menu button). */
    .home-header .nav-toggle { display: none; }
    .home-header .nav-links { display: flex; }
}
@media (max-width: 520px) {
    .grid, .rules { grid-template-columns: 1fr; }
    .radios { flex-direction: column; }
    .dash-hero { flex-direction: column; text-align: center; }
}


/* ==========================================================
   Home page (index.php)
   ========================================================== */

/* Header above the hero: solid background, links left and right,
   logo centred. The bar uses the hero's dark navy so it reads as one
   continuous block with the hero below it. A flex layout keeps the
   logo in the middle of the navbar at every width (no Menu button);
   on small screens the links stack in rows. */
.home-header {
    position: sticky; top: 0; z-index: 20;
    background: var(--navy); border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.home-bar {
    max-width: 1400px; margin: 0 auto; padding: 18px 32px;
    display: flex; align-items: center; gap: 20px;
}
.home-header .nav-links { flex: 1; gap: 26px; min-width: 0; flex-wrap: nowrap; }
.home-header .nav-links a:not(.button) { white-space: nowrap; }
.home-header .nav-links.hl { justify-content: flex-start; }
.home-header .nav-links.hr { justify-content: flex-end; }
.home-header .nav-links a:not(.button) { color: #fff; text-transform: uppercase; letter-spacing: .09em; font-size: .85rem; font-weight: 500; }
.home-header .nav-links a:not(.button):hover { color: #bfeaee; }
.home-header .nav-links a.active { font-weight: 800; }
.home-logo {
    flex: none; background: #fff; padding: 8px 22px;
    border-radius: 2px; box-shadow: 0 4px 16px rgba(0, 0, 0, .18);
}
.home-logo img { height: 56px; display: block; }
.home-header .button.light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.home-header .button.light:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* Hero: put photos at assets/images/hero.jpg, hero-2.jpg, hero-3.jpg.
   Slides crossfade automatically (JS) and can be driven with arrows/dots. */
.home-hero { position: relative; min-height: 92vh; overflow: hidden; }
@media (max-height: 700px) {
    .home-hero { min-height: 100vh; }
    .hero-slide { padding: 75px 20px 70px; }
}
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide {
    display: flex; align-items: center; justify-content: center;
    text-align: center; color: #fff; padding: 105px 20px 90px;
    background:
        linear-gradient(rgba(8, 38, 52, .6), rgba(8, 38, 52, .74)),
        var(--hero-img, none),
        linear-gradient(135deg, #0f7c86 0%, #16324a 100%);
    background-size: cover; background-position: center;
    opacity: 0; pointer-events: none;
    transform: translateX(calc(var(--dir, 1) * 44px));
    transition: opacity .6s ease, transform .6s ease;
}
.hero-slide.on { opacity: 1; z-index: 1; pointer-events: auto; transform: translateX(0); }
.hero-slide.out { opacity: 0; transform: translateX(calc(var(--dir, 1) * -44px)); }
.hero-slide-inner { max-width: 900px; margin: 0 auto; }
.hero-kicker {
    display: inline-block; margin-bottom: 20px; padding: 7px 16px;
    text-transform: uppercase; letter-spacing: .16em; font-size: .8rem; font-weight: 700;
    color: #fff; background: rgba(15, 124, 134, .92); border-radius: 999px;
}
.hero-slide.on .hero-slide-inner > * { animation: hero-up .85s cubic-bezier(.2, .7, .3, 1) both; }
.hero-slide.on .hero-slide-inner .lead { animation-delay: .12s; }
.hero-slide.on .hero-slide-inner .cta { animation-delay: .24s; }
@keyframes hero-up { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.home-hero h1 { font-size: clamp(2.3rem, 5.2vw, 4.2rem); font-weight: 800; line-height: 1.1; max-width: 15ch; margin: 0 auto; text-shadow: 0 2px 14px rgba(0, 0, 0, .35); }
.home-hero .lead { font-size: 1.2rem; font-weight: 600; max-width: 56ch; margin: 24px auto 36px; line-height: 1.6; text-shadow: 0 1px 8px rgba(0, 0, 0, .4); }
.cta {
    display: inline-block; background: #fff; color: var(--navy); text-decoration: none;
    text-transform: uppercase; letter-spacing: .09em; font-weight: 700; font-size: .95rem;
    padding: 17px 36px; border-radius: 4px; transition: background .15s, color .15s;
}
.cta:hover { background: var(--teal); color: #fff; }
.hero-dots { display: flex; justify-content: center; gap: 12px; margin-top: 30px; z-index: 5; }
.hero-dots button {
    width: 11px; height: 11px; border: 0; border-radius: 50%; cursor: pointer;
    background: rgba(255, 255, 255, .45); transition: background .15s, transform .15s; padding: 0;
}
.hero-dots button.on { background: #fff; transform: scale(1.25); }
.hero-scroll {
    position: absolute; right: 22px; bottom: 24px; z-index: 5;
    color: #fff; font-size: 1.3rem; text-decoration: none; opacity: .8;
    animation: hero-bounce 2s ease-in-out infinite;
}
.hero-scroll:hover { opacity: 1; }
@keyframes hero-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* Mission */
.mission { background: #fff; text-align: center; padding: 64px 20px; }
.mission h2 { color: #1d2b38; font-weight: 400; font-size: 1.7rem; margin-bottom: 18px; }
.mission p { color: #66727e; font-size: 1.1rem; line-height: 1.8; max-width: 62ch; margin: 0 auto; }

/* Shared section headings */
h2.big { color: #7a97a8; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; text-align: center; line-height: 1.15; }
h2.big.small { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.rule { width: 76px; height: 3px; background: #cfd8de; margin: 22px auto 40px; }

/* Explore cards */
.explore { background: #f4f6f7; padding: 72px 0 52px; }
.cards-track {
    --pad: max(20px, calc((100vw - 1100px) / 2));
    display: flex; gap: 36px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 0 var(--pad) 18px; scroll-padding-left: var(--pad);
    /* No visible scroll bar: the cards advance automatically (JS) and the
       dots jump to a card, so the horizontal scrollbar is hidden. */
    scrollbar-width: none;
}
.cards-track::-webkit-scrollbar { display: none; }
.tile {
    position: relative; flex: 0 0 min(340px, 82vw); height: 400px; scroll-snap-align: start;
    display: flex; align-items: flex-end; color: #fff; border-radius: 2px; overflow: hidden;
    background-image: var(--tile-img, none), linear-gradient(160deg, #3f6a77 0%, #16324a 100%);
    background-size: cover; background-position: center;
}
.tile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(12, 22, 48, .9) 100%); }
.tile > div { position: relative; padding: 24px; }
.tile h3 { font-size: 1.1rem; margin-bottom: 6px; }
.tile p { font-size: 1.02rem; line-height: 1.6; }

.dots { display: flex; justify-content: center; gap: 12px; margin-top: 18px; }
.dots button { box-sizing: content-box; width: 36px; height: 3px; padding: 8px 0; border: 0; background: #c6d0d6; background-clip: content-box; cursor: pointer; }
.dots button.on { background-color: var(--navy); }

/* Who we serve */
.serve { background: #fff; padding: 72px 20px; text-align: center; border-top: 1px solid var(--line); }
.serve-grid {
    max-width: 1100px; margin: 0 auto; display: grid;
    grid-template-columns: repeat(3, 1fr); gap: 26px;
}
.serve-card {
    background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
    text-align: left; box-shadow: 0 8px 24px rgba(22, 50, 74, .06);
    transition: transform .25s ease, box-shadow .25s ease;
}
.serve-card:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(22, 50, 74, .14); }
.serve-card img { width: 100%; height: 200px; object-fit: cover; display: block; }
.serve-card h3 { color: var(--navy); font-size: 1.08rem; margin: 20px 20px 8px; }
.serve-card p { color: var(--muted); margin: 0 20px 24px; font-size: .95rem; line-height: 1.65; }

/* Scroll reveal (only when JS is available) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; padding: 70px 20px 40px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; padding: 4px 20px; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--navy); padding: 14px 0; }
.faq details[open] { border-color: var(--teal); }
.faq details p { color: var(--muted); padding: 0 0 16px; }

/* Contact */
.contact { background: #fff; text-align: center; padding: 72px 20px 48px; }
.contact .write { font-size: 1.5rem; color: #1d2b38; margin-bottom: 26px; }
.contact-alert { max-width: 760px; margin: 0 auto 18px; text-align: left; }
.contact-form { max-width: 760px; margin: 0 auto; text-align: left; display: grid; gap: 16px; }
.contact-form input[type=text], .contact-form input[type=email], .contact-form textarea {
    width: 100%; padding: 18px 20px; font: inherit; color: var(--navy);
    background: #fff; border: 1px solid var(--line); border-radius: 6px;
}
.contact-form textarea { resize: vertical; min-height: 170px; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15, 124, 134, .15); }
.trap { position: absolute !important; left: -9999px; height: 0; opacity: 0; }
.check { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 400; color: #66727e; font-size: 1rem; margin: 6px 0 0; }
.check input { width: 20px; height: 20px; accent-color: var(--teal); }
.send {
    justify-self: center; margin-top: 6px; padding: 15px 44px; background: var(--navy); color: #fff;
    border: 0; border-radius: 6px; font: inherit; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; cursor: pointer;
}
.send:hover { background: var(--teal-dark); }
.queries { margin-top: 56px; color: #1d2b38; font-weight: 400; font-size: 1.6rem; }
.queries-note { color: #66727e; margin-top: 8px; }

@media (max-width: 1280px) {
    .home-bar { padding: 16px 22px; gap: 14px; }
    .home-header .nav-links { gap: 16px; }
    .home-header .nav-links a:not(.button) { font-size: .78rem; letter-spacing: .06em; }
    .home-logo { padding: 6px 16px; }
    .home-logo img { height: 48px; }
    .hero-slide { padding-top: 95px; }
}

@media (max-width: 860px) {
    .home-bar { flex-wrap: wrap; justify-content: center; row-gap: 10px; padding: 14px 16px; }
    .home-logo { flex: none; margin-bottom: 4px; }
    .home-header .nav-links { flex: 1 1 100%; justify-content: center; gap: 14px; }
    .home-header .nav-links.hl, .home-header .nav-links.hr { justify-content: center; }
}

@media (max-width: 860px) {
    .serve-grid { grid-template-columns: 1fr; max-width: 480px; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide, .hero-scroll, .hero-slide.on .hero-slide-inner > * { transition: none; animation: none; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
}


/* ==========================================================
   Profile (profile.php) and dashboard profile widgets
   ========================================================== */
.pf-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.pf-top h1 { color: var(--navy); font-size: 1.6rem; margin-bottom: 4px; }
.pf-top .muted { margin-bottom: 0; }

.stepper { list-style: none; display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 12px; margin-bottom: 14px; }
.stepper a {
    display: flex; align-items: center; gap: 8px; padding: 9px 14px; white-space: nowrap; text-decoration: none;
    background: #fff; border: 1px solid var(--line); border-radius: 999px; color: var(--navy); font-size: .88rem; font-weight: 600;
}
.stepper i {
    display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%;
    background: var(--teal-soft); color: var(--teal-dark); font-style: normal; font-size: .8rem;
}
.stepper li.cur a { background: var(--teal); border-color: var(--teal); color: #fff; }
.stepper li.cur i { background: rgba(255, 255, 255, .25); color: #fff; }
.stepper li.done i { background: var(--ok); color: #fff; }

.pf-sec { margin-bottom: 20px; }
.pf-sec .grid { margin-top: 6px; }
.fld[hidden] { display: none; }
.fld input[type=date], .fld input[type=number], .fld textarea, .fld input[type=file] {
    width: 100%; padding: 11px 13px; font: inherit; color: var(--navy); background: #fbfdfe;
    border: 1px solid var(--line); border-radius: 8px;
}
.fld textarea { resize: vertical; }
.fld input[readonly] { background: #eef3f5; color: var(--muted); }
.fld input[type=file] { padding: 9px; }
.filenote { font-size: .82rem; color: var(--muted); margin-top: 5px; }
.errlist { margin: 6px 0 0 18px; }

.chips-in { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input, .pills input { position: absolute; opacity: 0; pointer-events: none; }
.chip span, .pills span {
    display: inline-block; padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px;
    background: #fbfdfe; font-size: .86rem; cursor: pointer; color: var(--navy);
}
.chip label, .pills label { position: relative; margin: 0; font-weight: 500; }
.chip input:checked + span, .pills input:checked + span { background: var(--teal); border-color: var(--teal); color: #fff; }
.chip input:focus-visible + span, .pills input:focus-visible + span { outline: 3px solid rgba(15, 124, 134, .4); }
.pills { display: flex; gap: 8px; }
.check2 { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--text); margin: 0; }
.check2 input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--teal); flex: none; }

.repeat-row { border: 1px solid var(--line); border-radius: 10px; padding: 18px; margin-bottom: 14px; background: #fcfeff; }
.rm-row { margin-top: 12px; background: none; border: 0; color: var(--red); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.pf-actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; margin: 4px 0 8px; }
.badge.grey { background: #eef1f4; color: var(--muted); }

.strength { display: flex; align-items: center; gap: 26px; margin-bottom: 14px; flex-wrap: wrap; }
.ring {
    flex: none; width: 110px; height: 110px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: conic-gradient(var(--teal) calc(var(--p) * 1%), var(--line) 0);
    position: relative;
}
.ring::before { content: ""; position: absolute; inset: 10px; background: #fff; border-radius: 50%; }
.ring b { position: relative; color: var(--navy); font-size: 1.4rem; }
.bars { flex: 1; min-width: 260px; display: grid; gap: 10px; }
.barrow { display: grid; grid-template-columns: 170px 1fr 42px; gap: 12px; align-items: center; text-decoration: none; color: var(--navy); font-size: .9rem; }
.barrow em { font-style: normal; font-weight: 700; text-align: right; }
.bar { height: 8px; background: var(--line); border-radius: 8px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--teal); }

.steplist { list-style: none; }
.steplist a { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--navy); font-size: .92rem; }
.steplist li:last-child a { border-bottom: 0; }
.steplist em { font-style: normal; font-weight: 700; color: var(--muted); }
.steplist em.okc { color: var(--ok); }
img.avatar { object-fit: cover; }

@media (max-width: 520px) {
    .barrow { grid-template-columns: 1fr 42px; }
    .barrow .bar { grid-column: 1 / -1; order: 3; }
    .pf-top { flex-direction: column; }
}
