:root {
  --bg: #08162f;
  --panel: rgba(255, 255, 255, 0.88);
  --panel-strong: rgba(255, 255, 255, 0.96);
  --text: #12233b;
  --muted: #5f6f87;
  --line: rgba(18, 35, 59, 0.1);
  --blue: #2f8df6;
  --blue-dark: #1f67c1;
  --gold: #f4c95d;
  --green: #0f9d6a;
  --danger: #d14545;
  --shadow: 0 25px 70px rgba(11, 28, 58, 0.22);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: linear-gradient(180deg, #08162f 0%, #0f2448 26%, #132f5e 62%, #edf4ff 100%);
  color: var(--text);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.wrap { width: min(1220px, calc(100% - 28px)); margin: 0 auto; }
.hidden-block { display: none !important; }
.muted { color: var(--muted); }

.bg-layer,
.grid-overlay,
.glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -3;
}
/* ═══════════════════════════════════
   ANTI-COPY / PRIVACY
   ═══════════════════════════════════ */
html { user-select: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; -webkit-touch-callout: none; }
input, textarea, select { user-select: text; -webkit-user-select: text; -moz-user-select: text; -ms-user-select: text; }
img { -webkit-user-drag: none; user-drag: none; pointer-events: none; }

.char-counter { display: block; margin-top: 4px; font-size: 0.75rem; color: var(--muted); text-align: right; }
.char-counter.warn { color: #e67e22; }
.char-counter.danger { color: #e74c3c; }

.bg-layer {
  background:
    radial-gradient(circle at 8% 16%, rgba(255, 208, 96, 0.18), transparent 18%),
    radial-gradient(circle at 88% 12%, rgba(47, 141, 246, 0.28), transparent 22%),
    radial-gradient(circle at 52% 42%, rgba(28, 111, 222, 0.18), transparent 28%),
    radial-gradient(circle at 65% 78%, rgba(244, 201, 93, 0.14), transparent 26%);
}
.grid-overlay {
  z-index: -2;
  opacity: .55;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.95) 0%, rgba(0,0,0,.45) 60%, rgba(0,0,0,0) 100%);
}
.glow {
  z-index: -1;
  filter: blur(40px);
}
.glow-1 {
  width: 380px;
  height: 380px;
  top: 100px;
  right: -80px;
  background: radial-gradient(circle, rgba(47, 141, 246, .34) 0%, rgba(47, 141, 246, .10) 56%, transparent 80%);
}
.glow-2 {
  width: 360px;
  height: 360px;
  left: -70px;
  top: 620px;
  background: radial-gradient(circle, rgba(244, 201, 93, .22) 0%, rgba(18, 135, 255, .09) 54%, transparent 82%);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0 10px;
}
.brand-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 45px rgba(0,0,0,.14);
  border: 1px solid rgba(255,255,255,.16);
  color: #fff;
}
.brand-logo, .footer-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255,255,255,.95);
  padding: 4px;
}
.brand-title, .footer-title { font-weight: 800; font-size: 1.28rem; }
.brand-sub, .footer-sub { color: rgba(255,255,255,.76); font-size: .92rem; }
.nav-links {
  display: flex;
  gap: 24px;
  color: rgba(255,255,255,.84);
  font-weight: 600;
}
.nav-links a:hover { color: #fff; }

.main-shell { padding: 10px 0 40px; }
.hero-card,
.panel,
.modal-card {
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.5);
}
.hero-card {
  padding: 38px 36px;
  background: linear-gradient(145deg, rgba(255,255,255,.96) 0%, rgba(240,246,255,.92) 58%, rgba(255,248,226,.94) 100%);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(244, 201, 93, .22);
  color: #876104;
  font-weight: 800;
  font-size: .85rem;
}
.eyebrow.blue { background: rgba(47, 141, 246, .12); color: var(--blue-dark); }
.hero-card h1 {
  margin: 14px 0 12px;
  font-size: clamp(2rem, 5vw, 3.55rem);
  line-height: 1.02;
}
.hero-card p { color: var(--muted); line-height: 1.75; font-size: 1.02rem; }
.layout-grid { display: block; }
.panel { padding: 32px; }
.form-panel { background: linear-gradient(180deg, #fff, #fafcff); }
.contact-line { color: #32455f; margin-bottom: 8px; }
.section-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.section-top h2 { margin: 10px 0 0; font-size: 2rem; }
.save-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 16px;
  font-weight: 700;
  background: rgba(15,157,106,.12);
  color: var(--green);
}
.form-grid {
  display: grid;
  gap: 16px;
}
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.field.full { grid-column: 1 / -1; }
.field span {
  font-weight: 700;
  color: #223654;
}
.field small {
  color: var(--muted);
  line-height: 1.55;
}
input[type="text"],
input[type="url"],
input[type="file"],
textarea {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  padding: 15px 16px;
  color: var(--text);
  outline: none;
  transition: .2s ease;
}
select {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel-strong) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath fill='%235f6f87' d='M1 1l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center;
  padding: 15px 40px 15px 16px;
  color: var(--text);
  outline: none;
  transition: .2s ease;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  font-weight: 500;
}
select:hover {
  border-color: rgba(47,141,246,.35);
  background-color: #fff;
}
select option {
  padding: 12px;
  font-weight: 400;
}
select option:first-child {
  color: var(--muted);
  font-style: italic;
}
input:focus,
select:focus,
textarea:focus {
  border-color: rgba(47,141,246,.52);
  box-shadow: 0 0 0 4px rgba(47,141,246,.12);
}
textarea { resize: vertical; min-height: 120px; }
.radio-group { display: flex; flex-wrap: wrap; gap: 12px; }
.radio-group.vertical { flex-direction: column; }
.radio-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fafcff;
}
.inline-input { margin-top: 12px; }
.consent-wrap {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}
.consent-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
}
.submit-note { color: var(--muted); max-width: 520px; line-height: 1.65; }
.success-message {
  text-align: center;
  padding: 24px;
  margin-top: 24px;
  border-radius: 18px;
  background: rgba(15,157,106,.08);
  border: 1px solid rgba(15,157,106,.2);
  color: var(--green);
  font-weight: 700;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.success-message-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 900;
  flex-shrink: 0;
}
.btn {
  border: 0;
  border-radius: 999px;
  padding: 14px 24px;
  font-weight: 800;
  cursor: pointer;
  transition: .22s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--blue), #61afff);
  color: #fff;
  box-shadow: 0 16px 35px rgba(47,141,246,.28);
}
.btn-light {
  background: #f4f7fb;
  color: #24436a;
}
.footer {
  margin-top: 28px;
  padding: 34px 0 28px;
  background: rgba(8, 22, 47, .84);
  color: rgba(255,255,255,.92);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .9fr .8fr;
  gap: 22px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.footer-text,
.footer .contact-line,
.social-list a,
.footer-sub { color: rgba(255,255,255,.75); }
.social-list { display: grid; gap: 10px; }
.social-list a:hover { color: #fff; }
.modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 12, 27, .54);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 20;
}
.modal-card {
  width: min(560px, 100%);
  padding: 28px;
  background: #fff;
}
.modal-card h3 { margin: 0 0 12px; font-size: 1.55rem; }
.modal-card p { color: var(--muted); line-height: 1.65; }
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
@media (max-width: 1080px) {
  .hero-card { padding: 28px 24px; }
  .footer-grid,
  .form-grid.two { grid-template-columns: 1fr; }
  .submit-row,
  .section-top,
  .topbar { flex-direction: column; align-items: stretch; }
  .nav-links { justify-content: center; }
}

@media (max-width: 760px) {
  .wrap { width: min(100% - 18px, 100%); }
  .hero-card, .panel { padding: 22px; }
  .brand-pill { border-radius: 22px; }
  .nav-links { flex-wrap: wrap; gap: 14px; }
  .brand-title, .footer-title { font-size: 1.1rem; }
}


.loading-overlay {
  background: rgba(8, 22, 47, 0.48);
  backdrop-filter: blur(6px);
}
.loading-card {
  text-align: center;
  max-width: 440px;
}
.loading-spinner {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 4px solid rgba(47, 141, 246, 0.18);
  border-top-color: var(--blue);
  animation: spin 0.85s linear infinite;
}
.success-screen-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 18px 8px 6px;
}
.success-screen-icon {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(15,157,106,.12);
  color: var(--green);
  font-size: 2.4rem;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(15,157,106,.16);
}
.success-screen-body h3 {
  margin: 0;
  font-size: 1.7rem;
}
.success-screen-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  max-width: 560px;
}
.success-screen-actions {
  margin-top: 8px;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Oltin Qanot HR manager selection */
.hero-note {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(47, 141, 246, .16);
  background: rgba(47, 141, 246, .07);
  color: #2c4668;
  line-height: 1.65;
  font-weight: 600;
}
.requirements-card {
  margin-top: 22px;
  padding: 30px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.94);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.5);
}
.requirement-head h2 {
  margin: 10px 0 20px;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
}
.requirements-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.requirement-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid var(--line);
  color: #2b405f;
  line-height: 1.6;
}
.requirement-item b {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 12px;
  background: rgba(47,141,246,.11);
  color: var(--blue-dark);
  font-size: .82rem;
}
#form-section { margin-top: 22px; }
.section-description {
  color: var(--muted);
  margin: 8px 0 0;
  line-height: 1.65;
  font-size: .95rem;
  max-width: 760px;
}
.form-section-title {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 18px;
  padding: 18px 0 6px;
  border-top: 1px solid var(--line);
}
.form-section-title:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.form-section-title > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), #65b4ff);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 9px 24px rgba(47,141,246,.2);
}
.form-section-title h3 { margin: 1px 0 5px; font-size: 1.35rem; }
.form-section-title p { margin: 0; color: var(--muted); line-height: 1.55; }
.plan-title > span { background: linear-gradient(135deg, #b98a18, var(--gold)); color: #473200; }
.plan-title h3 { color: #72520c; }
.input-inline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.input-inline input { flex: 1; min-width: 160px; }
.age-display { font-weight: 700; color: var(--blue-dark); white-space: nowrap; }
.screening-field {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(47,141,246,.16);
  background: rgba(47,141,246,.04);
}
.highlight-field {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(244,201,93,.33);
  background: linear-gradient(180deg, rgba(255,251,236,.84), rgba(255,255,255,.98));
}
.highlight-field > span { color: #6d5214; }
.consent-line {
  gap: 14px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #f6fff9;
  align-items: flex-start;
}
.consent-line input {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  accent-color: var(--green);
  cursor: pointer;
  flex: 0 0 auto;
}
.btn:disabled { opacity: .66; cursor: wait; transform: none; }

@media (max-width: 860px) {
  .requirements-grid { grid-template-columns: 1fr; }
  .requirements-card { padding: 22px; }
}
@media (max-width: 520px) {
  .hero-card h1 { font-size: 2rem; }
  .hero-card, .panel, .requirements-card { border-radius: 22px; }
  .hero-card, .panel, .requirements-card { padding: 18px; }
  .form-section-title { gap: 11px; }
  .form-section-title > span { width: 38px; height: 38px; flex-basis: 38px; }
  .radio-group { flex-direction: column; }
  .radio-group label { width: 100%; }
}

/* Prompt Engineering application additions */
.project-format { margin: 24px 0; }
.section-heading { margin: 0 0 18px; padding: 4px 2px; }
.section-heading h2 { margin: 10px 0 8px; font-size: clamp(1.8rem, 4vw, 2.35rem); }
.section-heading p { margin: 0; color: var(--muted); line-height: 1.65; }
.timeline-grid { display: grid; grid-template-columns: .9fr 1.5fr .9fr; gap: 14px; }
.timeline-item { background: rgba(255,255,255,.92); border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: 0 14px 34px rgba(7,27,61,.08); }
.timeline-item .day { display: inline-block; font-weight: 800; color: var(--blue-dark); background: rgba(47,141,246,.11); border-radius: 999px; padding: 7px 11px; font-size: .82rem; }
.timeline-item h3 { margin: 14px 0 8px; font-size: 1.18rem; }
.timeline-item p { margin: 0; color: var(--muted); line-height: 1.6; }
.timeline-item.lesson { border-color: rgba(47,141,246,.28); }
.timeline-item.award { border-color: rgba(217,165,25,.28); }
.role-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-top: 18px; }
.role-card { border: 1px solid var(--line); background: #fbfdff; border-radius: 22px; padding: 24px; }
.role-index { font-size: .82rem; font-weight: 800; color: var(--blue-dark); margin-bottom: 14px; }
.role-card h3 { margin: 0 0 10px; font-size: 1.22rem; }
.role-card p { color: var(--muted); line-height: 1.6; margin: 0 0 14px; }
.role-card ul { margin: 0; padding-left: 19px; color: #30445f; line-height: 1.7; }
.requirement-note { margin-top: 18px; padding: 16px 18px; border-left: 4px solid var(--blue); background: rgba(47,141,246,.075); border-radius: 12px; color: #30445f; line-height: 1.65; }
.choice-block { margin: 4px 0 28px; padding: 20px; border: 1px solid var(--line); border-radius: 22px; background: #f8fbff; }
.choice-title { font-weight: 800; margin-bottom: 14px; color: #213654; }
.applicant-choice { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.choice-card { position: relative; display: flex; align-items: center; gap: 13px; border: 1px solid var(--line); border-radius: 18px; padding: 16px; background: #fff; cursor: pointer; transition: .2s ease; }
.choice-card:hover { border-color: rgba(47,141,246,.48); transform: translateY(-1px); }
.choice-card:has(input:checked) { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47,141,246,.09); }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-mark { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: rgba(47,141,246,.11); color: var(--blue-dark); font-weight: 800; flex: 0 0 auto; }
.choice-card b { display: block; margin-bottom: 4px; }
.choice-card small { display: block; color: var(--muted); line-height: 1.45; }
.check-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.check-grid label { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fafcff; }
.conditional-field.is-hidden { display: none !important; }

@media (max-width: 820px) {
  .timeline-grid, .role-grid, .applicant-choice, .check-grid { grid-template-columns: 1fr; }
  .timeline-item { padding: 18px; }
  .choice-block { padding: 14px; }
}

/* Realistic image-generation focus */
.focus-section {
  margin: 24px 0;
  padding: 30px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.94);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.5);
}
.focus-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 12px;
  margin-top: 18px;
}
.focus-item {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg,#fff,#f8fbff);
}
.focus-item > b {
  display: inline-flex;
  color: var(--blue-dark);
  font-size: .78rem;
  letter-spacing: .08em;
  margin-bottom: 12px;
}
.focus-item h3 { margin: 0 0 8px; font-size: 1.02rem; line-height: 1.3; }
.focus-item p { margin: 0; color: var(--muted); line-height: 1.58; font-size: .92rem; }
.focus-note {
  margin-top: 16px;
  padding: 14px 16px;
  border-left: 4px solid var(--gold);
  border-radius: 12px;
  background: rgba(244,201,93,.10);
  color: #4d4d40;
  line-height: 1.65;
}
@media (max-width: 1050px) { .focus-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 620px) {
  .focus-section { padding: 18px; border-radius: 22px; }
  .focus-grid { grid-template-columns: 1fr; }
}

/* Contrast fix: project format heading sits directly on the dark page background */
.project-format > .section-heading h2 {
  color: #ffffff;
}
.project-format > .section-heading p {
  color: rgba(255,255,255,.78);
}
.project-format > .section-heading .eyebrow.blue {
  color: #bfe0ff;
  background: rgba(47,141,246,.18);
  border-color: rgba(151,205,255,.18);
}
