*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.06); }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f5f5f5;
  color: #1a1a1a;
}

/* ===== LAYOUT ===== */
.img-stack,
.carousel,
.form-section,
.order-reminder {
  max-width: 500px;
  margin: 0 auto;
  background: #fff;
}

/* ===== PROMO HEADER ===== */
.promo-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 12px;
  background: linear-gradient(135deg, #f07050 0%, #e63329 100%);
  max-width: 500px;
  margin: 0 auto;
}

.promo-logo {
  flex-shrink: 0;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(255,255,255,.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.promo-logo__text {
  font-size: 13px;
  font-weight: 800;
  color: #222;
  letter-spacing: 1.5px;
  text-align: center;
}

.promo-center {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.promo-offer {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.promo-tagline {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 6px;
}

.promo-countdown {
  display: flex;
  gap: 8px;
}

.cd-box {
  background: #fff;
  border-radius: 4px;
  padding: 4px 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 46px;
}

.cd-num {
  font-size: 24px;
  font-weight: 800;
  color: #c0392b;
  line-height: 1.2;
}

.cd-label {
  font-size: 11px;
  font-weight: 700;
  color: #c0392b;
  line-height: 1.2;
}

.cd-msg {
  margin-top: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}

.promo-btn {
  flex-shrink: 0;
  background: #a93226;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  line-height: 1.4;
  padding: 10px 12px;
  border-radius: 4px;
  text-align: center;
}

/* ===== STICKY BOTTOM BAR ===== */
.site-header {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 500px;
  z-index: 100;
  text-align: center;
  padding: 10px 16px;
  background: #fff;
  box-shadow: 0 -2px 8px rgba(0,0,0,.15);
}

main {
  padding-bottom: 90px;
}

.promo-bar {
  font-size: 15px;
  color: #c0392b;
  margin-bottom: 8px;
  letter-spacing: .3px;
}

.promo-bar strong {
  font-size: 18px;
}

.btn-order {
  display: inline-block;
  background: #c0392b;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 10px 32px;
  border-radius: 4px;
  letter-spacing: .5px;
  animation: pulse 1.4s ease-in-out infinite;
}

.btn-order:hover {
  background: #a93226;
}

/* ===== IMAGE STACK ===== */
.img-stack {
  display: block;
}

.img-stack img {
  display: block;
  width: 100%;
  height: auto;
  line-height: 0;
}

/* ===== CAROUSEL ===== */
.carousel {
  position: relative;
  overflow: hidden;
}

.carousel__track {
  display: flex;
  transition: transform .35s ease;
}

.carousel__slide {
  flex: 0 0 100%;
  min-width: 0;
  overflow: hidden;
}

.carousel__slide img {
  display: block;
  width: 100%;
  height: auto;
}

/* Feedback images are 768px @2x — designed for ~384px logical width. */
.carousel--feedback .carousel__slide {
  display: flex;
  justify-content: center;
  background: #f0f0f0;
}

.carousel--feedback .carousel__slide img {
  width: 100%;
  max-width: 390px;
  height: auto;
  align-self: flex-start;
}

.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.45);
  color: #fff;
  border: none;
  font-size: 32px;
  line-height: 1;
  width: 40px;
  height: 56px;
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background .2s;
  padding: 0;
}

.carousel__btn:hover {
  background: rgba(0,0,0,.7);
}

.carousel__btn--prev { left: 6px; }
.carousel__btn--next { right: 6px; }

.carousel__dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.55);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .2s;
}

.carousel__dot.active {
  background: #fff;
}

/* ===== FORM ===== */
.form-section {
  padding: 24px 16px 28px;
  background: #fffde8;
}

.form-title {
  text-align: center;
  font-size: 19px;
  font-weight: 800;
  color: #e63329;
  margin-bottom: 20px;
  line-height: 1.35;
}

.field {
  margin-bottom: 10px;
}

.field label.label-combo {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #c0392b;
  text-align: center;
  margin-bottom: 8px;
}

.field input[type="text"],
.field input[type="tel"],
.field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  color: #1a1a1a;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
  appearance: auto;
}

/* Placeholder option (value="") hiển thị màu xám */
.field select:has(option[value=""]:checked) {
  color: #666;
}
.field select:has(option[value=""]:checked) option {
  color: #1a1a1a;
}

.field input[type="text"]:focus,
.field input[type="tel"]:focus,
.field select:focus {
  outline: none;
  border-color: #e63329;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #e63329;
}

.field input.invalid,
.field select.invalid {
  border-color: #e63329;
}

/* Negeri + Bandar side by side */
.field-row {
  display: flex;
  gap: 8px;
}

.field-half {
  flex: 1;
  min-width: 0;
}

.field-half select {
  width: 100%;
}

/* ===== COMBO RADIO ===== */
.combo-list {
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.combo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}

.combo-item:last-child {
  border-bottom: none;
}

.combo-item input[type="radio"] {
  display: none;
}

.combo-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #ccc;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s;
}

.combo-circle::after {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e63329;
  transform: scale(0);
  transition: transform .15s;
}

.combo-item input[type="radio"]:checked + .combo-circle {
  border-color: #e63329;
}

.combo-item input[type="radio"]:checked + .combo-circle::after {
  transform: scale(1);
}

.combo-text {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.3;
}

.err {
  display: block;
  font-size: 12px;
  color: #e63329;
  margin-top: 3px;
  min-height: 16px;
}

.btn-submit {
  display: block;
  width: 100%;
  background: #c0392b;
  color: #fff;
  border: none;
  font-size: 18px;
  font-weight: 800;
  padding: 16px;
  border-radius: 50px;
  cursor: pointer;
  letter-spacing: 1px;
  margin-top: 20px;
  animation: pulse 1.4s ease-in-out infinite;
}

.btn-submit:hover:not(:disabled) {
  background: #a93226;
}

.btn-submit:disabled {
  animation: none;
  background: #aaa;
  cursor: not-allowed;
}

.form-msg {
  margin-top: 16px;
  padding: 12px;
  border-radius: 4px;
  font-size: 14px;
  text-align: center;
  display: none;
}

.form-msg.success {
  display: block;
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-msg.error {
  display: block;
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* ===== ORDER REMINDER ===== */
.order-reminder {
  background: #c0392b;
  padding: 16px;
  text-align: center;
}

.order-reminder-title {
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 6px;
}

.order-reminder-text {
  color: #fff;
  font-size: 13px;
}

/* ===== HONEYPOT ===== */
.honey {
  display: none !important;
}

/* ===== DESKTOP ===== */
@media (min-width: 520px) {
  .site-header,
  .img-stack,
  .carousel,
  .form-section,
  .order-reminder {
    box-shadow: 0 0 12px rgba(0,0,0,.08);
  }
}
