/* סטייל דף תיאום פגישה */

.ahb-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    padding: 1px 250px;
}



.ahb-tab {
    position: relative;
    padding: 6px 0;
    cursor: pointer;
    color: #8b8b8b;
    opacity: 1;
    background: none;
    border-radius: 0;
}



.ahb-tab.active {
    color: #000;
    font-weight: 600;
}

.ahb-tab.active::after {
    background: #7b6cff;
}

.ahb-tab {
    padding: 8px 18px;
    border-radius: 20px;
    background: #f1f1f1;
    cursor: pointer;
    opacity: .5;
}

.ahb-tab.active {
    background: #e9e6ff;
    opacity: 1;
    font-weight: bold;
}

.ahb-left {
    padding: 33px 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ahb-slots-wrap {
    border-radius: 20px;
    background: #F9F9F9;
    padding: 12px;
}

.slots-separator {
    width: 100%;
    height: 1px;
    background: #B4B4B4;
    margin: 20px 0;
}

.ahb-static-info {
    background: #f3efff;

    border-radius: 16px;
    color: #4B0082;
    border: 1px solid #C8B0FF;
}

.ahb-summary-part {
    padding: 20px;
}

.ahb-summary-part:nth-child(2) {
    border-top: 1px solid #C8B0FF;
}

.info-icon {
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
}

.info-line {
    display: flex;
    margin: 10px 0;
    align-items: center;
    gap: 3px;
}


.ahb-bottom-info {
    padding: 30px 250px;
}

.ahb-bottom-info h4 {
    border-top: 1px solid #E5E5E5;
    border-bottom: 1px solid #E5E5E5;
    padding: 14px 0;
}

.ahb-meeting-info {
    display: flex;
    gap: 20px;
}

.ahb-summary-part h3 {
    font-size: 28px;
    font-weight: 900;
}

.ahb-summary-part p {
    margin: 0;
}
select#quantity_range {
    color: #4b0082;
    background: unset;
    padding: 0;
    margin: 6px 0;
}

button.ahb-next {
    background: #7ad3f3 !important;
    color: #121212 !important;
    border: none;
    padding: 5px 0 !important;
    width: 200px;
    margin-right: calc(100% - 200px);
    font-weight: 500;
}

.ahb-next.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.ahb-step {
    width: 100%;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .35s ease, transform .35s ease;
}

.ahb-step.active {
    opacity: 1;
    transform: translateY(0);
}

.ahb-bottom-info {
    margin-top: 60px;
    font-size: 14px;
}


.ahb-page {
    direction: rtl;
    margin: auto;
}

.ahb-slots {
    flex-wrap: wrap;
    flex-direction: row;
    display: flex;
}

.ahb-slots .availableslot,
.ahb-slots .htmlUsed {
    display: flex;
    justify-content: center;
}

.ahb-slots .availableslot a,
.ahb-slots .htmlUsed a {
    background: unset !important;
    font-size: 16px !important;
    padding: 0 !important;
    width: 57px !important;
}

.availableslot {
    width: 57px;
}

.htmlUsed.currentSelection.choosen a {
    color: #000000 !important;
    min-width: 57px !important;
}

.htmlUsed.currentSelection.choosen {
    background: #76DDF0;
    border-radius: 50px;
    line-height: 1;
}

/* ===== Tabs – exact UI like design ===== */
.ahb-tabs-wrap {
    width: 100%;
    height: 120px;
    background: #EAEFFA;
    padding: 6px;
    display: inline-flex;
    margin-bottom: 32px;
    align-content: center;
    align-items: center;
    justify-content: center;
}

.ahb-tabs {
    display: flex;
    gap: 4px;
}

.ahb-tab {
    padding: 10px 22px;
    border-radius: 999px;
    background: transparent;
    color: #5b5f73;
    font-size: 14px;
    cursor: pointer;
    transition: background .25s ease, color .25s ease;
}

.ahb-tab.active {
    background: #ffffff;
    color: #000;
    font-weight: 600;
}

/* hide original slots – keep plugin logic */
#field_1-0 .slotsCalendar {
    display: none;
}

/* ===== Slots UI ===== */
/* hide date label inside slots mirror */
.ahb-slots .slots>span {
    display: none;
}


.ahb-slots .slots {
    display: flex;
    flex-wrap: wrap;
    /* wrap to next row */
    gap: 10px;
    /* spacing between slots */
    direction: rtl;
    /* right to left flow */
}

.ahb-slots .availableslot,
.ahb-slots .htmlUsed {
    display: flex;
}

.ahb-slots .availableslot a,
.ahb-slots .htmlUsed a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: #f1f1f1;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background .25s ease, color .25s ease;
}

.ahb-slots .availableslot a:hover {
    background: #EAEFFA;
}

.ahb-slots .htmlUsed a,
.ahb-slots .choosen a {
    background: #7b6cff;
    color: #fff;
}

/* ===== Selected summary (step 2 left card) ===== */
.ahb-summary-card {
    background: #f3efff;
    border-radius: 16px;
    padding: 20px;
    font-size: 14px;
}

.ahb-summary-card h3 {
    margin: 0 0 12px;
    font-size: 16px;
}

.ahb-summary-row {
    margin-top: 6px;
}

/* ===== Bottom info – only step 1 ===== */
.ahb-bottom-info {
    margin-top: 60px;
    font-size: 14px;
}



.ui-datepicker-calendar th {
    background: #F9F9F9 !important;
}

table.ui-datepicker-calendar tbody>tr:nth-child(odd)>td,
table tbody>tr:nth-child(odd)>th {
    background: #F9F9F9 !important;

}

.ahb_m2 #fbuilder td:not(.ui-datepicker-unselectable) a.ui-state-default.ui-state-active {
    color: unset;
    background: #76DDF0 !important;
}

.ui-datepicker-title {
    background: #F9F9F9 !important;
    border-radius: 20px;
    margin-bottom: 10px
}

.ui-datepicker-inline.ui-datepicker.ui-widget.ui-widget-content.ui-helper-clearfix.ui-corner-all {
    background: #ffffff !important;
}

.ahb_m2 #fbuilder div#fbuilder_1 .ui-datepicker-header {
    background: #ffffff !important;
    font-size: 18px;
}

.fieldCalendarService.fieldCalendarServicefieldname1_1 {
    display: none;
}

label[for="fieldname1_1"] {
    display: none !important;
}

button.pbSubmit.ahb-step.step-2.active {
    display: none !important;
}
.ahb_m2 #fbuilder div#fbuilder_1 .ui-datepicker .ui-datepicker-prev,
#fbuilder div#fbuilder_1 .ui-datepicker .ui-datepicker-next {
    height: 14px;
    width: 14px;
    margin-top: 23px;
}

.ahb_m2 #fbuilder td:not(.ui-datepicker-unselectable) a.ui-state-default:hover {
    color: #231f20 !important;
    background: #76ddf073 !important;
}

.ui-datepicker-calendar tr td:nth-child(7) span,
.ui-datepicker-calendar tr td:nth-child(6) span {
    background: #EEEEEE !important;
    border-radius: 0 !important;
}

.ahb_m2 #fbuilder table tbody tr:hover>td,
table tbody tr:hover>th {
    background-color: unset;
}

.ui-datepicker-calendar tr td:nth-child(6).ui-datepicker-other-month span,
.ui-datepicker-calendar tr td:nth-child(7).ui-datepicker-other-month span {
    border-radius: 0 0 25px 25px !important;
}

.ui-datepicker-calendar tr:first-child td:nth-child(7) span,
.ui-datepicker-calendar tr:first-child td:nth-child(6) span {
    border-radius: 25px 25px 0 0 !important;
}

.ahb_m2 #fbuilder .ui-datepicker-calendar td.weekend-cap-bottom span {
    border-radius: 0 0 25px 25px !important;
}


/* טופס */
/* ===== Wrapper ===== */
#fbuilder {
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 4px 60px rgba(0,0,0,0.05);
  margin-bottom: 50px;
}

#fieldlist_1 {
  max-width: 640px;
  margin: 0 auto;
  font-family: Arial, sans-serif;
  direction: rtl;
}

/* ===== Row layout: label + field ===== */
#fieldlist_1 .fields {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

/* label */
#fieldlist_1 .fields > label {
  width: 140px;
  margin: 0;
  font-size: 14px;
  color: #222;
  white-space: nowrap;
  text-align: right;
}

#fieldlist_1 label .r {
  color: #000;
  margin-right: 4px;
}

/* input wrapper */
#fieldlist_1 .fields > .dfield {
  flex: 1;
}

/* ===== Inputs ===== */
#fieldlist_1 input.field,
#fieldlist_1 textarea.field {
  width: 100%;
  height: 44px;
  padding: 10px 16px;
  border: 1px solid #e3e3e3;
  border-radius: 24px;
  font-size: 14px;
  background: #fff;
  outline: none;
  box-sizing: border-box;
}

#fieldlist_1 textarea.field {
  height: 120px;
  border-radius: 20px;
  resize: none;
}

#fieldlist_1 input.field:focus,
#fieldlist_1 textarea.field:focus {
  border-color: #bdbdbd;
}

/* ===== Field 7: checkbox row ===== */
#field_1-7 {
  align-items: flex-start;
}

#field_1-7 > label {
  width: 140px;
}

#field_1-7 .dfield {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* ===== Checkboxes (FIXED) ===== */
#fieldlist_1 input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 11px;
    height: 15px;
    border: 1.5px solid #000;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    position: relative;
    padding: 8px;
    margin-bottom: -4px;
}

#fieldlist_1 input[type="checkbox"]:checked {
  background: #000;
}

#fieldlist_1 input[type="checkbox"]:checked::after {
content: "";
    position: absolute;
    width: 6px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    top: 2px;
    left: 6px;
}

/* checkbox label */
#fieldlist_1 .side_by_side {
    margin-left: 26px;
    display: inline-flex;
    font-size: 14px;
    align-content: center;

}

/* ===== Submit button ===== */
.pbSubmit {
  width: 100%;
  height: 46px;
  border-radius: 24px;
  background: #000;
  color: #fff;
  border: none;
  font-size: 15px;
  cursor: pointer;
  margin-top: 10px;
}

.pbSubmit:hover {
  opacity: 0.9;
}

/* ===== Cleanup ===== */
.uh,
.clearer {
  display: none;
}

.fieldCalendar,
.slotsCalendar,
.usedSlots {
  border: none;
  background: transparent;
}
@media (max-width: 768px) {

  /* ===== Main layout ===== */
  .ahb-layout {
    display: block;
    padding: 0 16px;
  }

  .ahb-left,
  .ahb-right {
    padding: 0;
    margin-bottom: 70px;
  }

  .ahb-bottom-info {
    padding: 20px 16px;
  }

  /* ===== Tabs ===== */
  .ahb-tabs-wrap {
    height: auto;
    padding: 12px;
  }

  .ahb-tabs {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* ===== Slots ===== */
  .ahb-slots .slots {
    justify-content: center;
  }

  .ahb-slots .availableslot a,
  .ahb-slots .htmlUsed a {
    min-width: 64px;
    height: 38px;
    font-size: 13px;
  }

  /* ===== Form wrapper ===== */
  #fbuilder {
    padding: 20px 16px;
    box-shadow: none;
  }

  #fieldlist_1 {
    max-width: 100%;
  }

  /* ===== Fields: stack vertically ===== */
  #fieldlist_1 .fields {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  #fieldlist_1 .fields > label {
    width: auto;
    font-size: 13px;
  }

  #fieldlist_1 .fields > .dfield {
    width: 100%;
  }

  /* ===== Inputs ===== */
  #fieldlist_1 input.field,
  #fieldlist_1 textarea.field {
    height: 42px;
    font-size: 14px;
  }
    input#fieldname8_1 {
        height: 16px !important;
    }
  #fieldlist_1 textarea.field {
    height: 110px;
  }

  /* ===== Field 7: checkboxes ===== */
  #field_1-7 {
    flex-direction: column;
    gap: 8px;
  }

  #field_1-7 > label {
    width: auto;
  }

  #field_1-7 .dfield {
    gap: 12px;
  }

  #fieldlist_1 .side_by_side {
    width: 100%;
    margin: 6px;
  }

  /* ===== Buttons ===== */
  button.ahb-next {
    width: 100%;
    margin-right: 0;
  }

}
