/* =====================
   ฟอนต์หลักและร่างกาย
===================== */
@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@400;700&display=swap');

html, body {
  font-family: 'Kanit', sans-serif;
  background: #dedede;
  width: 100vw;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.menu-slide {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(.4,2,.6,1), opacity 0.25s;
  opacity: 0;
}
.menu-slide.show {
  max-height: 420px; /* หรือมากพอสำหรับเนื้อหาในแต่ละเมนู */
  opacity: 1;
}

.swal2-popup.custom-swal-size {
  font-size: 3.5rem !important;      /* ขนาดตัวหนังสือใหญ่ขึ้น */
  max-width: 800px !important;     /* กล่องใหญ่ขึ้น */
  padding: 3em 2em !important;
}
.swal2-title.custom-swal-title {
  font-size: 3.5rem !important;
}
.swal2-html-container.custom-swal-html {
  font-size: 3rem !important;
}
.swal2-actions.custom-swal-actions button {
  font-size: 2.5rem !important;
  padding: 1em 3.5em !important;
}

/* =====================
   หัวฟอร์ม
===================== */
#header-title {
  color: #ffffff;
  background: #00cbfd;
  border-radius: 50px 50px 0px 0px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  margin: 30px auto 0px auto;
  padding: 24px 30px 20px 30px;
  font-size: 4rem;
  max-width: 860px;
  width: 100%;
  font-family: 'Kanit', sans-serif;
  text-align: center;
}

/* =====================
   กล่องหลัก (ฟอร์มทั้งหมด)
===================== */
.section-card {
  background: #fff;
  border-radius: 0px 0px 50px 50px;
  box-shadow: 0 2px 12px rgba(24, 119, 242, 0.07);
  margin: 0px auto 20px auto;
  padding: 24px 30px 20px 30px;
  max-width: 860px;
  width: 100%;
  font-family: 'Kanit', sans-serif;
}

.en-label {
  font-size: 0.65em;
  font-weight: 400;
  color: #ffffff;
  display: block;
  margin-top: -2px;
}

.en-label2 {
  font-size: 0.85em;
  font-weight: 400;
  color: #bbbbbb;
  display: block;
  margin-top: 0px;
}

.en-label3 {
  font-size: 0.7em;
  font-weight: 400;
  color: #bbbbbb;
  display: block;
  margin-top: 0px;
}

.en-mainlabel {
  font-size: 0.75em;
  font-weight: 400;
  color: #bbbbbb;
  display: block;
  margin-top: -10px;
  padding: 0px 0px 20px 0px ;
}

/* =====================
   กลุ่ม: ประเภทบริการ
===================== */
.service-label {
  margin: 20px 0px 0px 0px;
  text-align: center;
  font-size: 3rem;
  color: #727272;
  font-weight: 600;
  font-family: 'Kanit', sans-serif;
}
.service-btn-group {
  display: flex;
  gap: 30px;
  margin-bottom: 15px;
}
.service-btn {
  flex: 1;
  height: 160px;
  background: #ececec;
  color: #b8b8b8;
  border: none;
  border-radius: 30px;
  padding: 24px 0;
  font-size: 3rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  font-family: 'Kanit', sans-serif;
}
.service-btn.selected,
.service-btn:active {
  background: #00cbfd;
  color: #fff;
}

/* =====================
   กลุ่ม: ปริมาณผ้า
===================== */
.weight-label {
  margin: 20px 0 10px 0;
  text-align: center;
  font-size: 3rem;
  color: #727272;
  font-weight: 600;
}
.weight-main {
  font-size: 3rem;
  font-weight: 700;
  display: block;
}
.weight-btn-group {
  display: flex;
  gap: 30px;
  margin-bottom: 10px;
}
.weight-btn {
  flex: 1;
  background: #ececec;
  color: #b4b3b3;
  border: none;
  font-size: 3rem;
  border-radius: 30px;
  padding: 20px 20px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  font-family: 'Kanit', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.weight-btn.selected,
.weight-btn:active {
  background: #00cbfd;
  color: #fff;
}
.weight-desc {
  font-size: 2rem;
  color: #ffffff;
  text-align: center;
  margin-top: 0px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* =====================
   กลุ่ม: อุณหภูมิน้ำ
===================== */
.water-label {
  margin: 16px 20px;
  text-align: center;
  font-size: 3rem;
  color: #727272;
  font-weight: 600;
}

.water-btn-group {
  display: flex;
  gap: 30px;
  margin-bottom: 15px;
}

.water-btn {
  flex: 1;
  background: #ececec;
  color: #b8b8b8;
  height: 160px;
  border: none;
  border-radius: 30px;
  padding: 20px 0;
  font-size: 3rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Kanit', sans-serif;
}

/* ขนาดของข้อความหลัก เช่น "น้ำเย็น" */
.water-btn .water-btn-main {
  font-size: 2.8rem;
  font-weight: 600;
  line-height: 1.2;
}

/* ขนาดของข้อความรอง เช่น "(40 บาท)" */
.water-btn .water-btn-sub {
  font-size: 1.8rem;
  color: #ffffff;
  margin-top: 5px;
  font-weight: 400;
  line-height: 1.2;
}

/* ปุ่มอุณหภูมิน้ำ สีเมื่อเลือกแต่ละประเภท */
.water-btn.cold.selected  { background: #00cbfd; color: #fff; }  /* น้ำเย็น: ฟ้า */
.water-btn.warm.selected  { background: #ff9b3e; color: #fff; }  /* น้ำอุ่น: ส้ม */
.water-btn.hot.selected   { background: #FF5252; color: #fff; }  /* น้ำร้อน: แดง */

/* =====================
   กลุ่ม: ผงซักฟอก (4 ปุ่ม)
===================== */
.powder-label {
  margin: 20px 10px 20px 10px;
  text-align: center;
  font-size: 3rem;
  color: #727272;
  font-weight: 600;
}
.powder-row {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
}
.powder-btn.own {
  flex: 1;
  background: #ececec;
  color: #b8b8b8;
  border: none;
  border-radius: 30px;
  font-size: 2.8rem;
  font-weight: 600;
  max-width: 260px;
  margin: 0px 20px 0px 0px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;  /* ✅ เพิ่มบรรทัดนี้ */
  font-family: 'Kanit', sans-serif;
}
.powder-btn.own.selected {
  background: #00cbfd;
  color: #fff;
}
.powder-qty-group {
  flex: 2;
  display: flex;
}
.powder-btn.minus, .powder-btn.plus {
  flex: 1;
  background: #ececec;
  color: #aaa;
  border: none;
  border-radius: 30px;
  font-size: 4rem;
  font-weight: 400;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
  font-family: 'Kanit', sans-serif;
  margin: 0px 0px 0px 0px;
  max-width: 160px;
}
.powder-btn.minus:active, .powder-btn.plus:active {
  background: #00cbfd;
  color: #ffffff;
}
.powder-btn.amount {
  flex: 1;
  background: #ececec;
  color: #b8b8b8;
  border: none;
  border-radius: 30px;
  padding: 20px 0 20px 0;
  font-size: 3rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  box-shadow: 0 1px 4px rgba(24,119,242,0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Kanit', sans-serif;
  margin: 0px 30px 0px 30px;
}
.powder-btn.amount.selected {
  background: #00cbfd;
  color: #fff;
}
.powder-btn.amount span {
  font-size: 3rem;
  font-weight: 700;
}
.powder-desc {
  font-size: 2rem;
  color: #ffffff;
  margin-top: 0px;
  font-weight: 400;
}

/* =====================
   กลุ่ม: น้ำยาปรับผ้านุ่ม (4 ปุ่ม)
===================== */
.softener-label {
  margin: 20px 10px 20px 10px;
  text-align: center;
  font-size: 3rem;
  color: #818181;
  font-weight: 600;
}
.softener-row {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.softener-btn.own {
  flex: 1;
  background: #ececec;
  color: #b8b8b8;
  border: none;
  border-radius: 30px;
  font-size: 2.8rem;
  font-weight: 600;
  max-width: 260px;
  margin: 0px 20px 0px 0px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;  /* ✅ เพิ่มบรรทัดนี้ */
  font-family: 'Kanit', sans-serif;
}
.softener-btn.own.selected {
  background: #00cbfd;
  color: #fff;
}
.softener-qty-group {
  flex: 2;
  display: flex;
}
.softener-btn.minus, .softener-btn.plus {
  flex: 1;
  background: #ececec;
  color: #aaa;
  border: none;
  border-radius: 30px;
  font-size: 4rem;
  font-weight: 400;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
  font-family: 'Kanit', sans-serif;
  margin: 0px 0px 0px 0px;
  max-width: 160px;
}
.softener-btn.minus:active, .softener-btn.plus:active {
  background: #00cbfd;
  color: #ffffff;
}
.softener-btn.amount {
  flex: 1;
  background: #ececec;
  color: #b8b8b8;
  border: none;
  border-radius: 30px;
  padding: 20px 0 20px 0;
  font-size: 3rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  box-shadow: 0 1px 4px rgba(24,119,242,0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Kanit', sans-serif;
  margin: 0px 30px 0px 30px;
}
.softener-btn.amount.selected {
  background: #00cbfd;
  color: #fff;
}
.softener-btn.amount span {
  font-size: 3rem;
  font-weight: 700;
}
.softener-desc {
  font-size: 2rem;
  color: #ffffff;
  margin-top: 0px;
  font-weight: 400;
}

/* =====================
   กลุ่ม: การอบร้อน
===================== */

.weightdry-label {
  margin: 20px 0 20px 0;
  text-align: center;
  font-size: 3rem;
  color: #818181;
  font-weight: 600;
}
.weightdry-btn-group {
  display: flex;
  gap: 30px;
  margin-bottom: 10px;
}
.weightdry-btn {
  flex: 1;
  background: #ececec;
  color: #b8b8b8;
  border: none;
  border-radius: 30px;
  padding: 20px 0;
  font-size: 3rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  box-shadow: 0 1px 4px rgba(24,119,242,0.04);
  font-family: 'Kanit', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.weightdry-btn.selected {
  background: #ff9b3e;
  color: #fff;
}
.weightdry-main {
  font-size: 3rem;
  font-weight: 700;
  display: block;
}
.weightdry-desc {
  font-size: 2rem;
  color: #ffffff;
  text-align: center;
  margin-top: 0px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.dryhot-label {
  margin: 20px 10px 20px 10px;
  text-align: center;
  font-size: 3rem;
  color: #818181;
  font-weight: 600;
}
.dryhot-row {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.dryhot-btn.own {
  flex: 1;
  background: #ececec;
  color: #b8b8b8;
  border: none;
  border-radius: 30px;
  font-size: 3rem;
  font-weight: 600;
  max-width: 260px;
  margin: 0px 20px 0px 0px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Kanit', sans-serif;
}
.dryhot-btn.own.selected {
  background: #ff9b3e;
  color: #fff;
}
.dryhot-qty-group {
  flex: 2;
  display: flex;
}
.dryhot-btn.minus, .dryhot-btn.plus {
  flex: 1;
  background: #ececec;
  color: #aaa;
  border: none;
  border-radius: 30px;
  font-size: 4rem;
  font-weight: 400;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
  font-family: 'Kanit', sans-serif;
  margin: 0px 0px 0px 0px;
}
.dryhot-btn.minus:active, .dryhot-btn.plus:active {
  background: #ff9b3e;
  color: #ffffff;
}
.dryhot-btn.amount {
  flex: 1;
  background: #ececec;
  color: #b8b8b8;
  border: none;
  border-radius: 30px;
  padding: 20px 0 20px 0;
  font-size: 3rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  box-shadow: 0 1px 4px rgba(24,119,242,0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Kanit', sans-serif;
  margin: 0px 30px 0px 30px;
}
.dryhot-btn.amount.selected {
  background: #ff9b3e;
  color: #fff;
}
.dryhot-btn.amount span {
  font-size: 3rem;
  font-weight: 700;
}
.dryhot-desc {
  font-size: 2rem;
  color: #ffffff;
  margin-top: 0px;
  margin-bottom: 10px;
  font-weight: 400;
}
.dryhot-btn.selected,
.dryhot-amount.selected {
  background: #00cbfd;
  color: #fff;
  transition: background 0.15s;
}

.map-label {
  margin: 20px 0px 0px 0px;
  text-align: center;
  font-size: 3rem;
  color: #7c7b7b;
  font-weight: 600;
  font-family: 'Kanit', sans-serif;
}

#map { width: 100%; height: 320px; }
.map-label { 
  font-family: 'Kanit', sans-serif; 
  margin-bottom: 0px; 
  text-align: center;
  font-weight: 600;
  border-radius: 30px;
}

/* =====================
   กลุ่ม: ปุ่มตำแหน่งปัจจุบัน
===================== */

.location-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  margin-top: 30px;
}
#btn-center-location.location-btn {
  flex: 1;
  background: #ececec;
  color: #aaa;
  border: none;
  border-radius: 30px;
  padding: 10px 10px;
  font-size: 2.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  font-family: 'Kanit', sans-serif;
  height: 160px;
  max-width: 260px;
  margin: 0px 10px 0px 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;  /* ✅ เพิ่มบรรทัดนี้ */
}
#btn-center-location.location-btn:active,
#btn-center-location.location-btn.selected {
  background: #00cbfd;
  color: #ffffff;
}
.location-box {
  flex: 1;
  background: #ececec;
  color: #b4b3b3;
  border-radius: 30px;
  padding: 0px 0px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  font-family: 'Kanit', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 0px;
}
.distance-label {
  font-size: 2rem;
  line-height: 1.1; /* ควบคุมความสูงแต่ละบรรทัด */
  font-weight: 600;
  color: #999999;
}

#distanceValue {
  color: #999999;
  font-weight: 600;
  font-size: 3.5rem;
}
#feeValue {
  color: #999999;
  font-weight: 500;
  font-size: 2rem;
}
.fee-label {
  font-size: 1.8rem;
  line-height: 1.1; /* ควบคุมความสูงแต่ละบรรทัด */
  color: #999999;
  font-weight: 500;
  text-align: center; /* ✅ เพิ่มบรรทัดนี้ */
}

.price-box {
  background: #00cbfd;
  border-radius: 30px;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 150px;
  margin-top: 30px;
  margin-bottom: 10px;
  font-family: 'Kanit', sans-serif;
}

.price-label {
  font-size: 3rem;
  color: #ffffff;
  font-weight: 500;
  text-align: center;
  line-height: 1.1; /* ควบคุมความสูงแต่ละบรรทัด */
}

.price-label span {
  display: inline; /* ✅ บังคับให้ทุก span อยู่ในบรรทัดเดียว */
}

#totalPrice {
  font-weight: 600;
  font-size: 3.5rem;
  margin: 0 6px;  /* ✅ เพิ่มช่องไฟเล็กน้อยรอบตัวเลข */
  display: inline; /* ✅ สำคัญมาก! */
}
/* =====================
   กลุ่ม: ฟอร์มกรอกข้อมูล
===================== */
.section-card form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 40px;
  margin-bottom: 10px;
  align-items: stretch;
}
.section-card input[type="text"] {
  font-family: 'Kanit', sans-serif;
  font-size: 3rem;
  color: #414141;
  padding: 20px 20px;
  border: 1.5px solid #ddd;
  border-radius: 30px;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 0px;
}
.section-card input[type="tel"] {
  font-family: 'Kanit', sans-serif;
  font-size: 3rem;
  color: #414141;
  padding: 20px 20px;
  border: 1.5px solid #ddd;
  border-radius: 30px;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 50px;
}
.section-card button[type="submit"] {
  font-family: 'Kanit', sans-serif;
  font-size: 3.5rem;
  background: #00cbfd;
  color: #fff;
  border: none;
  height: 150px;
  line-height: 1.3; /* ควบคุมความสูงแต่ละบรรทัด */
  border-radius: 30px;
  padding: 0px 0px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
}
.section-card button[type="submit"]:active {
  background: #008cff;
}

.section-card input::placeholder {
  color: #cacaca;   /* ใส่ค่าสีที่ต้องการ */
  opacity: 1;    /* ให้สีชัด ไม่โปร่ง */
  font-weight: 400; /* (หรือ 600 ถ้าอยากเข้ม) */
}

/* =====================
   Responsive Mobile
===================== */
@media (max-width: 960px) {
  .section-card {
    width: auto;
    max-width: 100vw;
    margin: 0;
    padding: 30px 30px 30px 30px;
    border-radius: 0;
  }
}

