/* ==========================================================================
   BRANCHES & CONTACT PAGE STYLESHEET
   Automation & Security Inc. (ASI)
   Unified Design System & 100% Responsive Full-Width Architecture
   ========================================================================== */

:root {
  --branch-red: #e11d2a;
  --branch-red-hover: #c8101e;
  --branch-red-soft: #fef2f2;
  --branch-navy: #091830;
  --branch-navy-card: #0f2347;
  --branch-navy-dark: #061124;
  --branch-slate-900: #0f172a;
  --branch-slate-800: #1e293b;
  --branch-slate-700: #334155;
  --branch-slate-600: #475569;
  --branch-slate-500: #64748b;
  --branch-slate-400: #94a3b8;
  --branch-slate-300: #cbd5e1;
  --branch-slate-200: #e2e8f0;
  --branch-slate-100: #f1f5f9;
  --branch-slate-50: #f8fafc;
  --branch-radius-sm: 8px;
  --branch-radius-md: 12px;
  --branch-radius-lg: 16px;
  --branch-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --branch-shadow-md: 0 4px 16px rgba(15, 23, 42, 0.07);
  --branch-shadow-lg: 0 10px 25px rgba(15, 23, 42, 0.1);
  --branch-transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Full-Width Fluid Container */
.branches-container {
  width: 100%;
  max-width: 100% !important;
  margin: 0 auto;
  padding-top: clamp(24px, 3vw, 40px);
  padding-bottom: clamp(28px, 3.5vw, 44px);
  padding-left: clamp(20px, 3.8vw, 64px);
  padding-right: clamp(20px, 3.8vw, 64px);
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   1. HERO SECTION (Aligned with Solutions & Projects Reference)
   ========================================================================== */
.branches-hero-section {
  position: relative;
  width: 100%;
  height: 436px;
  min-height: 436px;
  background-color: #f0f7ff;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  padding: 48px 0 0 0;
  border-bottom: 1px solid var(--branch-slate-200);
  box-sizing: border-box;
}

.branches-hero-section .branches-container {
  padding-top: 0;
  padding-bottom: 0;
}

.branches-hero-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.branches-hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  display: block;
}

.branches-hero-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(240, 247, 255, 0.98) 0%,
    rgba(240, 247, 255, 0.95) 42%,
    rgba(240, 247, 255, 0.75) 60%,
    rgba(240, 247, 255, 0.15) 85%
  );
}

.branches-hero-layout {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* Unified Breadcrumb Badge */
.branches-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  width: fit-content;
}

.branches-breadcrumb .breadcrumb-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #334155;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.branches-breadcrumb .breadcrumb-link:hover {
  color: var(--branch-red);
}

.branches-breadcrumb .breadcrumb-icon {
  color: var(--branch-red);
  flex-shrink: 0;
}

.branches-breadcrumb .breadcrumb-sep {
  color: #cbd5e1;
  font-size: 11px;
}

.branches-breadcrumb .breadcrumb-current {
  color: var(--branch-red);
  font-weight: 600;
}

/* Mini Tag */
.hero-tag-wrap,
.branches-mini-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  max-width: 100%;
}

.hero-tag-bar {
  display: none !important;
}

.hero-tag-text,
.branches-mini-tag span {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--branch-red);
  text-transform: uppercase;
  line-height: 1.3;
}

.branches-hero-title {
  font-size: clamp(28px, 2.7vw, 40px);
  font-weight: 800;
  color: #0b1728;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  max-width: 800px;
}

.branches-hero-title .highlight-red {
  color: var(--branch-red);
}

.branches-hero-desc {
  font-size: clamp(14px, 1.05vw, 15px);
  color: #475569;
  line-height: 1.55;
  max-width: 680px;
  margin: 0 0 16px;
}

/* ==========================================================================
   QUICK CONTACT FLOATING BAR (Direct from PDF Spec)
   ========================================================================== */
.hero-contact-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--branch-radius-md);
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.08);
  padding: 16px 20px;
  max-width: 100%;
  margin-bottom: 18px;
}

.hero-contact-grid {
  display: grid;
  grid-template-columns: auto auto auto 1fr;
  align-items: center;
  gap: 0;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 14px;
}

.hero-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 24px;
  text-decoration: none;
  color: inherit;
  border-right: 1px solid #e2e8f0;
  transition: var(--branch-transition);
}

.hero-contact-item:first-child {
  padding-left: 4px;
}

.hero-contact-item:last-child {
  border-right: none;
  padding-right: 4px;
}

.hero-contact-item:hover .contact-item-val {
  color: var(--branch-red);
}

.contact-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(225, 29, 42, 0.08);
  color: var(--branch-red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-info {
  display: flex;
  flex-direction: column;
}

.contact-item-val {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.contact-item-lbl {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 500;
}

/* Social Follow Row */
.hero-social-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 12px;
}

.social-row-label {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
}

.social-row-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background-color: var(--branch-red);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--branch-transition);
  box-shadow: 0 2px 6px rgba(225, 29, 42, 0.25);
}

.social-icon-btn:hover {
  background-color: var(--branch-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(225, 29, 42, 0.35);
}

/* ==========================================================================
   2. OUR BRANCHES SECTION (2-Column Main Content + Map Sidebar)
   ========================================================================== */
.branches-main-section {
  padding: clamp(48px, 5vw, 72px) 0;
  background-color: #ffffff;
  width: 100%;
}

.branches-header-block {
  margin-bottom: clamp(28px, 3.5vw, 40px);
}

.section-mini-tag {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--branch-red);
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 6px;
}

.section-main-title {
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 800;
  color: #0b1728;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.section-main-desc {
  font-size: clamp(14px, 1.1vw, 15.5px);
  color: #475569;
  line-height: 1.6;
  max-width: 680px;
  margin: 0;
}

/* 2-Column Split: Branches Grid (Left) + Philippines Map (Right) */
.branches-split-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: clamp(28px, 3.5vw, 44px);
  align-items: flex-start;
  width: 100%;
}

.branches-content-col {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 4vw, 48px);
}

/* Region Block */
.region-block {
  display: flex;
  flex-direction: column;
}

.region-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(16px, 2vw, 22px);
  padding-bottom: 8px;
  border-bottom: 2px solid #f1f5f9;
}

.region-pin-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(225, 29, 42, 0.1);
  color: var(--branch-red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.region-title {
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
  margin: 0;
}

.region-count-badge {
  font-size: 11.5px;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  padding: 3px 9px;
  border-radius: 12px;
}

/* Branch Cards Grids */
.branch-cards-grid {
  display: grid;
  gap: 18px;
  width: 100%;
}

.grid-3-col {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2-col {
  grid-template-columns: repeat(2, 1fr);
}

.grid-4-col {
  grid-template-columns: repeat(2, 1fr);
}

/* Individual Branch Card */
.branch-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--branch-radius-md);
  padding: 20px;
  box-shadow: var(--branch-shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--branch-transition);
  position: relative;
  overflow: hidden;
}

.branch-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background-color 0.25s ease;
}

.branch-card:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.branch-card:hover::before {
  background: var(--branch-red);
}

.branch-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.branch-office-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(225, 29, 42, 0.08);
  color: var(--branch-red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.branch-card-title {
  font-size: 15.5px;
  font-weight: 800;
  color: #0b1728;
  margin: 0;
  line-height: 1.3;
}

.branch-details-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.branch-detail-row {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 8px;
  font-size: 13px;
  color: #475569;
  line-height: 1.45;
  align-items: flex-start;
}

.detail-row-icon {
  color: var(--branch-red);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 2px;
  flex-shrink: 0;
}

.detail-row-text {
  word-break: break-word;
}

.detail-row-text strong {
  color: #0f172a;
  font-weight: 600;
  margin-right: 4px;
}

.detail-row-text a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease;
}

.detail-row-text a:hover {
  color: var(--branch-red);
  text-decoration: underline;
}

/* ==========================================================================
   PHILIPPINES MAP SIDEBAR (Right Column)
   ========================================================================== */
.branches-map-sidebar {
  position: sticky;
  top: 96px;
  width: 100%;
}

.branch-map-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--branch-radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.map-card-header {
  background: #091830;
  padding: 22px 24px;
  color: #ffffff;
}

.map-card-title {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.map-card-subtitle {
  font-size: 13px;
  color: #94a3b8;
  margin: 0;
  line-height: 1.4;
}

.branch-card.highlight-active-branch {
  border-color: #f43f5e;
  box-shadow: 0 8px 24px rgba(225, 29, 72, 0.12);
}

.branch-card.highlight-active-branch::before {
  background: var(--branch-red);
}

.map-card-body {
  padding: 16px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.interactive-map-wrapper {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  user-select: none;
  cursor: pointer;
  touch-action: pan-y;
}

.philippines-map-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  pointer-events: auto;
}

/* Active Target Pin on Map (Concentric circle with ripple, hidden by default) */
.map-target-pin {
  position: absolute;
  width: 28px;
  height: 28px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, left 0.3s cubic-bezier(0.16, 1, 0.3, 1), top 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.map-target-pin.is-active {
  opacity: 1;
  visibility: visible;
}

.target-ring {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2.5px solid #e11d48;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 10px rgba(225, 29, 72, 0.5);
}

.target-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e11d48;
  z-index: 2;
}

.target-pulse {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 1.5px solid #e11d48;
  border-radius: 50%;
  animation: targetPulseAnim 2s cubic-bezier(0.2, 0, 0, 1) infinite;
}

@keyframes targetPulseAnim {
  0% {
    transform: scale(0.7);
    opacity: 0.9;
  }
  70% {
    transform: scale(1.6);
    opacity: 0;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* 12 Interactive Hotspots */
.map-hotspot-btn {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 15;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.map-hotspot-btn::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
}

.map-hotspot-btn::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(225, 29, 72, 0.75);
  border: 1.5px solid #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.map-hotspot-btn:hover::after,
.map-hotspot-btn:focus-visible::after {
  transform: scale(1.6);
  background: #e11d48;
  box-shadow: 0 0 10px rgba(225, 29, 72, 0.85);
}

.map-hotspot-btn.active::after {
  opacity: 0; /* Hidden under the active target pin */
}

/* Floating Branch Details Card (Dynamic positioning in top-right ocean quadrant, hidden by default) */
.map-floating-card {
  position: absolute;
  top: 10px;
  right: 10px;
  width: clamp(215px, 58%, 255px);
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-top: 3.5px solid #e11d48;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.18), 0 3px 8px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  z-index: 25;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px) scale(0.97);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), left 0.3s cubic-bezier(0.16, 1, 0.3, 1), top 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.map-floating-card.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.map-card-close-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.7);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 15;
  transition: background-color 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(4px);
  padding: 0;
}

.map-card-close-btn:hover {
  background: #e11d48;
  transform: scale(1.1);
}

.map-floating-card:hover {
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.2);
}

.map-floating-card-img-wrap {
  width: 100%;
  height: 105px;
  overflow: hidden;
  background: #f1f5f9;
}

.map-floating-building-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.map-floating-card-body {
  padding: 10px 12px 12px;
}

.map-floating-title {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 1px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.map-floating-subtitle {
  font-size: 11px;
  color: #64748b;
  margin: 0 0 8px;
  line-height: 1.3;
}

.map-floating-divider {
  height: 1px;
  background: #f1f5f9;
  margin-bottom: 8px;
}

.map-floating-details {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.map-floating-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 10.5px;
  line-height: 1.35;
  color: #334155;
}

.map-floating-icon {
  color: #e11d48;
  flex-shrink: 0;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-floating-lbl {
  font-weight: 700;
  color: #0f172a;
  flex-shrink: 0;
}

.map-floating-val {
  color: #334155;
  word-break: break-word;
  font-size: 10px;
}

.map-card-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

.legend-square {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background-color: var(--branch-red);
  flex-shrink: 0;
}

.legend-text {
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
}

/* ==========================================================================
   3. INTERACTIVE INQUIRY & CONTACT FORM SECTION
   ========================================================================== */
.branches-inquiry-section {
  padding: clamp(48px, 5vw, 72px) 0;
  background-color: #f8fafc;
  border-top: 1px solid #e2e8f0;
  width: 100%;
}

.inquiry-split-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: flex-start;
  width: 100%;
}

.inquiry-form-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--branch-radius-lg);
  padding: clamp(28px, 3.5vw, 44px);
  box-shadow: var(--branch-shadow-md);
}

.inquiry-form-title {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 800;
  color: #0b1728;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.inquiry-form-desc {
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 24px;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.form-field-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field-label {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
}

.form-field-label .required {
  color: var(--branch-red);
}

.form-input-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--branch-radius-sm);
  font-size: 14px;
  color: #0f172a;
  background-color: #ffffff;
  transition: var(--branch-transition);
  outline: none;
  font-family: inherit;
  box-sizing: border-box;
}

.form-input-control:focus {
  border-color: var(--branch-red);
  box-shadow: 0 0 0 3px rgba(225, 29, 42, 0.12);
}

select.form-input-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
}

.form-input-control:disabled {
  background-color: #f1f5f9;
  color: #94a3b8;
  cursor: not-allowed;
}

.rptbs-address-box {
  background-color: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--branch-radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rptbs-address-heading {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.rptbs-address-heading .required {
  color: var(--branch-red);
}

.rptbs-address-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 640px) {
  .rptbs-address-grid {
    grid-template-columns: 1fr;
  }
}

textarea.form-input-control {
  min-height: 110px;
  resize: vertical;
}

.btn-form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  background-color: var(--branch-red);
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 700;
  border: none;
  border-radius: var(--branch-radius-sm);
  cursor: pointer;
  transition: var(--branch-transition);
  box-shadow: 0 4px 14px rgba(225, 29, 42, 0.3);
  width: 100%;
}

.btn-form-submit:hover {
  background-color: var(--branch-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(225, 29, 42, 0.4);
}

.btn-form-submit svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.btn-form-submit:hover svg {
  transform: translateX(3px);
}

/* Contact Info Hub (Right Column) */
.inquiry-info-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-sidebar-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--branch-radius-lg);
  padding: 24px;
  box-shadow: var(--branch-shadow-sm);
}

.info-sidebar-title {
  font-size: 18px;
  font-weight: 800;
  color: #0b1728;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-sidebar-title svg {
  color: var(--branch-red);
}

.support-channels-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.support-channel-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: var(--branch-radius-sm);
  background-color: #f8fafc;
  border: 1px solid #f1f5f9;
  text-decoration: none;
  color: inherit;
  transition: var(--branch-transition);
}

.support-channel-item:hover {
  background-color: #f1f5f9;
  border-color: #e2e8f0;
}

.channel-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(225, 29, 42, 0.08);
  color: var(--branch-red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.channel-content {
  display: flex;
  flex-direction: column;
}

.channel-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
}

.channel-sub {
  font-size: 12px;
  color: #64748b;
}

/* Hours Badge Box */
.hours-badge-box {
  background: linear-gradient(135deg, #091830 0%, #0f2347 100%);
  color: #ffffff;
  border-radius: var(--branch-radius-md);
  padding: 20px;
}

.hours-badge-title {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hours-badge-title svg {
  color: #38bdf8;
}

.hours-badge-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #cbd5e1;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hours-badge-row:last-child {
  border-bottom: none;
}

.hours-badge-row strong {
  color: #ffffff;
}

/* Form success message toast */
.form-toast-msg {
  display: none;
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: 12px 16px;
  border-radius: var(--branch-radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  margin-top: 16px;
  align-items: center;
  gap: 8px;
}

.form-toast-msg.show {
  display: flex;
}

.form-toast-msg.is-error {
  background-color: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.btn-form-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (Mobile, Tablet, Desktop)
   ========================================================================== */

/* Large Tablets & Small Desktops (1025px - 1280px) */
@media (max-width: 1280px) {
  .branches-split-layout {
    grid-template-columns: 1fr 360px;
    gap: 28px;
  }

  .grid-3-col {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablets (769px - 1024px) */
@media (max-width: 1024px) {
  .branches-hero-section {
    height: auto;
    min-height: auto;
    padding: 36px 0;
  }

  .branches-split-layout {
    display: flex;
    flex-direction: column;
  }

  .branches-map-sidebar {
    order: -1;
    position: static;
    max-width: 520px;
    width: 100%;
    margin: 0 auto 32px auto;
  }

  .inquiry-split-grid {
    grid-template-columns: 1fr;
  }

  .hero-contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .hero-contact-item {
    border-right: none;
    padding: 8px 12px;
  }
}

/* Small Tablets / Large Mobiles (641px - 768px) */
@media (max-width: 768px) {
  .branches-hero-section {
    min-height: auto;
    padding: 36px 0;
  }

  .branches-hero-gradient-overlay {
    background: rgba(240, 247, 255, 0.94);
  }

  .hero-contact-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-contact-item {
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
  }

  .hero-contact-item:last-child {
    border-bottom: none;
  }

  .grid-3-col,
  .grid-2-col,
  .grid-4-col {
    grid-template-columns: 1fr;
  }

  .contact-form-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile Phones (320px - 640px) */
@media (max-width: 640px) {
  .branches-container {
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 24px;
    padding-bottom: 28px;
  }

  .branches-hero-title {
    font-size: 26px;
  }

  .branches-hero-desc {
    font-size: 14px;
  }

  .hero-contact-card {
    padding: 14px 16px;
  }

  .hero-social-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .section-main-title {
    font-size: 22px;
  }

  .region-title {
    font-size: 19px;
  }

  .inquiry-form-card {
    padding: 20px 16px;
  }

  .map-card-body {
    padding: 10px;
  }

  .map-floating-card {
    width: clamp(180px, 60%, 230px);
    border-radius: 10px;
  }

  .map-floating-card-img-wrap {
    height: 75px;
  }

  .map-floating-card-body {
    padding: 8px 10px 10px;
  }

  .map-floating-title {
    font-size: 13px;
  }

  .map-floating-subtitle {
    font-size: 9.5px;
    margin-bottom: 6px;
  }

  .map-floating-row {
    font-size: 9.5px;
    gap: 4px;
  }

  .map-floating-val {
    font-size: 9px;
  }

  .map-target-pin {
    width: 22px;
    height: 22px;
  }

  .target-ring {
    width: 18px;
    height: 18px;
    border-width: 2px;
  }

  .target-dot {
    width: 5px;
    height: 5px;
  }

  .target-pulse {
    width: 24px;
    height: 24px;
  }

  .map-hotspot-btn {
    width: 38px;
    height: 38px;
    touch-action: manipulation;
  }

  .map-hotspot-btn::after {
    width: 7px;
    height: 7px;
  }
}
