/* 表單容器 */
.form-wrapper {
  max-width: 650px;
  margin: 40px auto;
  padding: 0 5%;
  color: #433026;
}

.red-c {
  color: #ff0000;
}

.page-title {
  text-align: center;
  font-size: 28px;
  margin-bottom: 10px;
}

.remark-text {
  text-align: center;
  color: #d12027; /* 紅色字 */
  font-size: 14px;
  margin-bottom: 30px;
}

/* 欄位樣式 */
.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  font-size: 15px;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 15px;
  background: #fff;
}

.form-group input[type="file"] {
  width: 100%;
  padding: 10px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* 收據在哪裡？按鈕 */
.help-btn {
  display: inline-block;
  background-color: #f2a900;
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  font-weight: normal;
}

/* =========================================
   隱藏 input[type="number"] 的預設上下箭咀
   ========================================= */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield; /* 支援 Firefox */
}

/* =========================================
   產品列表樣式 (跟足 Layout 設計)
   ========================================= */
.product-list {
  background: transparent; /* 移除白底 */
  border: none; /* 移除外框 */
  padding: 0;
  margin-top: 10px;
}

.product-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #e5e5e5; /* 只有淡淡的底線 */
}

/* 確保最後一項都有底線，或者你可以跟設計決定要唔要 */
.product-item:last-child {
  border-bottom: 1px solid #e5e5e5;
}

.prod-info {
  display: flex;
  align-items: center;
  gap: 20px; /* 增加 Checkbox、圖片、文字之間嘅間距 */
}

.prod-chk {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #d12027; /* 勾選時嘅顏色 */
}

.prod-img {
  width: 60px; /* 根據設計圖調整圖片大小 */
  height: auto;
  object-fit: contain;
}

.prod-name {
  font-size: 15px;
  color: #333;
  line-height: 1.4;
  font-weight: bold; /* 字體加粗 */
}

/* =========================================
   數量控制器 (加減按鈕)
   ========================================= */
.qty-controls {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}

.qty-controls button {
  background: #fff;
  border: none;
  width: 35px;
  height: 35px;
  font-size: 20px;
  cursor: pointer;
  color: #666;
  outline: none;
}

.qty-controls button:hover {
  background: #f5f5f5;
}

.qty-controls input {
  width: 45px;
  height: 35px;
  border: none;
  border-left: 1px solid #ccc;
  border-right: 1px solid #ccc;
  text-align: center;
  font-size: 16px;
  border-radius: 0 !important;
  color: #333;
  background: #fff;
}

/* 底部 Checkbox */
.checkbox-group {
  margin: 30px 0;
}

.chk-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 15px;
  font-size: 13px;
  cursor: pointer;
  line-height: 1.5;
}

.chk-row input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
}

/* 提交按鈕 */
.submit-btn {
  width: 100%;
  background-color: #f29c1f;
  color: #fff;
  border: none;
  padding: 15px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.3s;
}

.submit-btn:hover {
  background-color: #d88918;
}

/* Lightbox 樣式 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none; /* 預設隱藏 */
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: #fff;
  padding: 30px;
  width: 90%;
  max-width: 450px;
  border-radius: 10px;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  color: #666;
  cursor: pointer;
}

/* ----- 響應式設計 (RWD) 手機版 ----- */
@media screen and (max-width: 768px) {
  .prod-info {
    width: 100%;
    gap: 10px;
  }
  .prod-img {
    width: 70px;
  }
  .qty-controls {
    width: 50%;
  }
}
