/* ----------------------------------------------------------------------------
 * Mawaeedy - Online Appointment Scheduler
 *
 * @package     EasyAppointments
 * @author      A.Tselegidis <alextselegidis@gmail.com>
 * @copyright   Copyright (c) Alex Tselegidis
 * @license     https://opensource.org/licenses/GPL-3.0 - GPLv3
 * @link        https://www.mawaeedy.com/
 * @since       v1.5.0
 * ---------------------------------------------------------------------------- */
root {
  display: block;
}

html,
body {
  height: 100%;
}

#main {
  min-height: 100%;
}

/* BOOK APPOINTMENT WIZARD
 ------------------------------------------------------------------------------ */
#book-appointment-wizard {
  min-height: 480px;
  padding: 0;
  margin: auto;
}

#book-appointment-wizard #header {
  overflow: auto;
  height: auto;
  padding: 20px 15px;
  background: #429a82;
}

#book-appointment-wizard #company-name {
  float: none;
  display: block;
  text-align: center;
  font-size: 24px;
  font-weight: lighter;
  color: #fff;
  margin: 20px 0;
}
#book-appointment-wizard #company-name .booking-branding {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 8px 0 14px;
}

#book-appointment-wizard #company-name .booking-branding img {
  display: block;
  max-height: 56px;
}

#book-appointment-wizard #company-name .booking-branding .mawaeedy-logo {
  max-height: 48px;
}
#book-appointment-wizard #company-name .display-booking-selection {
  color: #225d4d;
  border-right-color: #225d4d !important;
  font-size: 60%;
  font-weight: normal;
}

#book-appointment-wizard.cards-enabled .booking-select-group {
  display: none;
}

#book-appointment-wizard .booking-section-title {
  display: block;
  margin-bottom: 10px;
  color: #245c4f;
  letter-spacing: 0.2px;
}

#book-appointment-wizard .booking-card-grid {
  display: none;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

#book-appointment-wizard.cards-enabled .booking-card-grid {
  display: grid;
}

#book-appointment-wizard .booking-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-radius: 16px;
  border: 1px solid #e3e7ea;
  background: #ffffff;
  padding: 12px;
  text-align: left;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

#book-appointment-wizard .booking-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

#book-appointment-wizard .booking-card.active {
  border-color: #0f766e;
  box-shadow: 0 16px 32px rgba(15, 118, 110, 0.18);
}

#book-appointment-wizard .booking-card-image {
  width: 100%;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #dff0ea, #c1e3d8);
}

#book-appointment-wizard .booking-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#book-appointment-wizard .booking-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
}

#book-appointment-wizard .booking-card-subtitle {
  font-size: 13px;
  color: #6b7280;
}

#book-appointment-wizard .booking-card-meta {
  font-size: 12px;
  color: #0f766e;
  font-weight: 500;
}

#book-appointment-wizard .booking-card-empty {
  grid-column: 1 / -1;
  padding: 20px;
  border-radius: 12px;
  background: #f4f7f8;
  color: #6b7280;
  text-align: center;
}

#book-appointment-wizard .booking-selection-layout {
  align-items: flex-start;
}

#book-appointment-wizard .booking-filter-panel {
  border: 1px solid #d8e4df;
  border-radius: 18px;
  background: linear-gradient(180deg, #fcfffd 0%, #f4faf7 100%);
  box-shadow: 0 14px 32px rgba(36, 92, 79, 0.08);
  padding: 20px;
  position: sticky;
  top: 18px;
}

#book-appointment-wizard .booking-filter-header {
  margin-bottom: 18px;
}

#book-appointment-wizard .booking-filter-title {
  color: #245c4f;
  font-size: 20px;
  font-weight: 700;
}

#book-appointment-wizard .booking-filter-subtitle {
  color: #5d6b67;
  font-size: 13px;
  margin-top: 6px;
}

#book-appointment-wizard .booking-filter-label {
  color: #245c4f;
  margin-bottom: 10px;
}

#book-appointment-wizard .booking-filter-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
}

#book-appointment-wizard .booking-filter-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 1px solid #d8e4df;
  border-radius: 14px;
  background: #fff;
  color: #1f2937;
  padding: 10px 12px;
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

#book-appointment-wizard .booking-filter-item:hover {
  border-color: #7db6a6;
  box-shadow: 0 8px 20px rgba(36, 92, 79, 0.1);
  transform: translateY(-1px);
}

#book-appointment-wizard .booking-filter-item.active {
  border-color: #245c4f;
  box-shadow: 0 12px 26px rgba(36, 92, 79, 0.16);
}

#book-appointment-wizard .booking-filter-item[hidden] {
  display: none !important;
}

#book-appointment-wizard .booking-filter-media {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  overflow: hidden;
  background: #e7f2ed;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#book-appointment-wizard .booking-filter-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#book-appointment-wizard .booking-filter-media-placeholder {
  color: #245c4f;
  font-size: 18px;
}

#book-appointment-wizard .booking-filter-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

#book-appointment-wizard .booking-filter-name {
  font-weight: 600;
  color: #1f2937;
}

#book-appointment-wizard .booking-filter-meta {
  color: #6b7280;
  font-size: 12px;
  margin-top: 2px;
}

#book-appointment-wizard #steps {
  float: none;
  display: block;
  overflow: auto;
  margin: 15px auto;
  width: 190px;
}

#book-appointment-wizard #book-appointment-form #book-appointment-submit {
  width: 100%;
  margin-right: 0;
}

#book-appointment-wizard #form-message {
  text-align: center;
  margin-bottom: 30px;
}

#book-appointment-wizard .wizard-frame {
  height: auto;
  padding: 15px;
}

#book-appointment-wizard .wizard-frame .frame-container {
  height: auto;
  min-height: 500px;
  padding: 15px 0;
}

#book-appointment-wizard .frame-container .frame-title {
  font-weight: lighter;
  text-align: center;
  margin-bottom: 30px;
  color: #666;
}

#book-appointment-wizard .frame-container .frame-content {
  float: none;
}

#book-appointment-wizard .wizard-frame .command-buttons {
  float: none;
  margin: 15px auto;
  text-align: center;
}

#book-appointment-wizard .wizard-frame .command-buttons .btn {
  min-width: 120px;
  margin-right: 10px;
}

#book-appointment-wizard .wizard-frame .command-buttons .btn:last-child {
  margin-right: 0;
}

#book-appointment-wizard .wizard-frame .flatpickr-calendar {
  margin: 25px auto;
}

#book-appointment-wizard .wizard-frame #select-time {
  max-width: 288px;
  margin: auto;
  padding: 15px 0;
}

#book-appointment-wizard .book-step {
  display: inline-block;
  height: 35px;
  width: 35px;
  float: left;
  background: #225d4d;
  padding: 8px;
  margin-right: 12px;
  margin-top: 6px;
  border-radius: 0.25rem;
  transition: all 0.3s linear;
}

#book-appointment-wizard .book-step:last-child {
  margin-right: 0;
}

#book-appointment-wizard .book-step strong {
  font-size: 12px;
  display: block;
  text-align: center;
  color: #0bb98d;
  transition: all 0.3s linear;
  cursor: default;
}

#book-appointment-wizard .active-step {
  display: inline-block;
  height: 45px;
  width: 45px;
  float: left;
  background: #fff;
  padding: 7px;
  margin-right: 13px;
  margin-top: 0;
}

#book-appointment-wizard .active-step strong {
  color: #429a82;
  font-size: 21px;
}

#book-appointment-wizard #frame-footer {
  padding: 15px;
  text-align: center;
  border-top: 1px solid #ebeef1;
}

#book-appointment-wizard #available-hours {
  overflow: auto;
  margin: 15px 0;
  padding-right: 10px;
  width: auto;
  max-height: 250px;
}

#book-appointment-wizard #available-hours div {
  margin-right: 30px;
}

#book-appointment-wizard #available-hours .available-hour {
  margin-bottom: 10px;
}

#book-appointment-wizard #available-hours .selected-hour {
  background-color: #439a82;
  border-color: #439a82;
  color: white;
}

#book-appointment-wizard .span3 {
  min-width: 270px; /* This is especially needed for ie8 */
}

#book-appointment-wizard #select-timezone {
  margin-bottom: 15px;
}

#book-appointment-wizard #appointment-details p,
#book-appointment-wizard #customer-details p {
  font-size: 16px;
  line-height: 28px;
}

#book-appointment-wizard #wizard-frame-1 label {
  font-size: 19px;
  margin-bottom: 12px;
}

#book-appointment-wizard #wizard-frame-1 select {
  margin-bottom: 25px;
}

#book-appointment-wizard .captcha-title {
  float: left;
  margin: 7px 0 10px 0;
}

#book-appointment-wizard .captcha-title .fa-sync-alt {
  cursor: pointer;
  transition: all 0.3s linear;
}

#book-appointment-wizard .captcha-title .fa-sync-alt:hover {
  color: #1a865f;
}

#book-appointment-wizard .captcha-image {
  float: left;
  margin-bottom: 20px;
  border-radius: 3px;
}

#book-appointment-wizard .captcha-text {
  width: 100%;
  margin-bottom: 20px;
}

#book-appointment-wizard #service-description {
  overflow-y: auto;
  clear: both;
  max-height: 153px;
  box-shadow: none;
}

#book-appointment-wizard #select-language,
#book-appointment-wizard .backend-link {
  display: block;
  min-width: 120px;
  margin: 15px auto;
  padding: 5px;
}

.popover .popover-title {
  text-align: center;
}

.popover .popover-content #language-list .language {
  margin: 15px 0;
}

#book-appointment-wizard #wizard-frame-4 .frame-container .frame-content {
  max-width: 630px;
}

/* Select2 option visuals (booking) */
.booking-select-option {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.booking-select-option img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
.select2-container--default .select2-selection--single {
  height: 38px;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 36px;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 36px;
}

@media (min-width: 768px) {
  .wrapper {
    min-height: 100vh;
  }
  #book-appointment-wizard {
    border-radius: 0.25rem;
    overflow: hidden;
    box-shadow: rgba(138, 195, 255, 0.12) 0 1px 5px 0;
  }
  #book-appointment-wizard #company-name {
    text-align: left;
    display: inline-block;
    float: left;
    margin: 0 auto;
    min-width: 400px;
    line-height: 1.4;
  }
  #book-appointment-wizard #company-name #company-logo {
    display: inline-block;
    float: left;
    margin-right: 14px;
    margin-top: 0;
    margin-bottom: 0;
  }
  #book-appointment-wizard #steps {
    display: inline-block;
    float: right;
    margin: 5px auto;
  }
  #book-appointment-wizard .wizard-frame {
    padding: 10px 20px;
  }
  #book-appointment-wizard .wizard-frame .command-buttons {
    display: flex;
    justify-content: space-between;
  }
  #book-appointment-wizard .captcha-title {
    margin-right: 20px;
    margin-top: 7px;
  }
  #book-appointment-wizard .captcha-image {
    float: right;
  }
  #book-appointment-wizard #select-language {
    width: 100px;
    padding: 5px;
    margin: 5px auto;
  }
  #book-appointment-wizard #frame-footer small {
    display: flex;
  }
  #book-appointment-wizard .footer-powered-by,
  #book-appointment-wizard .footer-options {
    width: 50%;
  }
  #book-appointment-wizard .footer-powered-by {
    text-align: left;
    padding: 5px 5px 5px 0;
  }
  #book-appointment-wizard .footer-options {
    text-align: right;
  }
  #book-appointment-wizard #select-language {
    display: inline-block;
  }
  #book-appointment-wizard .backend-link {
    display: inline-block;
    min-width: 120px;
    padding: 5px;
    margin: 5px 0;
  }
}

@media (max-width: 991.98px) {
  #book-appointment-wizard .booking-filter-panel {
    position: static;
  }
}
/* BOOK SUCCESS & MESSAGE
   ------------------------------------------------------------------------- */
#message-frame,
#success-frame {
  background: var(--bs-body-bg);
  text-align: center;
  height: auto;
  border: none;
  padding: 35px;
}

#message-frame .alert,
#success-frame .alert {
  margin-top: 20px;
}

#message-frame #message-icon,
#success-frame #success-icon {
  margin-top: 20px;
  margin-right: 20px;
  width: 64px;
  display: block;
  margin: auto;
  float: none !important;
}

#success-frame .btn {
  margin-bottom: 10px;
  width: 80%;
  max-width: 300px;
}

@media (min-width: 768px) {
  #message-frame,
  #success-frame {
    height: 100%;
  }
}
/* CANCEL APPOINTMENT
   ------------------------------------------------------------------------- */
.booking-header-bar {
  padding: 15px 0;
  margin: 0;
  background: #f3f2e7;
  border-bottom: 1px solid #e4e1c9;
  text-align: center;
}

.ui-dialog .ui-dialog-title {
  font-size: 1.2em;
}

@media (min-width: 768px) {
  .booking-header-bar {
    padding: 15px 0;
    margin: 0;
    background: #f3f2e7;
    border-bottom: 1px solid #e4e1c9;
    text-align: left;
  }
}

/* Hide media container if it has no image */
.booking-card-media:empty { display: none; }

/* Optional: if image failed and removed */
.booking-card-media.no-image { display: none; }

/* Optional visuals (safe defaults) */
.booking-card {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  cursor: pointer;
  display: flex;
  gap: 12px;
  align-items: center;
}

.booking-card.is-selected {
  border-color: rgba(var(--bs-primary-rgb), .6);
  box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), .12);
}

.booking-card-media img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.booking-card-title {
  font-weight: 600;
}
