/* =====================================================================
   WHITE COLLAR TOURS — details.css
   ===================================================================== */

/* ---------- DETAIL HERO ---------- */
.d-hero {
  position: relative; padding: 150px 0 70px; color: #fff; overflow: hidden;
  background: var(--dhbg, linear-gradient(160deg, #173a5c, #0a1726));
}
.d-hero::before { content:""; position:absolute; inset:0; background: linear-gradient(120deg, rgba(8,15,28,.82) 0%, rgba(8,15,28,.45) 55%, rgba(8,15,28,.7) 100%); }
.d-hero::after { content:""; position:absolute; inset:0; background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1.4px); background-size: 24px 24px; mask-image: radial-gradient(100% 100% at 80% 0%, #000, transparent 70%); }
.d-hero-inner { position: relative; z-index: 2; }

.breadcrumb { display: flex; align-items: center; gap: 9px; font-size: 0.86rem; color: rgba(255,255,255,.6); margin-bottom: 26px; flex-wrap: wrap; }
.breadcrumb a { transition: color .3s; } .breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb svg { width: 15px; height: 15px; opacity: .6; }
.breadcrumb .cur { color: var(--gold-light); font-weight: 600; }

.d-hero-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 50px; align-items: center; }
.d-flag { font-size: 4.4rem; line-height: 1; margin-bottom: 18px; filter: drop-shadow(0 6px 16px rgba(0,0,0,.5)); display: inline-block; animation: floaty 6s var(--ease-soft) infinite; }
.d-hero h1 { font-family: var(--display); font-weight: 600; font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.02; letter-spacing: -0.02em; margin-bottom: 14px; }
.d-hero .d-tagline { font-size: 1.12rem; color: rgba(255,255,255,.8); max-width: 520px; margin-bottom: 28px; line-height: 1.65; }
.d-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* quick facts card */
.d-facts {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-l); padding: 28px; backdrop-filter: blur(14px); box-shadow: 0 30px 60px rgba(0,0,0,.35);
}
.d-facts h4 { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 20px; font-weight: 700; }
.d-fact { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.d-fact:last-child { border-bottom: none; }
.d-fact .df-ico { width: 42px; height: 42px; border-radius: 12px; flex: none; display: grid; place-items: center; background: rgba(201,162,75,.16); color: var(--gold-light); }
.d-fact .df-ico svg { width: 20px; height: 20px; }
.d-fact .df-txt small { display: block; font-size: 0.74rem; color: rgba(255,255,255,.55); letter-spacing: .04em; text-transform: uppercase; }
.d-fact .df-txt strong { font-size: 1.05rem; color: #fff; font-weight: 700; }

/* ---------- LAYOUT BODY ---------- */
.d-body { padding: 80px 0 100px; background: var(--paper); }
.d-layout { display: grid; grid-template-columns: 1fr 360px; gap: 50px; align-items: start; }
.d-main { min-width: 0; }
.d-block { margin-bottom: 56px; }
.d-block:last-child { margin-bottom: 0; }
.d-block > .eyebrow { margin-bottom: 14px; }
.d-block h2 { font-family: var(--display); font-weight: 600; font-size: clamp(1.7rem, 3.5vw, 2.4rem); color: var(--navy); line-height: 1.1; margin-bottom: 18px; }
.d-block > p { color: var(--slate); font-size: 1.04rem; line-height: 1.8; }
.d-block > p + p { margin-top: 16px; }

/* highlights chips */
.d-highlights { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.d-chip {
  display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line); font-weight: 600; font-size: 0.92rem; color: var(--navy);
  box-shadow: var(--sh-sm); transition: transform .35s var(--ease), border-color .35s;
}
.d-chip:hover { transform: translateY(-3px); border-color: var(--gold); }
.d-chip span.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

/* visa types */
.visa-types { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.visa-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 26px;
  transition: transform .45s var(--ease), box-shadow .45s, border-color .45s; position: relative; overflow: hidden;
}
.visa-card:hover { transform: translateY(-5px); box-shadow: var(--sh-md); border-color: transparent; }
.visa-card .vc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.visa-card .vc-ico { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(150deg, var(--navy), var(--navy-soft)); color: var(--gold-light); }
.visa-card .vc-ico svg { width: 24px; height: 24px; }
.visa-card .vc-tag { font-size: 0.72rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: rgba(201,162,75,.14); color: var(--gold-deep); }
.visa-card h3 { font-size: 1.2rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.visa-card p { font-size: 0.92rem; color: var(--slate); line-height: 1.6; }

/* requirements / documents list */
.d-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.d-list { display: flex; flex-direction: column; gap: 13px; margin-top: 8px; }
.d-list li { display: flex; gap: 13px; align-items: flex-start; font-size: 0.98rem; color: var(--ink); line-height: 1.55; }
.d-list li .li-ico { width: 26px; height: 26px; border-radius: 8px; flex: none; display: grid; place-items: center; background: rgba(201,162,75,.16); color: var(--gold-deep); margin-top: 1px; }
.d-list li .li-ico svg { width: 15px; height: 15px; }
.d-list.docs li .li-ico { background: rgba(20,49,80,.1); color: var(--navy); }

/* process timeline */
.timeline { position: relative; margin-top: 12px; padding-left: 8px; }
.tl-item { display: flex; gap: 20px; padding-bottom: 28px; position: relative; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content:""; position:absolute; left: 19px; top: 42px; bottom: -4px; width: 2px; background: var(--line-strong); }
.tl-item:last-child::before { display: none; }
.tl-dot { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--navy); color: var(--gold-light); font-weight: 700; font-family: var(--display); position: relative; z-index: 1; }
.tl-content h4 { font-size: 1.08rem; font-weight: 700; color: var(--navy); margin-bottom: 5px; }
.tl-content p { font-size: 0.94rem; color: var(--slate); line-height: 1.6; }

/* FAQ accordion */
.faq-list { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .3s, box-shadow .3s; }
.faq-item.open { border-color: var(--gold); box-shadow: var(--sh-sm); }
.faq-q { width: 100%; text-align: left; padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 600; font-size: 1.02rem; color: var(--navy); }
.faq-q .fq-toggle { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; background: rgba(201,162,75,.14); color: var(--gold-deep); transition: transform .4s var(--ease), background .3s; }
.faq-q .fq-toggle svg { width: 17px; height: 17px; }
.faq-item.open .fq-toggle { transform: rotate(45deg); background: var(--gold); color: var(--navy); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
.faq-a-inner { padding: 0 22px 22px; color: var(--slate); font-size: 0.98rem; line-height: 1.7; }

/* ---------- STICKY SIDEBAR FORM ---------- */
.d-aside { position: sticky; top: 96px; }
.aside-form {
  background: var(--white); border-radius: var(--radius-l); overflow: hidden;
  box-shadow: var(--sh-lg); border: 1px solid var(--line);
}
/* header band with country flag */
.aside-form .af-head {
  position: relative; padding: 24px 26px 22px; overflow: hidden;
  background: linear-gradient(150deg, #143150, #0a1726 82%); color: #fff;
}
.aside-form .af-head::before { content:""; position:absolute; top:-46px; right:-46px; width:170px; height:170px; border-radius:50%; background: radial-gradient(circle, rgba(201,162,75,.26), transparent 70%); }
.af-top { display: flex; align-items: center; gap: 13px; position: relative; }
.af-flag { width: 48px; height: 48px; border-radius: 13px; flex: none; display: grid; place-items: center; font-size: 1.75rem; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); filter: drop-shadow(0 3px 6px rgba(0,0,0,.3)); }
.af-head h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.15; }
.af-head h3 small { display: block; font-weight: 500; font-size: 0.76rem; color: var(--gold-light); letter-spacing: .04em; margin-top: 3px; }
.af-perks { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; position: relative; }
.af-perk { display: flex; align-items: center; gap: 6px; font-size: 0.76rem; color: rgba(255,255,255,.85); font-weight: 500; }
.af-perk svg { width: 15px; height: 15px; color: var(--gold-light); }
/* body */
.aside-form .af-body { padding: 24px 26px 26px; }
.aside-form .field label { color: var(--slate); }
.aside-form .field input, .aside-form .field select, .aside-form .field textarea {
  background: var(--paper); border: 1.5px solid var(--line); color: var(--ink);
}
.aside-form .field input::placeholder, .aside-form .field textarea::placeholder { color: var(--slate-2); }
.aside-form .field input:focus, .aside-form .field select:focus, .aside-form .field textarea:focus { border-color: var(--gold); background: var(--white); }
.aside-form .field select {  }
.aside-form .field select option { color: var(--ink); }
.aside-form .btn { margin-top: 6px; }
.aside-trust { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-size: 0.8rem; color: var(--slate); }
.aside-trust svg { width: 16px; height: 16px; color: var(--gold-deep); }
.aside-call { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.88rem; color: var(--slate); }
.aside-call svg { width: 16px; height: 16px; color: var(--gold-deep); }
.aside-call a { color: var(--navy); font-weight: 700; }
.aside-call a:hover { color: var(--gold-deep); }
/* success state inside aside */
.aside-form .af-body .form-success { padding: 14px 4px 6px; }

/* ---------- RELATED ---------- */
.related-section { background: var(--cream); padding: 90px 0; }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.rel-card {
  position: relative; border-radius: var(--radius-l); overflow: hidden; min-height: 220px;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; color: #fff;
  box-shadow: var(--sh-sm); transition: transform .45s var(--ease), box-shadow .45s; isolation: isolate;
}
.rel-card::before { content:""; position:absolute; inset:0; z-index:-2; background: var(--cardbg, #142d49); transition: transform .7s var(--ease); }
.rel-card::after { content:""; position:absolute; inset:0; z-index:-1; background: linear-gradient(to top, rgba(8,15,28,.86), transparent 70%); }
.rel-card:hover { transform: translateY(-6px); box-shadow: var(--sh-md); }
.rel-card:hover::before { transform: scale(1.08); }
.rel-card .rel-flag { font-size: 1.9rem; position: absolute; top: 18px; left: 18px; filter: drop-shadow(0 3px 8px rgba(0,0,0,.4)); }
.rel-card h3 { font-family: var(--display); font-weight: 600; font-size: 1.35rem; }
.rel-card small { font-size: 0.8rem; color: rgba(255,255,255,.72); display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.rel-card small svg { width: 14px; height: 14px; color: var(--gold-light); }

/* loading / not-found */
.d-loading, .d-error { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 140px 20px 80px; }
.d-error h2 { font-family: var(--display); font-size: 2.4rem; color: var(--navy); margin-bottom: 12px; }
.d-error p { color: var(--slate); margin-bottom: 24px; }
.spinner { width: 52px; height: 52px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--gold); animation: spin-slow .9s linear infinite; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .d-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .d-facts { max-width: 460px; }
  .d-layout { grid-template-columns: 1fr; gap: 40px; }
  .d-aside { position: static; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .visa-types { grid-template-columns: 1fr; }
  .d-cols { grid-template-columns: 1fr; gap: 30px; }
  .related-grid { grid-template-columns: 1fr; }
  .d-body { padding: 56px 0 90px; }
  .related-section { padding: 64px 0; }
}
