/* MultiCheck Booking - Base Styles (v1)
   Note: Minimal utility mapping to match template classes.
   Colors/spacing can be refined later in a design pass. */

:root {
  --mc-font: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --mc-text: #0e1223;
  --mc-text-muted: #6d6d6d;
  --mc-border: #e5e7eb;     /* gray-200 */
  --mc-surface: #ffffff;
  --mc-bg: #f3f4f6;         /* gray-100 */
  --mc-primary: #AD8D51;    /* brown brand */
  --mc-primary-600: #8B6B3A;
  --mc-danger: #ef4444;
}

.mc-booking-container,
.mc-step-1,
.mc-step-2,
.mc-step-3 {
  font-family: var(--mc-font);
  color: var(--mc-text);
}

/* Container sizing similar to layout md */
.container {
  width: 100%;
  max-width: 1270px;
  margin: 0 auto;
  padding: 1.5rem 15px;
  box-sizing: border-box;
}

/* Headings */
.heading {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.text-3xl { font-size: 1.75rem; line-height: 1.2; }
.text-2xl { font-size: 1.5rem; line-height: 1.25; }
.text-xl  { font-size: 1.25rem; line-height: 1.3; }
.text-lg  { font-size: 1rem; line-height: 1.5; }
.text-base{ font-size: .95rem; line-height: 1.5; }
.text-sm  { font-size: .875rem; line-height: 1.4; }

.text-black10 { color: #0e1223; }
.text-black  { color: #111827; }
.text-gray2  { color: #6d6d6d; }
.text-gray3  { color: #6b7280; }
.text-primary{ color: var(--mc-primary); }

/* Simple utility */
.font-semibold { font-weight: 600; }
.font-medium   { font-weight: 500; }
.font-normal   { font-weight: 400; }
.bg-white      { background: var(--mc-surface); }
.bg-primary    { background: var(--mc-primary); }
.text-white    { color: #fff; }

/* Panels and cards */
.shadow-panel {
  box-shadow: 0 5px 13px -5px rgba(16, 25, 40, 0.08);
}

.service-info-card {
  background: var(--mc-surface);
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 5px 13px -5px rgba(16, 25, 40, 0.08);
}

/* Borders */
.border { border: 1px solid var(--mc-border); }
.border-gray5 { border-color: var(--mc-border); }
.rounded-md { border-radius: 8px; }
.rounded-lg { border-radius: 10px; }
.rounded-xl { border-radius: 12px; }
.rounded-full { border-radius: 9999px; }

/* Buttons */
button {
  cursor: pointer;
}

.bg-primary:hover {
  background: var(--mc-primary-600);
}

/* Outline button style for secondary actions */
.btn-outline-primary {
  background: transparent;
  color: var(--mc-primary);
  border: 2px solid var(--mc-primary);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
}

.btn-outline-primary:hover {
  background: var(--mc-primary);
  color: #fff;
}

/* Inputs */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"] {
  height: 48px;
  padding: 0 1rem;
  border-radius: 8px;
  border: 1px solid var(--mc-border);
  font-size: 1rem;
  box-sizing: border-box;
  outline: none;
}

input:focus {
  border-color: var(--mc-primary);
  box-shadow: 0 0 0 3px rgba(243, 106, 36, 0.12);
}

/* Grid responsive for steps */
.main-grid {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.form-section { flex: 1 1 0%; }
.sidebar-section { flex: 0 0 30%; max-width: 30%; }

/* Submit bar */
.submit-button-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: var(--mc-surface);
  box-shadow: 0 -6px 18px -10px rgba(0,0,0,.1);
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 1rem 15px;
}

.submit-button-container .text-center { color: #111; }

/* Steps progress (top of shortcode) */
.mc-steps-progress { margin-bottom: .5rem; }
.mc-steps {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; gap: 12px; flex-wrap: wrap;
}
.mc-step {
  padding: .5rem .75rem;
  border: 1px solid var(--mc-border);
  border-radius: 9999px;
  font-size: .9rem;
  color: #4b5563;
}
.mc-step.is-active {
  border-color: var(--mc-primary);
  color: var(--mc-primary);
  background: rgba(243,106,36,.06);
}

/* Promo messages */
#mc_promo_message {
  padding: 6px 10px;
  border-radius: 6px;
}
#mc_promo_message.mc-msg-ok {
  background: #ecfdf5; /* green-50 */
  color: #065f46;      /* green-700 */
  border: 1px solid #a7f3d0; /* green-200 */
}
#mc_promo_message.mc-msg-err {
  background: #fef2f2; /* red-50 */
  color: #991b1b;      /* red-800 */
  border: 1px solid #fecaca; /* red-200 */
}

/* Helpers used in templates (scoped to plugin wrappers to avoid conflicts with theme classes like Flatsome's #logo.flex-col.logo) */
.mc-booking-container .flex,
.mc-step-1 .flex,
.mc-step-2 .flex,
.mc-step-3 .flex { display: flex; }

.mc-booking-container .flex-col,
.mc-step-1 .flex-col,
.mc-step-2 .flex-col,
.mc-step-3 .flex-col { flex-direction: column; }

.mc-booking-container .items-center,
.mc-step-1 .items-center,
.mc-step-2 .items-center,
.mc-step-3 .items-center { align-items: center; }

.mc-booking-container .justify-between,
.mc-step-1 .justify-between,
.mc-step-2 .justify-between,
.mc-step-3 .justify-between { justify-content: space-between; }

.mc-booking-container .gap-3,
.mc-step-1 .gap-3,
.mc-step-2 .gap-3,
.mc-step-3 .gap-3 { gap: .75rem; }

.mc-booking-container .gap-4,
.mc-step-1 .gap-4,
.mc-step-2 .gap-4,
.mc-step-3 .gap-4 { gap: 1rem; }

.mc-booking-container .mt-3,
.mc-step-1 .mt-3,
.mc-step-2 .mt-3,
.mc-step-3 .mt-3 { margin-top: .75rem; }

.mc-booking-container .mt-4,
.mc-step-1 .mt-4,
.mc-step-2 .mt-4,
.mc-step-3 .mt-4 { margin-top: 1rem; }

.mc-booking-container .mb-2,
.mc-step-1 .mb-2,
.mc-step-2 .mb-2,
.mc-step-3 .mb-2 { margin-bottom: .5rem; }

.mc-booking-container .mb-3,
.mc-step-1 .mb-3,
.mc-step-2 .mb-3,
.mc-step-3 .mb-3 { margin-bottom: .75rem; }

.mc-booking-container .mb-4,
.mc-step-1 .mb-4,
.mc-step-2 .mb-4,
.mc-step-3 .mb-4 { margin-bottom: 1rem; }

.mc-booking-container .p-4,
.mc-step-1 .p-4,
.mc-step-2 .p-4,
.mc-step-3 .p-4 { padding: 1rem; }

.mc-booking-container .p-6,
.mc-step-1 .p-6,
.mc-step-2 .p-6,
.mc-step-3 .p-6 { padding: 1.5rem; }

/* Simple hr look */
hr {
  border: 0;
  border-top: 1px solid var(--mc-border);
  height: 1px;
}

/* Responsive utility for md breakpoint (to support md:w-[120px]) */
@media (min-width: 768px) {
  .md\:w-\[120px\] { width: 120px; }
}

/* Responsive */
@media (min-width: 769px) {
  .container { padding: 1.5rem 15px; }
  .submit-button-container {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    box-shadow: none;
    padding: 0;
  }
}

@media (max-width: 768px) {
  .container { padding: 0.5rem 15px; }
  .main-grid { flex-direction: column; }
  .form-section, .sidebar-section { flex: 1 1 100%; max-width: 100%!important; }

  /* Đổi thứ tự sidebar lên trên trên mobile cho Step 1 và Step 2 */
  .mc-step-1 .sidebar-section,
  .mc-step-2 .sidebar-section {
    order: -1;
  }

  /* Step 2: Promo row stacks vertically on mobile */
  .mc-step-2 .w-full.flex.items-start.gap-3.mt-3 {
    flex-direction: column;
    align-items: stretch;
  }
  .mc-step-2 .w-full.flex.items-start.gap-3.mt-3 > .flex.items-center {
    width: 100%;
    gap: .5rem;
    flex-wrap: wrap;
  }
  .mc-step-2 #mc_apply_promo,
  .mc-step-2 #mc_remove_promo {
    width: 100%;
  }

  /* mc-steps-progress sticky và styling cho mobile */
  .mc-steps-progress {
    position: sticky;
    top: 70px;
    background: var(--mc-surface);
    z-index: 10;
    padding: 0.25rem 0;
  }
  .mc-step {
    font-size: 12px;
    padding: 0.25rem 0.5rem;
  }
  .mc-steps .text-sm {
    font-size: 13px !important;
  }
  
}

/* Basic utility colors for placeholders used in templates */
.text-gray-600 { color: #4b5563; }
.text-gray-400 { color: #9ca3af; }
.text-gray-200 { color: #e5e7eb; }
.bg-gray100 { background: #f5f5f5; }
.bg-gray200 { background: #e5e7eb; }

/* Accessibility focus */
a:focus, button:focus, input:focus {
  outline: 2px dashed var(--mc-primary);
  outline-offset: 2px;
}
/* --- Steps progress custom utilities (mc-steps-progress) --- */

/* Typography + container skin (scoped via class in markup) */
.inherited-css {
  font-family: var(--mc-font);
  font-size: 14px;
  font-weight: 300;
  line-height: 20px;
  tab-size: 4;
}

/* Page background as requested */
/* Limit background styling to plugin area to avoid site-wide impact */
.mc-booking-container,
.mc-step-1,
.mc-step-2,
.mc-step-3 {
  background: #ffffff00;
}

/* Missing utilities used by the new steps markup */
.justify-center { justify-content: center; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.3rem; }
.h-6 { height: 1.5rem; }
.h-9 { height: 2.25rem; }
.h-px { height: 1px; }
.w-6 { width: 1.5rem; }
.w-4 { width: 1rem; }
.h-4 { height: 1rem; }
.w-\[22px\] { width: 22px; }
.cursor-pointer { cursor: pointer; }
.rounded-full { border-radius: 9999px; }
.bg-blurOrange { background-color: #8B6B3A; } /* brand blur brown */
.text-gray5 { color: var(--mc-border); }
.text-black2 { color: #1f2937; }
.\!text-white { color: #fff !important; }
.opacity-60 { opacity: 0.6; }
.hover\:opacity-80:hover { opacity: 0.8; }
.hidden { display: none !important; }
.object-fit { object-fit: contain; }

/* Green helpers for "done" step state */
.bg-lightGreen1 { background-color: #16a34a; }     /* green-600 */
.text-lightGreen { color: #16a34a; }                /* green-600 */
.text-lightGreen1 { color: #86efac; }               /* green-300 */

/* Let hr color be driven by currentColor via helper classes */
hr.text-gray5 { border-top-color: var(--mc-border); }

/* Responsive tablet:* utilities (>=769px) */
@media (min-width: 769px) {
  .tablet\:justify-start { justify-content: flex-start; }
  .tablet\:gap-5 { gap: 1.25rem; }
  .tablet\:w-\[28px\] { width: 28px; }
  .tablet\:h-\[28px\] { height: 28px; }
  .tablet\:h-\[65px\] { height: 65px; }
  .tablet\:bg-gray5 { background-color: var(--mc-border); }
  .tablet\:bg-primary { background-color: var(--mc-primary); }
  .tablet\:text-base { font-size: 14px; line-height: 20px; }
  .tablet\:text-lg { font-size: 16px; line-height: 24px; }
  .tablet\:text-white { color: #fff; }
  .tablet\:text-primary { color: var(--mc-primary); }
  .tablet\:text-black2 { color: #1f2937; }
  .tablet\:\!text-black2 { color: #1f2937 !important; }
  .tablet\:opacity-100 { opacity: 1; }
  .tablet\:inline { display: inline !important; }
  .tablet\:underline { text-decoration: underline; }
  .tablet\:text-orange5 { color: #AD8D51; }
  .tablet\:text-lightGreen { color: #16a34a; }
  .tablet\:text-lightGreen1 { color: #86efac; }

  /* hr color overrides via tablet: classes */
  hr.tablet\:text-orange5 { border-top-color: #AD8D51; }
  hr.tablet\:text-lightGreen1 { border-top-color: #86efac; }
}
/* --- Extra utilities + font-face for steps progress layout --- */

/* Tablet responsive helpers (min-width: 769px) */
@media (min-width: 769px) {
  .tablet\:hidden { display: none !important; }
  .tablet\:inline { display: inline !important; }
  .tablet\:bg-transparent { background-color: transparent !important; }
  .tablet\:\!text-lightGreen { color: #16a34a !important; }

  /* Giảm padding cho mc-steps-progress trên tablet */
  .mc-steps-progress {
    padding: 0.25rem 0;
  }
  .mc-step {
    padding: 0.25rem 0.5rem;
  }
  .mc-steps .w-\[22px\] {
    width: 5px!important;
  }
}


/* Ensure inherited-css uses the font */
.inherited-css { font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }
/* Utility for tablet:px-[15px] as in sample */
@media (min-width: 769px) {
  .tablet\:px-\[15px\] { padding-left: 15px !important; padding-right: 15px !important; }
}