/**
 * Contact Experience & Regional Presence Stylesheet
 * Strict adherence to Visual 26 (Editorial Contact) and Visuals 29 & 30 (Presence in Asia Hub).
 */

/* =============================================================================
   PAGE FOUNDATION
   ============================================================================= */
.contact-page {
  width: 100%;
  background-color: var(--color-brand-white, #ffffff);
  color: var(--color-brand-black, #111111);
  overflow-x: hidden;
}

/* Visually Hidden Utility for Accessible Form Labels */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* =============================================================================
   MODULE 1: EDITORIAL CONTACT STAGE (Visual 26)
   ============================================================================= */
.contact-editorial {
  position: relative;
  background-color: #ffffff;
  padding: 140px 0 100px 0;
}

.contact-editorial__container {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 6vh, 72px);
  width: 100%;
  max-width: var(--container-max-width, 1440px);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding, 32px);
  padding-right: var(--container-padding, 32px);
}

/* Full-Width Headline Layer */
.contact-editorial__headline-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.contact-editorial__eyebrow {
  font-family: var(--font-body, "Pretendard", sans-serif);
  font-size: 15px;
  font-weight: 600;
  color: #111111;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  display: block;
}

.contact-editorial__title {
  font-family: var(--hero-headline-font-family, var(--font-display, "Vatech Sans", sans-serif));
  font-weight: var(--hero-headline-font-weight, 700);
  text-transform: uppercase;
  font-size: clamp(2.75rem, min(8.5vw, 12vh), 7.5rem);
  line-height: var(--hero-headline-line-height, 0.92);
  letter-spacing: var(--hero-headline-letter-spacing, -0.035em);
  color: #111111;
  margin: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.contact-editorial__title .title-line {
  display: block;
}

/* Lower 2-Column Content Grid: Manifesto on Left & Form on Right */
.contact-editorial__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  width: 100%;
}

@media (min-width: 992px) {
  .contact-editorial__grid {
    grid-template-columns: 1.15fr 1fr;
    gap: 80px;
    align-items: flex-start;
  }
}

@media (min-width: 1200px) {
  .contact-editorial__grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 120px;
  }
}

/* Left Column: Architectural Typography */
.contact-editorial__col-left {
  display: flex;
  flex-direction: column;
}

.contact-editorial__manifesto {
  font-family: var(--font-body, "Pretendard", sans-serif);
  font-size: 16px;
  line-height: 1.5;
  color: #111111;
  max-width: 360px;
  margin: 0;
}

/* Right Column: Narrative & Minimalist Underlined Form */
.contact-editorial__col-right {
  display: flex;
  flex-direction: column;
}

.contact-form__lead {
  font-family: var(--font-body, "Pretendard", sans-serif);
  font-size: 18px;
  line-height: 1.5;
  color: #111111;
  margin: 0 0 36px 0;
}

.contact-form {
  position: relative;
  width: 100%;
}

/* Anti-Spam Honeypot (Never Visible to Legitimate Users) */
.contact-honeypot-wrap {
  display: none !important;
  visibility: hidden !important;
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
}

/* Minimalist Underlined Input Fields & Responsive Form Grid */
.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 28px;
  row-gap: 8px;
  width: 100%;
}

@media (min-width: 640px) {
  .contact-form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-field-group--full {
    grid-column: 1 / -1;
  }
}

.contact-field-group {
  position: relative;
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
}

/* Small Persistent Field Labels in Official Vatech Red */
.contact-label {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: var(--font-body, "Pretendard", sans-serif);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-brand-red, #db072f);
  letter-spacing: 0.01em;
  line-height: 1.3;
  margin-bottom: 2px;
  cursor: pointer;
  user-select: none;
}

.contact-label .contact-req {
  color: var(--color-brand-red, #db072f);
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
}

.contact-label .contact-optional {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.8;
  margin-left: 2px;
}

.contact-input {
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.22);
  background: transparent;
  padding: 8px 0 10px 0;
  font-family: var(--font-body, "Pretendard", sans-serif);
  font-size: 16px;
  color: #111111;
  border-radius: 0;
  transition: border-color 250ms ease, box-shadow 250ms ease;
  box-sizing: border-box;
}

.contact-input:focus {
  outline: none;
  border-bottom: 1.5px solid #111111;
}

.contact-input::placeholder {
  color: #8e959e;
  font-weight: 400;
  opacity: 1;
}

.contact-input.is-invalid {
  border-bottom-color: var(--color-brand-red, #db072f);
}

/* Custom Minimalist Select Wrapper & Chevron */
.contact-select-wrap {
  position: relative;
  width: 100%;
}

.contact-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 28px;
  cursor: pointer;
  color: #111111;
  background-color: transparent;
}

.contact-select.is-placeholder,
.contact-select:invalid {
  color: #8e959e;
}

.contact-select option {
  color: #111111;
  background: #ffffff;
  padding: 8px 12px;
}

.contact-select optgroup {
  font-weight: 700;
  color: #4b5563;
  background: #f8fafc;
  padding: 6px 0;
}

.contact-select-chevron {
  position: absolute;
  right: 4px;
  bottom: 12px;
  pointer-events: none;
  font-size: 13px;
  color: #8e959e;
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1), color 200ms ease;
}

.contact-select:focus ~ .contact-select-chevron {
  color: #111111;
  transform: rotate(180deg);
}

.contact-textarea {
  resize: vertical;
  min-height: 80px;
  margin-top: 6px;
}

.field-error-msg {
  display: block;
  min-height: 16px;
  font-family: var(--font-body, "Pretendard", sans-serif);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-brand-red, #db072f);
  margin-top: 4px;
}

/* Dynamic Feedback Alert Banner */
.contact-alert {
  padding: 16px 20px;
  border-radius: 4px;
  font-family: var(--font-body, "Pretendard", sans-serif);
  font-size: 14px;
  line-height: 1.5;
  margin: 20px 0;
  display: none;
}

.contact-alert--success {
  display: block !important;
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.contact-alert--error {
  display: block !important;
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Primary Submit Action (Visual 26 Capsule Aesthetics) */
.contact-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  margin-top: 32px;
  align-items: center;
}

.contact-submit-btn {
  background-color: #111111;
  color: #ffffff;
  border-color: #111111;
  padding: 14px 38px;
  font-size: 15px;
  font-weight: 600;
}

.contact-submit-btn:hover,
.contact-submit-btn:focus-visible {
  background-color: var(--color-brand-red, #db072f);
  border-color: var(--color-brand-red, #db072f);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(219, 7, 47, 0.25);
}

.contact-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 9999px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background-color: #ffffff;
  color: #111111;
  padding: 12px 24px;
  font-family: var(--font-body, "Pretendard", sans-serif);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 250ms cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  position: relative;
  user-select: none;
  -webkit-appearance: none;
}

.contact-pill-btn:hover,
.contact-pill-btn:focus-visible {
  background-color: #111111;
  color: #ffffff;
  border-color: #111111;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  outline: none;
}

.contact-pill-btn .pill-arrow {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-pill-btn:hover .pill-arrow,
.contact-pill-btn:focus-visible .pill-arrow {
  transform: translate(3px, -3px);
}

/* Spinner indicator while dispatching inquiry */
.contact-pill-btn .pill-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top-color: #111111;
  border-radius: 50%;
  animation: pill-spin 0.6s linear infinite;
}

.contact-pill-btn:hover .pill-spinner {
  border-color: rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
}

.contact-pill-btn.is-loading .pill-arrow {
  display: none;
}

.contact-pill-btn.is-loading .pill-spinner {
  display: inline-block;
}

.contact-pill-btn.is-loading {
  pointer-events: none;
  opacity: 0.85;
}

@keyframes pill-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* =============================================================================
   MODULE 2: "CONNECTED ACROSS ASIA" REGIONAL PRESENCE (Visuals 29 & 30)
   ============================================================================= */
/* =============================================================================
   MODULE 2: "CONNECTED ACROSS ASIA" REGIONAL PRESENCE (Visuals 29 & 30)
   Full-Bleed Interactive Map Section with Overlaid Controls & Cards
   ============================================================================= */
.presence-section {
  position: relative;
  background-color: #def0fe;
  min-height: 90vh;
  min-height: 90dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  scroll-margin-top: 80px;
  overflow: hidden;
  padding: 0;
}

/* Full-Bleed Interactive Regional Map Layer */
.presence-section__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: auto;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.presence-section__backdrop .asia-map-vector {
  width: 100%;
  height: 100%;
  display: block;
}

.presence-section__backdrop-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, rgba(222, 240, 255, 0) 50%, rgba(222, 240, 255, 0.4) 100%);
}

/* Overlaid UI Controls Container */
.presence-section__container {
  position: relative;
  z-index: 2;
  pointer-events: none;
  width: 100%;
  min-height: 90vh;
  min-height: 90dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(28px, 4vh, 48px) clamp(20px, 4vw, 56px) clamp(24px, 3vh, 36px) clamp(20px, 4vw, 56px);
  box-sizing: border-box;
}

/* Enable pointer events on interactive overlay elements */
.presence-section__top-overlay,
.presence-controls-bar,
.presence-search-wrap,
.presence-search-input,
.presence-search-clear,
.presence-actions-wrap,
.pill-btn,
.hq-card,
.hub-selector-bar,
.hub-chip-btn {
  pointer-events: auto;
}

/* Top Row: Section Header & Narrative / Search Controls */
.presence-section__top-overlay {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: flex-start;
  margin-bottom: 12px;
}

.presence-section__mobile-action {
  display: none;
}

@media (max-width: 991px) {
  .presence-section {
    min-height: auto;
    scroll-margin-top: 60px;
  }
  .presence-section__container {
    min-height: auto;
    padding-top: 48px;
    padding-bottom: 40px;
    padding-left: clamp(20px, 4vw, 32px);
    padding-right: clamp(20px, 4vw, 32px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }
  .presence-section__top-overlay {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 0;
  }
  .presence-section__header-left {
    width: 100%;
  }
  .presence-section__narrative {
    max-width: 100%;
    margin-top: 14px;
  }
  .presence-section__header-right,
  .presence-controls-bar,
  .presence-search-wrap {
    display: none !important;
  }
  .presence-section__backdrop {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    margin: 24px 0 16px 0;
    z-index: 1;
    pointer-events: auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .presence-section__backdrop .asia-map-vector {
    width: 200%;
    min-width: 200%;
    height: auto;
    max-width: none;
    flex-shrink: 0;
    display: block;
  }
  .presence-section__backdrop-vignette {
    display: none;
  }
  .presence-section__mobile-action {
    display: flex !important;
    justify-content: center;
    width: 100%;
    margin-top: 14px;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
    pointer-events: auto;
  }
  .presence-section__card-stage {
    display: none !important;
  }
  .hub-selector-bar {
    display: none !important;
  }
}

.presence-section__eyebrow {
  font-family: var(--font-body, "Pretendard", sans-serif);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: #1e293b;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  display: block;
}

.presence-section__title {
  font-family: var(--font-display, "Vatech Sans", sans-serif);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(2.4rem, 4.6vw, 5.2rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: #111111;
  margin: 0;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.presence-section__header-left {
  display: flex;
  flex-direction: column;
}

.presence-section__header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

@media (max-width: 991px) {
  .presence-section__header-right {
    align-items: stretch;
  }
}

.presence-section__narrative {
  font-family: var(--font-body, "Pretendard", sans-serif);
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.55;
  color: #1e293b;
  margin: 18px 0 0 0;
  max-width: 580px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Controls Bar (Search + View All Buttons) */
.presence-controls-bar {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.presence-search-wrap {
  position: relative;
  flex: 1;
  min-width: 240px;
  max-width: 400px;
}

.presence-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 14px;
  pointer-events: none;
}

.presence-search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 9999px;
  padding: 11px 40px 11px 44px;
  font-family: var(--font-body, "Pretendard", sans-serif);
  font-size: 14px;
  color: #111111;
  transition: all 200ms ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.presence-search-input:focus {
  outline: none;
  background: #ffffff;
  border-color: #111111;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.presence-search-clear {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
}

.presence-search-clear:hover {
  color: #111111;
}

/* Center / Float Stage for Active Hub Card (Red Contact Card) */
.presence-section__card-stage {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  pointer-events: none;
  margin: 12px 0;
}

.hq-card {
  position: relative;
  background-color: var(--color-brand-red, #db072f);
  color: #ffffff;
  padding: clamp(24px, 2.2vw, 32px) clamp(26px, 2.8vw, 36px);
  border-radius: 0;
  box-shadow: 0 24px 48px rgba(219, 7, 47, 0.35), 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 5;
  width: 100%;
  max-width: 420px;
  transition: transform 250ms ease, opacity 250ms ease;
}

.hq-card__inner {
  display: flex;
  flex-direction: column;
}

.hq-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.hq-card__badge {
  font-family: var(--font-body, "Pretendard", sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 10px;
  display: inline-block;
}

.hq-card__close {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
  opacity: 0.85;
  transition: opacity 150ms ease, transform 200ms ease;
}

.hq-card__close:hover {
  opacity: 1;
  transform: rotate(-45deg);
}

.hq-card__company {
  font-family: var(--font-display, "Vatech Sans", sans-serif);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.18;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 8px 0;
}

.hq-card__scope {
  font-family: var(--font-body, "Pretendard", sans-serif);
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 16px 0;
}

.hq-card__divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
  margin-bottom: 18px;
}

.hq-card__address {
  font-family: var(--font-body, "Pretendard", sans-serif);
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 20px 0;
}

.hq-card__contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hq-card__contact-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--font-body, "Pretendard", sans-serif);
  font-size: 15px;
}

.hq-card__contact-row .contact-label {
  font-weight: 700;
  font-size: 14px;
  width: 16px;
  opacity: 0.8;
  flex-shrink: 0;
}

.hq-card__contact-row .contact-value {
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 1px;
  transition: border-color 150ms ease;
  word-break: break-all;
}

.hq-card__contact-row .contact-value:hover {
  border-color: #ffffff;
}

/* Bottom Bar: Regional Network Chips */
.hub-selector-bar {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: row;
  align-items: center;
  align-self: center;
  margin-left: auto;
  margin-right: auto;
  gap: 14px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 8px 18px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  width: fit-content;
  max-width: 100%;
}

.hub-selector-label {
  font-family: var(--font-body, "Pretendard", sans-serif);
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
}

.hub-selector-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.hub-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 9999px;
  padding: 7px 15px;
  font-family: var(--font-body, "Pretendard", sans-serif);
  font-size: 13px;
  font-weight: 500;
  color: #222222;
  cursor: pointer;
  white-space: nowrap;
  transition: all 200ms ease;
}

.hub-chip-btn:hover {
  background-color: #111111;
  color: #ffffff;
  border-color: #111111;
}

.hub-chip-btn.is-active {
  background-color: var(--color-brand-red, #db072f);
  color: #ffffff;
  border-color: var(--color-brand-red, #db072f);
}

.chip-hq-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: var(--color-brand-red, #db072f);
  color: #ffffff;
  padding: 2px 5px;
  border-radius: 4px;
}

.hub-chip-btn.is-active .chip-hq-tag {
  background: #ffffff;
  color: var(--color-brand-red, #db072f);
}

.chip-rep-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: #333333;
  color: #ffffff;
  padding: 2px 5px;
  border-radius: 4px;
}

.hub-chip-btn.is-active .chip-rep-tag {
  background: #ffffff;
  color: #111111;
}

/* =============================================================================
   INTERACTIVE SVG MAP PIN MARKERS & ZERO-TRANSFORM KEYFRAME ANIMATIONS
   (Guarantees zero diagonal fly-away artifacts)
   ============================================================================= */
.map-pin {
  cursor: pointer;
  outline: none;
}

.map-pin .pin-pulse {
  animation: pin-pulse-wave 2.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes pin-pulse-wave {
  0% {
    r: 7px;
    opacity: 0.8;
  }
  65% {
    r: 20px;
    opacity: 0.2;
  }
  100% {
    r: 26px;
    opacity: 0;
  }
}

.map-pin:hover .pin-core,
.map-pin:focus-visible .pin-core,
.map-pin.is-active .pin-core {
  fill: #db072f;
  stroke: #ffffff;
  stroke-width: 3.5px;
  r: 9px;
}

/* Malaysia Vatech Asia HQ Marker */
.map-pin--hq {
  cursor: pointer;
  outline: none;
}

.map-pin--hq .pin-pulse-hq-outer {
  animation: hq-pulse-outer 2.4s cubic-bezier(0.16, 0.8, 0.3, 1) infinite;
}

.map-pin--hq .pin-pulse-hq-inner {
  animation: hq-pulse-inner 2.4s cubic-bezier(0.16, 0.8, 0.3, 1) infinite 0.4s;
}

.map-pin--hq .pin-beacon-ring {
  animation: hq-dash-flow 3s linear infinite;
}

@keyframes hq-pulse-outer {
  0% {
    r: 12px;
    opacity: 0.7;
  }
  60% {
    r: 32px;
    opacity: 0.15;
  }
  100% {
    r: 40px;
    opacity: 0;
  }
}

@keyframes hq-pulse-inner {
  0% {
    r: 10px;
    opacity: 0.8;
  }
  60% {
    r: 22px;
    opacity: 0.25;
  }
  100% {
    r: 28px;
    opacity: 0;
  }
}

@keyframes hq-dash-flow {
  0% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: -28;
  }
}

.map-pin--hq:hover .pin-core--hq,
.map-pin--hq:focus-visible .pin-core--hq,
.map-pin--hq.is-active .pin-core--hq {
  r: 12px;
  stroke-width: 4px;
}

.pin-hq-badge rect {
  transition: fill 200ms ease;
}

.map-pin--hq:hover .pin-hq-badge rect,
.map-pin--hq.is-active .pin-hq-badge rect {
  fill: var(--color-brand-red, #db072f);
}

.map-pin.is-dimmed {
  opacity: 0.35;
  filter: grayscale(0.8);
  transition: opacity 250ms ease, filter 250ms ease;
}

/* Google Maps Footer in Card */
.hq-card__footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.hq-card__map-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-family: var(--font-body, "Pretendard", sans-serif);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.2);
  padding: 6px 14px;
  border-radius: 9999px;
  transition: background 200ms ease;
}

.hq-card__map-cta:hover {
  background: rgba(0, 0, 0, 0.4);
}

/* =============================================================================
   ALL OFFICES & CONTACT DETAILS MODAL DIALOG
   ============================================================================= */
.all-offices-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%);
  margin: 0;
  border: none;
  border-radius: 16px;
  padding: 0;
  max-width: 1040px;
  width: 92vw;
  max-height: 88vh;
  height: min(88vh, 780px);
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.35);
  background: #ffffff;
  overflow: hidden;
  box-sizing: border-box;
}

.all-offices-modal::backdrop {
  background: rgba(10, 20, 30, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.all-offices-modal__dialog {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
  padding: 36px 40px;
  overflow: hidden;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .all-offices-modal__dialog {
    padding: 24px 20px;
  }
}

.all-offices-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.modal-eyebrow {
  font-family: var(--font-body, "Pretendard", sans-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-brand-red, #db072f);
  display: block;
  margin-bottom: 4px;
}

.all-offices-modal__title {
  font-family: var(--font-display, "Vatech Sans", sans-serif);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: #111111;
  margin: 0;
  letter-spacing: -0.02em;
}

.all-offices-modal__close {
  background: #f1f3f5;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #333333;
  cursor: pointer;
  transition: all 180ms ease;
}

.all-offices-modal__close:hover {
  background: #111111;
  color: #ffffff;
}

.all-offices-modal__search-wrap {
  position: relative;
  margin-bottom: 24px;
  flex-shrink: 0;
}

.modal-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #8e959e;
  font-size: 14px;
}

.all-offices-modal__search-input {
  width: 100%;
  background: #f7f8f8;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 12px 16px 12px 42px;
  font-family: var(--font-body, "Pretendard", sans-serif);
  font-size: 14px;
  color: #111111;
  transition: border-color 200ms ease;
}

.all-offices-modal__search-input:focus {
  outline: none;
  border-color: #111111;
  background: #ffffff;
}

.all-offices-modal__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-right: 6px;
  padding-bottom: 12px;
}

.all-offices-modal__grid::-webkit-scrollbar {
  width: 6px;
}

.all-offices-modal__grid::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.04);
  border-radius: 9999px;
}

.all-offices-modal__grid::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 9999px;
}

.all-offices-modal__grid::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.35);
}

.office-card {
  background: #fbfcfd;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.office-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.07);
  border-color: rgba(0, 0, 0, 0.18);
}

.office-card--hq {
  border-left: 4px solid var(--color-brand-red, #db072f);
  background: #fffdfd;
}

.office-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.office-card__country {
  font-family: var(--font-body, "Pretendard", sans-serif);
  font-size: 14px;
  font-weight: 700;
  color: #111111;
}

.office-card__badge {
  font-family: var(--font-body, "Pretendard", sans-serif);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-brand-red, #db072f);
  background: rgba(219, 7, 47, 0.08);
  padding: 3px 8px;
  border-radius: 4px;
}

.office-card--hq .office-card__badge {
  background: var(--color-brand-red, #db072f);
  color: #ffffff;
}

.office-card__name {
  font-family: var(--font-display, "Vatech Sans", sans-serif);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  color: #111111;
  margin: 0 0 4px 0;
}

.office-card__city {
  font-family: var(--font-body, "Pretendard", sans-serif);
  font-size: 12px;
  color: #718096;
  margin: 0 0 6px 0;
}

.office-card__scope {
  font-family: var(--font-body, "Pretendard", sans-serif);
  font-size: 12px;
  line-height: 1.45;
  color: #4a5568;
  margin: 0 0 14px 0;
  min-height: 34px;
}

.office-card__divider {
  width: 100%;
  height: 1px;
  background: rgba(0, 0, 0, 0.06);
  margin-bottom: 12px;
}

.office-card__address {
  font-family: var(--font-body, "Pretendard", sans-serif);
  font-size: 12px;
  line-height: 1.5;
  color: #2d3748;
  margin: 0 0 16px 0;
  flex: 1;
}

.office-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.office-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body, "Pretendard", sans-serif);
  font-size: 11px;
  font-weight: 600;
  color: #111111;
  background: #f1f3f5;
  padding: 6px 10px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 180ms ease;
  word-break: break-all;
}

.office-action-btn:hover {
  background: #111111;
  color: #ffffff;
}

.office-action-btn--site:hover,
.office-action-btn--map:hover {
  background: var(--color-brand-red, #db072f);
  color: #ffffff;
}
