    /* Font */
@import url('https://fonts.googleapis.com/css?family=Quicksand:400,700');

    body {
      font-family: "Noto Sans Thai", sans-serif;
      margin: 0;
      background-color: #f5f5f5;
      min-height: 100vh;
      
    }

    .header {
  background-color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between; /* กระจายรูปซ้าย / ปุ่มขวา */
  align-items: center;
  border-bottom: 2px solid #ede9e8;
  min-height: 60px;
  flex-wrap: wrap; /* รองรับมือถือ */
}

.top-left-image img {
  height: 70px;
  width: auto;
}

.button-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.header button {
  font-family: "Noto Sans Thai", sans-serif;
  padding: 10px 20px;
  border-radius: 5px;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
}


    .btn-green {
      background-color: #8e2a78;
    }
    .btn-green:hover {
      background-color: white;
      color: #8e2a78;
      border: 1px solid #8e2a78;
    }

    .btn-orange {
      background-color: #C9931D;
    }
    .btn-orange:hover {
      background-color: white;
      color: #C9931D;
      border: 1px solid #C9931D;
    }

    .btn-purple {
      background-color: #8e2a78;
      font-family: "Noto Sans Thai", sans-serif;
      font-weight: bold;
      box-shadow:  0 0 5px white,  0 0 8px white;
    }
    .btn-purple:hover {
      background-color: white;
      color: #8e2a78;
      border: 1px solid #8e2a78;
    }

        /* Create three equal columns that floats next to each other */
    .column {
      float: left;
      min-width: 48%;
      padding: 10px;
    }
    .subcolumn {
      float: left;
      min-width: 30%;
      padding: 10px;
      flex: 1;
    }
    
        /* Clear floats after the columns */
    .row:after {
      content: "";
      display: table;
      clear: both;
    }

    .center-box {
      width: 300px;
      height: 200px;
      background: #3498db;
      color: white;
      text-align: center;
      line-height: 200px; /* จัดข้อความให้อยู่กลางใน div (ถ้า 1 บรรทัด) */
      font-size: 20px;
    }

    /* Responsive banner background */
    .main-banner {
      font-family: "Noto Sans Thai", sans-serif;
      background-image: url('img/main-banner.png'); /* 🔁 เปลี่ยนชื่อไฟล์ตรงนี้ */
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      min-height: 750px;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      align-items: center;
      padding-bottom: 30px;
      position: relative;
    }

    .main-banner button {
      background-color: #8e2a78;
      color: white;
      padding: 12px 30px;
      border: none;
      border-radius: 5px;
      font-size: 16px;
      cursor: pointer;
      z-index: 1;
    }
    .sub-banner {
       font-family: "Noto Sans Thai", sans-serif;
      background-color: #8e2a78;
      color:white;
      min-height: 200px;
      display: flex;
      flex-direction: column;
      padding-left:10%;
      position: relative;
    }
    .responsive-img {
      max-width: 100%;
      height: auto;
    }
      

    /* Bottom banners responsive */
    .bottom-banners {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.card {
  border: 1px solid #ddd;
  font-family: "Noto Sans Thai", sans-serif;
  margin-top: 5px;
  margin-bottom: 5px;
  padding: 8px;
  border-radius: 8px;
  width: 20%; /* หรือปรับตามต้องการ */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  background-color: white;
}

.card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
.btn-detail {
  margin-top: 8px;
  background-color: #8E3677;
  color: white;
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: "Noto Sans Thai", sans-serif;
}

.btn-detail:hover {
  background-color: #6a2759;
}


    fieldset {
  border: none;
  margin-bottom: 20px;
  }

  legend {
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
    font-size: 18px;
  }

label {
  display: block;
  margin: 6px 0;
  font-size: 16px;
}

.form-row {
  margin-top: 10px;
}

input[type="text"], select {
  border-radius: 8px;
  padding: 10px 10px;
  width: 300px;
  max-width: 100%;
  border: 1px solid #8e2a78;
  margin-top: 4px;
  font-family: "Noto Sans Thai", sans-serif;
}

input[type="email"] {
  padding: 10px;
  width: 300px;
  max-width: 100%;
  border-radius: 6px;
  border: 1px solid #8e2a78;
  margin-top: 4px;
  font-family: "Noto Sans Thai", sans-serif;
}
input[type="password"] {
  padding: 10px;
  width: 300px;
  max-width: 100%;
  border-radius: 6px;
  border: 1px solid #8e2a78;
  margin-top: 4px;
  font-family: "Noto Sans Thai", sans-serif;
}

input[type="submit"] {
 padding: 10px 20px;
 font-size: 16px;
 border: none;
 margin: 5px;
 border-radius: 5px;
 cursor: pointer;
 font-family: "Noto Sans Thai", sans-serif;
 background-color: #8E3677;
 color: white;
}
::file-selector-button {
  padding: 5px 10px;
  border: none;
  height: 80px;
  border-radius: 5px;
  font-family: "Noto Sans Thai", sans-serif;
  font-weight: bold;
  color:white;
  background-color: #8E3677;
}

::file-selector-button:hover {  
  border: 1px solid #8e2a78;
  color:#8E3677;
  background-color: white;
}

input[type="date"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #fff;
  border: 1px solid #8e2a78;
  padding: 10px 10px;
  font-size: 16px;
  border-radius: 8px;
  width: 100%;
  max-width: 300px;
  color: #8e2a78;
  font-family: 'Sarabun', sans-serif;
  box-sizing: border-box;
  transition: border 0.3s, box-shadow 0.3s;
  font-family: "Noto Sans Thai", sans-serif;
  margin-top: 5px;
}

input[type="date"]:hover,
input[type="date"]:focus {
  border-color: #8e2a78;
  box-shadow: 0 0 5px rgba(122, 31, 129, 0.2);
  outline: none;
  font-family: "Noto Sans Thai", sans-serif;
}

input[type=time] {
  border: 1px solid #8e2a78;
  border-radius: 8px;
  padding: 10px 12px;
  color: #2a2c2d;
  font-size: 14px;
  font-family: helvetica;
  width: 180px;
  font-family: "Noto Sans Thai", sans-serif;
}

     .footer-container {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 0 0 16px 16px; /* มุมล่างโค้ง */
  margin-bottom: 0; /* ห้ามเกินความจำเป็น */
  padding-bottom: 0;
}

.hidden {
  display: none;
}

/* Hide the browser's default radio button */
.container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

/* Create a custom radio button */
.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: #eee;
  border-radius: 50%;
}

/* On mouse-over, add a grey background color */
.container:hover input ~ .checkmark {
  background-color: #ccc;
}

/* When the radio button is checked, add a blue background */
.container input:checked ~ .checkmark {
  background-color: #2196F3;
}

/* Create the indicator (the dot/circle - hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the indicator (dot/circle) when checked */
.container input:checked ~ .checkmark:after {
  display: block;
}

/* Style the indicator (dot/circle) */
.container .checkmark:after {
 	top: 9px;
	left: 9px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: white;
}


.step-container {
      display: flex;
      justify-content: center;
      margin-bottom: 30px;
      margin-top: 50px;
      font-family: "Noto Sans Thai", sans-serif;
    }
    .step {
      display: flex;
      flex-direction: column;
      align-items: center;
      flex: 1;
      position: relative;
    }
    .step::before {
      content: '';
      position: absolute;
      top: 15px;
      left: -50%;
      height: 2px;
      width: 100%;
      background-color: #ccc;
      z-index: -1;
    }
    .step:first-child::before {
      display: none;
    }
    .step-number {
      background-color: #ccc;
      color: white;
      width: 30px;
      height: 30px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 5px;
    }
    .active .step-number {
      background-color: #8E3677;
    }
    .step-label {
      font-size: 18px;
      font-weight: bold;
      color: #666;
    }
    .active .step-label {
      color: #8E3677;
    }

    .form-content {
      background: white;
      padding: 30px;
      border-radius: 10px;
      display: inline-block;
      width: 1200px;
      min-width: 300px;
      font-family: "Noto Sans Thai", sans-serif;
    }
    .btn {
      padding: 10px 20px;
      border: none;
      margin: 5px;
      border-radius: 5px;
      cursor: pointer;
      font-family: "Noto Sans Thai", sans-serif;
      
    }
    .btn-next {
      background-color: #8E3677;
      color: white;
    }
    .btn-back {
      background-color: #C9931D;
      color: white;
    }
    

.copy-container {
  position: relative;
  width: 220px; /* ปรับขนาดตามต้องการ */
  display: inline-block;
}

.copy-container input {
  width: 100%;
  padding-right: 35px; /* เว้นที่ขวาสำหรับไอคอน */
  font-size: 16px;
  border: 0px;
  background-color: #f5f5f5;
  border-radius: 10px;
  border-radius: 5px;
  height: 36px;
  box-sizing: border-box;
  user-select: all;
}

.copy-icon {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 18px;
  color: #555;
  transition: color 0.3s ease;
}

.copy-icon:hover {
  color: #0b74de;
}


.tooltip {
  position: absolute;
  top: -25px;
  right: 0;
  background-color: #333;
  color: #fff;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.tooltip.show {
  opacity: 1;
  pointer-events: auto;
}

.footer-content {

  margin: 0 auto;
  background-color: #8E3677; /* สีม่วง */
  justify-content: space-between; 
  color: white;
  display: flex;
  font-size: 12px;
  padding: 15px;
}



    @media (max-width: 768px) {
      .card {
        flex: 1 1 100%;
      }
    }

/* --- Modal Background --- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1050;
  display: none;
  width: 100%;
  height: 100%;
  overflow: hidden;
  outline: 0;
  background-color: rgba(0, 0, 0, 0.5);
}

/* --- Modal Show --- */
.modal.show {
  display: block;
}

/* --- Modal Dialog Center --- */
.modal-dialog {
  position: relative;
  width: auto;
  margin: 1.75rem auto;
  max-width: 500px;
}

/* --- Modal Content --- */
.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 0.5rem;
  outline: 0;
  padding: 1rem;
}

/* --- Modal Header --- */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #dee2e6;
}

/* --- Modal Title --- */
.modal-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 500;
}

/* --- Modal Body --- */
.modal-body {
  position: relative;
  padding: 1rem;
  text-align: center;
}
 .modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
  }

  .modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 10px #000;
  }

  .modal-close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
  }

/* --- Modal Close Button --- */
.btn-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #000;
  cursor: pointer;
}
