@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;500;700&display=swap');

body {
  font-family: 'Prompt', sans-serif;
  background: #f9f9f9;
  margin: 0;
  padding: 0;
}

/* กล่องหลักของฟอร์ม */
.shipping-form {
  background: #fff;
  border: 1px solid #ddd;
  padding: 24px;
  border-radius: 16px;
  max-width: 900px;
  margin: 40px auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  font-family: 'Prompt', sans-serif;
}

/* layout grid สำหรับจัดเรียงช่องกรอก */
.shipping-form .form-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

/* กล่องของแต่ละ label + input/select */
.form-field {
  display: flex;
  flex-direction: column;
}

/* ป้าย label */
.form-field label {
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
  font-size: 15px;
}

/* กล่อง input/select */
.form-field input,
.form-field select {
  padding: 10px 12px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fdfdfd;
  transition: border-color 0.2s, box-shadow 0.2s;
}

/* เพิ่มเอฟเฟกต์โฟกัส */
.form-field input:focus,
.form-field select:focus {
  border-color: #ff6600;
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.15);
  outline: none;
}

/* ปุ่มคำนวณราคา */
.shipping-form button {
  margin-top: 20px;
  background: #ff6600;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.2s;
}

.shipping-form button:hover {
  background: #e05400;
}

/* กล่องแสดงผลลัพธ์ */
#shipping-result {
  margin-top: 24px;
  padding: 16px;
  background: #f8f8f8;
  border-radius: 10px;
  font-size: 15px;
  color: #222;
  line-height: 1.6;
  white-space: pre-line;
  border-left: 4px solid #ff6600;
}

/* ข้อความผิดพลาด */
#shipping-result.error {
  background: #ffecec;
  color: #cc0000;
  border-left-color: #cc0000;
}
