/* Shared long-form pages: assessment, careers, and contact */
.info-page {
  background: #fbf7ed;
  color: #24332f;
}

.info-page .navbar {
  background: rgba(3, 33, 29, 0.96);
}

.info-hero {
  position: relative;
  overflow: hidden;
  padding: 170px 0 100px;
  color: #fffdf8;
  background:
    linear-gradient(115deg, rgba(3, 35, 31, .98), rgba(6, 67, 57, .92)),
    url("chain-pattern.png") center / 460px repeat;
}

.info-hero::after {
  content: "";
  position: absolute;
  width: 430px;
  height: 430px;
  right: -110px;
  bottom: -240px;
  border: 1px solid rgba(227, 170, 85, .26);
  border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(227, 170, 85, .05), 0 0 0 120px rgba(227, 170, 85, .03);
}

.info-hero .container {
  position: relative;
  z-index: 1;
  max-width: 1050px;
}

.join-team-page .info-hero .container,
.contact-page .info-hero .container {
  max-width: 1300px;
}

.info-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #e7ad4c;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.info-kicker::before,
.section-kicker::before {
  content: "";
  width: 30px;
  height: 1px;
  background: currentColor;
}

.info-hero h1 {
  max-width: 850px;
  margin: 22px 0 20px;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.7rem);
  line-height: 1.02;
}

.info-hero h1 span { color: #e7ad4c; }

.info-hero.compact-title h1 {
  max-width: none;
  font-size: clamp(2.5rem, 4.4vw, 4.2rem);
  line-height: 1.08;
}

.info-hero.compact-title h1 span {
  display: inline-block;
  white-space: nowrap;
}

.info-hero > .container > p {
  max-width: 790px;
  color: rgba(255, 255, 255, .76);
  font-size: 1.08rem;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 30px;
  color: rgba(255, 255, 255, .86);
  font-size: .88rem;
}

.trust-row span::before {
  content: "✦";
  margin-right: 8px;
  color: #e7ad4c;
}

.info-section { padding: 90px 0; }
.info-section.alt { background: #f4ecdd; }

.test-me-page main > .info-section > .container {
  width: 90%;
  max-width: 1600px;
  padding-right: 0;
  padding-left: 0;
}

.test-me-page .info-hero > .container {
  width: 100%;
  max-width: 1300px;
  padding-right: var(--container-px);
  padding-left: var(--container-px);
}

.test-me-page .info-hero,
.test-me-page main > .info-section {
  height: 90vh;
  min-height: 90vh;
}

.test-me-page .info-hero,
.test-me-page main > .info-section {
  display: flex;
  align-items: center;
}

.test-me-page main > .info-section {
  overflow-y: auto;
  padding-top: 5vh;
  padding-bottom: 5vh;
}

.test-me-page .info-hero::after {
  animation: testMeHalo 8s ease-in-out infinite;
}

.test-me-page .info-hero .info-kicker,
.test-me-page .info-hero h1,
.test-me-page .info-hero p {
  opacity: 0;
  animation: testMeHeroIn .8s cubic-bezier(.2, .8, .2, 1) forwards;
}

.test-me-page .info-hero h1 { animation-delay: .12s; }
.test-me-page .info-hero p { animation-delay: .26s; }

.test-me-page .info-hero h1 span {
  background: linear-gradient(90deg, #e7ad4c 20%, #ffe0a0 50%, #e7ad4c 80%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: testMeGoldShine 5s linear infinite;
}

.test-me-page .friendly-reveal .section-heading,
.test-me-page .friendly-reveal .process-card,
.test-me-page .friendly-reveal .form-wrap {
  opacity: 0;
  transform: translateY(28px);
}

.test-me-page .friendly-reveal.is-visible .section-heading,
.test-me-page .friendly-reveal.is-visible .process-card,
.test-me-page .friendly-reveal.is-visible .form-wrap {
  animation: testMeReveal .72s cubic-bezier(.2, .8, .2, 1) forwards;
}

.test-me-page .friendly-reveal.is-visible .process-card:nth-child(1) { animation-delay: .08s; }
.test-me-page .friendly-reveal.is-visible .process-card:nth-child(2) { animation-delay: .16s; }
.test-me-page .friendly-reveal.is-visible .process-card:nth-child(3) { animation-delay: .24s; }
.test-me-page .friendly-reveal.is-visible .process-card:nth-child(4) { animation-delay: .32s; }
.test-me-page .friendly-reveal.is-visible .form-wrap { animation-delay: .08s; }

.test-me-page .process-card {
  position: relative;
  overflow: hidden;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.test-me-page .process-card::after {
  content: "";
  position: absolute;
  inset: auto -40% -70% 20%;
  height: 120px;
  border-radius: 50%;
  background: rgba(231, 173, 76, .13);
  transform: rotate(-8deg);
  transition: transform .45s ease;
}

.test-me-page .process-card:hover {
  transform: translateY(-8px);
  border-color: rgba(193, 138, 57, .35);
  box-shadow: 0 22px 50px rgba(17, 55, 47, .12);
}

.test-me-page .process-card:hover::after { transform: translateY(-20px) rotate(-8deg); }
.test-me-page .process-card:hover .number { animation: testMeNumberPulse .65s ease; }

.test-me-page .form-wrap {
  transition: transform .35s ease, box-shadow .35s ease;
}

.test-me-page .form-wrap:focus-within {
  transform: translateY(-5px);
  box-shadow: 0 32px 90px rgba(17, 55, 47, .16);
}

@keyframes testMeHeroIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes testMeReveal {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes testMeHalo {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: .75; }
  50% { transform: translate3d(-28px, -18px, 0) scale(1.05); opacity: 1; }
}

@keyframes testMeGoldShine {
  to { background-position: 200% center; }
}

@keyframes testMeNumberPulse {
  50% { transform: scale(1.12); background: #0d6b5e; }
}

.info-section .section-heading {
  max-width: 750px;
  margin-bottom: 44px;
}

.info-section h2 {
  margin: 12px 0;
  color: #083e36;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.12;
}

.section-lead { color: #61706b; }

.process-grid,
.benefit-grid,
.position-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.process-card,
.benefit-card,
.position-card,
.contact-card {
  border: 1px solid rgba(8, 62, 54, .1);
  border-radius: 18px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 14px 40px rgba(17, 55, 47, .06);
}

.process-card,
.benefit-card,
.position-card { padding: 28px; }

.process-card .number {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 50%;
  background: #083e36;
  color: #e7ad4c;
  font-weight: 800;
}

.process-card h3,
.benefit-card h3,
.position-card h3,
.contact-card h3 {
  margin-bottom: 9px;
  color: #083e36;
  font-family: var(--font-display);
  font-size: 1.22rem;
}

.process-card p,
.benefit-card p,
.position-card p,
.contact-card p { color: #68746f; font-size: .92rem; }

.benefit-grid,
.position-grid { grid-template-columns: repeat(3, 1fr); }
.benefit-card .arabic { margin-bottom: 14px; color: #bb8537; font-family: var(--font-ar); font-weight: 700; }
.position-card .role-meta { display: block; margin-top: 18px; color: #aa7429; font-size: .78rem; font-weight: 700; }

.form-wrap {
  max-width: 980px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(8, 62, 54, .1);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 25px 80px rgba(17, 55, 47, .1);
}

.form-intro {
  padding: 38px 44px;
  color: #fff;
  background: #083e36;
}

.form-intro h2 { margin: 0 0 8px; color: #fff; font-size: 2.25rem; }
.form-intro p { color: rgba(255, 255, 255, .68); }
.long-form { padding: 8px 44px 44px; }

.form-part {
  padding: 38px 0;
  border-bottom: 1px solid #e5e8e6;
}

.form-part:last-of-type { border-bottom: 0; }

.part-heading {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  margin-bottom: 26px;
}

.part-heading span {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #f4e2bd;
  color: #875c20;
  font-weight: 800;
}

.part-heading h3 { color: #083e36; font-family: var(--font-display); font-size: 1.55rem; }
.part-heading p { color: #77827e; font-size: .87rem; }

.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.field { min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field > label, .field > legend { display: block; margin-bottom: 9px; color: #173f38; font-size: .9rem; font-weight: 700; }
.field fieldset { min-width: 0; border: 0; }
.field small { display: block; margin-top: 7px; color: #818b87; font-size: .76rem; }

.field input:not([type="radio"]):not([type="checkbox"]):not([type="file"]),
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #dbe2df;
  border-radius: 11px;
  background: #fbfcfb;
  color: #263b35;
  font: inherit;
  font-size: .9rem;
  outline: none;
  transition: .2s ease;
}

.field input:not([type="radio"]):not([type="checkbox"]):not([type="file"]),
.field select { min-height: 50px; padding: 0 14px; }
.field textarea { min-height: 130px; padding: 14px; resize: vertical; }
.field input[type="file"] { width: 100%; padding: 14px; border: 1px dashed #b9c9c4; border-radius: 11px; background: #f5f9f7; }

.field input:focus,
.field select:focus,
.field textarea:focus { border-color: #c69545; box-shadow: 0 0 0 4px rgba(198, 149, 69, .13); }

.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.choice-grid.one { grid-template-columns: 1fr; }
.choice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 13px;
  border: 1px solid #e1e6e4;
  border-radius: 10px;
  color: #4d5f59;
  cursor: pointer;
  font-size: .82rem;
  line-height: 1.45;
  transition: .2s ease;
}

.choice:hover { border-color: #c69545; background: #fdf9f0; }
.choice input { flex: 0 0 auto; margin-top: 3px; accent-color: #0d6b5e; }

.consent-box {
  margin: 20px 0;
  padding: 18px;
  border: 1px solid #e6d5b5;
  border-radius: 13px;
  background: #fdf9ef;
}

.submit-row { display: flex; gap: 18px; align-items: center; }
.submit-row .btn { min-height: 54px; padding: 15px 26px; }
.submit-row .btn:disabled { cursor: wait; opacity: .7; }
.form-status { min-height: 22px; margin: 12px 0 0; color: #63736d; font-size: .92rem; }
.form-status.error { color: #a33a32; }
.privacy-note { color: #89928f; font-size: .76rem; }

.form-success-panel {
  display: none;
  padding: 44px;
  text-align: center;
  border-radius: 18px;
  background: #edf8f4;
}

.form-success-panel.visible { display: block; }
.form-success-panel h3 { margin-bottom: 10px; color: #083e36; font-family: var(--font-display); font-size: 2rem; }
.form-success-panel p { max-width: 650px; margin: 0 auto 24px; color: #63736d; }
.success-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

.contact-grid { grid-template-columns: repeat(3, 1fr); }
.contact-card { padding: 30px; }
.contact-card.featured { color: #fff; background: #083e36; }
.contact-card.featured h3 { color: #fff; }
.contact-card.featured p { color: rgba(255,255,255,.66); }
.contact-detail { display: block; margin: 15px 0 22px; color: #c18a39; font-weight: 700; overflow-wrap: anywhere; }

.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; }
.faq-stack { display: grid; gap: 12px; }
.faq-item { padding: 22px; border: 1px solid rgba(8, 62, 54, .1); border-radius: 14px; background: rgba(255,255,255,.72); }
.faq-item h3 { margin-bottom: 7px; color: #083e36; font-size: 1rem; }
.faq-item p { color: #68746f; font-size: .86rem; }

.compact-form-section .container {
  width: 90%;
  max-width: 1600px;
  padding: 0;
}

.compact-form-section .form-wrap {
  width: 100%;
  max-width: none;
}

@media (min-width: 769px) {
  .compact-form-section { padding: 5vh 0; }
  .compact-form-section .form-intro { padding: 22px 32px; }
  .compact-form-section .form-intro h2 { font-size: 2rem; }
  .compact-form-section .long-form { padding: 0 32px 24px; }
  .compact-form-section .form-part { padding: 20px 0 16px; }
  .compact-form-section .field-grid { gap: 12px 20px; }
  .compact-form-section .field > label { margin-bottom: 5px; }
  .compact-form-section .field small { margin-top: 3px; }
  .compact-form-section .field input:not([type="radio"]):not([type="checkbox"]):not([type="file"]),
  .compact-form-section .field select { min-height: 44px; }
  .compact-form-section .field textarea { min-height: 82px; }
  .compact-form-section .consent-box { margin: 12px 0; padding: 10px 13px; }
  .compact-form-section .submit-row .btn { min-height: 48px; padding: 12px 24px; }
}

.bottom-cta {
  padding: 82px 0;
  color: #fff;
  text-align: center;
  background: #083e36;
}

.bottom-cta h2 { color: #fff; }
.bottom-cta p { margin: 0 auto 25px; color: rgba(255,255,255,.7); }
.bottom-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

@media (max-width: 1050px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .benefit-grid, .position-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-layout .faq-stack { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .info-hero { padding: 135px 0 70px; }
  .info-hero.compact-title h1 { font-size: clamp(2.25rem, 10vw, 3rem); }
  .info-hero.compact-title h1 span { white-space: normal; }
  .info-section { padding: 65px 0; }
  .test-me-page main > .info-section {
    display: block;
    height: auto;
    min-height: 0;
    overflow: visible;
    padding-top: 56px;
    padding-bottom: 56px;
  }
  .process-grid, .benefit-grid, .position-grid, .contact-grid, .field-grid, .choice-grid, .contact-layout .faq-stack { grid-template-columns: 1fr; }
  .form-intro, .long-form { padding-left: 20px; padding-right: 20px; }
  .form-intro h2 { font-size: 1.8rem; }
  .field.full { grid-column: auto; }
  .submit-row { align-items: stretch; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .test-me-page *,
  .test-me-page *::before,
  .test-me-page *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
