/* ============================================================
   TalentBridge — contact.css (self-contained)
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --teal: #1A5F5F;
  --teal-light: #238B8B;
  --teal-dark: #0E3D3D;
  --teal-soft: #E8F3F3;

  --ink: #0F1F1F;
  --ink-soft: #43595A;
  --line: #D6E4E4;
  --bg: #FFFFFF;
  --bg-alt: #F6FAFA;
  --accent: #E9B44C;
  --accent-ink: #3A2A08;
  --danger: #C0392B;
  --success: #2E7D5B;

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 8px 30px rgba(14, 61, 61, 0.08);
  --shadow-lg: 0 18px 50px rgba(14, 61, 61, 0.16);
  --maxw: 1140px;
  --gutter: 20px;
  --header-h: 68px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; }
h1, h2, h3, h4 { line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.05rem; font-weight: 700; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(40px, 6vw, 72px); }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
  white-space: nowrap;
  min-height: 44px;
  border: 2px solid transparent;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-lg { padding: 15px 28px; font-size: 1rem; }

.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 6px 18px rgba(26, 95, 95, 0.28);
}
.btn-primary:hover { background: var(--teal-dark); }
.btn-primary:disabled {
  background: var(--line);
  color: var(--ink-soft);
  box-shadow: none;
  cursor: not-allowed;
}

.btn-outline {
  background: transparent;
  color: var(--teal-dark);
  border-color: var(--teal);
}
.btn-outline:hover { background: var(--teal-soft); }

.btn-light {
  background: #fff;
  color: var(--teal-dark);
}
.btn-light:hover { background: var(--teal-soft); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--teal-dark);
}
.logo-mark {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--teal);
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}
.logo-text { letter-spacing: -0.02em; }

.logo-img {
  display: block;
  height: 55px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  border-radius: 10px;
  padding: 0 10px;
}
.nav-toggle span {
  display: block;
  height: 2.5px;
  width: 100%;
  background: var(--teal-dark);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.primary-nav { display: flex; align-items: center; gap: 24px; }
.nav-list { display: flex; align-items: center; gap: 6px; }

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--ink-soft);
  transition: color .15s, background .15s;
}
.nav-link:hover,
.nav-link.active { color: var(--teal-dark); background: var(--teal-soft); }

.has-dropdown { position: relative; }
.caret {
  display: inline-block;
  width: 7px; height: 7px;
  margin-left: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s;
}
.dropdown-toggle[aria-expanded="true"] .caret { transform: rotate(-135deg) translateY(-2px); }

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 230px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 2px;
}
.dropdown.open { display: flex; }
.dropdown a {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.dropdown a:hover { background: var(--teal-soft); color: var(--teal-dark); }

.nav-cta { display: inline-flex; }

/* ---------- Page hero ---------- */
.page-hero {
  background:
    radial-gradient(900px 420px at 85% -10%, var(--teal-soft) 0%, transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--bg-alt) 100%);
  padding-block: clamp(48px, 7vw, 88px) clamp(32px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
}
.page-hero-inner { max-width: 760px; }
.breadcrumb {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.breadcrumb a { color: var(--teal); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.page-hero-sub {
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  margin-top: 16px;
  max-width: 60ch;
}

/* ---------- Contact layout ---------- */
.contact-section { background: var(--bg); }
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}

/* ---------- Form ---------- */
.contact-form-wrap h2 { margin-bottom: 8px; }
.form-intro {
  color: var(--ink-soft);
  margin-bottom: 28px;
  font-size: 0.97rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Inquiry toggle */
.inquiry-toggle {
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.inquiry-toggle legend {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 8px;
  width: 100%;
}
.toggle-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.toggle-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.toggle-option:has(input:checked) {
  background: var(--teal-soft);
  border-color: var(--teal);
  color: var(--teal-dark);
}
.toggle-option:hover { border-color: var(--teal-light); }

/* Fields */
.field-row { display: flex; flex-direction: column; gap: 6px; }
.field-row.two-col {
  flex-direction: row;
  gap: 14px;
}
.field-row.two-col .field { flex: 1; }

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}
.req { color: var(--danger); }
.optional {
  font-weight: 400;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2343595A' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.field textarea {
  resize: vertical;
  min-height: 130px;
  font-family: inherit;
  line-height: 1.55;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal-light);
  box-shadow: 0 0 0 3px rgba(35, 139, 139, 0.15);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--danger);
}
.field-error {
  display: none;
  font-size: 0.78rem;
  color: var(--danger);
  font-weight: 600;
}
.field.has-error .field-error { display: block; }

/* Employer-only field visibility */
.field-row[data-for="employer"] { display: none; }
body.inquiry-employer .field-row[data-for="employer"] { display: flex; }

/* Form actions */
.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}
.form-actions .btn { min-width: 180px; }
.form-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.form-note a {
  color: var(--teal);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Inline success */
.form-success {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #eaf5ef;
  border: 1px solid #b9dfc8;
  border-left: 4px solid var(--success);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-top: 8px;
  animation: successIn .35s ease;
}
.form-success[hidden] { display: none; }
.form-success strong {
  display: block;
  color: var(--success);
  margin-bottom: 4px;
}
.form-success p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0;
}
.success-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.9rem;
}
@keyframes successIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Aside ---------- */
.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.aside-block {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.aside-block h3 {
  color: var(--teal-dark);
  margin-bottom: 10px;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.aside-text {
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 6px;
}
.aside-hint {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 4px;
}
.contact-link {
  color: var(--teal);
  font-weight: 700;
  border-bottom: 2px solid var(--teal-soft);
  transition: border-color .15s;
}
.contact-link:hover { border-color: var(--teal); }
.aside-btn {
  margin-top: 12px;
  width: 100%;
  justify-content: center;
  font-size: 0.88rem;
  padding: 10px 16px;
  min-height: 42px;
}

/* Map */
.map-block {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.map-block h3 {
  color: var(--teal-dark);
  margin-bottom: 14px;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.map-wrap {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}
.map-wrap iframe { display: block; width: 100%; }
.map-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal);
}
.map-link:hover { text-decoration: underline; }

/* ---------- Final CTA ---------- */
.cta-final {
  background: linear-gradient(135deg, var(--teal-light), var(--teal));
  color: #fff;
  text-align: center;
}
.cta-inner h2 { color: #fff; }
.cta-inner p { color: rgba(255,255,255,0.85); margin-top: 12px; }
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}
.cta-final .btn-primary { background: #fff; color: var(--teal-dark); box-shadow: none; }
.cta-final .btn-primary:hover { background: var(--teal-soft); }
.cta-final .btn-light { background: rgba(255,255,255,0.15); color: #fff; }
.cta-final .btn-light:hover { background: rgba(255,255,255,0.25); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--teal-dark);
  color: rgba(255,255,255,0.75);
  padding-top: 56px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}
.footer-brand .logo { color: #fff; margin-bottom: 14px; }
.footer-brand .logo-mark { background: var(--teal-light); }
.footer-brand p { font-size: 0.9rem; max-width: 30ch; }
.footer-col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { font-size: 0.9rem; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-block: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.82rem;
}
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px var(--gutter) 28px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    transition: transform .3s ease;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .primary-nav.open { transform: translateY(0); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-link { padding: 14px 12px; width: 100%; font-size: 1rem; }
  .nav-cta { margin-top: 12px; width: 100%; }

  .has-dropdown { position: static; }
  .dropdown {
    position: static;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--teal-soft);
    border-radius: 0;
    margin-left: 12px;
    padding-left: 8px;
    background: transparent;
  }
  .dropdown a { padding: 10px 12px; }
}

@media (max-width: 600px) {
  .field-row.two-col { flex-direction: column; gap: 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .cta-actions .btn { flex: 1 1 100%; }
  .inquiry-toggle { flex-direction: column; align-items: stretch; }
  .toggle-option { justify-content: center; }
  .form-actions { flex-direction: column; align-items: stretch; }
  .form-actions .btn { width: 100%; }
  .form-note { text-align: center; }
}

/* ---------- Accessibility ---------- */
:focus-visible {
  outline: 3px solid var(--teal-light);
  outline-offset: 2px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
/* ============================================================
   Floating WhatsApp button
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;                /* WhatsApp green */
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35),
              0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  background: #1ebe5b;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45),
              0 6px 16px rgba(0, 0, 0, 0.2);
}

.whatsapp-float:active {
  transform: translateY(-1px) scale(0.98);
}

.whatsapp-float:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(37, 211, 102, 0.5);
}

.whatsapp-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

/* Tooltip that slides out to the left on hover */
.whatsapp-tooltip {
  position: absolute;
  right: 72px;
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  white-space: nowrap;
  background: var(--teal-dark, #0E3D3D);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.whatsapp-tooltip::after {
  content: "";
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: var(--teal-dark, #0E3D3D);
  border-radius: 2px;
}

.whatsapp-float:hover .whatsapp-tooltip,
.whatsapp-float:focus-visible .whatsapp-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Mobile: keep it slightly smaller and out of the way */
@media (max-width: 600px) {
  .whatsapp-float {
    width: 52px;
    height: 52px;
    bottom: 16px;
    right: 16px;
  }
  .whatsapp-icon { width: 28px; height: 28px; }
  .whatsapp-tooltip { display: none; }   /* tooltips don't work well on touch */
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float,
  .whatsapp-tooltip { transition: none; }
}