/* ============================================================
   contact.css — CynphoCode Contact page (v2 redesign)
   Reuses site-wide tokens from base/variables.css and the
   shared .sec-tag / .sec-h / .sec-p / .faq-* / .hero-btn-*
   patterns from pages/home.css. Everything below is scoped
   with a `ct-` prefix so it can never leak onto other pages.
   ============================================================ */

/* Smooth in-page scrolling for the hero's anchor CTAs */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ── Shared section shell (page background alternation) ─────── */
.ct-section        { padding: var(--section-gap) 0; }
.ct-section.alt    { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ct-section-head    { max-width: 620px; margin: 0 auto 40px; text-align: center; }
.ct-section-head .sec-tag,
.ct-section-head .sec-p { margin-inline: auto; }
.ct-required { color: var(--red); }
.ct-optional { font-weight: 500; color: var(--text-light); text-transform: none; letter-spacing: 0; }

/* ============================================================
   1. HERO — animated gradient orbs + grid, dual CTA
   ============================================================ */
.ct-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 88px 0 44px; text-align: center;
}
.ct-hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.ct-orb {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .32;
  animation: ctFloat 18s ease-in-out infinite;
  will-change: transform;
}
.ct-orb-1 { width: 340px; height: 340px; background: var(--primary);   top: -130px; left: -90px; }
.ct-orb-2 { width: 280px; height: 280px; background: var(--secondary); top: 30px;   right: -110px; animation-delay: -6s; }
.ct-orb-3 { width: 230px; height: 230px; background: var(--cyan);      bottom: -110px; left: 40%;  animation-delay: -11s; }
.ct-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 44px 44px; opacity: .4;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 15%, #000 40%, transparent 100%);
          mask-image: radial-gradient(ellipse 60% 55% at 50% 15%, #000 40%, transparent 100%);
}
@keyframes ctFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(22px, -26px) scale(1.07); }
}
@media (prefers-reduced-motion: reduce) { .ct-orb { animation: none; } }

.ct-hero-inner { max-width: 640px; margin-inline: auto; padding-inline: 24px; }
.ct-hero-inner h1 { font-size: clamp(2rem, 4.6vw, 3rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.12; color: var(--text); margin-bottom: 16px; }
.ct-hero-inner p  { font-size: .95rem; color: var(--text-muted); line-height: 1.75; max-width: 520px; margin-inline: auto; }
.ct-hero-actions  { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 28px; }

/* ============================================================
   2. QUICK CONTACT CARDS
   ============================================================ */
.ct-quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; }
.ct-qcard {
  position: relative; display: flex; align-items: flex-start; gap: 14px;
  padding: 22px 46px 22px 22px; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.ct-qcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(124,92,255,.25); }
.ct-qicon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm);
}
.ct-qicon svg.lucide { font-size: 20px; }
.ct-qcard-body { min-width: 0; }
.ct-qlabel { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-light); margin-bottom: 5px; }
.ct-qvalue { display: block; font-size: .86rem; font-weight: 600; color: var(--text); line-height: 1.5; word-break: break-word; }
.ct-qvalue span { display: block; }
.ct-qmeta { display: block; font-size: .74rem; color: var(--text-muted); margin-top: 3px; font-weight: 500; }

.ct-copy-btn {
  position: absolute; top: 16px; right: 16px; width: 30px; height: 30px; border-radius: 9px;
  border: 1px solid var(--border); background: var(--bg); color: var(--text-muted);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: all .18s ease;
}
.ct-copy-btn svg.lucide { font-size: 14px; }
.ct-copy-btn:hover { border-color: var(--primary); color: var(--primary); }
.ct-copy-btn.copied { background: var(--green-light); border-color: rgba(34,197,94,.35); color: var(--green); }

/* ============================================================
   3. CONTACT FORM
   ============================================================ */
.ct-wrap { max-width: 1080px; margin: 0 auto; padding-inline: 24px; display: grid; grid-template-columns: 1fr 1.35fr; gap: 28px; align-items: start; }

.ct-next-card { padding: 26px 24px; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card); }
.ct-next-card h3 { font-size: .95rem; font-weight: 700; color: var(--text); margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
.ct-next-steps { display: flex; flex-direction: column; gap: 18px; margin-bottom: 20px; }
.ct-next-step { display: flex; gap: 12px; align-items: flex-start; }
.ct-next-num {
  width: 26px; height: 26px; border-radius: 50%; background: var(--primary-light); color: var(--primary);
  font-size: .75rem; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ct-next-step p { font-size: .82rem; color: var(--text-2); line-height: 1.6; }
.ct-next-note {
  padding: 14px 16px; background: var(--primary-light); border: 1px solid rgba(124,92,255,.2); border-radius: 12px;
  font-size: .78rem; color: var(--text-2); line-height: 1.6;
}
.ct-next-note a { color: var(--primary); font-weight: 600; text-decoration: none; }
.ct-next-note a:hover { text-decoration: underline; }

.ct-form-card { padding: 28px; background: var(--card); border: 1px solid var(--border); border-radius: 20px; }
.ct-form-head { margin-bottom: 20px; }
.ct-form-head h3 { font-size: 1.15rem; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.ct-form-head p { font-size: .82rem; color: var(--text-muted); }

.ct-field { margin-bottom: 18px; }
.ct-field label { display: block; font-size: .78rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.ct-field-full { grid-column: 1 / -1; }
.ct-input-wrap { position: relative; }
.ct-field input, .ct-field select, .ct-field textarea {
  width: 100%; padding: 11px 40px 11px 14px; background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 10px; font-size: .85rem; color: var(--text); outline: none; font-family: var(--font);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.ct-field select { padding-right: 40px; appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237E889B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
}
.ct-field textarea { padding-right: 14px; resize: vertical; min-height: 120px; }
.ct-field input:focus, .ct-field select:focus, .ct-field textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 4px rgba(124,92,255,.14);
}
.ct-valid-icon {
  position: absolute; right: 14px; top: 21px; font-size: 16px; color: var(--green);
  opacity: 0; transform: scale(.6); transition: opacity .18s ease, transform .18s ease; pointer-events: none;
}
.ct-field.valid .ct-valid-icon { opacity: 1; transform: scale(1); }
.ct-field.valid input, .ct-field.valid select, .ct-field.valid textarea { border-color: var(--green); }
.ct-field.invalid input, .ct-field.invalid select, .ct-field.invalid textarea { border-color: var(--red); box-shadow: 0 0 0 4px rgba(224,64,91,.12); }
.ct-field-error {
  display: block; font-size: .72rem; color: var(--red); margin-top: 6px; line-height: 1.4;
  min-height: 0; opacity: 0; max-height: 0; overflow: hidden; transition: opacity .18s ease, max-height .18s ease;
}
.ct-field.invalid .ct-field-error:not(:empty) { opacity: 1; max-height: 40px; margin-top: 6px; }
.ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Honeypot — visually hidden from humans, present for simple bots */
.ct-hp {
  position: absolute !important; left: -9999px !important; top: -9999px !important;
  width: 1px !important; height: 1px !important; overflow: hidden !important; opacity: 0 !important;
}

/* File upload dropzone */
.ct-upload { position: relative; border: 1.5px dashed var(--border); border-radius: 14px; background: var(--bg); transition: all .2s ease; }
.ct-upload.dragover { border-color: var(--primary); background: var(--primary-light); }
.ct-upload-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.ct-upload-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 16px; text-align: center; color: var(--text-muted); pointer-events: none; }
.ct-upload-empty svg.lucide { font-size: 22px; color: var(--primary); margin-bottom: 4px; }
.ct-upload-empty span { font-size: .8rem; }
.ct-upload-hint { font-size: .7rem !important; color: var(--text-light); }
.ct-upload-preview { display: flex; align-items: center; gap: 10px; padding: 14px 16px; }
.ct-upload-preview svg.lucide:first-child { font-size: 20px; color: var(--primary); flex-shrink: 0; }
.ct-upload-filename { flex: 1; min-width: 0; font-size: .82rem; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-upload-remove {
  width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--border); background: var(--card);
  color: var(--text-muted); display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0;
  position: relative; z-index: 1; transition: all .18s ease;
}
.ct-upload-remove:hover { border-color: var(--red); color: var(--red); }
.ct-upload-remove svg.lucide { font-size: 13px; }

/* Ripple (Submit / copy / hero CTA) */
.ct-ripple-btn { position: relative; overflow: hidden; }
.ct-ripple { position: absolute; border-radius: 50%; background: currentColor; opacity: .25; transform: scale(0); animation: ctRipple .6s ease-out forwards; pointer-events: none; }
@keyframes ctRipple { to { transform: scale(2.8); opacity: 0; } }

.ct-submit {
  width: 100%; padding: 14px; background: var(--primary-grad); color: #fff; border: none;
  border-radius: 9999px; font-size: .9rem; font-weight: 700; cursor: pointer; font-family: var(--font);
  display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 4px;
  box-shadow: 0 4px 14px rgba(124,92,255,.3); transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.ct-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(124,92,255,.45); filter: brightness(1.05); }
.ct-submit:disabled { opacity: .7; cursor: not-allowed; transform: none; }
.ct-submit .icon-spin { animation: ctSpin .8s linear infinite; }
@keyframes ctSpin { to { transform: rotate(360deg); } }

.ct-notice {
  display: none; align-items: flex-start; gap: 10px; padding: 14px 16px; border-radius: 12px;
  margin-bottom: 16px; font-size: .84rem; font-weight: 600; line-height: 1.5;
}
.ct-notice svg.lucide { flex-shrink: 0; margin-top: 1px; font-size: 18px; }
.ct-notice.show { display: flex; }
.ct-success { background: var(--green-light); border: 1px solid rgba(34,197,94,.25); color: var(--green); }
.ct-error   { background: var(--red-light);   border: 1px solid rgba(224,64,91,.28); color: var(--red); }
.ct-form-meta { font-size: .72rem; color: var(--text-light); text-align: center; margin-top: 14px; line-height: 1.6; }

/* ============================================================
   4. MEET OUR TEAM
   ============================================================ */
.ct-team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 8px; }
.ct-team-card {
  padding: 28px 24px; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card);
  text-align: center; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.ct-team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(124,92,255,.25); }
.ct-avatar {
  width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 16px; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.35rem; font-weight: 800;
  letter-spacing: .02em; box-shadow: var(--shadow-sm); transition: transform .25s ease;
}
.ct-team-card:hover .ct-avatar { transform: scale(1.06) rotate(-2deg); }
.ct-team-name { font-size: 1.02rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.ct-team-role { font-size: .74rem; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 12px; }
.ct-team-bio { font-size: .82rem; color: var(--text-2); line-height: 1.65; margin-bottom: 18px; }
.ct-team-contact { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.ct-team-link {
  display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 600; color: var(--text);
  text-decoration: none; padding: 7px 14px; border-radius: 9999px; background: var(--bg); border: 1px solid var(--border);
  transition: all .18s ease; max-width: 100%;
}
.ct-team-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-team-link svg.lucide { font-size: 13px; flex-shrink: 0; color: var(--primary); }
.ct-team-link:hover { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.ct-team-link-muted { color: var(--text-muted); }

/* ============================================================
   5 & 6. OFFICE INFO + MAP
   ============================================================ */
.ct-office-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; }
.ct-office-card {
  padding: 30px 26px; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card);
  display: flex; flex-direction: column;
}
.ct-office-top { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.ct-office-icon {
  width: 50px; height: 50px; border-radius: 14px; background: var(--primary-grad); color: #fff;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: var(--shadow-sm);
}
.ct-office-icon svg.lucide { font-size: 22px; }
.ct-office-top h3 { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.ct-office-top p { font-size: .78rem; color: var(--text-muted); margin-top: 2px; }
.ct-office-rows { display: flex; flex-direction: column; gap: 14px; }
.ct-office-row { display: flex; justify-content: space-between; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.ct-office-row:last-child { border-bottom: none; padding-bottom: 0; }
.ct-office-row dt { font-size: .78rem; color: var(--text-muted); font-weight: 600; flex-shrink: 0; }
.ct-office-row dd { font-size: .82rem; color: var(--text); font-weight: 600; text-align: right; }

.ct-map-card {
  position: relative; border-radius: var(--r-card); border: 1px solid var(--border); overflow: hidden;
  background: var(--bg); display: flex; align-items: center; justify-content: center; min-height: 320px;
}
.ct-map-pattern {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 34px 34px; opacity: .6;
}
.ct-map-content { position: relative; text-align: center; padding: 32px 28px; max-width: 320px; }
.ct-map-pin {
  width: 56px; height: 56px; border-radius: 50%; background: var(--primary-grad); color: #fff;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; box-shadow: 0 6px 20px rgba(124,92,255,.4);
  animation: ctPulsePin 2.4s ease-in-out infinite;
}
.ct-map-pin svg.lucide { font-size: 24px; }
@keyframes ctPulsePin { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .ct-map-pin { animation: none; } }
.ct-map-content h3 { font-size: .98rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.ct-map-content p { font-size: .8rem; color: var(--text-muted); line-height: 1.6; }

/* ============================================================
   8. SOCIAL MEDIA
   ============================================================ */
.ct-social-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ct-social-card {
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 12px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card);
  font-family: var(--font); cursor: pointer; text-decoration: none; transition: all .22s ease;
}
a.ct-social-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
button.ct-social-card { opacity: .55; }
button.ct-social-card:disabled { cursor: not-allowed; }
.ct-social-icon {
  width: 46px; height: 46px; border-radius: 50%; background: var(--bg); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: all .22s ease;
}
.ct-social-icon svg.lucide { font-size: 20px; }
.ct-social-name { font-size: .8rem; font-weight: 700; color: var(--text); }
.ct-social-status { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-light); }
.ct-social-status.live { color: var(--green); }
a.ct-social-card.yt:hover .ct-social-icon { background: #FF0000; border-color: #FF0000; color: #fff; }

/* ============================================================
   9. FOOTER CONTACT LINES (extends .mf-brand, footer.css untouched)
   ============================================================ */
.mf-contact-lines { display: flex; flex-direction: column; gap: 8px; margin: -6px 0 16px; }
.mf-contact-line { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--text-muted); text-decoration: none; transition: color .18s ease; }
.mf-contact-line svg.lucide { font-size: 14px; color: var(--primary); flex-shrink: 0; }
.mf-contact-line:hover { color: var(--primary); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .ct-quick-grid  { grid-template-columns: repeat(2, 1fr); }
  .ct-team-grid   { grid-template-columns: 1fr; }
  .ct-office-grid { grid-template-columns: 1fr; }
  .ct-social-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .ct-wrap { grid-template-columns: 1fr; }
  .ct-next-card { order: 2; }
}
@media (max-width: 560px) {
  .ct-quick-grid  { grid-template-columns: 1fr; }
  .ct-row         { grid-template-columns: 1fr; }
  .ct-social-grid { grid-template-columns: repeat(2, 1fr); }
  .ct-office-row  { flex-direction: column; gap: 4px; }
  .ct-office-row dd { text-align: left; }
  .ct-hero        { padding: 64px 0 36px; }
}
