/* 🌟 Asterisks Red */

.custom-search-bar:hover {
    background: #f5f5f5;
}

.cb-field span::after {
  content: attr(data-required);
  color: red;
  margin-left: 2px;
  font-weight: bold;
}

/* 🌟 Base Fields */
.cb-field {
  display: flex;
  flex-direction: column;
}

.cb-field span {
  font-weight: 500;
  margin-bottom: 5px;
}

.cb-field input,
.cb-field select,
.cb-field textarea {
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
  background-color: #fff;
}

/* 🌟 Grid Layouts */
.cb-grid-1 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.cb-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  grid-column: 1 / -1;
}

/* ✅ 3-column Row (Mobile + Email + Zip) */
.cb-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  grid-column: 1 / -1;
}

/* 🌟 Full Width Rows */
.cb-full {
  grid-column: 1 / -1;
}

/* 🌟 Mobile Input Box */
.mobile-box-1 {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 6px;
  overflow: hidden;
  background-color: #fff;
}

.country-code-1 {
  background-color: #f5f5f5;
  padding: 8px 10px;
  font-size: 14px;
  border-right: 1px solid #ccc;
  color: #333;
}

.mobile-box-1 input {
  border: none;
  outline: none;
  flex: 1;
  padding: 8px 10px;
  font-size: 14px;
}

/* 🌟 Error */
.cb-error {
  font-size: 12px;
  color: red;
  margin-top: 4px;
  min-height: 14px;
}

/* 🌟 Submit Button */
.cb-submit {
  display: block;
  margin: 20px auto;
  background-color: #58a0c8;
  color: #fff;
  padding: 10px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 15px;
  transition: background 0.3s ease;
}

.cb-submit:hover {
  background-color: #014b8e;
}

/* 🌟 Status */
.cb-status {
  text-align: center;
  font-weight: 500;
  margin-top: 8px;
}

/* 📱 MOBILE (≤450px) */
@media (max-width: 450px) {
  html,
  body {
    height: 100%;
    overflow: auto;
  }

  form#tenantForm {
    max-height: 100vh;
    padding: 15px;
    box-sizing: border-box;
  }

  /* Make all grids single column */
  .cb-grid-1,
  .cb-grid-2,
  .cb-grid-3 {
    grid-template-columns: 1fr;
  }
  .cb-overlay {
    padding: 0px !important;
  }

  /* Make dialog/form fields scrollable on small screens */
  .cb-dialog {
    max-height: 100vh;
    overflow-y: auto;
    padding: 15px;
    box-sizing: border-box;
    border-radius: 0px !important;
  }
}

/* 💻 TABLET (451px–1023px) */
@media (min-width: 451px) and (max-width: 1023px) {
  .cb-grid-1 {
    grid-template-columns: repeat(3, 1fr);
  }

  .cb-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .cb-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 🖥️ DESKTOP (≥1024px) */
@media (min-width: 1024px) {
  .cb-grid-1 {
    grid-template-columns: repeat(3, 1fr);
  }

  .cb-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .cb-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .cb-dialog {
    position: relative;
    padding-top: 60px !important;
    /* extra space for title + close button */
    margin-top: 20px !important;
    max-height: 90vh;
    /* prevent cropping */
    overflow-y: auto;
    /* allow scrolling instead of clipping */
    box-sizing: border-box;
    z-index: 9999;
  }

  .cb-close {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 26px;
    color: #333;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    z-index: 10000;
  }

  #cb-title {
    display: block;
    margin-top: -41px;
    padding-top: 0;
    text-align: center;
    color: #000 !important;
  }

  .cb-error {
    font-size: 12px;
    color: red;
    margin-top: 4px;
    min-height: 0px;
  }
}

/* 🌟 Show/hide modal based on aria-hidden */
.cb-overlay[aria-hidden="true"] {
  display: none !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.cb-overlay[aria-hidden="false"] {
  display: flex;
  /* or block, depending on your layout */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.5);
  /* dim background */
  opacity: 1;
  visibility: visible;
  /* z-index: 9999; */
  transition: opacity 0.2s ease;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: sans-serif;
  background: #f9f9f9;
}

.wrapper {
  max-width: 1442px;
  margin: 0 auto;
  padding: 0 70px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 30px 0 20px;
}

.scroll-buttons {
  display: flex;
}

.scroll-buttons button {
  background: #f1f1f1;
  border: none;
  padding: 10px;
  /* border-radius: 50%; */
  cursor: pointer;
  margin-left: 10px;
}

.scroll-container {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 20px;
  padding-bottom: 10px;
}

.scroll-container::-webkit-scrollbar {
  display: none;
}

.slider-card {
  flex: 0 0 auto;
  background: #fff;
  border-radius: 16px;
  /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            overflow: hidden; */
  position: relative;
}

.slider-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 14px;
}

.slider-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: white;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 12px;
  font-weight: 500;
}

.slider-card-body {
  margin: 6px 0 0;
}

.slider-card-title {
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 12px;
}

.slider-card-price {
  font-weight: 700;
  font-size: 8px;
  color: #444;
  margin-bottom: 8px;
}

.slider-card-buttons {
  display: flex;
  gap: 10px;
  /* more gap between buttons */
  justify-content: space-between;
  /* align to left */
}

.slider-card-buttons button {
  font-size: 12px;
  /* bigger text like in image */
  padding: 5px 5px;
  /* proper padding */
  border: 1px solid #717171;
  border-radius: 20px;
  cursor: pointer;
  flex: unset;
  /* prevent equal stretching */
}

.btn-primary1 {
  background: white;
  color: #717171;
  font-size: 12px;
  padding: 5px 5px;
  border: 1px solid #717171;
  border-radius: 20px;
  cursor: pointer;
  flex: unset;
  text-decoration: none;
}

.btn-primary1:hover {
  background-color: #58a0c8;
  color: #fff;
}

.btn-secondary {
  background: white;
  color: #717171;
}

.btn-secondary:hover {
  background-color: #58a0c8;
  color: #fff;
}

/* ===== Responsive Rules ===== */
@media (min-width: 1443px) {
  .slider-card {
    width: 200px;
  }
}

.btn-secondary {
  background: white;
  color: #717171;
}

.btn-secondary:hover {
  background-color: #58a0c8;
  color: #fff;
}

/* ===== Responsive Rules ===== */
@media (min-width: 1443px) {
  .slider-card {
    width: 200px;
  }
}

@media (min-width: 1024px) and (max-width: 1442px) {
  .slider-card {
    width: calc((100% - 3 * 20px) / 4);
  }
}

@media (min-width: 1024px) and (max-width: 1442px) {
  .slider-card {
    width: calc((100% - 3 * 20px) / 4);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .scroll-container {
    gap: 13px;
    padding-left: 1px;
  }

  @media (min-width: 768px) and (max-width: 1023px) {
    .scroll-container {
      gap: 13px;
      padding-left: 1px;
    }

    .slider-card {
      width: calc((100% - 2 * 13px) / 3);
    }
  }

  .slider-card {
    width: calc((100% - 2 * 13px) / 3);
  }
}

@media (min-width: 431px) and (max-width: 767px) {
  .slider-card {
    width: 50%;
  }
}

@media (max-width: 430px) {
  .slider-card {
    width: 183px;
  }

  .wrapper {
    /* max-width: 1442px; */
    margin: 0 auto;
    padding: 0 0 0 30px;
  }

  .scroll-buttons {
    display: none;
  }

  .scroll-container {
    gap: 5px;
  }

  .wrapper {
    padding: 0 10px 0 10px;
  }
}

/* SweetAlert above your modal overlay */
.swal2-container {
  z-index: 1000001 !important;
}

/*================================= Directon Arrow ======================================================================*/
#scrollArrowBtn {
  transition: bottom 0.3s ease, background-color 0.3s ease;
  position: fixed;
  right: 37px;
  width: 60px;
  height: 60px;
  border-radius: 4px;
  background: var(--bg-primary, #52a6db);
  color: #fff;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  bottom: 358px;
}

@media (max-width: 992px) {
  #scrollArrowBtn {
    display: none !important;
  }
}

/* ==============================Feature section ===========================================*/
#Feature1 {
  max-width: 520px;
}
#Feature2 {
  color: var(--bg-primary);
}

/*--------------------- Request Call Modal------------------------------------------------- */
.Modal1 {
  color: #000000 !important;
  padding-bottom: 20px;
}

/* SCHEDULE VISIT FORM STYLES */

.cb-grid1 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}

.cb-field1 {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cb-field1 span {
  font-weight: 600;
  font-size: 14px;
}

.cb-field1 input,
.cb-field1 select,
.cb-field1 textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  font-size: 14px;
  background: #fff;
  outline: none;
}

.cb-field1 input:focus,
.cb-field1 select:focus,
.cb-field1 textarea:focus {
  border-color: #174261;
  box-shadow: 0 0 0 3px rgba(23, 66, 97, 0.1);
}

.cb-span-21 {
  grid-column: span 2;
}

.cb-submit1 {
  margin-top: 10px;
  width: 160px;
  height: 44px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  background: #174261;
  color: #fff;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.cb-submit1[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

.cb-spinner1 {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #fff;
  border-right-color: transparent;
  display: none;
  animation: cb-spin 0.8s linear infinite;
}

.cb-submit1.loading .cb-spinner1 {
  display: inline-block;
}

.cb-submit1.loading .cb-submit-text1 {
  opacity: 0.8;
}

.cb-status1 {
  min-height: 20px;
  margin-top: 10px;
  font-size: 14px;
}

.cb-status1.ok {
  color: #065f46;
}

.cb-status1.err {
  color: #991b1b;
}

.cb-error1 {
  color: #b91c1c;
  min-height: 16px;
  font-size: 12px;
}
/* schedule visit */
#cb-title-visit {
  text-align: center;
  font-size: 21px !important;
}
.requierd-field {
  color: red;
}
.cb-close {
  background-color: #d1d1d0 !important;
  border: 1px solid #d1d1d1 !important;
}

/* --- Custom Select Wrapper (matches original select) --- */

.custom-select-wrapper {
  flex: 1;
  position: relative;
  height: 100%;
}

.custom-select-display {
  height: 100%;
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  padding: 0 8px;
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #555;
  cursor: pointer;
}

/* Dropdown List */
.custom-options {
  position: absolute;
  top: 52px; /* below search bar */
  left: 0;
  width: 204px;
  background: #f5f5f5;
  border: 1px solid #e1e1e1;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  padding: 8px 0;
  display: none;
  z-index: 999;
}

/* Option Row */
.custom-option {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  gap: 10px;
  cursor: pointer;
}
.image{
    width: 45px;
    height: 45px;
    padding: 3px;
}


.custom-option:hover {
  background: #f5f5f5;
  border-radius: 6px;
}

.scrollable-options {
  max-height: 200px;
  overflow-y: auto;
}

.scrollable-options::-webkit-scrollbar {
  width: 6px;
}

.scrollable-options::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}
