/* ==========================================================
   contact.css
   Page-specific styles for Contact Us — SMEdigital
   Theme: #000 bg, #eb601f orange, Montserrat
   ========================================================== */

/* ── Shared variables (mirrors home.css) ── */
:root {
  --orange:        #eb601f;
  --orange-dim:    rgba(235, 96, 31, 0.10);
  --orange-border: rgba(235, 96, 31, 0.25);
  --white:         #ffffff;
  --muted:         rgba(255, 255, 255, 0.45);
  --border:        rgba(255, 255, 255, 0.07);
  --card-bg:       rgba(17, 17, 17, 0.85);
  --font:          'Montserrat', sans-serif;
}

.text-orange { color: var(--orange); }


/* ==============================================
   HERO
   ============================================== */
.contact-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10rem 1.5rem 6rem;
  overflow: hidden;
  text-align: center;
}

.contact-hero-inner {
  position: relative;
  z-index: 10;
  max-width: 800px;
  width: 100%;
}

.contact-hero-title {
  font-size: clamp(5rem, 16vw, 11rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.03em;
  font-family: var(--font);
  margin: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ctc-line { display: block; }
.ctc-outline {
  -webkit-text-stroke: 3px var(--orange);
  color: transparent;
  font-style: italic;
}

.contact-hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--muted);
  line-height: 1.8;
  max-width: 580px;
  margin: 0 auto 2rem;
}

.contact-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.contact-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s;
}
.contact-breadcrumb a:hover { color: var(--orange); }
.contact-breadcrumb span   { color: var(--orange); }
.contact-breadcrumb svg    { color: var(--orange); flex-shrink: 0; }

/* Floating bubbles */
.ctc-bubble {
  position: absolute;
  background: var(--card-bg);
  border: 1px solid var(--orange-border);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  pointer-events: none;
  z-index: 5;
  backdrop-filter: blur(8px);
  letter-spacing: 0.03em;
  font-family: var(--font);
}
.ctc-bubble--1 { top: 22%; left: 4%; }
.ctc-bubble--2 { top: 30%; right: 5%; }
.ctc-bubble--3 { bottom: 26%; left: 6%; }
.ctc-bubble-icon { font-size: 1rem; }

@media (max-width: 768px) { .ctc-bubble { display: none; } }


/* ==============================================
   CONTACT BODY (form + info grid)
   ============================================== */
.contact-body {
  padding: 7rem 1.5rem;
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--border);
}

.contact-body-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

@media (max-width: 1024px) { .contact-body-inner { grid-template-columns: 1fr; gap: 4rem; } }

/* ── Info side ── */
.contact-info { position: sticky; top: 8rem; }
@media (max-width: 1024px) { .contact-info { position: static; } }

.contact-info-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-family: var(--font);
  margin-bottom: 1.25rem;
}

.contact-info-desc {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

/* Info Cards */
.ctc-cards { display: flex; flex-direction: column; gap: 0; }

.ctc-card {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  cursor: pointer;
}
.ctc-card:first-child { border-top: 1px solid var(--border); }
.ctc-card:hover { padding-left: 0.75rem; }
.ctc-card--addr { cursor: default; }

.ctc-card-icon {
  width: 48px; height: 48px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}
.ctc-card-icon svg { stroke: rgba(255,255,255,0.4); transition: stroke 0.3s; }
.ctc-card:hover .ctc-card-icon { border-color: var(--orange); background: var(--orange-dim); }
.ctc-card:hover .ctc-card-icon svg { stroke: var(--orange); }

.ctc-card--wa .ctc-card-icon svg { fill: rgba(255,255,255,0.4); stroke: none; }
.ctc-card--wa:hover .ctc-card-icon svg { fill: var(--orange); }

.ctc-card-body { display: flex; flex-direction: column; gap: 0.1rem; }
.ctc-card-label { font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); font-family: var(--font); }
.ctc-card-value { font-size: 0.95rem; font-weight: 700; color: var(--white); font-family: var(--font); transition: color 0.3s; }
.ctc-card-note  { font-size: 0.75rem; color: rgba(255,255,255,0.3); }
.ctc-card:hover .ctc-card-value { color: var(--orange); }

.ctc-card-arrow {
  font-size: 1rem;
  color: rgba(255,255,255,0.2);
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.ctc-card:hover .ctc-card-arrow { color: var(--orange); transform: translateX(4px); }

/* Social */
.ctc-social { margin-top: 2rem; display: flex; align-items: center; gap: 1rem; }
.ctc-social-label { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-family: var(--font); white-space: nowrap; }
.ctc-social-links { display: flex; gap: 0.6rem; }
.ctc-social-btn {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: all 0.3s ease;
}
.ctc-social-btn:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-dim); transform: scale(1.1); }

/* Response Badge */
.ctc-response-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
  padding: 0.85rem 1.2rem;
  background: rgba(235, 96, 31, 0.06);
  border: 1px solid rgba(235, 96, 31, 0.18);
  border-radius: 0.75rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}
.ctc-response-badge strong { color: var(--white); }
.ctc-response-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #28c840;
  flex-shrink: 0;
  animation: resp-pulse 2s ease-in-out infinite;
}
@keyframes resp-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(40,200,64,0.4); }
  50%      { box-shadow: 0 0 0 5px rgba(40,200,64,0); }
}


/* ==============================================
   FORM
   ============================================== */
.contact-form-wrap {
  background: rgba(13, 13, 13, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 2rem;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.contact-form-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--orange), transparent);
}

.contact-form-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-family: var(--font);
  margin-bottom: 0.6rem;
}

.contact-form-sub {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.ctc-form { display: flex; flex-direction: column; gap: 1.5rem; }

.ctc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 640px) { .ctc-row { grid-template-columns: 1fr; } }

/* Label */
.ctc-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.55rem;
  font-family: var(--font);
  transition: color 0.3s;
}
.ctc-req { color: var(--orange); }

/* Input wrapper */
.ctc-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.ctc-input-icon {
  position: absolute;
  left: 1rem;
  color: rgba(255,255,255,0.25);
  pointer-events: none;
  z-index: 1;
  display: flex;
  transition: color 0.3s;
}

/* Base input / textarea / select */
.ctc-input,
.ctc-textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.75rem;
  color: var(--white);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  outline: none;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
}
.ctc-input::placeholder { color: rgba(255,255,255,0.2); }
.ctc-input:focus {
  border-color: var(--orange);
  background: rgba(235,96,31,0.05);
  box-shadow: 0 0 0 3px rgba(235,96,31,0.1);
}
.ctc-input:focus ~ .ctc-input-icon,
.ctc-input-wrap:focus-within .ctc-input-icon { color: var(--orange); }
.ctc-field-wrap:focus-within .ctc-label { color: var(--orange); }

/* Select specific */
.ctc-select-wrap { position: relative; }
.ctc-select { cursor: pointer; }
.ctc-select option { background: #111; color: #fff; }
.ctc-select-chevron {
  position: absolute;
  right: 1rem;
  color: rgba(255,255,255,0.3);
  pointer-events: none;
  display: flex;
  transition: color 0.3s, transform 0.3s;
}
.ctc-select:focus ~ .ctc-select-chevron { color: var(--orange); transform: rotate(180deg); }

/* Textarea */
.ctc-textarea-wrap { position: relative; }
.ctc-textarea {
  padding: 1rem;
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}
.ctc-char-count {
  position: absolute;
  bottom: 0.65rem; right: 0.85rem;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.2);
  font-family: var(--font);
  pointer-events: none;
}

/* Validation states */
.ctc-field-wrap.has-error .ctc-input,
.ctc-field-wrap.has-error .ctc-textarea {
  border-color: #ff453a;
  background: rgba(255,69,58,0.06);
}
.ctc-field-wrap.is-valid .ctc-input,
.ctc-field-wrap.is-valid .ctc-textarea {
  border-color: rgba(40,200,64,0.4);
}

.ctc-error {
  display: block;
  font-size: 0.72rem;
  color: #ff453a;
  margin-top: 0.4rem;
  font-family: var(--font);
  font-weight: 600;
  min-height: 1em;
}

/* Budget pills */
.ctc-budget-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}
@media (min-width: 480px) { .ctc-budget-grid { grid-template-columns: repeat(4, 1fr); } }

.ctc-budget-opt {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.5rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.65rem;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
}
.ctc-budget-opt:hover { border-color: rgba(235,96,31,0.4); background: var(--orange-dim); }
.ctc-budget-opt.is-selected {
  border-color: var(--orange);
  background: rgba(235,96,31,0.1);
  box-shadow: 0 0 0 2px rgba(235,96,31,0.2);
}
.ctc-budget-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  font-family: var(--font);
  letter-spacing: 0.03em;
  transition: color 0.25s;
}
.ctc-budget-opt:hover .ctc-budget-label { color: var(--orange); }
.ctc-budget-opt.is-selected .ctc-budget-label { color: var(--orange); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Submit button */
.ctc-submit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1.1rem 2rem;
  background: var(--orange);
  color: #000;
  border: 2px solid var(--orange);
  border-radius: 999px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: all 0.35s ease;
  box-shadow: 0 0 30px rgba(235,96,31,0.35);
  overflow: hidden;
  margin-top: 0.5rem;
}
.ctc-submit:hover:not(:disabled) {
  background: #fff;
  border-color: #fff;
  box-shadow: 0 0 50px rgba(235,96,31,0.5);
  transform: scale(1.02);
}
.ctc-submit:disabled { opacity: 0.7; cursor: not-allowed; }

.ctc-submit-icon { display: flex; transition: transform 0.3s ease; }
.ctc-submit:hover:not(:disabled) .ctc-submit-icon { transform: translateX(4px); }

/* Loading state */
.ctc-submit-loader {
  display: none;
  width: 18px; height: 18px;
  border: 2.5px solid rgba(0,0,0,0.2);
  border-top-color: #000;
  border-radius: 50%;
  animation: ctc-spin 0.7s linear infinite;
  position: absolute;
  right: 1.5rem;
}
@keyframes ctc-spin { to { transform: rotate(360deg); } }
.ctc-submit.is-loading .ctc-submit-text { opacity: 0.6; }
.ctc-submit.is-loading .ctc-submit-icon { display: none; }
.ctc-submit.is-loading .ctc-submit-loader { display: block; }

/* Privacy note */
.ctc-privacy-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.25);
  font-family: var(--font);
  text-align: center;
}
.ctc-privacy-note svg { color: rgba(235,96,31,0.5); flex-shrink: 0; }


.scrolling-banner {
  margin-top: 5.5rem; /* add this — banner is ~3.5rem tall */
}
/* ── Success State ── */
/* [hidden] must beat display:flex — only flex when actually visible */
.ctc-success[hidden] { display: none !important; }
.ctc-success:not([hidden]) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  min-height: 500px; 
}
.ctc-success-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(40,200,64,0.15);
  border: 2px solid rgba(40,200,64,0.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  color: #28c840;
  margin-bottom: 1.5rem;
  font-weight: 900;
}
.ctc-success-title {
  font-size: 2rem; font-weight: 900;
  font-family: var(--font); margin-bottom: 0.75rem;
}
.ctc-success-desc {
  font-size: 1rem; color: var(--muted); line-height: 1.75;
  max-width: 400px; margin-bottom: 2rem;
}
.ctc-success-back {
  font-size: 0.85rem; font-weight: 700; color: var(--orange);
  text-decoration: none; letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(235,96,31,0.3);
  padding-bottom: 0.3rem; transition: all 0.3s;
}
.ctc-success-back:hover { letter-spacing: 0.1em; border-color: var(--orange); }


/* ==============================================
   WHY WORK WITH US
   ============================================== */
.contact-why {
  padding: 8rem 1.5rem;
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--border);
}
.contact-why-inner { max-width: 1280px; margin: 0 auto; }

.contact-why-header { margin-bottom: 5rem; }
.contact-why-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-family: var(--font);
  margin-top: 0.5rem;
}

.ctc-why-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--border);
}
@media (min-width: 640px)  { .ctc-why-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ctc-why-steps { grid-template-columns: repeat(4, 1fr); } }

.ctc-why-step {
  padding: 2.5rem 2rem;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.ctc-why-step:hover { background: var(--orange-dim); }

/* Remove right border on last col per row */
@media (min-width: 1024px) {
  .ctc-why-step:nth-child(4n) { border-right: none; }
  .ctc-why-step { border-bottom: none; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .ctc-why-step:nth-child(2n)  { border-right: none; }
  .ctc-why-step:nth-child(n+3) { border-bottom: none; }
}
@media (max-width: 639px) {
  .ctc-why-step { border-right: none; }
  .ctc-why-step:last-child { border-bottom: none; }
}

.ctc-why-num {
  font-size: 4rem;
  font-weight: 900;
  color: rgba(235,96,31,0.07);
  line-height: 1;
  margin-bottom: 1rem;
  font-family: var(--font);
  letter-spacing: -0.04em;
  transition: color 0.3s;
}
.ctc-why-step:hover .ctc-why-num { color: rgba(235,96,31,0.15); }

.ctc-why-icon-wrap { font-size: 2rem; margin-bottom: 1rem; display: block; }

.ctc-why-step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.6rem;
  font-family: var(--font);
  transition: color 0.3s;
}
.ctc-why-step:hover .ctc-why-step-title { color: var(--orange); }

.ctc-why-step-desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.42);
  line-height: 1.65;
}


/* ==============================================
   MAP
   ============================================== */
.contact-map-section {
  padding: 8rem 1.5rem;
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--border);
}
.contact-map-inner { max-width: 1280px; margin: 0 auto; }

.contact-map-header { margin-bottom: 3rem; }
.contact-map-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-family: var(--font);
  margin-top: 0.5rem;
}

.contact-map-embed {
  position: relative;
  border-radius: 1.75rem;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.contact-map-embed iframe { display: block; filter: grayscale(100%) invert(90%) contrast(0.85); }
.contact-map-embed:hover iframe { filter: grayscale(60%) invert(85%) contrast(0.9); transition: filter 0.5s ease; }

.map-overlay-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem; /* change this */
  /* left: 1.25rem; remove this */

  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(235,96,31,0.9);
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-family: var(--font);
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
}
.map-overlay-badge svg { stroke: #000; flex-shrink: 0; }


/* ── Server error banner ── */
.ctc-server-error {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.9rem 1.1rem;
  background: rgba(255, 69, 58, 0.08);
  border: 1px solid rgba(255, 69, 58, 0.35);
  border-radius: 0.75rem;
  font-size: 0.85rem;
  color: #ff6b6b;
  font-family: var(--font);
  line-height: 1.55;
  margin-bottom: 0.5rem;
  animation: ctc-err-in 0.3s ease;
}
.ctc-server-error svg { flex-shrink: 0; margin-top: 1px; stroke: #ff6b6b; }
@keyframes ctc-err-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ==============================================
   RESPONSIVE
   ============================================== */
@media (max-width: 768px) {
  .contact-hero { padding: 9rem 1rem 11rem; min-height: 70vh; }
  .contact-hero-title { font-size: clamp(4rem, 18vw, 6rem); }
  .contact-body { padding: 5rem 1rem; }
  .contact-form-wrap { padding: 2rem 1.25rem; }
  .contact-why, .contact-map-section { padding: 5rem 1rem; }
  .ctc-card { grid-template-columns: 40px 1fr auto; gap: 0.9rem; }
}

@media (max-width: 480px) {
  .ctc-card { grid-template-columns: 40px 1fr; }
  .ctc-card-arrow { display: none; }
}