:root {
  --color-primary: #e60041;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  min-height: 100vh;
  background: linear-gradient(
    135deg,
    #fff5f7 0%,
    #ffe4e9 25%,
    #fff0f3 50%,
    #ffe8ed 75%,
    #fff5f7 100%
  );
  background-attachment: fixed;
  position: relative;
}

/* Force Inter font for all form elements */
input,
textarea,
button,
select {
  font-family: "Inter", sans-serif;
}

.clear {
  clear: both;
}

/* Main Container */
.order_distribution {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

/* Utility Classes */
.d-flex {
  display: flex !important;
}

.no-wrap {
  flex-wrap: nowrap !important;
}

.g-05 {
  gap: 5px !important;
}

.g-10 {
  gap: 10px !important;
}

.al-center {
  align-items: center !important;
}

.jc-center {
  justify-content: center !important;
}

.text-no-wrap {
  white-space: nowrap !important;
}

.m-0 {
  margin: 0 !important;
}

.mb-1 {
  margin-bottom: 10px !important;
}

.w-100 {
  width: 100% !important;
}

.mw-50 {
  max-width: 50% !important;
}

.cl-red {
  color: #e60041 !important;
}

.flex-column {
  flex-direction: column !important;
  gap: 16px;
}

/* Loading */
#globalLoading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.6);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

#globalLoading.hidden {
  display: none;
}

#globalLoading.visible {
  display: flex;
}

.loader {
  width: 48px;
  height: 48px;
  border: 6px solid #f3f3f3;
  border-top: 6px solid #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Form đã submit thành công — disable toàn bộ */
form.form-submitted {
  pointer-events: none;
}

form.form-submitted input,
form.form-submitted textarea,
form.form-submitted select {
  background-color: #f0f0f0 !important;
  color: #aaa !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  border-color: #e0e0e0 !important;
}

form.form-submitted button {
  background: #d0d0d0 !important;
  opacity: 0.6 !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}
