
#utc-whatsapp-selector {
  --utc-wa-navy: #0A192F;
  --utc-wa-navy-text: #10365D;
  --utc-wa-green: #087E56;
  --utc-wa-green-hover: #066545;
  --utc-wa-green-dark: #006C3B;
  --utc-wa-lime: #9FD91A;
  --utc-wa-white: #FFFFFF;
  --utc-wa-gray-bg: #F1F5F9;
  --utc-wa-gray-border: #DCE6EC;
  --utc-wa-gray-hover: #B5D2DF;
  --utc-wa-text-desc: #475569;
  --utc-wa-text-muted: #566E80;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#utc-whatsapp-selector *,
#utc-whatsapp-selector *::before,
#utc-whatsapp-selector *::after,
.utc-wa-cards-list *,
.utc-wa-cards-list *::before,
.utc-wa-cards-list *::after {
  box-sizing: border-box;
}

/* Floating Trigger Button */
#utc-whatsapp-trigger {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 22px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: #087E56;
  color: #FFFFFF;
  font: 600 15px/1.2 "Inter", sans-serif;
  box-shadow: 0 8px 24px rgba(16, 54, 93, 0.22);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
#utc-whatsapp-trigger:hover {
  background: #066545;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(16, 54, 93, 0.32);
}
#utc-whatsapp-trigger svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex: none;
}

/* Modal Dialog */
#utc-whatsapp-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: 530px;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 28px;
  background: #FFFFFF;
  color: #10365D;
  box-shadow: 0 24px 60px -12px rgba(10, 25, 47, 0.25), 0 0 1px rgba(0, 0, 0, 0.08);
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 99999;
  animation: utcWaFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
#utc-whatsapp-dialog:not([open]) {
  display: none;
}
#utc-whatsapp-dialog::backdrop {
  background: rgba(10, 25, 47, 0.58);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

@keyframes utcWaFadeIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.utc-wa-dialog-inner {
  position: relative;
  padding: 32px 30px 34px 30px;
  display: flex;
  flex-direction: column;
}

/* Close button - Top Right */
#utc-whatsapp-dialog .utc-wa-close {
  position: absolute;
  top: 24px;
  right: 24px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: none;
  border-radius: 12px;
  background: #F1F5F9;
  color: #0A192F;
  cursor: pointer;
  transition: all 0.18s ease;
  z-index: 10;
}
#utc-whatsapp-dialog .utc-wa-close:hover {
  background: #E2E8F0;
  color: #0F172A;
  transform: scale(1.05);
}
#utc-whatsapp-dialog .utc-wa-close svg {
  width: 18px;
  height: 18px;
}

/* Intro Header */
.utc-wa-intro {
  margin-bottom: 22px;
  padding-right: 46px; /* Avoid overlap with close button */
}
.utc-wa-tag {
  display: inline-block;
  color: #087E56;
  font: 700 12.5px/1.2 "Inter", sans-serif;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
#utc-whatsapp-dialog h2,
.utc-wa-dialog-inner h2 {
  margin: 0 0 8px;
  color: #0A192F !important;
  font-family: "Sora", "Inter", sans-serif !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.4px !important;
}
#utc-whatsapp-dialog p,
.utc-wa-dialog-inner p {
  margin: 0;
  color: #566E80 !important;
  font-family: "Inter", sans-serif !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
}

/* Cards List */
.utc-wa-cards-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
}

/* Single Contact Card */
.utc-wa-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF;
  border: 1.5px solid #DCE6EC;
  border-radius: 18px;
  padding: 16px 20px;
  gap: 16px;
  box-shadow: 0 2px 6px rgba(10, 25, 47, 0.02);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.18s ease;
  cursor: pointer;
}
.utc-wa-card:hover {
  border-color: #B5D2DF;
  box-shadow: 0 6px 18px rgba(10, 25, 47, 0.06);
  transform: translateY(-1px);
}

/* Card Main content */
.utc-wa-card-main {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
}

/* Card Header Group (Lime bar + Titles) */
.utc-wa-card-header-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

/* Lime Vertical Accent Bar */
.utc-wa-card-lime-bar {
  width: 4px;
  height: 42px;
  background: #9FD91A;
  border-radius: 999px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Titles */
.utc-wa-card-titles {
  display: flex;
  flex-direction: column;
}
.utc-wa-card-campus {
  margin: 0 !important;
  color: #0A192F !important;
  font-family: "Sora", "Inter", sans-serif !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.2px !important;
}
.utc-wa-card-desc {
  margin: 3px 0 0 0 !important;
  color: #475569 !important;
  font-family: "Inter", sans-serif !important;
  font-size: 14.5px !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
}

/* Phone Line (aligned with the text column) */
.utc-wa-card-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 16px;
  color: #006C3B !important;
  font-family: "Inter", sans-serif !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  letter-spacing: 0.25px !important;
  line-height: 1.2 !important;
}
.utc-wa-phone-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.utc-wa-phone-icon svg {
  width: 18px;
  height: 18px;
  fill: #006C3B;
}

/* Green Action Button */
.utc-wa-btn-chat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 66px;
  height: 46px;
  border-radius: 14px;
  background: #087E56;
  color: #FFFFFF !important;
  text-decoration: none !important;
  flex-shrink: 0;
  border: none;
  cursor: pointer;
  transition: all 0.18s ease;
}
.utc-wa-card:hover .utc-wa-btn-chat,
.utc-wa-btn-chat:hover {
  background: #066545;
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(8, 126, 86, 0.35);
}
.utc-wa-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.utc-wa-btn-icon svg {
  width: 21px;
  height: 21px;
  fill: #FFFFFF;
}
.utc-wa-btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.utc-wa-btn-arrow svg {
  width: 14px;
  height: 14px;
  stroke: #FFFFFF;
}

/* Widget Adaptation (when embedded outside modal) */
.utc-wa-cards-widget {
  max-width: 530px;
  width: 100%;
}
.utc-wa-cards-widget .utc-wa-card {
  box-shadow: 0 2px 10px rgba(10, 25, 47, 0.04);
}

/* Accessibility Focus */
#utc-whatsapp-selector :focus-visible,
.utc-wa-cards-list :focus-visible {
  outline: 3px solid #008F9A;
  outline-offset: 3px;
}

/* Responsive */
@media (max-width: 600px) {
  #utc-whatsapp-trigger {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    min-height: 48px;
    padding: 10px 18px;
    font-size: 14.5px;
  }
  #utc-whatsapp-dialog {
    width: 100%;
    max-width: 100vw;
    margin: 0;
    inset: auto 0 0 0;
    border-radius: 26px 26px 0 0;
    border-bottom: none;
    max-height: calc(100dvh - 36px);
  }
  .utc-wa-dialog-inner {
    padding: 26px 20px 28px 20px;
  }
  #utc-whatsapp-dialog .utc-wa-close {
    top: 20px;
    right: 20px;
  }
  .utc-wa-intro {
    margin-bottom: 18px;
  }
  #utc-whatsapp-dialog h2,
  .utc-wa-dialog-inner h2 {
    font-size: 23px !important;
  }
  #utc-whatsapp-dialog p,
  .utc-wa-dialog-inner p {
    font-size: 14px !important;
  }
  .utc-wa-card {
    padding: 14px 14px;
    gap: 12px;
  }
  .utc-wa-card-header-group {
    gap: 10px;
    margin-bottom: 6px;
  }
  .utc-wa-card-lime-bar {
    width: 4px;
    height: 38px;
  }
  .utc-wa-card-campus {
    font-size: 17px !important;
  }
  .utc-wa-card-desc {
    font-size: 13px !important;
  }
  .utc-wa-card-phone {
    font-size: 15.5px !important;
    margin-left: 14px;
  }
  .utc-wa-phone-icon svg {
    width: 16px;
    height: 16px;
  }
  .utc-wa-btn-chat {
    width: 58px;
    height: 42px;
    border-radius: 12px;
  }
  .utc-wa-btn-icon svg {
    width: 19px;
    height: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #utc-whatsapp-selector *,
  .utc-wa-cards-list * {
    transition: none !important;
    animation: none !important;
  }
}
