/*
Theme Name: Kadence Child
Template: kadence
Version: 1.0.0
*/

/* ===== Base ===== */
.hs-booking-form{
  max-width:980px;
  margin:auto;
  font-family:Lato,sans-serif;
  color:#3A3A3A;
}

.hs-booking-section{
  padding:24px 0;
}

/* ===== Section Title ===== */
.hs-booking-section-title{
  display:flex;
  align-items:center;
  margin-bottom:20px;
  padding-bottom:8px;
  border-bottom:none;
  gap:12px;
}

.hs-booking-step{
  width:26px;
  height:26px;
  border:1.5px solid #ED1C24;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#ED1C24;
  font-weight:700;
  font-size:14px;
}

.hs-booking-section-text{
  font-weight:700;
  font-size:24px;
  line-height:34px;
  color:#3A3A3A;
}

/* ===== Fields ===== */
.hs-booking-field{
  display:flex;
  flex-direction:column;
}

.hs-booking-label{
  display:block;
  font-weight:400;
  font-size:20px;
  line-height:28px;
  color:#3A3A3A;
  margin-bottom:6px;
}

.hs-booking-select,
.hs-booking-field input{
  width:100%;
  height:56px;
  padding:16px 12px 16px 12px;
  border:0.6px solid #999999;
  border-radius:4px;
  font-size:14px;
}

form.hs-booking-form .hs-booking-select:focus,
form.hs-booking-form .hs-booking-field input:focus{
  outline:none;
  border-color:#3A3A3A;
  background-color:#fff;
}

form.hs-booking-form .hs-booking-select.hs-invalid,
form.hs-booking-form .hs-booking-field input.hs-invalid,
form.hs-booking-form .hs-booking-calendar.hs-invalid,
form.hs-booking-form .hs-booking-card--calendar.hs-invalid{
  border-color:#E92D29 !important;
}

form.hs-booking-form .iti.hs-invalid,
form.hs-booking-form .iti input.hs-invalid,
form.hs-booking-form .iti.hs-invalid input{
  border-color:#E92D29 !important;
}

form.hs-booking-form .iti input.hs-invalid,
form.hs-booking-form .iti.hs-invalid input{
  border:0.6px solid #E92D29 !important;
}

form.hs-booking-form .hs-booking-select.hs-invalid:focus,
form.hs-booking-form .hs-booking-field input.hs-invalid:focus{
  border-color:#E92D29 !important;
}

form.hs-booking-form .hs-booking-field input:-webkit-autofill,
form.hs-booking-form .hs-booking-field input:-webkit-autofill:hover,
form.hs-booking-form .hs-booking-field input:-webkit-autofill:focus,
form.hs-booking-form .hs-booking-field input:-webkit-autofill:active{
  -webkit-box-shadow:0 0 0px 1000px #fff inset;
  box-shadow:0 0 0px 1000px #fff inset;
  -webkit-text-fill-color:#3A3A3A;
}

form.hs-booking-form .hs-booking-field input[type="email"]{
  -webkit-appearance:none;
  appearance:none;
  background-color:#fff;
  box-sizing:border-box;
  border:0.6px solid #999999;
}

form.hs-booking-form .hs-booking-field input::placeholder{
  font-weight:400;
  font-size:16px;
  line-height:22px;
  color:#AEAEAE;
}

form.hs-booking-form .hs-booking-field input::-webkit-input-placeholder{
  font-weight:400;
  font-size:16px;
  line-height:22px;
  color:#AEAEAE;
}

form.hs-booking-form .hs-booking-field input:-ms-input-placeholder{
  font-weight:400;
  font-size:16px;
  line-height:22px;
  color:#AEAEAE;
}

form.hs-booking-form .hs-booking-field input::-ms-input-placeholder{
  font-weight:400;
  font-size:16px;
  line-height:22px;
  color:#AEAEAE;
}

/* ===== Grid (ใช้กับ Step 1–2) ===== */
.hs-booking-grid--2{
  display:flex;
  flex-wrap:wrap;
  gap:24px;
}

.hs-booking-grid--2 .hs-booking-field{
  flex:0 0 calc(50% - 12px);
}

/* ===== STEP 3 : Customer Information (1 Column) ===== */
.hs-booking-section--info .hs-booking-grid--2{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.hs-booking-section--info .hs-booking-grid--2 .hs-booking-field{
  flex:0 0 100%;
}

.hs-booking-section--info .hs-booking-field input{
  height:52px;
}

/* ===== Date + Guests ===== */
.hs-booking-datetime-grid{
  display:grid;
  grid-template-columns:1fr 300px;
  gap:24px;
}

form.hs-booking-form .ui-datepicker .ui-datepicker-prev,
form.hs-booking-form .ui-datepicker .ui-datepicker-next{
  width:32px;
  height:32px;
  border-radius:50%;
  border:1.5px solid #ED1C24;
  background:#fff;
  cursor:pointer;
  top:6px;
  font-size:0;
  display:flex;
  align-items:center;
  justify-content:center;
}

form.hs-booking-form .ui-datepicker .ui-datepicker-prev:hover,
form.hs-booking-form .ui-datepicker .ui-datepicker-next:hover{
  border:1.5px solid #ED1C24;
  background:#fff;
}

form.hs-booking-form .ui-datepicker .ui-datepicker-prev span,
form.hs-booking-form .ui-datepicker .ui-datepicker-next span{
  background:none;
  text-indent:0;
  overflow:visible;
  left:auto;
  top:auto;
  margin-left:0;
  margin-top:0;
  width:100%;
  height:100%;
  font-size:0;
  position:static;
  display:flex;
  align-items:center;
  justify-content:center;
}

form.hs-booking-form .ui-datepicker .ui-datepicker-prev span:before{
  content:"";
  display:block;
  width:14px;
  height:14px;
  background-image:url("/wp-content/uploads/2025/12/Vector-2-1.svg");
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;
}

form.hs-booking-form .ui-datepicker .ui-datepicker-next span:before{
  content:"";
  display:block;
  width:14px;
  height:14px;
  background-image:url("/wp-content/uploads/2025/12/Vector-1-1.svg");
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;
}

form.hs-booking-form .hs-booking-icon{
  display:inline-block;
  width:18px;
  height:18px;
  margin-right:10px;
  position:relative;
  top:2px;
}

form.hs-booking-form .hs-booking-icon--calendar{
  background-image:url("/wp-content/uploads/2025/12/Frame-1984078487.svg");
  background-repeat:no-repeat;
  background-position:center;
  background-size:100% 100%;
  border:none;
  border-radius:0;
  box-sizing:border-box;
}

form.hs-booking-form .hs-booking-icon--calendar:before{
  content:"";
  position:absolute;
  left:2px;
  right:2px;
  top:4px;
  height:2px;
  background:#ED1C24;
  display:none;
}

form.hs-booking-form .hs-booking-icon--guest{
  background-image:url("/wp-content/uploads/2025/12/Vector-1.svg");
  background-repeat:no-repeat;
  background-position:center;
  background-size:100% 100%;
  border:none;
  border-radius:0;
  box-sizing:border-box;
}

form.hs-booking-form .hs-booking-icon--guest:before{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width:6px;
  height:6px;
  margin-left:-3px;
  margin-top:-5px;
  border-radius:50%;
  background:#ED1C24;
  display:none;
}

form.hs-booking-form .hs-booking-icon--guest:after{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width:10px;
  height:6px;
  margin-left:-5px;
  margin-top:2px;
  border-radius:6px 6px 2px 2px;
  background:#ED1C24;
  display:none;
}

.hs-booking-card--guests .hs-booking-header{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
}

.hs-booking-card--guests .hs-booking-guest-desc{
  text-align:center;
}

.hs-booking-card{
  background:#fff;
  border:0.6px solid #999999;
  padding:24px;
  gap:24px;
}

.hs-booking-card--calendar .hs-booking-label{
  color:#3A3A3A;
}

/* ===== Guests ===== */
.hs-booking-header{
  font-size:16px;
  font-weight:700;
  margin-bottom:4px;
}

.hs-booking-guest-desc{
  font-size:12px;
  color:#777;
  line-height:18px;
  font-weight: 400;
  margin-bottom:12px;
}

.hs-booking-guest-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 0;
}

.hs-booking-guest-row strong{
  font-size:16px;
  line-height:22px;
  font-weight:400;
  color:#3A3A3A;
}

.hs-booking-guest-row small{
  font-size:12px;
  line-height:18px;
  font-weight:400;
  color:#AEAEAE;
}

.hs-booking-counter{
  display:flex;
  align-items:center;
  gap:10px;
}

.hs-booking-counter-input{
  width:48px;
  height:40px;
  text-align:center;
  border:none;
  border-radius:0;
  background:transparent;
}

form.hs-booking-form input[type=number]{
  border:none;
  outline:none;
  box-shadow:none;
}

form.hs-booking-form input[type=number]::-webkit-outer-spin-button,
form.hs-booking-form input[type=number]::-webkit-inner-spin-button{
  -webkit-appearance:none;
  margin:0;
}

form.hs-booking-form input[type=number]{
  -moz-appearance:textfield;
  appearance:textfield;
}

.hs-booking-counter button{
  width:32px;
  height:32px;
  border-radius:50%;
  border:1.5px solid #ED1C24;
  background:#fff;
  color:#ED1C24;
  font-size:16px;
  font-weight:700;
  cursor:pointer;
}

/* ===== Phone (intl-tel-input) ===== */
form.hs-booking-form .iti{
  width:100%;
  position:relative;
}

form.hs-booking-form .iti input{
  width:100%;
  height:56px;
  padding:16px 16px 16px 148px;
  border:0.6px solid #999999;
  border-radius:4px;
}

form.hs-booking-form .iti--separate-dial-code .iti__flag-container{
  position:absolute;
  top:8px;
  bottom:8px;
  left:12px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:0 16px 0 10px;
  border-right:1px solid #E0E0E0;
  background:#fff;
  border-radius:4px 0 0 4px;
}

form.hs-booking-form .iti--separate-dial-code .iti__selected-flag{
  width:auto;
  padding:0;
  display:flex;
  align-items:center;
  gap:8px;
}

form.hs-booking-form .iti__selected-dial-code{
  font-size:16px;
  line-height:22px;
  font-weight:500;
  color:#6E6E6E;
}

form.hs-booking-form .iti__flag{
  box-shadow:0 2px 6px rgba(0,0,0,0.12);
  border-radius:4px;
}

form.hs-booking-form .iti__arrow{
  width:16px;
  height:16px;
  margin-left:8px;
  background-image:url("/wp-content/uploads/2025/12/dropdown-country.svg");
  background-repeat:no-repeat;
  background-position:center;
  background-size:16px 16px;
  border:none !important;
}

form.hs-booking-form .iti__search-input{
  display:none !important;
}

form.hs-booking-form .iti__country-list{
  margin-top:0;
}

form.hs-booking-form .iti button,
form.hs-booking-form .iti .button,
form.hs-booking-form .iti .wp-block-button__link,
form.hs-booking-form .iti .wp-element-button,
form.hs-booking-form .iti input[type=button]{
  background:transparent;
  box-shadow:none;
  border:none;
}

.hs-page-inactive{
  position:relative;
}

.hs-page-inactive:after{
  content:"";
  position:absolute;
  left:0;
  top:0;
  right:0;
  bottom:0;
  background:rgba(0,0,0,0.5);
  pointer-events:none;
  border-radius:inherit;
}

/* ===== Submit ===== */
.hs-booking-actions{
  text-align:center;
  margin-top:32px;
}

.hs-booking-submit{
  background:#1075BC;
  color:#fff;
  padding:14px 36px;
  border-radius:6px;
  border:none;
  font-weight:700;
  font-size:16px;
  line-height:37px;
  cursor:pointer;
}

.hs-booking-submit-error{
  display:none;
  margin-top:8px;
  font-size:14px;
  line-height:20px;
  font-weight:400;
  color:#E92D29;
}

.hs-booking-submit:disabled{
  opacity:.5;
  cursor:not-allowed;
}

/* ===== Mobile ===== */
@media(max-width:767px){
  .hs-booking-datetime-grid{
    grid-template-columns:1fr;
  }

  .hs-booking-grid--2{
    display:block;
    gap:0;
  }

  .hs-booking-grid--2 .hs-booking-field{
    margin-bottom:16px;
  }

  .hs-booking-grid--2 .hs-booking-field:last-child{
    margin-bottom:0;
  }

  form.hs-booking-form .ui-datepicker-title{
    display:flex;
    align-items:center;
    gap:12px;
  }
}

/* ===============================
   STEP 2 : Date & Guests (FINAL)
================================ */

/* Calendar wrapper */
.hs-booking-card--calendar{
  padding:24px;
}

form.hs-booking-form .ui-datepicker{
  border:none;
  box-shadow:none;
  border-radius:0;
}

/* Header (Date + Month line) */
form.hs-booking-form .ui-datepicker-header{
  background:none;
  border:none;
  border-bottom:2px solid #ED1C24;
  padding:0 0 12px 0;
  margin-bottom:16px;
  position:relative;
  display:flex;
  align-items:center;
  gap:8px;
}

/* Month + Year */
form.hs-booking-form .ui-datepicker-title{
  font-size:22px;
  font-weight:700;
  color:#3A3A3A;
  text-align:left;
  order:1;
  flex:1;
  gap:10px;
}

form.hs-booking-form .ui-datepicker-title select{
  font-size:24px;
  font-weight:700;
  line-height:34px;
  border:none;
  background:none;
  padding:0;
  margin:0;
  -webkit-appearance:none;
  appearance:none;
  padding-right:22px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23ED1C24' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 2px center;
  background-size:12px 8px;
  cursor:pointer;
}

form.hs-booking-form .ui-datepicker-title select:focus{
  outline:none;
}

/* Prev / Next buttons (circle red) */
form.hs-booking-form .ui-datepicker-prev,
form.hs-booking-form .ui-datepicker-next{
  width:32px;
  height:32px;
  border-radius:50%;
  border:1.5px solid #ED1C24;
  background:#fff;
  top:auto;
  position:static;
}

form.hs-booking-form .ui-datepicker-prev{
  order:2;
  margin-left:8px;
}

form.hs-booking-form .ui-datepicker-next{
  order:3;
}

form.hs-booking-form .ui-datepicker-prev span,
form.hs-booking-form .ui-datepicker-next span{
  background:none;
  text-indent:0;
}

form.hs-booking-form .ui-datepicker-prev span:before{
  content:"";
  display:inline-block;
  width:16px;
  height:32px;
  background-image:url("/wp-content/uploads/2025/12/Vector-2-1.svg");
  background-repeat:no-repeat;
  background-position:center;
  background-size:12px 12px;
}

form.hs-booking-form .ui-datepicker-next span:before{
  content:"";
  display:inline-block;
  width:16px;
  height:32px;
  background-image:url("/wp-content/uploads/2025/12/Vector-1-1.svg");
  background-repeat:no-repeat;
  background-position:center;
  background-size:12px 12px;
}

/* Weekday header */
form.hs-booking-form .ui-datepicker table{
  width:100%;
  table-layout:fixed;
}

form.hs-booking-form .ui-datepicker th{
  font-size:16px;
  font-weight:400;
  color:#3A3A3A;
  line-height:2;
  text-transform:uppercase;
  padding:8px 0;
  text-align:center;
}

/* Date cells */
form.hs-booking-form .ui-datepicker td{
  padding:6px 0;
  text-align:center;
}

form.hs-booking-form .ui-datepicker td a{
  display:flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  text-align:center;
  margin:auto;
  border-radius:50%;
  font-size:16px;
  color:#3A3A3A;
}

/* Hover */
form.hs-booking-form .ui-datepicker td a:hover{
  background:#FDECEC;
}

/* Selected day */
form.hs-booking-form .ui-datepicker .ui-state-active{
  background:#ED1C24 !important;
  color:#fff !important;
}

/* Today (แต่ไม่เลือก) */
form.hs-booking-form .ui-datepicker .ui-state-highlight{
  border:none;
  background:transparent;
  color:#ED1C24;
  border-radius:0;
}

/* ===== Guests card ===== */
.hs-booking-header{
  font-size:20px;
  line-height:28px;
  font-weight:400;
}

.hs-booking-guest-row:first-child{
  border-top:none;
}

/* Counter buttons */
.hs-booking-counter button{
  display:flex;
  align-items:center;
  justify-content:center;
  line-height:1;
}

/* ===== Custom Dropdown ===== */
/* ===== Dropdown Option Styles ===== */
.hs-option-content {
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
}

.hs-option-icon {
  width: 20px;
  height: 20px;
  margin-right: 8px;
}

.hs-option-text {
  display: flex;
  flex-direction: row;
}

.hs-dropdown{
  position:relative;
}

.hs-dropdown-trigger{
  height:56px;
  border:0.6px solid #999;
  border-radius:4px;
  padding:0 16px;
  display:flex;
  align-items:center;
  gap:12px;
  cursor:pointer;
  background:#fff;
  color:#3A3A3A;
}

.hs-dropdown-trigger .hs-placeholder{
  font-size:16px;
  font-weight:400;
  line-height:22px;
  color:#AEAEAE;
  flex:1;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.hs-dropdown.hs-has-value .hs-dropdown-trigger .hs-placeholder{
  color:#3A3A3A;
}

.hs-dropdown-trigger .hs-arrow{
  width:20px;
  height:20px;
  margin-left:auto;
  background-image:url("/wp-content/uploads/2025/12/type-icon.svg");
  background-repeat:no-repeat;
  background-position:center;
  background-size:20px 20px;
  flex-shrink:0;
}

.hs-dropdown-menu{
  position:absolute;
  top:100%;
  left:0;
  right:0;
  background:#fff;
  border-radius:6px;
  box-shadow:0 6px 24px rgba(0,0,0,.12);
  margin-top:6px;
  display:none;
  z-index:20;
}

.hs-dropdown.open .hs-dropdown-menu{
  display:block;
}

form.hs-booking-form .hs-dropdown.open .hs-dropdown-trigger,
form.hs-booking-form .hs-dropdown.hs-has-value .hs-dropdown-trigger,
form.hs-booking-form .hs-dropdown-trigger:focus{
  border-color:#4A4A4A;
}

form.hs-booking-form .hs-dropdown.hs-invalid .hs-dropdown-trigger{
  border-color:#E92D29 !important;
}

.hs-option{
  display:flex;
  gap:12px;
  padding:14px 16px;
  cursor:pointer;
  align-items:flex-start;
}

.hs-option:hover{
  background:#F7F7F7;
}

.hs-option img{
  width:22px;
  height:22px;
}

.hs-option-text{
  display:flex;
  align-items:center;
  gap:4px;
}

.hs-option-text--icon{
  flex:0 0 10%;
  justify-content:flex-start;
}

.hs-option-text--label{
  flex:0 0 30%;
}

.hs-option-text--desc{
  flex:0 0 60%;
}

.hs-option--sea .hs-option-text--icon{
  display:none;
}

.hs-option--sea .hs-option-text--label{
  flex:0 0 40%;
}

.hs-option--sea .hs-option-text--desc{
  flex:0 0 60%;
}

.hs-option-text--icon img{
  width:32px;
  height:32px;
  object-fit:contain;
}

.hs-badge{
  color:#45ACEB;
  font-size:16px;
  line-height: 22px;
  font-weight:400;
}

.hs-title{
  color:#4A4A4A;
  font-size:16px;
  line-height: 22px;
  font-weight:400;
}

.iti__arrow{
  width:16px;
  height:16px;
  margin-left:8px;
  background-image:url("/wp-content/uploads/2025/12/dropdown-country.svg");
  background-repeat:no-repeat;
  background-position:center;
  background-size:16px 16px;
  border:none !important;
}

