:root {
  --ink: #202321;
  --muted: #6b716d;
  --line: #e7e9e5;
  --paper: #ffffff;
  --canvas: #f6f7f4;
  --green: #227a5a;
  --green-dark: #195d44;
  --green-soft: #e9f4ee;
  --orange: #d97842;
  --orange-soft: #fff0e6;
  --shadow: 0 18px 55px rgba(36, 49, 41, .055);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--canvas);
  color: var(--ink);
  /* font-family: "Vazirmatn", Tahoma, sans-serif; */
  font-size: 15px;
  line-height: 1.85;
}

fieldset, label { 
    display:  block !important;
}
button, input { font: inherit; }
.page-container { max-width: 920px; }
.navbar { background: rgba(255,255,255,.78); border-bottom: 1px solid rgba(231,233,229,.8); }
.navbar-brand { color: var(--ink); font-size: 15px; }
.navbar-brand:hover { color: var(--green); }
.brand-mark {
  display: inline-grid; place-items: center; width: 39px; height: 34px;
  border-radius: 11px; background: var(--green); color: #fff; font-weight: 800;
  font-size: 13px; letter-spacing: -.7px; direction: ltr;
}
.brand-divider { color: #b6bcb7; margin: 0 3px; font-weight: 400; }
.nav-note { font-size: 14px; color: var(--muted); }
.hero-section {
  position: relative; overflow: hidden; margin: 28px 0 22px; padding: 44px 42px 39px;
  border-radius: 25px; background: #eaf3ec; border: 1px solid #deebe1;
}
.hero-section > *:not(.hero-orb) { position: relative; z-index: 1; }
.hero-kicker { display: inline-flex; align-items: center; gap: 9px; color: var(--green-dark); font-weight: 700; font-size: 14px; margin-bottom: 15px; }
.kicker-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 5px rgba(217,120,66,.12); }
h1 { max-width: 100%; margin: 0 0 12px; font-size: clamp(28px, 4.5vw, 33px); font-weight: 800; line-height: 1.55; letter-spacing: -.8px; }
h1 span { color: var(--green); position: relative; white-space: nowrap; }
h1 span::after { content: ""; position: absolute; right: 1px; left: 1px; bottom: 2px; height: 8px; background: #f3bf91; opacity: .65; z-index: -1; border-radius: 5px; transform: rotate(-1deg); }
.hero-copy { max-width: 640px; color: #59645d; margin-bottom: 21px; font-size: 16px; padding: 0; }
.hero-meta { font-size: 14px; color: #526057; }
.meta-icon { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: rgba(255,255,255,.8); color: var(--green); margin-left: 5px; font-weight: 700; }
.hero-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.orb-one { width: 245px; height: 245px; left: -65px; top: -112px; border: 1px solid rgba(34,122,90,.12); box-shadow: 0 0 0 25px rgba(255,255,255,.20), 0 0 0 55px rgba(255,255,255,.13); }
.orb-two { width: 140px; height: 140px; left: 74px; bottom: -108px; background: rgba(217,120,66,.10); }
.quiz-shell, .results-shell { background: var(--paper); border: 1px solid var(--line); border-radius: 23px; box-shadow: var(--shadow); padding: 34px; }
.quiz-topline { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.section-eyebrow { color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .2px; }
.section-title { font-size: 22px; font-weight: 800; margin: 0; letter-spacing: -.3px; }
.answered-pill { color: var(--muted); background: #f4f5f2; padding: 7px 12px; border-radius: 50px; font-size: 14px; white-space: nowrap; }
.answered-pill span { color: var(--green); font-size: 13px; font-weight: 800; }
.quiz-progress { height: 5px; margin: 20px 0 13px; background: #edf0ec; border-radius: 50px; }
.quiz-progress .progress-bar { background: var(--green); border-radius: 50px; transition: width .25s ease; }
.form-hint { color: var(--muted); font-size: 14px; margin-bottom: 25px; padding: 5px 0; }
.question-card { padding: 24px 0 25px; border-top: 1px solid var(--line); }
.question-heading { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 17px; }
.question-number { flex: 0 0 31px; height: 31px; border-radius: 10px; display: grid; place-items: center; color: var(--green); background: var(--green-soft); font-size: 14px; font-weight: 800; }
.question-title { font-size: 17px; line-height: 1.9; font-weight: bolder; margin: 0; padding-top: 1px; }
.options-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.option-label { position: relative; cursor: pointer; display: block; margin: 0; }
.option-label input { position: absolute; opacity: 0; pointer-events: none; }
.option-content {
  display: flex; align-items: flex-start; gap: 11px; min-height: 65px; height: 100%; padding: 13px 14px;
  background: #fff; border: 1px solid #e6e9e5; border-radius: 13px; color: #444b46;
  font-size: 14px; line-height: 1.8; transition: border-color .16s, background .16s, box-shadow .16s;
}
.option-radio { flex: 0 0 18px; height: 18px; display: inline-grid; place-items: center; margin-top: 2px; border: 1.5px solid #cbd1cb; border-radius: 50%; background: #fff; }
.option-label:hover .option-content { border-color: #9bbdac; background: #fbfdfb; }
.option-label input:checked + .option-content { border-color: var(--green); background: #f0f7f2; color: #214c39; box-shadow: 0 0 0 1px var(--green) inset; }
.option-label input:checked + .option-content .option-radio { border-color: var(--green); }
.option-label input:checked + .option-content .option-radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.option-label input:focus-visible + .option-content { outline: 3px solid rgba(34,122,90,.23); outline-offset: 2px; }
.question-card.has-error .question-heading { color: #f52708; }
.question-card.has-error .option-content { border-color: #ed4022; }
.submit-panel { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding-top: 23px; border-top: 1px solid var(--line); }
.submit-note { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 14px; }
.submit-spark { color: var(--green); font-size: 21px; }
.btn { border-radius: 11px; font-size: 14px; font-weight: 700; padding: 12px 18px; }
.btn-primary { --bs-btn-bg: var(--green); --bs-btn-border-color: var(--green); --bs-btn-hover-bg: var(--green-dark); --bs-btn-hover-border-color: var(--green-dark); --bs-btn-active-bg: var(--green-dark); --bs-btn-active-border-color: var(--green-dark); --bs-btn-disabled-bg: var(--green); --bs-btn-disabled-border-color: var(--green); }
.submit-btn { min-width: 220px; padding: 14px 20px; box-shadow: 0 8px 18px rgba(34,122,90,.15); }
.submit-btn span { margin-right: 12px; font-size: 16px; }
.alert { font-size: 14px; border-radius: 12px; }
.results-shell { padding: 38px; }
.results-header { text-align: center; max-width: 560px; margin: 0 auto 25px; }
.result-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 17px; background: var(--green-soft); color: var(--green); font-size: 26px; margin: 0 auto 15px; }
.results-intro { color: var(--muted); font-size: 14px; margin: 10px 0 0; }
.top-match-card { background: #eff7f1; border: 1px solid #d8eadc; padding: 21px 23px; border-radius: 17px; margin-bottom: 18px; }
.match-label { color: var(--green); font-size: 14px; font-weight: 800; margin-bottom: 5px; }
.match-title { font-size: 21px; font-weight: 800; margin-bottom: 7px; }
.match-desc { font-size: 16px; color: #536359; margin-bottom: 11px; padding: 1% 0; }
.match-next { font-size: 16px; font-weight: 700; color: #315342; }
.scores-card { border: 1px solid var(--line); border-radius: 17px; padding: 22px; }
.scores-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.scores-heading h3 { font-size: 15px; font-weight: 800; margin: 0; }
.scores-heading span { color: var(--muted); font-size: 11px; }
.score-item + .score-item { margin-top: 19px; }
.score-label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.score-name { display: flex; gap: 9px; align-items: center; font-size: 16px; font-weight: 700; }
.score-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--bar-color); }
.score-percent { direction: ltr; font-weight: 800; font-size: 13px; color: #3f4942; }
.score-track { height: 9px; border-radius: 99px; background: #eff1ee; overflow: hidden; }
.score-fill { height: 100%; width: 0; border-radius: 99px; background: var(--bar-color); transition: width .6s ease; }
.score-subtext { color: #003eff; font-size: 14px; margin-top: 6px; }
.results-disclaimer { background: #f7f7f4; color: #727873; border-radius: 12px; padding: 13px 15px; font-size: 16px; margin: 17px 0 22px; }
.results-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.btn-outline-secondary { --bs-btn-color: #535c55; --bs-btn-border-color: #d8ddd8; --bs-btn-hover-bg: #f0f2ef; --bs-btn-hover-color: #303831; --bs-btn-hover-border-color: #c5ccc5; }
.page-footer { display: flex; align-items: center; justify-content: center; gap: 10px; color: #8a918b; font-size: 14px; padding: 26px 0 4px; text-align: center; }
.footer-mark { font-size: 16px; font-weight: 800; letter-spacing: .8px; color: var(--green); direction: ltr; }
.d-none { display: none !important; }

.fw-normal {
    font-weight: 800 !important;
}

@media (max-width: 767.98px) {
  .hero-section { margin-top: 18px; padding: 31px 23px 27px; border-radius: 19px; }
  h1 { font-size: 30px; line-height: 1.6; }
  .hero-copy { font-size: 13px; }
  .hero-meta { gap: 10px 14px !important; }
  .quiz-shell, .results-shell { padding: 23px 19px; border-radius: 18px; }
  .section-title { font-size: 19px; }
  .question-card { padding: 20px 0; }
  .options-grid { grid-template-columns: 1fr; gap: 8px; }
  .option-content { min-height: auto; padding: 12px; }
  .submit-panel { align-items: stretch; flex-direction: column; }
  .submit-btn { width: 100%; }
  .top-match-card { padding: 18px; }
  .scores-card { padding: 17px; }
  .results-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }


        /* =========================
           Responsive
        ========================= */

          .hero { 
            padding: 100px 0;
            overflow: hidden;
        }

        @media (max-width: 991px) {

            .hero {
                padding: 70px 0;
            }

            .hero-image {
                margin-top: 50px;
            }

            .section {
                padding: 70px 0;
            }

        }


        
.career-guidance-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    margin: 24px 0px;
    border-radius: 20px;

    /* آبی با 30 درصد opacity */
    background-color: rgba(0, 0, 139, 0.10);

    color: #ffffff;
    direction: rtl;
    text-align: right;
}

.career-guidance-avatar {
    flex: 0 0 120px;
    width: 120px;
}

.career-guidance-avatar img {
    display: block;
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.8);
}

.career-guidance-content {
    flex: 1;
    min-width: 0;
}

.career-guidance-content p {
    margin: 0;
    font-size: 17px;
    font-weight: 500;
    line-height: 2;
    color: #1b0303;
}

.career-guidance-content a {
    color: #0d0dff;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    font-weight: 800;
}

.career-guidance-content a:hover {
    color: #000066;
}

/* Mobile */
@media (max-width: 576px) {
    .career-guidance-card {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        padding: 22px 18px;
    }

    .career-guidance-avatar {
        flex: 0 0 auto;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .career-guidance-avatar img {
        width: 100px;
        height: 100px;
    }

    .career-guidance-content p {
        font-size: 16px;
        line-height: 1.9;
    }
}

