@font-face {
  font-family: 'Samir Persian';
  src: url('persian.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Samir Persian';
  src: url('persian-bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
.csff {
  --ink: #142e24;
  --muted: #4b6356;
  --cream: #f4f2e9;
  --line: #d9ded4;
  --lime: #d5ed9a;
  --gold: #f4cf83;
  color: var(--ink);
  background: var(--cream);
  font-family: 'Samir Persian', Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.9;
  max-inline-size: none;
  text-align: start;
  isolation: isolate;
}
.csff *, .csff *::before, .csff *::after { box-sizing: border-box; }
.csff [hidden] { display: none !important; }
.csff :is(h1,h2,h3,p,dl,dd) { margin: 0; }
.csff :is(h1,h2,h3) { font-family: inherit; color: inherit; font-weight: 700; }
.csff a { color: inherit; }
.csff :focus-visible { outline: 3px solid #a05215; outline-offset: 3px; }
.csff-shell { width: min(100%, 1216px); margin-inline: auto; padding: 22px clamp(16px, 4vw, 54px) 62px; }
.csff-masthead { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-block-end: 19px; }
.csff-masthead a { font-size: .87em; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.csff-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.06em; }
.csff-brand-mark { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 1px solid #adc19f; background: #e4eddb; border-radius: 50%; font: 16px Tahoma,sans-serif; }
.csff-hero { position: relative; display: grid; grid-template-columns: 1fr 1.02fr; align-items: center; overflow: hidden; border-radius: 27px; background: #132a21; color: #fff9eb; min-height: 370px; }
.csff-hero-copy { position: relative; z-index: 1; padding: clamp(29px, 5.2vw, 68px); }
.csff .csff-title { font-size: clamp(57px, 7.6vw, 112px); letter-spacing: -0.07em; line-height: 1.22; }
.csff .csff-tagline { font-size: clamp(20px, 2.45vw, 34px); margin: 10px 0 12px; font-weight: 700; line-height: 1.6; }
.csff-tagline em { color: var(--gold); font-style: normal; }
.csff .csff-intro { color: #edf1e3; max-width: 38em; line-height: 2.05; }
.csff-hero .csff-hero-photo { width: 100%; height: 100%; min-height: 370px; margin: 0; display: block; align-self: stretch; border-radius: 0; object-fit: cover; object-position: center; }
.csff-tool { position: relative; width: calc(100% - 52px); margin: -26px auto 48px; padding: clamp(20px, 3.3vw, 41px); border: 1px solid var(--line); border-radius: 21px; background: #fffdf6; box-shadow: 0 13px 28px #1d281119; z-index: 2; }
.csff h2 { font-size: clamp(24px, 3vw, 37px); line-height: 1.55; letter-spacing: -.04em; }
.csff-tool-label { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; column-gap: 18px; margin-block-end: 19px; }
.csff-tool-label p, .csff-help { color: var(--muted); font-size: .86em; }
.csff-tabs { display: flex; width: max-content; max-width: 100%; gap: 5px; padding: 4px; border: 1px solid var(--line); background: #edf0e7; border-radius: 12px; margin-block-end: 17px; }
.csff :is(button,input,select) { font: inherit; box-shadow: none; text-transform: none; }
.csff button { cursor: pointer; }
.csff-tabs button { margin: 0; font-size: .88em; line-height: 1.6; padding: 9px 15px; border: 1px solid transparent; border-radius: 8px; color: var(--ink); background: transparent; white-space: normal; }
.csff-tabs button[aria-pressed="true"] { background: var(--ink); color: #fffdf6; border-color: var(--ink); font-weight: 700; }
.csff-form { display: grid; grid-template-columns: minmax(0,1fr) max-content; align-items: end; gap: 8px 12px; margin: 0; }
.csff-birth { grid-template-columns: repeat(2,minmax(0,1fr)) max-content; }
.csff-date-field label { display: block; font-size: .86em; font-weight: 700; margin-block-end: 4px; color: var(--ink); }
.csff-date-field :is(input,select) { display: block; width: 100%; height: 50px; color: var(--ink); background: #fff; border: 1px solid #b3c2b4; border-radius: 9px; padding: 5px 12px; margin: 0; }
.csff-date-field input { text-align: right; }
.csff-date-field select:disabled { opacity: .65; }
.csff .csff-primary { display: flex; justify-content: space-between; gap: 19px; align-items: center; min-height: 50px; padding: 6px 18px; border: 1px solid #b3cf78; border-radius: 9px; background: var(--lime); color: #142e24; font-weight: 700; }
.csff .csff-primary:hover { background: #c4e485; }
.csff-help { grid-column: 1 / -1; }
.csff .csff-error { color: #8d2318; margin-block-start: 10px; font-size: .92em; }
.csff :is(input,select)[aria-invalid="true"] { border-color: #a02c1f; }
.csff-result { border: 1px solid #c6d3ba; margin-block-start: 23px; border-radius: 15px; padding: clamp(17px,3vw,34px); background: #edf3e5; scroll-margin: 12px; }
.csff-result-top { display: flex; justify-content: space-between; align-items: start; gap: 10px; flex-wrap: wrap; }
.csff .csff-result-title { font-size: clamp(28px,4vw,45px); line-height: 1.55; }
.csff .csff-result-date { font-size: .87em; color: var(--muted); }
.csff-result-category { background: #fffdf5; border: 1px solid #c6d3ba; border-radius: 20px; font-size: .82em; padding: 2px 12px; }
.csff .csff-result-message { border-inline-start: 3px solid #8ca64f; margin: 13px 0 16px; padding-inline-start: 12px; font-weight: 700; }
.csff-result-details { display: grid; gap: 10px 20px; grid-template-columns: 1fr 1fr; }
.csff-result-details dt { font-weight: 700; }
.csff .csff-copy { margin-top: 15px; padding: 4px 13px; background: #fffdf6; color: var(--ink); border: 1px solid #93a890; border-radius: 8px; }
.csff .csff-status { white-space: pre-line; overflow-wrap: anywhere; margin-block-start: 8px; font-size: .91em; }
.csff-guide, .csff-faq { max-width: 880px; margin-inline: auto; }
.csff-guide { scroll-margin-block-start: 20px; }
.csff-guide > p, .csff-guide article p { color: #385044; margin-block-start: 7px; }
.csff-guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin: 24px 0 29px; }
.csff-guide-grid article { border: 1px solid var(--line); border-radius: 15px; padding: 20px; background: #f9f8f0; }
.csff-guide-grid h3 { font-size: 1.2em; line-height: 1.55; }
.csff-related { display: flex; gap: 10px 22px; flex-wrap: wrap; margin-block-start: 15px; }
.csff-faq { margin-block-start: 37px; }
.csff-faq h2 { margin-block-end: 12px; }
.csff-faq details { border-bottom: 1px solid #cbd4c7; padding: 11px 4px; }
.csff-faq summary { cursor: pointer; font-weight: 700; }
.csff-faq details p { margin-block: 5px 2px; color: var(--muted); }
@media (max-width: 690px) {
  .csff-shell { padding-block-start: 15px; }
  .csff-masthead { margin-block-end: 13px; }
  .csff-hero { grid-template-columns: 1fr; min-height: 0; border-radius: 20px; }
  .csff-hero-copy { padding: 22px 25px 18px; }
  .csff-hero .csff-hero-photo { min-height: 0; height: clamp(145px, 42vw, 240px); object-position: center 48%; }
  .csff-tool { margin-block-start: 15px; margin-block-end: 33px; width: 100%; }
  .csff-form { grid-template-columns: minmax(0,1fr); }
  .csff-birth { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .csff-primary { grid-column: 1 / -1; }
  .csff-guide-grid, .csff-result-details { grid-template-columns: 1fr; }
}

.csff-menu { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-block-start: 15px; }
.csff-menu article { border-block-start: 2px solid #8ca64f; padding: 12px 2px 3px; }
.csff-menu h3 { font-size: 1.08em; }
.csff-guide-grid + h2, .csff-guide > p + h2 { margin-block-start: 27px; }
@media (max-width: 690px) {
  .csff-menu { grid-template-columns: 1fr; }
  .csff-tabs button { padding-inline: 11px; }
}
