/* ==========================================================================
   CONTACT SECTION - MODERN, INTERACTIVE & HIGH CONVERSION
   ========================================================================== */

.contact-section {
  position: relative;
  background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 50%, #F1F5F9 100%);
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-block: var(--sec-pad, 5rem);
    overflow: hidden;
}

.contact-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 1200px);
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(26, 114, 201, 0.25) 50%, transparent 100%);
}

.contact-container {
  position: relative;
  z-index: 2;
}

/* 2-Column Grid Layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  margin-top: 3rem;
  align-items: stretch;
}

/* Right Side: Map & WhatsApp Form */
.contact-right-col {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Map Card */
.contact-map-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 1.25rem;
  box-shadow: 
    0 16px 36px -10px rgba(16, 18, 59, 0.08),
    0 0 0 1px rgba(16, 18, 59, 0.06);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-map-card:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 22px 48px -12px rgba(16, 18, 59, 0.12),
    0 0 0 1.5px rgba(26, 114, 201, 0.2);
}

.contact-map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.contact-map-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: #10123B;
  margin: 0;
}

.contact-map-title i {
  color: var(--color-accent, #1A72C9);
  font-size: 1.2rem;
}

.contact-map-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  background: rgba(34, 197, 94, 0.1);
  color: #15803D;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.contact-map-badge .live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.3);
  animation: mapPulse 2s infinite;
}

@keyframes mapPulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.contact-map-frame-wrap {
  width: 100%;
  height: 350px;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(16, 18, 59, 0.08);
}

.contact-map-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* WhatsApp Form Card */
.contact-form-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 
    0 16px 36px -10px rgba(16, 18, 59, 0.08),
    0 0 0 1px rgba(16, 18, 59, 0.06);
  position: relative;
}

.contact-form-head {
  margin-bottom: 1.5rem;
}

.contact-form-head h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #10123B;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
}

.contact-form-head h3 i {
  color: var(--color-primary);
  font-size: 1.45rem;
}

.contact-form-head p {
  color: #64748B;
  font-size: 0.92rem;
  margin: 0;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}

.form-group-full {
  grid-column: span 2;
}

.contact-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-input-wrap label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.contact-input-wrap label i {
  color: var(--color-accent, #1A72C9);
  font-size: 0.82rem;
}

.contact-field-box {
  position: relative;
  display: flex;
  align-items: center;
}

.contact-field-box i.field-icon {
  position: absolute;
  inset-inline-start: 1rem;
  color: #94A3B8;
  font-size: 0.95rem;
  pointer-events: none;
  transition: color 0.2s ease;
}

.contact-input,
.contact-select,
.contact-textarea {
  width: 100%;
  padding: 0.8rem 2.5rem 0.8rem 2.6rem;
  border-radius: 12px;
  border: 1.5px solid #E2E8F0;
  background: #F8FAFC;
  font-family: inherit;
  font-size: 0.92rem;
  color: #1E293B;
  transition: all 0.25s ease;
  outline: none;
}

.contact-select {
  cursor: pointer;
  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: left 0.85rem center;
  background-size: 1.1rem;
}

.contact-textarea {
  padding-inline-start: 1rem;
  resize: vertical;
  min-height: 85px;
}

.contact-input:focus,
.contact-select:focus,
.contact-textarea:focus {
  background: #ffffff;
  border-color: #25D366;
  box-shadow: 0 0 0 3.5px rgba(37, 211, 102, 0.15);
}

.contact-field-box:focus-within i.field-icon {
  color: #25D366;
}

/* Submit WhatsApp Button */
.btn-contact-whatsapp-submit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.95rem 1.5rem;
  border-radius: 50px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff;
  border: none;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.32);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 1.25rem;
}

.btn-contact-whatsapp-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
  background: linear-gradient(135deg, #28E16D 0%, #15A090 100%);
}

.btn-contact-whatsapp-submit:active {
  transform: translateY(0);
}

.btn-contact-whatsapp-submit i {
  font-size: 1.35rem;
}

/* Left Side: Branches & Direct Contact Info */
.contact-left-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Direct Contact Banner Card */
.contact-quick-card {
  background: linear-gradient(135deg, #10123B 0%, #1A1F5E 100%);
  border-radius: 24px;
  padding: 1.75rem;
  color: #ffffff;
  box-shadow: 
    0 18px 40px -10px rgba(16, 18, 59, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.contact-quick-card::after {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(26, 114, 201, 0.4), transparent 70%);
  pointer-events: none;
}

.contact-quick-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.contact-quick-head h4 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-quick-head h4 i {
  color: #F59E0B;
}

.contact-quick-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  color: #93C5FD;
}

.contact-quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.quick-action-btn {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  transition: all 0.25s ease;
}

.quick-action-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  color: #ffffff;
}

.quick-action-btn i {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.quick-call-btn i {
  background: #1A72C9;
  color: #ffffff;
}

.quick-wa-btn i {
  background: #25D366;
  color: #ffffff;
}

.quick-action-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.quick-action-text small {
  font-size: 0.72rem;
  color: #94A3B8;
  font-weight: 500;
}

/* Branch Cards Stack */
.contact-branches-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.branch-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 1.35rem 1.5rem;
  box-shadow: 
    0 10px 25px -6px rgba(16, 18, 59, 0.05),
    0 0 0 1px rgba(16, 18, 59, 0.06);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.branch-card:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 16px 35px -8px rgba(16, 18, 59, 0.12),
    0 0 0 1.5px rgba(26, 114, 201, 0.2);
}

.branch-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.branch-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #10123B;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.branch-card-title i {
  color: var(--color-primary, #292B9A);
  font-size: 1rem;
}

.branch-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  background: rgba(26, 114, 201, 0.1);
  color: #1A72C9;
}

.branch-address {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 1.1rem;
  color: #475569;
  line-height: 1.5;
  margin: 0.85rem 0;
}

.branch-address i {
  color: #64748B;
  font-size: 0.9rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.branch-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  border-top: 1px solid var(--color-line);
  font-size: 0.82rem;
}

.branch-hours {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #15803D;
  font-weight: 700;
}

.branch-hours i {
  font-size: 0.8rem;
}

.branch-direct-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #1A72C9;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s ease;
}

.branch-direct-link:hover {
  color: #292B9A;
  text-decoration: underline;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact-right-col {
    order: 1;
  }

  .contact-left-col {
    order: 2;
  }
}

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

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

  .contact-form-card {
    padding: 1.35rem 1.15rem;
  }

  .contact-map-card {
    padding: 1rem;
  }

  .contact-map-frame-wrap {
    height: 220px;
  }

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

  .branch-card {
    padding: 1.15rem;
  }
}
