/* =========================================================
   Arcraft Infotech - Contact page (ctc-*)
   Load after style.css:
   <link rel="stylesheet" href="{% static 'css/contact.css' %}">
   ========================================================= */
.ctc-page {
  --ctc-green: var(--arcraft-primary, #3FAE4A);
  --ctc-green-dark: #2e8c39;
  --ctc-green-soft: rgba(63, 174, 74, .10);
  --ctc-ink: #0f1f14;
  --ctc-text: #4b5b50;
  --ctc-line: #e3ebe5;
  --ctc-bg: #f6faf7;
  --ctc-card: #ffffff;
  --ctc-danger: #d64545;
  --ctc-radius: 20px;
  --ctc-shadow: 0 10px 30px rgba(15, 31, 20, .07);
  --ctc-shadow-lg: 0 24px 60px rgba(15, 31, 20, .12);
  --ctc-ease: cubic-bezier(.22, .8, .24, 1);
  color: var(--ctc-text);
  overflow-x: hidden;
}
/* ---------- Scroll reveal (only hides when JS is running) ---------- */
.ctc-js .ctc-page [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ctc-ease), transform .7s var(--ctc-ease);
  transition-delay: var(--d, 0s);
}
.ctc-js .ctc-page [data-reveal].is-in {
  opacity: 1;
  transform: none;
}
/* ---------- Hero ---------- */
.ctc-hero {
  position: relative;
  padding: 150px 0 90px;
  background:
    radial-gradient(1000px 420px at 50% -10%, var(--ctc-green-soft), transparent 70%),
    var(--ctc-bg);
  overflow: hidden;
}
.ctc-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .55;
  pointer-events: none;
  animation: ctc-float 12s ease-in-out infinite;
}
.ctc-blob.b1 { width: 320px; height: 320px; top: -90px; left: -80px; background: rgba(63, 174, 74, .35); }
.ctc-blob.b2 { width: 260px; height: 260px; bottom: -80px; right: -60px; background: rgba(63, 174, 74, .22); animation-delay: -6s; }
@keyframes ctc-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(24px, 18px) scale(1.08); }
}
.ctc-title {
  font-size: clamp(3.2rem, 5vw, 5.76rem);
  line-height: 1.12;
  font-weight: var(--f-bold);
  letter-spacing: -0.03em;
  color: var(--ctc-ink);
  margin: 0 auto 18px;
  max-width: 820px;
}
.ctc-title span {
  background: linear-gradient(90deg, var(--ctc-green), #7bd685);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ctc-lead {
  max-width: 560px;
  margin: 0 auto 34px;
  font-size: 1.68rem;
  line-height: 1.7;
  color: var(--ctc-text);
}
/* Quick actions */
.ctc-quick {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.ctc-quick a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--ctc-card);
  border: 1px solid var(--ctc-line);
  color: var(--ctc-ink);
  font-weight: 600;
  font-size: 1.52rem;
  text-decoration: none;
  box-shadow: var(--ctc-shadow);
  transition: transform .3s var(--ctc-ease), background .3s, color .3s, border-color .3s;
}
.ctc-quick a i { color: var(--ctc-green); transition: color .3s; }
.ctc-quick a:hover,
.ctc-quick a:focus-visible {
  transform: translateY(-3px);
  background: var(--ctc-green);
  border-color: var(--ctc-green);
  color: #fff;
}
.ctc-quick a:hover i,
.ctc-quick a:focus-visible i { color: #fff; }
/* ---------- Main section ---------- */
.ctc-main { padding: 80px 0 60px; }
/* Info cards */
.ctc-cards { display: grid; gap: 18px; }
.ctc-card {
  display: flex;
  gap: 18px;
  padding: 24px;
  background: var(--ctc-card);
  border: 1px solid var(--ctc-line);
  border-radius: var(--ctc-radius);
  box-shadow: var(--ctc-shadow);
  transition: transform .35s var(--ctc-ease), box-shadow .35s var(--ctc-ease), border-color .35s;
}
.ctc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ctc-shadow-lg);
  border-color: rgba(63, 174, 74, .45);
}
.ctc-card-icon {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--ctc-green-soft);
  color: var(--ctc-green);
  font-size: 2.08rem;
  transition: background .3s, color .3s, transform .4s var(--ctc-ease);
}
.ctc-card:hover .ctc-card-icon {
  background: var(--ctc-green);
  color: #fff;
  transform: rotate(-8deg) scale(1.05);
}
.ctc-card-body { min-width: 0; }
.ctc-card-body h3 {
  font-size: 1.76rem;
  font-weight: var(--f-semibold);
  color: var(--ctc-ink);
  margin: 0 0 6px;
}
.ctc-card-body p {
  margin: 0 0 10px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.ctc-card-body a { color: var(--ctc-text); text-decoration: none; transition: color .25s; }
.ctc-card-body a:hover { color: var(--ctc-green); }
.ctc-mini-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 1.44rem;
  color: var(--ctc-green) !important;
}
.ctc-mini-link i { transition: transform .3s var(--ctc-ease); }
.ctc-mini-link:hover i { transform: translate(3px, -3px); }
/* Copy button */
.ctc-copy {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border: 1px dashed var(--ctc-line);
  border-radius: 999px;
  background: transparent;
  color: var(--ctc-text);
  font-size: 1.36rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .25s;
}
.ctc-copy:hover { border-color: var(--ctc-green); color: var(--ctc-green); }
.ctc-copy.is-done {
  background: var(--ctc-green);
  border: 1px solid var(--ctc-green);
  color: #fff;
}
/* Steps */
.ctc-steps {
  padding: 26px;
  border-radius: var(--ctc-radius);
  background: linear-gradient(145deg, #12301a, #0d2214);
  color: #d7e7db;
}
.ctc-steps h3 { color: #fff; font-size: 1.76rem; font-weight: var(--f-semibold); margin: 0 0 18px; }
.ctc-steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; position: relative; }
.ctc-steps li { display: flex; align-items: center; gap: 14px; line-height: 1.4; }
.ctc-steps li span {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ctc-green);
  color: #fff;
  font-weight: var(--f-semibold);
  font-size: 1.44rem;
  box-shadow: 0 0 0 5px rgba(63, 174, 74, .2);
}
/* ---------- Form card ---------- */
.ctc-form-card {
  padding: clamp(24px, 4vw, 44px);
  background: var(--ctc-card);
  border: 1px solid var(--ctc-line);
  border-radius: 26px;
  box-shadow: var(--ctc-shadow-lg);
}
.ctc-form-head { margin-bottom: 26px; }
.ctc-form-head h2 {
  font-size: clamp(2.4rem, 3vw, 3.2rem);
  font-weight: var(--f-semibold);
  color: var(--ctc-ink);
  margin: 0 0 6px;
}
.ctc-form-head p { margin: 0; font-size: 1.472rem; }
/* Django messages */
.ctc-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  margin-bottom: 22px;
  border-radius: 12px;
  font-weight: 500;
  background: #eef5ff;
  color: #1d4f91;
  border: 1px solid #cfe0f7;
}
.ctc-alert.success { background: #eaf7ec; color: #216b2c; border-color: #bfe5c5; }
/* Fields */
.ctc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.ctc-field { position: relative; }
.ctc-field.full { grid-column: 1 / -1; }
.ctc-field input,
.ctc-field textarea {
  width: 100%;
  padding: 26px 46px 10px 16px;
  font: inherit;
  color: var(--ctc-ink);
  background: var(--ctc-bg);
  border: 1.5px solid var(--ctc-line);
  border-radius: 14px;
  outline: none;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.ctc-field textarea { resize: vertical; min-height: 140px; }
.ctc-field label {
  position: absolute;
  left: 16px;
  top: 18px;
  font-size: 1.52rem;
  color: #7b8a80;
  pointer-events: none;
  transform-origin: left top;
  transition: transform .25s var(--ctc-ease), color .25s;
}
.ctc-field > i {
  position: absolute;
  right: 16px;
  top: 19px;
  color: #9aa8a0;
  font-size: 1.68rem;
  pointer-events: none;
  transition: color .25s;
}
/* Floating label */
.ctc-field input:focus ~ label,
.ctc-field input:not(:placeholder-shown) ~ label,
.ctc-field textarea:focus ~ label,
.ctc-field textarea:not(:placeholder-shown) ~ label {
  transform: translateY(-11px) scale(.78);
  color: var(--ctc-green-dark);
  font-weight: 600;
}
/* Focus */
.ctc-field input:focus,
.ctc-field textarea:focus {
  background: #fff;
  border-color: var(--ctc-green);
  box-shadow: 0 0 0 4px var(--ctc-green-soft);
}
.ctc-field input:focus ~ i,
.ctc-field textarea:focus ~ i { color: var(--ctc-green); }
/* Validation (after the user touched the field) */
.ctc-field .was-touched:invalid {
  border-color: var(--ctc-danger);
  box-shadow: 0 0 0 4px rgba(214, 69, 69, .10);
}
.ctc-field .was-touched:invalid ~ label,
.ctc-field .was-touched:invalid ~ i { color: var(--ctc-danger); }
.ctc-field .was-touched:valid:not(:placeholder-shown) { border-color: rgba(63, 174, 74, .6); }
/* Submit */
.ctc-submit {
  position: relative;
  width: 100%;
  margin-top: 24px;
  padding: 16px 28px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--ctc-green), var(--ctc-green-dark));
  color: #fff;
  font-weight: var(--f-semibold);
  font-size: 1.6rem;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 12px 26px rgba(63, 174, 74, .35);
  transition: transform .3s var(--ctc-ease), box-shadow .3s var(--ctc-ease);
}
.ctc-submit:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(63, 174, 74, .42); }
.ctc-submit:active { transform: translateY(0); }
.ctc-submit:focus-visible { outline: 3px solid var(--ctc-green-soft); outline-offset: 3px; }
.ctc-submit-text,
.ctc-submit-load { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.ctc-submit-text i { transition: transform .3s var(--ctc-ease); }
.ctc-submit:hover .ctc-submit-text i { transform: translate(4px, -3px); }
.ctc-submit-load { display: none; }
.ctc-submit.is-loading { pointer-events: none; opacity: .92; }
.ctc-submit.is-loading .ctc-submit-text { display: none; }
.ctc-submit.is-loading .ctc-submit-load { display: inline-flex; }
.ctc-spin {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, .4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ctc-spin .7s linear infinite;
}
@keyframes ctc-spin { to { transform: rotate(360deg); } }
/* ---------- Map ---------- */
.ctc-map-wrap { padding: 20px 0 90px; }
.ctc-map {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--ctc-line);
  box-shadow: var(--ctc-shadow-lg);
}
.ctc-map iframe {
  display: block;
  width: 100%;
  height: 440px;
  border: 0;
}
.ctc-map-pin {
  position: absolute;
  left: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100% - 40px);
  padding: 14px 18px;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  box-shadow: var(--ctc-shadow-lg);
}
.ctc-map-pin > i { color: var(--ctc-green); font-size: 2.56rem; }
.ctc-map-pin strong { display: block; color: var(--ctc-ink); line-height: 1.2; }
.ctc-map-pin small { color: var(--ctc-text); }
.ctc-map-pin a {
  margin-left: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--ctc-green);
  color: #fff;
  font-size: 1.36rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background .25s;
}
.ctc-map-pin a:hover { background: var(--ctc-green-dark); }
/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {.ctc-hero { padding: 120px 0 70px; }
.ctc-main { padding: 60px 0 40px; }
}
@media (max-width: 575.98px) {.ctc-hero { padding: 100px 0 56px; }
.ctc-grid { grid-template-columns: 1fr; }
.ctc-quick a { flex: 1 1 100%; justify-content: center; }
.ctc-card { padding: 20px; gap: 14px; }
.ctc-map iframe { height: 360px; }
.ctc-map-pin { left: 12px; right: 12px; bottom: 12px; max-width: none; flex-wrap: wrap; }
.ctc-map-pin a { margin-left: auto; }
}
/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {.ctc-blob,
  .ctc-spin { animation: none; }
.ctc-js .ctc-page [data-reveal] { opacity: 1; transform: none; transition: none; }
.ctc-page * { transition-duration: .01ms !important; }
}
/* =========================================================
   ADDITIONS: chips, counter, glow, FAQ, CTA band, floating WhatsApp
   ========================================================= */
/* Cursor glow on cards */
.ctc-card,
.ctc-form-card { position: relative; overflow: hidden; }
.ctc-card::before,
.ctc-form-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(63, 174, 74, .10), transparent 60%);
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
}
.ctc-card:hover::before,
.ctc-form-card:hover::before { opacity: 1; }
.ctc-card > *, .ctc-form-card > * { position: relative; }
/* Topic chips */
.ctc-chips-wrap { margin-bottom: 22px; }
.ctc-chips-label {
  display: block;
  margin-bottom: 10px;
  font-size: 1.36rem;
  font-weight: var(--f-semibold);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ctc-ink);
}
.ctc-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.ctc-chip {
  padding: 9px 16px;
  border: 1.5px solid var(--ctc-line);
  border-radius: 999px;
  background: var(--ctc-bg);
  color: var(--ctc-text);
  font: inherit;
  font-size: 1.44rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .25s var(--ctc-ease), background .25s, color .25s, border-color .25s;
}
.ctc-chip:hover { border-color: var(--ctc-green); color: var(--ctc-green-dark); transform: translateY(-2px); }
.ctc-chip:focus-visible { outline: 3px solid var(--ctc-green-soft); outline-offset: 2px; }
.ctc-chip.is-on {
  background: var(--ctc-green);
  border-color: var(--ctc-green);
  color: #fff;
  box-shadow: 0 8px 18px rgba(63, 174, 74, .3);
}
.ctc-chip.is-on::before { content: "\2713\00a0"; }
/* Counter */
.ctc-count {
  position: absolute;
  right: 14px;
  bottom: 10px;
  font-size: 1.2rem;
  color: #9aa8a0;
  pointer-events: none;
}
.ctc-field textarea { padding-bottom: 28px; }
/* FAQ */
/* CTA band */
.ctc-cta-wrap { padding: 0 0 90px; }
.ctc-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(28px, 5vw, 52px);
  border-radius: 28px;
  background: linear-gradient(135deg, #12301a, #0d2214);
  position: relative;
  overflow: hidden;
}
.ctc-cta::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(63, 174, 74, .35);
  filter: blur(60px);
  pointer-events: none;
}
.ctc-cta > * { position: relative; z-index: 1; }
.ctc-cta h2 { color: #fff; font-size: clamp(2.24rem, 3vw, 3.2rem); font-weight: var(--f-semibold); margin: 0 0 6px; }
.ctc-cta p { color: #bcd2c2; margin: 0; }
.ctc-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ctc-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: var(--f-semibold);
  text-decoration: none;
  white-space: nowrap;
  transition: transform .3s var(--ctc-ease), background .3s, color .3s;
}
.ctc-cta-btn.solid { background: var(--ctc-green); color: #fff; }
.ctc-cta-btn.ghost { border: 1.5px solid rgba(255, 255, 255, .45); color: #fff; }
.ctc-cta-btn:hover { transform: translateY(-3px); }
.ctc-cta-btn.solid:hover { background: #4cc258; }
.ctc-cta-btn.ghost:hover { background: #fff; color: #12301a; }
/* Floating WhatsApp */
@media (max-width: 767.98px) {.ctc-cta { flex-direction: column; align-items: flex-start; }
.ctc-cta-actions { width: 100%; }
.ctc-cta-btn { flex: 1 1 100%; justify-content: center; }
}
@media (max-width: 575.98px) {.ctc-chip { padding: 8px 13px; font-size: 1.36rem; }
}

/* server-side validation messages + honeypot */
.ctc-error { display:block; margin-top:.35rem; color:#d6336c; font-size:.82rem; font-weight:500; }
.ctc-hp { position:absolute !important; left:-10000px; width:1px; height:1px; overflow:hidden; }
