/* ============================================================
   GENSYS — CONTACT US PAGE STYLES (Modern Interactive UI/UX)
   Sections: Contact Cards, Interactive Inquiry Form & Map
   ============================================================ */

/* ---------- CONTACT HEADER & SECTION ---------- */
.contact-outer {
  padding-top: calc(var(--header-h) + 50px);
  padding-bottom: 90px;
  background: radial-gradient(circle at 80% 0%, rgba(32, 84, 131, 0.08) 0%, transparent 60%);
}

.contact-info .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-blue);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.contact-info h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  text-transform: uppercase;
  color: var(--heading);
  line-height: 1.15;
  margin-bottom: 16px;
}
.contact-info h1 span {
  color: var(--brand-blue);
}

.contact-info .lead {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 520px;
}

/* ---------- INTERACTIVE CONTACT CARDS ---------- */
.contact-cards {
  display: grid;
  gap: 20px;
}

.contact-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px 26px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--brand-blue);
  opacity: 0.6;
  transition: opacity 0.3s, width 0.3s;
}
.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(17, 42, 70, 0.12);
  border-color: rgba(32, 84, 131, 0.3);
}
.contact-card:hover::before {
  opacity: 1;
  width: 6px;
}

/* Specific Card Accents */
.contact-card.card-wa::before { background: #25d366; }
.contact-card.card-phone::before { background: var(--gold); }
.contact-card.card-email::before { background: #00bfff; }

.cc-icon-wrap { flex-shrink: 0; }
.cc-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-navy), var(--brand-blue));
  color: var(--white);
  display: grid; place-items: center;
  font-size: 1.3rem;
  box-shadow: 0 6px 16px rgba(32, 84, 131, 0.25);
  transition: transform 0.3s ease;
}
.contact-card:hover .cc-icon { transform: scale(1.08) rotate(-4deg); }

.cc-icon.wa { background: linear-gradient(135deg, #25d366, #128c7e); box-shadow: 0 6px 16px rgba(37, 211, 102, 0.25); }
.cc-icon.phone { background: linear-gradient(135deg, #d4af37, #b48a1d); color: var(--dark); box-shadow: 0 6px 16px rgba(212, 175, 55, 0.25); }
.cc-icon.email { background: linear-gradient(135deg, #0f172a, #205483); box-shadow: 0 6px 16px rgba(15, 23, 42, 0.25); }

.cc-body { flex: 1; min-width: 0; }
.cc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.cc-header h4 {
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--dark);
}

.cc-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cc-badge.hq { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.cc-badge.online { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.cc-badge.phone { background: #fffbeb; color: #b45309; border: 1px solid #fef3c7; }
.cc-badge.email { background: #f8fafc; color: #475569; border: 1px solid #e2e8f0; }
.cc-badge i { font-size: 0.6rem; }
.cc-badge.online i { color: #22c55e; animation: pulseDot 2s infinite; }

@keyframes pulseDot {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
  100% { opacity: 1; transform: scale(1); }
}

.cc-text { font-size: 0.95rem; color: #334155; font-weight: 600; line-height: 1.4; margin-bottom: 12px; }
.cc-phone-link { font-size: 1.15rem; font-family: var(--font-head); font-weight: 800; color: var(--dark); display: block; margin-bottom: 4px; transition: color 0.2s; }
.cc-phone-link:hover { color: var(--brand-blue); }
.cc-subtext { font-size: 0.82rem; color: #64748b; margin-bottom: 12px; }

/* Contact Card Action Button */
.cc-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  background: #f1f5f9;
  color: var(--brand-navy);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.25s ease;
}
.cc-action-btn:hover {
  background: var(--brand-navy);
  color: var(--white);
  transform: translateX(3px);
}
.cc-action-btn.wa { background: #e8f5e9; color: #1b5e20; }
.cc-action-btn.wa:hover { background: #25d366; color: var(--white); }
.cc-action-btn.phone { background: #fff8e1; color: #7f6000; }
.cc-action-btn.phone:hover { background: var(--gold); color: var(--dark); }
.cc-action-btn.email { background: #e0f2fe; color: #0369a1; }
.cc-action-btn.email:hover { background: var(--brand-blue); color: var(--white); }

/* ---------- FORM STYLING ---------- */
.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.08);
  padding: 44px 40px;
  position: relative;
  overflow: hidden;
}
.contact-form-wrap::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--brand-navy), var(--brand-blue), var(--gold));
}

.form-head { margin-bottom: 28px; }
.form-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.form-title {
  font-size: 1.5rem;
  text-transform: uppercase;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 8px;
}
.form-title span { color: var(--brand-blue); }
.form-sub { font-size: 0.9rem; color: #64748b; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group.full { grid-column: 1 / -1; }

.input-ic-wrap {
  position: relative;
  width: 100%;
}
.input-ic-wrap .input-ic {
  position: absolute;
  left: 16px; top: 18px;
  color: #94a3b8;
  font-size: 0.95rem;
  pointer-events: none;
  transition: color 0.25s ease;
}
.input-ic-wrap.textarea-wrap .input-ic { top: 18px; }

.input-ic-wrap input,
.input-ic-wrap textarea {
  width: 100%;
  padding: 16px 16px 16px 44px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: #f8fafc;
  color: var(--dark);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s ease;
}
.input-ic-wrap textarea {
  min-height: 130px;
  resize: vertical;
}

.input-ic-wrap label.floating {
  position: absolute;
  left: 44px; top: 16px;
  font-size: 0.92rem;
  color: #64748b;
  pointer-events: none;
  transition: all 0.25s ease;
  background: transparent;
  padding: 0 4px;
}

/* Floating Label Effects */
.input-ic-wrap input:focus ~ label.floating,
.input-ic-wrap input:not(:placeholder-shown) ~ label.floating,
.input-ic-wrap textarea:focus ~ label.floating,
.input-ic-wrap textarea:not(:placeholder-shown) ~ label.floating {
  top: -9px;
  left: 14px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-head);
  color: var(--brand-blue);
  background: var(--white);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.input-ic-wrap input:focus,
.input-ic-wrap textarea:focus {
  border-color: var(--brand-blue);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(32, 84, 131, 0.12);
}
.input-ic-wrap input:focus ~ .input-ic,
.input-ic-wrap textarea:focus ~ .input-ic {
  color: var(--brand-blue);
}

/* Capacity Radio Pills */
.static-lbl {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 12px;
}
.static-lbl i { color: var(--brand-blue); margin-right: 6px; }

.capacity-pills-wrap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (max-width: 500px) {
  .capacity-pills-wrap { grid-template-columns: 1fr; }
}

.cap-pill { position: relative; cursor: pointer; display: block; }
.cap-pill input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.pill-box {
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}
.pill-box i { font-size: 1.1rem; color: #94a3b8; margin-bottom: 4px; transition: color 0.25s; }
.pill-box strong { font-family: var(--font-head); font-size: 0.88rem; color: var(--dark); }
.pill-box small { font-size: 0.72rem; color: #64748b; margin-top: 2px; }

.cap-pill:hover .pill-box {
  border-color: rgba(32, 84, 131, 0.4);
  background: #f0f9ff;
}

.cap-pill input[type="radio"]:checked + .pill-box {
  border-color: var(--brand-blue);
  background: #f0f9ff;
  box-shadow: 0 4px 14px rgba(32, 84, 131, 0.18);
}
.cap-pill input[type="radio"]:checked + .pill-box i { color: var(--brand-blue); }
.cap-pill input[type="radio"]:checked + .pill-box strong { color: var(--brand-navy); }

/* High Impact Submit Button */
.btn-submit {
  width: 100%;
  padding: 16px 28px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-blue) 100%);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(17, 42, 70, 0.25);
  margin-top: 10px;
}
.btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(17, 42, 70, 0.35);
  border-color: var(--gold);
}
.btn-submit .btn-icon {
  font-size: 1rem;
  transition: transform 0.3s ease;
}
.btn-submit:hover .btn-icon {
  transform: translateX(4px) translateY(-2px);
}
.btn-submit .spinner {
  display: none;
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn-submit.loading { pointer-events: none; opacity: 0.88; }
.btn-submit.loading .btn-text,
.btn-submit.loading .btn-icon { display: none; }
.btn-submit.loading .spinner { display: inline-block; }

/* Toast Success Alert */
.form-toast {
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: 12px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  animation: slideDown 0.4s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.form-toast.success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
}
.toast-icon { font-size: 1.4rem; color: #22c55e; flex-shrink: 0; margin-top: 2px; }
.toast-body strong { display: block; font-family: var(--font-head); font-size: 0.95rem; margin-bottom: 2px; }
.toast-body p { font-size: 0.88rem; color: #166534; margin: 0; }

.form-note {
  text-align: center;
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 16px;
}
.form-note a { color: var(--brand-blue); font-weight: 700; }

/* ---------- MAP SECTION ---------- */
.map-section {
  position: relative;
  height: 520px;
  background: var(--dark);
  margin-top: 60px;
}
.map-frame {
  width: 100%; height: 100%;
  border: 0;
  filter: grayscale(0.85) contrast(1.1);
}
.map-overlay-card {
  position: absolute;
  z-index: 2;
  top: 50%; left: 40px;
  transform: translateY(-50%);
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.2);
  padding: 32px 36px;
  max-width: 380px;
  border-top: 6px solid var(--brand-blue);
}
.map-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.map-card-ic {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: #e0f2fe;
  color: var(--brand-blue);
  display: grid; place-items: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.map-overlay-card h3 {
  font-size: 1.1rem;
  text-transform: uppercase;
  color: var(--dark);
}
.map-card-sub { font-size: 0.75rem; color: #64748b; text-transform: uppercase; letter-spacing: 0.05em; }
.map-addr { font-size: 0.95rem; color: #334155; font-weight: 600; margin-bottom: 8px; }
.map-hours { font-size: 0.85rem; color: #64748b; margin-bottom: 20px; }
.map-hours i { color: var(--brand-blue); }

.map-btn {
  width: 100%;
  justify-content: center;
  padding: 12px 20px;
}

/* ---------- RESPONSIVE BREAKPOINTS ---------- */
@media (max-width: 1023px) {
  .contact-outer { padding-top: 130px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .map-section { height: 440px; }
  .map-overlay-card { position: static; transform: none; margin: 20px; max-width: none; }
}
@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 28px 20px; }
}