@charset "UTF-8";
@import url("./reset.css");
@import url("./shared-imports.css");
:root {
  --max-width-container: 2240px;
  --primary-color-25: #f5faff;
  --primary-color-50: #e8f5ff;
  --primary-color-100: #d5ebff;
  --primary-color-200: #b3d9ff;
  --primary-color-300: #86bdff;
  --primary-color-400: #5693ff;
  --primary-color-500: #3068ff;
  --primary-color-600: #0d3aff;
  --primary-color-700: #032eff;
  --primary-color-800: #072ccc;
  --primary-color-900: #102e9e;
  --primary-color-950: #0a195c;
  --gray-color-50: #f9fafb;
  --gray-color-100: #f2f4f7;
  --gray-color-200: #eaecf0;
  --gray-color-300: #d0d5dd;
  --gray-color-500: #667085;
  --gray-color-700: #344054;
  --gray-color-800: #1d2939;
  --gray-color-900: #101828;
  --blue-color-50: #e8f5ff;
  --blue-color-700: #175cd3;
  --error-color-500: #f04438;
  --success-color-500: #12b76a;
  --purple-color-50: #f9f5ff;
  --purple-color-100: #f4ebff;
  --purple-color-500: #7f56d9;
  --purple-color-600: #6941c6;
  --purple-color-700: #53389e;
  --white-color: #ffffff;
  --active-filter: brightness(0) saturate(100%) invert(11%) sepia(81%)
    saturate(7480%) hue-rotate(240deg) brightness(101%) contrast(111%);
  --green-filter: brightness(0) saturate(100%) invert(35%) sepia(60%)
    saturate(4348%) hue-rotate(140deg) brightness(95%) contrast(98%);
  --breakpoint-xs: 390px;
  --breakpoint-sm: 640px;
  --breakpoint-md: 834px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1536px;
  --breakpoint-tablet: 1180px;
  --breakpoint-mobile: 705px;
  --shadow-xs: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
}

#float-chat #float-chat-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  display: none;
}
#float-chat #float-chat-overlay.show {
  display: block;
}
@media (max-width: 767px) {
  #float-chat #float-chat-view {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
  }
  #float-chat #float-chat-view.keyboard-open {
    height: 50%;
    top: auto;
    bottom: 0;
    transition: height 0.3s ease;
  }
  #float-chat #float-chat-view iframe {
    height: 100%;
    width: 100%;
  }
}

body.float-chat-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

.image-file-storage {
  position: relative;
}
.image-file-storage.loading {
  background-color: var(--gray-color-100);
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.image-file-storage .loader {
  width: 24px;
  height: 24px;
  border: 2px solid var(--gray-color-300);
  border-bottom-color: var(--purple-color-500);
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.file-storage-item {
  position: relative;
  transition: all 0.2s ease;
}
.file-storage-item:hover {
  background-color: var(--gray-color-50);
}
.file-storage-item:hover::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  background-image: url("/images/icons/download.svg");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.7;
}

.file-upload-status {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}
.file-upload-status--loading {
  color: var(--purple-color-500);
}
.file-upload-status--success {
  color: var(--success-color-500);
}
.file-upload-status--error {
  color: var(--error-color-500);
}
.file-upload-status .status-icon {
  width: 12px;
  height: 12px;
}
.file-upload-status .status-text {
  font-size: 12px;
  font-weight: 500;
}

.file-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--gray-color-900);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  white-space: nowrap;
  z-index: 10;
}
.file-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: var(--gray-color-900) transparent transparent transparent;
}

.file-storage-item:hover .file-tooltip {
  opacity: 1;
  visibility: visible;
}

/**
 * Rate Limit Warning Component Styles
 * Styling cho warning messages của form rate limiting
 */
.rate-limit-warning {
  position: relative;
  margin-bottom: 20px;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  animation: slideDown 0.3s ease-out;
}
.rate-limit-warning__content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.rate-limit-warning__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}
.rate-limit-warning__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.rate-limit-warning__text {
  flex: 1;
  margin: 0;
}
.rate-limit-warning__text strong {
  font-weight: 600;
}
.rate-limit-warning__close {
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.2s ease;
  margin-left: 8px;
}
.rate-limit-warning__close img {
  width: 16px;
  height: 16px;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}
.rate-limit-warning__close:hover {
  background-color: rgba(0, 0, 0, 0.05);
}
.rate-limit-warning__close:hover img {
  opacity: 1;
}
.rate-limit-warning--warning {
  background-color: #fef3cd;
  border-color: #ffc107;
  color: #856404;
}
.rate-limit-warning--warning .rate-limit-warning__icon img {
  filter: brightness(0) saturate(100%) invert(51%) sepia(95%) saturate(1000%) hue-rotate(359deg) brightness(95%) contrast(107%);
}
.rate-limit-warning--warning .rate-limit-warning__close:hover {
  background-color: rgba(133, 100, 4, 0.1);
}
.rate-limit-warning--error {
  background-color: #f8d7da;
  border-color: #dc3545;
  color: #721c24;
}
.rate-limit-warning--error .rate-limit-warning__icon img {
  filter: brightness(0) saturate(100%) invert(15%) sepia(95%) saturate(2000%) hue-rotate(350deg) brightness(95%) contrast(107%);
}
.rate-limit-warning--error .rate-limit-warning__close:hover {
  background-color: rgba(114, 28, 36, 0.1);
}
.rate-limit-warning--info {
  background-color: #d1ecf1;
  border-color: #17a2b8;
  color: #0c5460;
}
.rate-limit-warning--info .rate-limit-warning__icon img {
  filter: brightness(0) saturate(100%) invert(35%) sepia(95%) saturate(1000%) hue-rotate(180deg) brightness(95%) contrast(107%);
}
.rate-limit-warning--info .rate-limit-warning__close:hover {
  background-color: rgba(12, 84, 96, 0.1);
}
.rate-limit-warning--success {
  background-color: #d4edda;
  border-color: #28a745;
  color: #155724;
}
.rate-limit-warning--success .rate-limit-warning__icon img {
  filter: brightness(0) saturate(100%) invert(35%) sepia(95%) saturate(1000%) hue-rotate(120deg) brightness(95%) contrast(107%);
}
.rate-limit-warning--success .rate-limit-warning__close:hover {
  background-color: rgba(21, 87, 36, 0.1);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 768px) {
  .rate-limit-warning {
    margin-bottom: 16px;
    padding: 12px;
    font-size: 13px;
  }
  .rate-limit-warning__content {
    gap: 10px;
  }
  .rate-limit-warning__icon {
    width: 18px;
    height: 18px;
  }
  .rate-limit-warning__close img {
    width: 14px;
    height: 14px;
  }
}
@media (prefers-color-scheme: dark) {
  .rate-limit-warning--warning {
    background-color: rgba(255, 193, 7, 0.15);
    border-color: #ffc107;
    color: #fff3cd;
  }
  .rate-limit-warning--error {
    background-color: rgba(220, 53, 69, 0.15);
    border-color: #dc3545;
    color: #f8d7da;
  }
  .rate-limit-warning--info {
    background-color: rgba(23, 162, 184, 0.15);
    border-color: #17a2b8;
    color: #d1ecf1;
  }
  .rate-limit-warning--success {
    background-color: rgba(40, 167, 69, 0.15);
    border-color: #28a745;
    color: #d4edda;
  }
}
.auth-layout__form .rate-limit-warning,
#appointment-form .rate-limit-warning,
#contact-form .rate-limit-warning {
  margin-bottom: 24px;
}

#appointment-form .rate-limit-warning {
  margin-top: -10px;
  margin-bottom: 30px;
}

#contact-form .rate-limit-warning {
  margin-bottom: 20px;
}

.rate-limit-warning {
  z-index: 10;
  position: relative;
}

.rate-limit-warning:focus-within {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
}
.rate-limit-warning__close:focus {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

@media print {
  .rate-limit-warning {
    display: none;
  }
}
/**
 * Toast Notification Component
 * Modern toast notifications cho rate limiting và các thông báo khác
 */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  pointer-events: none;
  max-width: 400px;
  width: 100%;
}

.toast {
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  margin-bottom: 12px;
  padding: 16px 20px;
  pointer-events: auto;
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: "Inter", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  backdrop-filter: blur(10px);
}
.toast.show {
  transform: translateX(0);
  opacity: 1;
}
.toast.hide {
  transform: translateX(100%);
  opacity: 0;
}
.toast__content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.toast__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.toast__icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
.toast__body {
  flex: 1;
  min-width: 0;
}
.toast__title {
  font-weight: 600;
  margin: 0 0 4px 0;
  color: #1a1a1a;
  font-size: 14px;
}
.toast__message {
  margin: 0;
  color: #666;
  font-size: 13px;
  line-height: 1.4;
}
.toast__close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  border-radius: 4px;
  color: #999;
  transition: all 0.2s ease;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.toast__close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #666;
}
.toast__close svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}
.toast--success {
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}
.toast--success .toast__icon {
  background: #10b981;
  color: white;
}
.toast--warning {
  background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
}
.toast--warning .toast__icon {
  background: #f59e0b;
  color: white;
}
.toast--error {
  background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
}
.toast--error .toast__icon {
  background: #ef4444;
  color: white;
}
.toast--info {
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
}
.toast--info .toast__icon {
  background: #3b82f6;
  color: white;
}

@media (max-width: 768px) {
  .toast-container {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
  .toast {
    margin-bottom: 8px;
    padding: 14px 16px;
    font-size: 13px;
  }
  .toast__icon {
    width: 20px;
    height: 20px;
  }
  .toast__icon svg {
    width: 12px;
    height: 12px;
  }
  .toast__title {
    font-size: 13px;
  }
  .toast__message {
    font-size: 12px;
  }
  .toast__close {
    width: 20px;
    height: 20px;
    top: 10px;
    right: 10px;
  }
  .toast__close svg {
    width: 10px;
    height: 10px;
  }
}
@media (prefers-color-scheme: dark) {
  .toast {
    background: #1f2937;
    color: #f9fafb;
  }
  .toast__title {
    color: #f9fafb;
  }
  .toast__message {
    color: #d1d5db;
  }
  .toast__close {
    color: #9ca3af;
  }
  .toast__close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #f9fafb;
  }
  .toast--success {
    background: linear-gradient(135deg, #064e3b 0%, #1f2937 100%);
  }
  .toast--warning {
    background: linear-gradient(135deg, #78350f 0%, #1f2937 100%);
  }
  .toast--error {
    background: linear-gradient(135deg, #7f1d1d 0%, #1f2937 100%);
  }
  .toast--info {
    background: linear-gradient(135deg, #1e3a8a 0%, #1f2937 100%);
  }
}
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}
.toast-container .toast:nth-child(1) {
  z-index: 100;
}

.toast-container .toast:nth-child(2) {
  z-index: 99;
}

.toast-container .toast:nth-child(3) {
  z-index: 98;
}

.toast-container .toast:nth-child(4) {
  z-index: 97;
}

.toast-container .toast:nth-child(5) {
  z-index: 96;
}

.toast:hover {
  transform: translateX(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  line-height: 1.5;
}

html {
  font-size: 16px;
  font-family: "Inter", sans-serif;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  background-color: var(--white-color);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}

button:focus-visible {
  outline: 2px solid #4a90e2 !important;
  outline: -webkit-focus-ring-color auto 5px !important;
}

.main {
  position: relative;
  overflow-x: hidden;
}

.main-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 80px;
}
@media (max-width: 1024px) {
  .main-content {
    padding: 0 32px;
  }
}
@media (max-width: 640px) {
  .main-content {
    padding: 0 16px;
  }
}

a {
  text-decoration: none;
}

.hide {
  display: none !important;
}

.no-filter {
  filter: none !important;
}

.align-between {
  display: flex;
  justify-content: space-between;
}

@media (max-width: 385px) {
  .hide-sm-mobile {
    display: none !important;
  }
}
@media (max-width: 705px) {
  .hide-mobile {
    display: none !important;
  }
}
@media (min-width: 705px) {
  .show-mobile {
    display: none !important;
  }
}
@media (max-width: 1180px) {
  .hide-tablet {
    display: none !important;
  }
}
@media (min-width: 1180px) {
  .hide-desktop {
    display: none !important;
  }
}
@keyframes scrollText {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}
.hide-scroll::-webkit-scrollbar {
  display: none;
}

.paginationjs .paginationjs-pages {
  width: 100%;
  padding-top: 20px;
  border-top: 1px solid var(--Gray-200, #eaecf0);
}
.paginationjs .paginationjs-pages ul {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
}

.paginationjs-prev,
.paginationjs-next {
  background: none !important;
  border: none !important;
  outline: none !important;
  flex: 1;
}
.paginationjs-prev.disabled .custom-next, .paginationjs-prev.disabled .custom-prev,
.paginationjs-next.disabled .custom-next,
.paginationjs-next.disabled .custom-prev {
  cursor: default;
}

.custom-next,
.custom-prev {
  background: none;
  border: none;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--Gray-500, #667085);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  cursor: pointer;
}
.custom-next > img,
.custom-prev > img {
  filter: brightness(0) saturate(100%) invert(46%) sepia(7%) saturate(1139%) hue-rotate(183deg) brightness(91%) contrast(90%);
}

.custom-next {
  margin-left: auto;
}

.custom-prev {
  margin-right: auto;
}

.paginationjs .paginationjs-pages li {
  background-color: transparent;
  border: none;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: 2px;
}
.paginationjs .paginationjs-pages li > a {
  color: var(--Gray-500, #667085);
  text-align: center;
  font-family: Inter;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.paginationjs .paginationjs-pages li.active > a {
  background: var(--Primary-50, #e8f5ff);
  color: var(--Primary-600, #0d3aff);
  text-align: center;
  font-family: Inter;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px; /* 142.857% */
}

#float-chat {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  background-color: var(--primary-color-600);
  border-radius: 50%;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.08);
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s;
}
#float-chat:hover {
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.16);
}
#float-chat > img {
  width: 24px;
  height: 24px;
}
#float-chat-view {
  position: absolute;
  top: -16px;
  right: 0;
  width: 320px;
  max-width: 96vw;
  height: calc(100svh - 56px - 16px - 48px);
  max-height: 685px;
  transform: translateY(-100%) scale(0);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s;
  transform-origin: bottom right;
  border-radius: 12px;
  background-color: white;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2);
}
@media screen and (max-width: 768px) {
  #float-chat-view {
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    border-radius: 0;
    position: fixed;
    z-index: 999;
    transform: translate(0) !important;
  }
}
#float-chat-view #float-close-icon {
  position: absolute;
  top: 8px;
  right: 16px;
  cursor: pointer;
  padding: 10px;
}
#float-chat-view #float-close-icon > img {
  width: 20px;
  height: 20px;
  filter: brightness(0) saturate(100%) invert(44%) sepia(38%) saturate(209%) hue-rotate(183deg) brightness(90%) contrast(94%);
}
#float-chat-view iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 12px;
  background-color: #fff;
}
@media (max-width: 768px) {
  #float-chat-view iframe {
    border-radius: 0;
  }
}
#float-chat-view.active {
  transform: translateY(-100%) scale(1);
  pointer-events: all;
  opacity: 1;
}

.floating-btn {
  position: fixed;
  z-index: 999;
  border-radius: 50%;
  cursor: pointer;
}

.floating-wrapper {
  position: relative;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  /* animation: pulse 1s infinite; */
  box-shadow: 0 0 0 0 rgb(0, 123, 255);
  z-index: 0;
}

@keyframes pulse {
  0% {
    transform: scale(0.9);
    opacity: 1;
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 15px transparent;
  }
  100% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 transparent;
  }
}
.icon-wrapper {
  position: relative;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  overflow: hidden;
}

.icon-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  /* animation: shake 1s ease-in-out infinite; */
}

@keyframes shake {
  0%, 50%, 100% {
    transform: rotate(0);
  }
  10%, 30% {
    transform: rotate(-25deg);
  }
  20%, 40% {
    transform: rotate(25deg);
  }
}
.floating-btn--messenger {
  bottom: 228px;
  right: 32px;
}
.floating-btn--messenger .icon-wrapper {
  overflow: visible;
}
.floating-btn--messenger .icon-img {
  scale: 1.15;
}

.floating-btn--zalo1 {
  bottom: 150px;
  right: 32px;
}

.floating-btn--zalo2 {
  bottom: 72px;
  right: 32px;
}