/* Contact — page-specific styles (migrated from inline <style>) */
/* ============================================================
   DESIGN TOKENS — Sarpada Bioinnovate
   ============================================================ */
/* Light logo on dark hero; swap to dark when nav turns white */
nav.scrolled .nav-links a:hover { opacity: 1; }
.nav-cta {
  background: rgba(255,255,255,0.15);
  color: var(--c-white) !important;
  opacity: 1 !important;
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 14px !important;
  font-weight: 600 !important;
  border: 1px solid rgba(255,255,255,0.3);
  transition: background .2s, border-color .2s !important;
  backdrop-filter: blur(4px);
}
.nav-cta:hover { background: rgba(255,255,255,0.25) !important; }
nav.scrolled .nav-cta {
  background: var(--c-primary) !important;
  border-color: transparent !important;
  color: white !important;
  opacity: 1 !important;
}
.nav-active {
  color: var(--c-accent) !important;
  opacity: 1 !important;
}
nav.scrolled .nav-active {
  color: var(--c-accent) !important;
  opacity: 1 !important;
}
.mobile-nav-drawer .mobile-nav-cta {
  margin-top: 20px; background: var(--c-accent);
  color: white !important; padding: 16px 32px;
  border-radius: 100px; text-align: center; font-size: 18px !important;
}

/* ============================================================
   INNER HERO — 60vh dark navy
   ============================================================ */
/* Canonical inner hero — identical across Innovation / Technology / Team / Contact */
/* inner-hero moved to components.css (single source of truth) */

/* ============================================================
   CONTACT SECTION — 2 col
   ============================================================ */
.contact-section {
  background: var(--c-bg3);
  padding: clamp(52px, 6.5vw, 84px) 0;
}
.contact-section-header {
  margin-bottom: clamp(48px, 6vw, 72px);
}
.contact-main-heading {
  font-size: clamp(32px, 4vw, 54px);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: var(--c-primary);
  letter-spacing: -1.5px;
  line-height: 1.05;
  margin-bottom: 12px;
}
.contact-main-sub {
  font-size: 16px;
  color: var(--c-text);
  line-height: 1.65;
  max-width: 480px;
}
.contact-inner {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 32px;
  align-items: start;
}

/* LEFT: Form card */
.contact-form-col {
  background: var(--c-white);
  border-radius: 20px;
  padding: clamp(28px, 4vw, 52px);
  box-shadow: 0 2px 24px rgba(var(--shadow-rgb),0.06);
}

/* Form styles */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-primary);
  margin-bottom: 8px;
  letter-spacing: .2px;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid rgba(3,47,82,0.12);
  border-radius: 10px;
  font-family: 'Krub', sans-serif;
  font-size: 14px;
  color: var(--c-primary);
  background: var(--c-bg);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  -webkit-appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.1);
  background: var(--c-white);
}
.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%230D1E2E' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.form-textarea {
  resize: vertical;
  min-height: 140px;
}
.form-submit {
  width: 100%;
  padding: 15px 32px;
  background: var(--c-primary);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background .2s, transform .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}
.form-submit:hover { background: var(--c-accent); transform: translateY(-1px); }
.form-submit:disabled { cursor: not-allowed; transform: none; }

/* RIGHT: Dark info panel */
.contact-info-col {
  background: var(--c-primary);
  border-radius: 20px;
  padding: clamp(28px, 4vw, 44px);
  position: sticky;
  top: 100px;
}
.contact-card-heading {
  font-size: 11px;
  font-weight: 700;
  color: var(--c-accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}
.contact-info-item:last-child { margin-bottom: 0; }
.contact-info-icon {
  width: 36px;
  height: 36px;
  background: rgba(206,120,46,0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-icon svg {
  width: 17px;
  height: 17px;
  stroke: var(--c-accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-info-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 4px;
}
.contact-info-value {
  font-size: 14px;
  font-weight: 600;
  color: #F2F4F7;
}
.contact-info-value a {
  color: var(--c-accent);
  transition: opacity .2s;
}
.contact-info-value a:hover { opacity: .75; }

.contact-info-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 28px 0;
}
.contact-partners-heading {
  font-size: 14px;
  font-weight: 700;
  color: #F2F4F7;
  letter-spacing: -.1px;
  margin-bottom: 18px;
}
.contact-partners-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.contact-partner-item {
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.contact-partner-item:first-child { border-top: 1px solid rgba(255,255,255,0.07); }
.contact-partner-icon {
  width: 32px;
  height: 32px;
  background: rgba(206,120,46,0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--c-accent);
}
.contact-partner-icon svg {
  width: 16px;
  height: 16px;
}
.contact-partner-label {
  font-size: 13px;
  font-weight: 600;
  color: #F2F4F7;
  margin-bottom: 2px;
}
.contact-partner-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
}

/* ============================================================
   CLOSING CTA
   ============================================================ */
.closing-cta {
  background: var(--c-primary);
  padding: clamp(38px, 4.5vw, 62px) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.closing-cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 70% at 20% 50%, rgba(12,48,86,0.5) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 80% 40%, rgba(26,61,92,0.4) 0%, transparent 55%),
    radial-gradient(ellipse 40% 50% at 55% 90%, rgba(217,111,8,0.07) 0%, transparent 50%);
}
.closing-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}
.closing-cta-eyebrow {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--c-accent);
  font-weight: 600;
  margin-bottom: 24px;
}
.closing-cta-heading {
  font-size: clamp(28px, 4vw, 56px);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
  color: #F2F4F7;
  margin-bottom: 28px;
}
.closing-cta-body {
  font-size: 17px;
  color: rgba(255,255,255,0.62);
  line-height: 1.75;
  margin-bottom: 44px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
/* .btn-white base moved to components.css (single source of truth) */
footer {
  background: var(--c-primary);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 72px 0 40px;
  color: rgba(255,255,255,.6);
}
.footer-brand-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--c-accent);
  border-radius: 50%;
  animation: pulseDot 3.2s ease-in-out infinite;
}
/* .footer-social / .footer-social-link now live in global.css (shared footer component) */

/* ============================================================
   FORM VALIDATION + PHONE ROW
   ============================================================ */
.req { color: var(--c-accent); margin-left: 2px; }

.form-input.is-invalid,
.form-select.is-invalid,
.form-textarea.is-invalid {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192,57,43,0.1);
}
.form-input.is-valid,
.form-textarea.is-valid {
  border-color: #2a7a3d;
}
.form-error {
  display: block;
  font-size: 12px;
  color: #c0392b;
  margin-top: 5px;
  min-height: 18px;
  font-weight: 500;
}
.phone-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
}
/* Custom country picker */
.country-picker { position: relative; flex-shrink: 0; }
.country-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 13px 12px;
  border: 1.5px solid rgba(3,47,82,0.12);
  border-radius: 10px;
  background: var(--c-bg);
  cursor: pointer;
  font-family: 'Krub', sans-serif;
  color: var(--c-primary);
  white-space: nowrap;
  min-width: 92px;
  transition: border-color .2s, box-shadow .2s;
  height: 100%;
}
.country-trigger:hover { border-color: rgba(3,47,82,0.3); }
.country-trigger.open {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.1);
}
.country-trigger.is-invalid { border-color: #c0392b; }
.ct-flag { font-size: 20px; line-height: 1; }
.ct-dial { font-weight: 600; font-size: 13px; color: var(--c-primary); }
.ct-caret {
  width: 11px; height: 11px;
  stroke: var(--c-text); fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .2s;
  margin-left: 2px;
}
.country-trigger.open .ct-caret { transform: rotate(180deg); }
.country-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 290px;
  background: var(--c-white);
  border: 1.5px solid rgba(3,47,82,0.12);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(var(--shadow-rgb),0.14);
  z-index: 200;
  overflow: hidden;
  display: none;
}
.country-dropdown.open { display: block; }
.country-search {
  width: 100%;
  padding: 10px 14px;
  border: none;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  font-family: 'Krub', sans-serif;
  font-size: 13px;
  outline: none;
  background: var(--c-bg2);
  color: var(--c-primary);
}
.country-list {
  max-height: 230px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.country-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  cursor: pointer;
  font-size: 13px;
  color: var(--c-primary);
  transition: background .12s;
}
.country-option:hover { background: var(--c-bg2); }
.country-option.selected { background: rgba(206,120,46,0.08); font-weight: 600; }
.co-flag { font-size: 19px; line-height: 1; flex-shrink: 0; }
.co-name { flex: 1; }
.co-dial { font-size: 12px; color: var(--c-text); }
.form-status {
  font-size: 14px;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 12px;
  display: none;
}
.form-status.show { display: block; }
.form-status-success {
  background: rgba(42,122,61,0.1);
  color: #1e6630;
  border: 1px solid rgba(42,122,61,0.25);
}
.form-status-error {
  background: rgba(192,57,43,0.08);
  color: #a93226;
  border: 1px solid rgba(192,57,43,0.2);
}

/* ============================================================
   FORM-RESULT MODAL — success / error popup
   ============================================================ */
.fr-modal {
  position: fixed; inset: 0;
  z-index: 10000;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(3, 47, 82, 0.55);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  animation: frFadeIn .25s ease-out;
}
.fr-modal.open { display: flex; }
@keyframes frFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes frRise {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}
.fr-card {
  background: #fff;
  max-width: 440px; width: 100%;
  border-radius: 14px;
  padding: 36px 32px 28px;
  text-align: center;
  box-shadow: 0 24px 80px rgba(var(--shadow-rgb),0.35), 0 4px 12px rgba(var(--shadow-rgb),0.08);
  position: relative;
  animation: frRise .4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.fr-close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px;
  background: transparent; border: none;
  border-radius: 50%; cursor: pointer;
  color: var(--c-text); opacity: 0.55;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .2s, background .2s;
}
.fr-close:hover { opacity: 1; background: var(--c-bg2); }
.fr-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  animation: frPop .5s cubic-bezier(0.34, 1.56, 0.64, 1) .15s both;
}
@keyframes frPop {
  from { opacity: 0; transform: scale(0.5); }
  to   { opacity: 1; transform: scale(1); }
}
.fr-icon-success { background: rgba(42,122,61,0.12); color: #2a7a3d; }
.fr-icon-error   { background: rgba(192,57,43,0.10); color: #c0392b; }
.fr-title {
  font-family: 'Inter', sans-serif;
  font-size: 26px; font-weight: 700;
  color: var(--c-primary);
  letter-spacing: -0.5px;
  margin: 0 0 10px;
  line-height: 1.2;
}
.fr-msg {
  font-size: 15px;
  color: var(--c-text);
  line-height: 1.6;
  margin: 0 0 24px;
}
.fr-btn {
  display: inline-block;
  background: var(--c-accent);
  color: white;
  font-size: 14px; font-weight: 600;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 100px;
  border: none; cursor: pointer;
  transition: background .2s, transform .15s;
  font-family: inherit;
}
.fr-btn:hover { background: #c05f1f; }
.fr-btn:active { transform: scale(0.97); }
.fr-btn-secondary {
  background: transparent;
  color: var(--c-text);
  border: 1px solid rgba(3,47,82,0.18);
  margin-left: 8px;
}
.fr-btn-secondary:hover { background: var(--c-bg2); }
@media (max-width: 480px) {
  .fr-card { padding: 28px 22px 22px; border-radius: 12px; }
  .fr-title { font-size: 22px; }
  .fr-msg { font-size: 14px; }
  .fr-btn { width: 100%; padding: 13px 24px; }
  .fr-btn-secondary { margin: 8px 0 0; }
}

/* ============================================================
   SELECTION + FOCUS
   ============================================================ */
/* SCROLL REVEAL — GSAP handles animation; CSS only prevents FOUC */
@media (max-width: 1024px) {
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  /* 16px prevents iOS Safari auto-zoom on input focus (keeps 14px on desktop) */
  .form-input, .form-select, .form-textarea { font-size: 16px; }
  .inner-hero-sub { font-size: 15px; }
  .contact-form-heading { font-size: 24px; }
  .closing-cta-body { font-size: 15px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .closing-cta-buttons { flex-direction: column; align-items: center; gap: 12px; }
  .btn-white, .btn-outline-white { width: 100%; max-width: 300px; justify-content: center; }
}
@media (max-width: 480px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-form-card { padding: 24px 16px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .work-with-grid { grid-template-columns: 1fr 1fr; }
  .work-with-card { padding: 20px 14px; }
  .contact-info-heading { font-size: 24px; }
}

/* Eyebrows + base heading accent bar now in components.css (single source of truth) */
/* page-specific: collab CTA heading has no accent bar */
.collab-section .section-heading::after { display:none !important; }
