/* =========================
   LAYOUT
========================= */

.uta-booking-container {
    max-width: 100%;
    margin: 16px auto 45px;
    font-family: Kanit;
}
@media (max-width: 767px) {
    .uta-booking-container {
        margin: 0px auto ;
    }
}
.uta-title {
    text-align: center;
    font-size: 32px;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.uta-sub {
    text-align: center;
    color: #777;
    margin-bottom: 40px;
}

.uta-layout {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}
.uta-left{
    width: 60%;
}
.uta-summary{
    width: 35%;
}
@media (max-width: 767px) {
    .uta-layout {
        flex-direction: column;
        margin-bottom: 32px;
    }
    .uta-left{
        width: 100%;
    }
    .uta-summary{
        width: 100%;
    }
}
.uta-confirmation{
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 40px;
    width: 100%;
}
.uta-confirmation__left{
    display: flex;
    flex-direction: column;
    flex: 2;
    width: 60%;
    padding: 25px;
    border-radius: 16px;
    margin-top: 30px;
    background-color: #E3E3E3;
}
.uta-confirmation__right{
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 35%;
    padding: 25px;
    border-radius: 16px;
    margin-top: 30px;
    background-color: #E3E3E3;
}

.uta-confirmation__title{
    font-size: 24px;
    font-weight: 500;
    padding-bottom: 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(103, 103, 103, 0.08);

}
.uta-confirmation__subtitle{
    display: block;
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 500;
}
.uta-confirmation__item{
    padding-bottom: 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(103, 103, 103, 0.08);
    font-weight: 300;
}
.uta-confirmation__item:last-child{
    border-bottom: none;
}

/* =========================
   STEPS
========================= */

.uta-steps {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 40px;
    gap: 12px;
}
.step {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: max-content;
}
.step__number{
    width: 40px;
    height: 40px;
    border: 2px solid rgba(141, 141, 140, 1);
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: 0.3s;
    gap: 10px;
    color: rgba(141, 141, 140, 1);
}
.step__text{
    color: rgba(141, 141, 140, 1);
    font-family: Kanit;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    margin: 0px 12px;
}
.step__line {
    width: 60px;
    height: 2px;
    background:rgba(141, 141, 140, 1);
}
.step.active .step__number{
    background: #000;
    border: 2px solid #292929;
    color: #fff;
}
.step.active .step__text{
    color: #292929;
}
.step.step-passed .step__number{
    background: #000;
    border: 2px solid #292929;
    color: #fff;
}
.step.step-passed .step__text{
    color: #292929;
}
.step.step-passed .step__line{
    background: #000;
}
@media (max-width: 767px) {
    .uta-steps {
        flex-direction: column;
        align-items: flex-start;
    }
    .step {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        width: max-content;
        height: 100px;
        flex-wrap: wrap;
        position: relative;
    }
    .step__line {
        width: 2px;
        height: 55px;
        background: rgba(141, 141, 140, 1);
        position: absolute;
        left: 18px;
        top: calc(100% - 20px);
    }
}

/* =========================
   FORM
========================= */

.uta-step {
    display: none;
}

.uta-step__group{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}
.uta-step__group:nth-child(2){
    /*margin-bottom: 0;*/
}
.uta-step__label{
    color: #292929;
    font-family: Kanit;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
}

.uta-step.active {
    display: block;
}
label{
    font-weight: 400;
}
select,
input[type="text"],
input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 15px;
    border-radius: 0px;
    font-size: 14px;
    line-height: 1.2;
}
 .branch-option input[type="radio"]{
    display: none;
}

.branch-option{
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
}
@media (max-width: 881px) {
    .branch-option .branch-info{
        max-width: 80%;
    }
}
.radio-icon{
    width: 18px;
    height: 18px;
    border: 2px solid #000;
    border-radius: 50%;
    position: relative;
    margin-top: 4px;
}

/* จุดดำตอนเลือก */
.branch-option input[type="radio"]:checked + .radio-icon::after{
    content: "";
    width: 10px;
    height: 10px;
    background: #000;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.branch {
    position: relative;
    padding: 12px 20px;
    border-radius: 4px;
    border: 1px solid rgba(23, 46, 137, 0.30);
    background: rgba(227, 227, 227, 0);
    margin-bottom: 10px;
}
.branch.active{
    background-color: #E3E3E3;
}
.light{
    font-weight: 300;
    padding-top: 8px;
}
.uta-form {
  max-width: 900px;
  font-family: Arial, sans-serif;
}

.uta-form .form-row {
  display: flex !important;
  gap: 20px;
  margin-bottom: 0px !important;
}

.uta-form .form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.full-width {
  width: 100%;
}

label {
    font-family: Kanit;
    font-size: 14px;
    font-style: normal;
    font-weight: 300;
    color: #292929;
}
label .required{
    color: #e53e3e;
    margin-right: 2px;
}
input,
textarea {
  background: #E3E3E3;
  border: none;
  padding: 14px 24px;
  font-size: 14px;
  border-radius: 0;
  margin-bottom: 0 !important;
}

textarea {
  min-height: 50px;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: none;
}
textarea::-webkit-input-placeholder,
input::-webkit-input-placeholder{
    color: rgba(69, 70, 73, 0.4);
}
textarea::-moz-placeholder,
input::-moz-placeholder {
    color: rgba(69, 70, 73, 0.4);
}
@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
  }
}

.uta-input-error {
    border-color: #e53e3e !important;
    background: #fff5f5 !important;
}

.uta-field-error {
    display: block;
    color: #e53e3e;
    font-size: 12px;
    margin-top: 4px;
    margin-bottom: 8px;
}

.uta-form .phone-input-wrap {
    display: flex;
    gap: 8px;
}

.uta-form .phone-input-wrap select {
    width: 160px;
    flex-shrink: 0;
}

.uta-form .phone-input-wrap input {
    flex: 1;
}

/* =========================
   NAV BUTTONS
========================= */

.uta-nav {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 16px;
}

.uta-next,
.uta-back,
.uta-submit {
    padding: 12px 20px;
    border: none;
    min-width: 120px;
    border-radius: 0px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 14px;
    line-height: 1.1;
}

.uta-next,
.uta-submit {
    background: #292929;
    color: #fff;
}

.uta-next:hover,
.uta-submit:hover {
    background: #333;
}

.uta-back {
    background: #eee;
    border: 2px solid #292929;
}

/* =========================
   SUMMARY BOX
========================= */

.uta-summary {
    background: #E3E3E3;
    padding: 25px;
    border-radius: 10px;
    height: fit-content;
    margin-top: 30px;
}
.uta-summary__title{
    font-weight: 500;
    padding-bottom: 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(103, 103, 103, 0.08);

}
.uta-summary__subtitle{
    display: block;
    margin-bottom: 8px;
    font-weight: 400;
}
.uta-summary__item{
    padding-bottom: 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(103, 103, 103, 0.08);
    font-weight: 300;
}
.uta-summary__item:last-child{
    border-bottom: none;
}

.uta-summary h3 {
    margin-bottom: 20px;
}
.sum-branch-name{
    margin-bottom: 8px;
}

/* =========================
   CALENDAR
========================= */

#uta-calendar {
    margin-bottom: 20px;
    background-color: #fff;
    border-radius: 8px;
    padding: 20px 8px;
}

.uta-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.uta-header .uta-header__name{
    color: #292929;
    font-family: Kanit;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    margin-bottom: 0;
}
.uta-weekdays{
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.uta-weekdays .uta-weekdays__name{
    width: calc(100% / 7);
    text-align: center;
    color: #292929;
    font-family: Kanit;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
}
.uta-header button {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
}

.uta-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.uta-day {
    padding: 10px;
    text-align: center;
    border-radius: 0px;
    cursor: pointer;
    transition: 0.2s;
    border: none;
}

.uta-day:hover {
    background: #000;
    color: #fff;
}

.uta-day.uta-selected {
    background: #000;
    color: #fff;
}

.uta-day.uta-disabled {
    background: transparent;
    color: rgba(103, 103, 103, 0.30);
    cursor: not-allowed;
}
.uta-day.uta-disabled.uta-today{
    color: #000 !important;
    border: 1px solid #000 !important;
}
.uta-spinner-wrap{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}

.uta-spinner{
    width: 36px;
    height: 36px;
    border: 3px solid #e5e5e5;
    border-top: 3px solid #000;
    border-radius: 50%;
    animation: utaSpin 0.7s linear infinite;
}

@keyframes utaSpin{
    to{
        transform: rotate(360deg);
    }
}
/* =========================
   TIME SLOTS
========================= */
/* Past slot group */
.uta-group-past .uta-slot-title {
    color: #aaa;
}

.uta-past-label {
    font-size: 11px;
    color: #aaa;
    margin-left: 8px;
    font-style: italic;
}

/* Past individual slot */
.uta-slot-past {
    opacity: 0.35;
    text-decoration: line-through;
    cursor: not-allowed;
}

.uta-slot-title {
    background: #E3E3E3;
    padding: 20px 30px;
    font-family: Kanit;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    color: #292929;
}

.uta-slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
    padding: 16px;
}

.uta-slot.selected {
    background: #222;
    color: #fff;
}

.uta-slot:disabled {
    background: #f5f5f5;
    color: #aaa;
    cursor: not-allowed;
}

#uta-slots {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    background-color: #fff;
    border: 1px solid rgba(103, 103, 103, 0.30);
}

.uta-slot {
    padding: 10px;
    border: none;
    border-radius: 0px;
    background: #fff;
    cursor: pointer;
    transition: 0.2s;
    font-size: 14px;
    font-weight: 400;
    color: #292929;
    font-family: Kanit;
}

.uta-slot:hover {
    background: #000;
    color: #fff;
}

.uta-slot.selected {
    background: #000;
    color: #fff;
}

.uta-slot:disabled {
    background: #f1f1f1;
    color: #aaa;
    cursor: not-allowed;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

    .uta-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    #uta-slots {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {

    #uta-slots {
        grid-template-columns: repeat(2, 1fr);
    }

}

/* overlay */
.uta-modal {
    position: fixed;
    inset: 0; /* top:0 right:0 bottom:0 left:0 */
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* hide by default */
.uta-modal.hidden {
    display: none;
}

/* modal box */
.uta-modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    animation: utaPop 0.3s ease;
}
#view-detail,
#uta-close-modal {
    margin-top: 20px;
    padding: 10px 30px;
    background: #000;
    color: #fff;
    border: none;
    cursor: pointer;
}
/* Radio Group Container */
.radio-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Each Radio Option */
.radio-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 80px;
    font-family: Kanit;
    font-size: 14px;
    font-style: normal;
    font-weight: 300;
    color: #292929;
}

/* Hide default radio */
.radio-group input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #bbb;
    border-radius: 100%;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    transition: all 0.2s ease;
}

/* Selected state - radio dot */
.radio-group input[type="radio"]:checked {
    border: 5px solid #000;
    background: #fff;
}

/* Selected state - label box */
.radio-group label:has(input[type="radio"]:checked) {
    border-color: #000;
    background: #efefef;
    font-weight: 700;
}
.required {
    color: #e53e3e;
    margin-right: 2px;
}
/* Hover state */
.radio-group label:hover {
    border-color: #999;
}
#pickup-location-wrap{
    margin-bottom: 16px;
}

@keyframes utaPop {
    from { transform: scale(0.8); opacity:0; }
    to { transform: scale(1); opacity:1; }
}

.uta-loader {
    margin-top: 15px;
    width: 30px;
    height: 30px;
    border: 3px solid #ddd;
    border-top: 3px solid #000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}