.creavibc-booking-wrapper span, 
.creavibc-booking-wrapper p,
.creavibc-booking-wrapper label
{
  font-size: 1rem;
}

.creavibc-summary span{
  font-size: 0.89rem;
}

.creavibc-booking-wrapper strong{
  font-weight: bold;
}

.creavibc-form-heading{
  margin-bottom: 20px;
}

/* === Overlay === */
.creavibc-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === Popup Box === */
.creavibc-popup {
  background: #fff;
  border-radius: 12px;
  max-width: 900px;
  width: 100%;
  height: 630px; 
  max-height: 90vh;    
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transition: all 0.4s ease, opacity 0.3s ease;
}

.creavibc-popup-content {
  padding: 30px;
  display: flex;
  flex: 1;
  gap: 30px;
  overflow-y: auto;
  padding-bottom: 30px;
}

body.creavibc-popup-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* === Close Button === */
/*
.creavibc-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 24px !important;
  font-weight: bold;
  color: #999;
  cursor: pointer;
  z-index: 2;
}*/

.creavibc-close {
    position: absolute;
    top: 18px;
    right: 20px;

    width: 32px;
    height: 32px;
    line-height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 30px !important;
    font-weight: 100; /* thin */
    color: #888;

    border-radius: 50%;
    cursor: pointer;

    transition: 
        color 0.2s ease,
        background-color 0.2s ease,
        transform 0.2s ease;
}

/* Hover effect */
.creavibc-close:hover {
    color: #111;    
    transform: rotate(90deg);
}

/* Optional: subtle active press */
.creavibc-close:active {
    transform: rotate(90deg) scale(0.95);
}


.creavibc-inline-wrapper .creavibc-close-final{
  display: none;
}


/* === Layout Columns === */
.creavibc-two-columns {
  display: flex;
  gap: 40px;  
}

.creavibc-left {
  flex: 1 1 45%;
  color: #333;
  font-size: 16px;
  line-height: 1.6;
}

.creavibc-left img {  
  height: auto;
  border-radius: 8px;
  margin: 0px auto 20px auto;
  max-width: 100%;
}

.creavibc-left h3 {
  margin: 0 0 10px;
  font-size: 22px;
  color: #111;
}

.creavibc-right {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.creavibc-step {
  display: none;
  width: 100%;
}

.creavibc-step-1 {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* === Calendar === */
#creavibc-datepicker-inline {
  width: 100%;
  border: none;
}

.flatpickr-calendar {
  font-family: inherit;
  background: #fff !important;
  border: none;
  box-shadow: none;
}

.creavibc-popup .flatpickr-months {
  justify-content: space-between;
  padding: 0px;
  background: #fff !important;
}

.creavibc-popup .flatpickr-month {  
  align-items: center;
  justify-content: center; 
  background: transparent !important;  
}

.creavibc-popup .flatpickr-current-month {  
  align-items: center;
  pointer-events: none;  
  font-size: 100%;
  padding: 0;
}

.creavibc-popup span.cur-month{
  font-weight: normal;
}

.flatpickr-calendar.arrowTop::before,
.flatpickr-calendar.arrowTop::after {
  display: none !important;
}

.creavibc-popup select.flatpickr-monthDropdown-months {
  -webkit-appearance: menulist !important;
  -moz-appearance: menulist !important;
  appearance: menulist !important;
  background-image: url("data:image/svg+xml,%3Csvg fill='%23000' height='12' viewBox='0 0 24 24' width='12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
  background-size: 12px;
  padding-right: 20px;
}


.creavibc-popup .flatpickr-weekday {
  font-weight: 600;
  color: #333;
}

.creavibc-popup .flatpickr-day {  
  font-size: 14px;
  font-weight: 400;
}

.creavibc-popup .flatpickr-day.selected,
.creavibc-popup .flatpickr-day.startRange,
.creavibc-popup .flatpickr-day.endRange {
  background: var(--creavibc-primary) !important;
  border-color: var(--creavibc-primary) !important;
  color: #fff !important;
}

.creavibc-popup .flatpickr-day.today {
  border: 1px solid var(--creavibc-primary);
}


/* === Inline layout === */

.creavibc-inline-wrapper.creavibc-booking-wrapper{
  width: 100%;
  max-width: 900px;
}

.creavibc-inline-wrapper .creavibc-popup{
  height: fit-content;  
  max-height: unset;
  box-shadow:0 10px 15px rgba(0, 0, 0, 0.051)
}

.creavibc-inline-wrapper  .creavibc-popup-footer{
   box-shadow: 0 -2px 4px rgba(210, 210, 210, 0.175);
}

/* === Time Slots === */

.creavibc-calendar-wrap,
.creavibc-time-wrap {
  width: 100%;
  margin-bottom: 0px;  
}

.creavibc-time-wrap{
  margin-top: 20px;
}

.creavibc-time-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 6px;
}

button.creavibc-slot-btn {
  margin: 4px;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--creavibc-primary);
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  color: #2F2F2F;
  min-width: 68px;
  flex: 0 0 calc(18% - 6px);
}

.creavibc-slot-btn.selected,
.creavibc-slot-btn:hover {
  background-color: var(--creavibc-primary);
  color: #fff;
  border-color: var(--creavibc-primary);
}

.creavibc-slot-btn {
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.creavibc-slot-btn.show {
  opacity: 1;
  transform: translateY(0);
}


.creavibc-slot-disabled {
    background-color: #eee;
    color: #999;
    cursor: not-allowed;
    opacity: 0.6;
}



.creavibc-time-header{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 6px;
  justify-content: space-between;
  position: relative;
}

.creavibc-timezone-icon-wrapper {
  
  display: inline-block;
  margin-left: 6px;
  vertical-align: middle;
}


.creavibc-timezone-icon {
  cursor: help;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
  transform-origin: center;
}

.creavibc-timezone-icon:hover {
  transform: rotateY(180deg);
}


.creavibc-tooltip {
  visibility: hidden;
  opacity: 0;
  background-color: #fff;
  border: 1px solid var(--creavibc-primary);
  color: #000;
  text-align: center;
  border-radius: 4px;
  width: 100%;
  position: absolute;
  z-index: 1;
  bottom: 125%; /* above the icon */
  left: 50%;
  transform: translateX(-50%); 
  font-size: 14px;
  line-height: 1.4;
  transition: opacity 0.3s;
}

.creavibc-timezone-notice{
  display: block;
  padding: 8px 10px;

}

.creavibc-timezone-icon-wrapper:hover .creavibc-tooltip {
  visibility: visible;
  opacity: 1;
}


/* === Buttons === */
.creavibc-next,
.creavibc-back,
.creavibc-popup-footer button {
  background-color: var(--creavibc-primary);
  color: #fff;
  border: 1px solid var(--creavibc-primary);
  font-weight: 400;
  padding: 11px 32px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 25px;
  text-transform: unset;
}

.creavibc-next:hover,
.creavibc-back:hover,
.creavibc-popup-footer button:hover {
  background-color: transparent;
  color: var(--creavibc-primary);
  border: 1px solid var(--creavibc-primary);  
}

.creavibc-next:hover,
.creavibc-back:hover {
  opacity: 0.9;
}

.creavibc-popup button:disabled{
  cursor: not-allowed;
  opacity: 0.3;
}

/* === Footer === */
.creavibc-popup-footer {
  margin-top: auto;
  background: #fff;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 -2px 4px rgba(210, 210, 210, 0.25);
}


.creavibc-popup-footer .creavibc-summary {
  font-weight: 500;
  color: #444;
}

.creavibc-summary span{
  vertical-align: middle;
}

.creavibc-summary .dashicons{
  vertical-align: text-bottom;
}

.creavibc-step-2 .dashicons {
    font-size: 16px;
    vertical-align: middle;
    color: #555;
}


.creavibc-popup-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 20px;
    background: #fff;
    box-shadow: 0 -2px 4px rgba(210, 210, 210, 0.25);
}

.creavibc-summary {
    font-size: 14px;
    color: #444;
}

.creavibc-summary {
    left:0;
    margin-left: 10px;    
    font-size: 14px;
    color: #444;
    white-space: nowrap;
}

.creavibc-footer-buttons {
    display: flex;
    gap: 12px;
    margin-left: auto;
}

.creavibc-popup-footer .button,
.creavibc-popup-footer .button-primary {
    min-width: 100px;
    text-align: center;
}


/* === Form Step === */
.creavibc-step-2 label {
  display: block;
  margin-bottom: 10px;
}

.creavibc-step-2 input[type="date"],
.creavibc-step-2 input[type="email"],
.creavibc-step-2 input[type="number"],
.creavibc-step-2 input[type="password"],
.creavibc-step-2 input[type="search"],
.creavibc-step-2 input[type="tel"],
.creavibc-step-2 input[type="text"],
.creavibc-step-2 input[type="url"],
.creavibc-step-2 select,
.creavibc-step-2 textarea,
.creavibc-step-2 .woocommerce .quantity input.qty,
.creavibc-step-2 .wp-block-search input[type="search"],
.creavibc-step-2 .dark input[type="email"],
.creavibc-step-2 .dark input[type="password"],
.creavibc-step-2 .dark input[type="tel"],
.creavibc-step-2 .dark input[type="text"],
.creavibc-step-2 .dark select,
.creavibc-step-2 .dark textarea {
  width: 96%;
  padding: 8px;
  font-size: 14px;
  margin-top: 4px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  background-color: #fff;
  color: #000;
}

.creavibc-step-2 input[type="date"]:focus,
.creavibc-step-2 input[type="email"]:focus,
.creavibc-step-2 input[type="number"]:focus,
.creavibc-step-2 input[type="password"]:focus,
.creavibc-step-2 input[type="search"]:focus,
.creavibc-step-2 input[type="tel"]:focus,
.creavibc-step-2 input[type="text"]:focus,
.creavibc-step-2 input[type="url"]:focus,
.creavibc-step-2 select:focus,
.creavibc-step-2 textarea:focus {
  outline: none;
  color: #000;
  background: #fff;
  background-color: #fff;
  border-color: var(--creavibc-primary);
 }

 .creavibc-required {
    color: red;
    margin-left: 2px;
}

.creavibc-field-error {
    border: 1px solid red !important;
    background-color: #fff0f0;
}
.creavibc-error-msg {
    color: #ccc;
    font-size: 13px;
    margin-top: -14px;
    display: block;
}


/* === Number Input Cleanup === */

.creavibc-popup input.cur-year::-webkit-inner-spin-button,
.creavibc-popup input.cur-year::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.creavibc-popup input.cur-year {
  -moz-appearance: textfield;
}

.creavibc-popup .creavibc-popup-footer .dashicons-calendar-alt::before, 
.creavibc-popup .creavibc-popup-footer .dashicons-clock::before{
  line-height: 27px;
}

.creavibc-summary-item i {
    display: inline-block;
}
.date-hidden i,
.time-hidden i {
    display: none;
}


/* === Navigation Arrows === */
.creavibc-popup .flatpickr-prev-month,
.creavibc-popup .flatpickr-next-month {
  color: #000;
  font-size: 20px;
  padding: 0 10px;
  cursor: pointer;
}

/* === Responsive === */

@media (max-width: 768px) {

    .creavibc-left,
    .creavibc-right {
        flex: 1 1 100%;
    }

    .creavibc-right{
      width: 100%;
    }

    .creavibc-popup-content.creavibc-two-columns {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: flex-start;      
        gap: 20px; 
    }

    .creavibc-popup-content .creavibc-left img{
        display: none;
    }
    .creavibc-left,
    .creavibc-right {
      flex: unset;
      width: 100%;
    }

    .creavibc-summary {
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      justify-content: center;
      gap: 10px;
      margin-bottom: 15px;
      width: 100%;
      position: relative;
      left: 0;
    }

    .creavibc-footer-buttons {
      display: flex;
      justify-content: center;
      gap: 10px;
      width: 100%;
      flex-wrap: wrap;
    }

    .creavibc-footer-buttons button {
      flex: 1 1 auto; /* allows buttons to wrap nicely */
      min-width: 120px;
    }
    .creavibc-popup .creavibc-popup-footer .dashicons-calendar-alt::before, .creavibc-popup .creavibc-popup-footer .dashicons-clock::before{
      line-height: 14px;
    }

    .creavibc-popup{
      height: 100%;
    }
}

/* Loading state for submit button */
.creavibc-next.is-loading {
    position: relative;
    opacity: 0.85;
    pointer-events: none;
}

/* spinner inside button */
.creavibc-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    display: inline-block;
    vertical-align: -2px;
    animation: creavibcSpin 0.8s linear infinite;
    margin-right: 8px;
}

@keyframes creavibcSpin {
    to { transform: rotate(360deg); }
}

.creavibc-thankyou {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 28px;
    gap: 14px;
}

.creavibc-thankyou-title {
    color: var(--creavibc-primary);
    font-size: 22px;
    line-height: 1.25;
    margin: 0;
}

.creavibc-thankyou-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    color: #666;
    font-size: 15px;
}

.creavibc-thankyou-meta-row {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.creavibc-thankyou-meeting {
    width: 100%;
    max-width: 520px;
    margin-top: 8px;
}

.creavibc-meeting-box {
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 14px 14px;
    background: rgba(255,255,255,0.7);
    text-align: left;
}

.creavibc-meeting-title {
    font-weight: 600;
    margin-bottom: 10px;
}

.creavibc-meeting-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 6px 0;
}

.creavibc-meeting-text {
    flex: 1;
    color: #333;
    line-height: 1.35;
}

.creavibc-meeting-link {
    text-decoration: none;
    font-weight: 600;
}
.creavibc-meeting-link:hover {
    text-decoration: underline;
}

.creavibc-thankyou-wrap{
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  margin-top:32px;
}

.creavibc-thankyou-title{
  color:var(--creavibc-primary);
  font-size:34px;
  line-height:1.1;
  margin:0 0 18px;
  font-weight:800;
}

.creavibc-thankyou-meeting-title{
  font-weight:700;
  font-size:18px;
  margin-top:6px;
}

.creavibc-thankyou-meeting-subtitle{
  margin-top:6px;
  color:#8a8a8a;
  font-size:14px;
}

.creavibc-linkpill{
  margin-top:14px;
  display:flex;
  align-items:center;
  gap:10px;
  width:min(520px, 92%);
  padding:7px 12px;
  border-radius:12px;
  background:#fff;  
  box-shadow:0 8px 22px rgba(0,0,0,.08);
}

.creavibc-linkpill-icon{
  opacity:.8;
  font-size:18px;
  width:18px;
  height:18px;
}

.creavibc-linkpill-text{
  flex:1;
  min-width:0;
  text-align:left;
  color: var(--creavibc-primary);
  text-decoration:none;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.creavibc-linkpill-text:hover{
  text-decoration:underline;
}

.creavibc-copy-btn{
  border:0;
  background:transparent;
  cursor:pointer;
  padding:6px;
  border-radius:8px;
  opacity:.75;
}

.creavibc-copy-btn:hover{
  background:rgba(0,0,0,.06);
  opacity:1;
}

.creavibc-copy-btn.is-copied{
  background:rgba(0,0,0,.09);
}

.creavibc-thankyou-meta{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:#666;
  font-size:16px;
  margin-top:18px;
}

.creavibc-meta-sep{ width:10px; }

.creavibc-copy-btn{
  border:0;
  background:transparent;
  padding:8px;
  border-radius:10px;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#7a7a7a;
  transition:background .15s ease, color .15s ease, transform .08s ease;
}

.creavibc-copy-btn:hover{ background:rgba(0,0,0,.04); color:#2b2b2b; }
.creavibc-copy-btn:active{ transform:scale(.96); }

.creavibc-copy-ico{
  position:relative;
  width:18px;
  height:18px;
  display:inline-block;
}

.creavibc-copy-ico svg{
  position:absolute;
  inset:0;
  width:18px;
  height:18px;
  transition:opacity .15s ease, transform .15s ease;
}

.creavibc-ico-check{ opacity:0; transform:scale(.9); }
.creavibc-ico-copy{ opacity:1; }

.creavibc-copy-btn.is-copied{ color:#1a73e8; }
.creavibc-copy-btn.is-copied .creavibc-ico-check{ opacity:1; transform:scale(1); }
.creavibc-copy-btn.is-copied .creavibc-ico-copy{ opacity:0; transform:scale(.9); }