.schedule-meeting-popup-page .modal-overlay {
  display: flex;
  justify-content: center;
  align-items: center;
  /* position: fixed; */
      padding-top: 10% !important;
    padding-bottom: 10% !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  /* z-index: 9999; */
}

.schedule-meeting-popup-page .custom-modal {
  border-radius: 10px;
  width: 580px !important;
  padding: 20px;
  position: relative;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.9);
  background: rgba(255, 255, 255, 0.6);
}

.schedule-meeting-popup-page .form-section {
  display: none;
}

.schedule-meeting-popup-page .form-section.active {
  display: block;
}

.schedule-meeting-popup-page .buttons {
  text-align: right;
}

.schedule-meeting-popup-page .buttons button,
.schedule-meeting-popup-page .buttons button:hover {
  padding: 8px 16px;
  margin-left: 10px;
  border: none;
  border-radius: 5px;
  background-color: rgb(255, 60, 0);
  color: white;
  cursor: pointer;
}

.schedule-meeting-popup-page .buttons .back-btn,
.schedule-meeting-popup-page .buttons .back-btn:hover {
  background-color: rgb(0, 0, 0);
}

.schedule-meeting-popup-page .buttons button[disabled] {
  background-color: #ccc;
  cursor: not-allowed;
}

.schedule-meeting-popup-page .service-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 20px;
  border: 2px solid #ccc;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  font-weight: 500;
  position: relative;
  color: #fff;
}

.schedule-meeting-popup-page .service-option:hover {
  border-color: #2563eb;
  background-color: #f0f6ff;
}

.schedule-meeting-popup-page .service-option input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  height: 24px;
  width: 24px;
  background-image: url("https://cdn-icons-png.flaticon.com/512/845/845646.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  border: 2px solid #ccc;
  border-radius: 5px;
  cursor: pointer;
  transition: border-color 0.3s;
}

.schedule-meeting-popup-page .service-option input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  height: 24px;
  width: 24px;
  border: 2px solid #ccc;
  border-radius: 5px;
  cursor: pointer;
  transition: border-color 0.3s;
  background-color: white;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.schedule-meeting-popup-page .service-option input[type="checkbox"]:checked {
  border-color: #22c55e;
  background-image: url("https://i.ibb.co/27PqtyDp/tick-icon.png");
}

.schedule-meeting-popup-page .service-option input[type="checkbox"]:not(:checked) {
  background-image: none;
}

.schedule-meeting-popup-page .service-option:nth-of-type(1) {
  background-color: #0f172a;
  /* Dark Navy Blue – Web Development */
}

.schedule-meeting-popup-page .service-option:nth-of-type(2) {
  background-color: #7f1d1d;
  /* Dark Crimson – App Development */
}

.schedule-meeting-popup-page .service-option:nth-of-type(3) {
  background-color: #064e3b;
  /* Deep Emerald – Design and Branding */
}

.schedule-meeting-popup-page .service-option:nth-of-type(4) {
  background-color: #1e293b;
  /* Charcoal Blue – Digital Marketing */
}

.schedule-meeting-popup-page .service-option:nth-of-type(5) {
  background-color: #3f0071;
  /* Deep Violet – Migration */
}

.schedule-meeting-popup-page .service-option:nth-of-type(6) {
  background-color: #3b3b3b;
  /* Graphite Gray – Maintenance and Support */
}

.schedule-meeting-popup-page .service-option.selected {
  background-color: #0a165e !important;
  color: white;
  border-color: #0a165e;
}

.schedule-meeting-popup-page .service-option.selected i {
  color: white;
}

.schedule-meeting-popup-page .form-section h2 {
  color: #000;
}

.schedule-meeting-popup-page .card {
  width: 245px;
  height: fit-content;
  background-color: #ffffff;
  border-radius: 15px;
  box-shadow: 0px 0px 10px #efefef;
}

.schedule-meeting-popup-page .calendar-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  border-bottom: 1px solid #efefef;
  background-color: #0a165e;
}

.schedule-meeting-popup-page .calendar-toolbar > .current-month {
  font-size: 18px;
  font-weight: bold;
  color: #fff;
}

.schedule-meeting-popup-page .calendar-toolbar > [class$="month-btn"] {
  width: 30px;
  aspect-ratio: 1;
  text-align: center;
  line-height: 30px;
  font-size: 14px;
  color: #19181a;
  background: #f8f7fa;
  border: none;
  border-radius: 15px;
}

.schedule-meeting-popup-page .weekdays,
.schedule-meeting-popup-page .calendar-days {
  display: flex;
  flex-wrap: wrap;
  padding: 10px 15px;
}

.schedule-meeting-popup-page .weekday-name,
[class$="-day"] {
  width: 30px;
  height: 30px;
  text-align: center;
  line-height: 30px;
  font-weight: 500;
  font-size: 0.9rem;
}

.schedule-meeting-popup-page .current-day {
  background-color: #0a165e;
  color: #fff !important;
  border-radius: 15px;
  font-weight: 700;
}

.schedule-meeting-popup-page .padding-day {
  color: #a5a5a5;
}

.schedule-meeting-popup-page .goto-buttons {
  border-top: 1px solid #efefef;
  padding: 10px;
  display: flex;
  justify-content: space-evenly;
}

.schedule-meeting-popup-page .btn {
  background: #f8f7fa;
  border: none;
  border-radius: 10px;
  padding: 8px 10px;
  color: #19181a;
  font-weight: 600;
  font-size: 0.85rem;
}

.schedule-meeting-popup-page .selected-day {
  background-color: #ff6b81 !important;
  color: white !important;
  font-weight: bold;
  border-radius: 15px;
}

.schedule-meeting-popup-page .calendar-toolbar > [class$="month-btn"]:hover,
.schedule-meeting-popup-page .month-day:hover,
.schedule-meeting-popup-page .btn:hover {
  border-radius: 15px;
  background-color: #f8f7fa;
  color: rgb(112, 71, 235);
  transition: 0.1s;
  cursor: pointer;
  box-shadow: inset 0px 0px 0px 1.5px rgb(112, 71, 235);
}

.schedule-meeting-popup-page .weekday-name {
  color: #19181a;
  font-weight: 700;
}

.schedule-meeting-popup-page .custom-modal label {
  font-weight: 500;
  color: #000;
}

.schedule-meeting-popup-page .custom-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  font-size: 24px;
  border: none;
  color: #000;
  cursor: pointer;
  z-index: 10001;
}

.schedule-meeting-popup-page .form-control,
.schedule-meeting-popup-page .form-select {
  border-radius: 8px;
  border: 1px solid #ced4da;
  padding: 10px 14px;
  font-size: 0.95rem;
  background-color: #fff;
  transition: all 0.2s ease-in-out;
}

.schedule-meeting-popup-page .form-control:focus,
.schedule-meeting-popup-page .form-select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 0.15rem rgba(37, 99, 235, 0.25);
}

.schedule-meeting-popup-page textarea.form-control {
  resize: none;
}

.schedule-meeting-popup-page .buttons {
  position: absolute;
  bottom: calc(0px);
  left: 0;
  right: 0;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.85);
  /* Optional: background for visibility */
  z-index: 10;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.schedule-meeting-popup-page .img-container {
  z-index: 323;
}

.schedule-meeting-popup-page .buttons .btn {
  width: 100px;
}

.schedule-meeting-popup-page .custom-modal {
  width: 90%;
  max-width: 960px;
  /* upper limit */
  margin: 0 auto;
}

/* NEW: Fix the modal height and constrain inner content scroll */
.schedule-meeting-popup-page .custom-modal {
  max-height: 90vh;
  /* Limit modal height */
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Ensure the modal inner layout is scrollable */
.schedule-meeting-popup-page .form-content-wrapper {
  flex-grow: 1;
  overflow-y: scroll;
  padding-right: 10px;
  margin-bottom: 70px;
  /* Room for buttons */
  scroll-behavior: smooth;
}

/* clock css */

.schedule-meeting-popup-page .clock {
  width: 180px;
  height: 180px;
  border: 10px solid #333;
  border-radius: 50%;
  margin: 0 auto;
  position: relative;
  padding: 2rem;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1), inset 0 0 0 3px #efefef,
    inset 0 0 10px black, 0 0 10px rgba(0, 0, 0, 0.2);
}

.schedule-meeting-popup-page .hand {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform-origin: bottom center;
  transform: rotate(90deg);
  transition: all 0.05s ease-in-out;
  border-radius: 2px;
}

.schedule-meeting-popup-page .hand.hour {
  width: 6px;
  height: 45px; /* adjusted for 160px clock */
  background-color: #000;
  z-index: 3;
}

.schedule-meeting-popup-page .hand.minute {
  width: 4px;
  height: 65px;
  background-color: #333;
  z-index: 2;
}

.schedule-meeting-popup-page .hand.second {
  width: 2px;
  height: 75px;
  background-color: red;
  z-index: 1;
}

.schedule-meeting-popup-page .center-circle {
  width: 12px;
  height: 12px;
  background: #0a165e;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
}

/* Small screens (Mobiles) */

@media only screen and (max-width: 767px) {
  .schedule-meeting-popup-page .form-content-wrapper {
    max-height: calc(100vh - 197px);
    overflow-y: scroll !important;
    padding-right: 15px;
    scroll-behavior: smooth;
    margin-bottom: 56px;
  }
  .schedule-meeting-popup-page .clock {
    margin: 0;
  }

  .schedule-meeting-popup-page .buttons .btn,
  .schedule-meeting-popup-page .custom-modal {
    width: 90% !important;
  }

  .schedule-meeting-popup-page .modal-overlay {
    background-image: url("https://i.ibb.co/Xrbpb0Bh/schedule-bg-mobile.png");
  }
}

/* Medium screens (tablets) */
@media (min-width: 768px) {
  .schedule-meeting-popup-page .custom-modal {
    width: 97%;
  }

  .schedule-meeting-popup-page .clock {
    width: 135px;
    height: 135px;
  }

  .schedule-meeting-popup-page .analog-clock-section {
    padding-left: 30px;
  }

  .schedule-meeting-popup-page .card {
    width: 230px;
    height: fit-content;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0px 0px 10px #efefef;
  }

  .schedule-meeting-popup-page .weekday-name,
  [class$="-day"] {
    width: 28px;
    height: 28px;
    line-height: 28px;
  }

  .schedule-meeting-popup-page .form-content-wrapper {
    max-height: calc(100vh - 197px);
    overflow-y: scroll !important;
    padding-right: 15px;
    scroll-behavior: smooth;
    margin-bottom: 56px;
  }

   .schedule-meeting-popup-page .modal-overlay {
    background-image: url("https://i.ibb.co/Xrbpb0Bh/schedule-bg-mobile.png");
  }
}

/* Large screens (desktops) */
@media (min-width: 992px) {
  .schedule-meeting-popup-page .custom-modal {
    width: 75%;
  }
}

@media (min-width: 1200px) {
  .schedule-meeting-popup-page .clock {
    width: 180px;
    height: 180px;
  }

  .schedule-meeting-popup-page .analog-clock-section {
    padding-left: unset;
  }

  .schedule-meeting-popup-page .weekday-name,
  [class$="-day"] {
    width: 30px;
    height: 30px;
  }

  .schedule-meeting-popup-page .card {
    width: 245px;
  }

  .schedule-meeting-popup-page .custom-modal {
    left: 80px;
  }

  .schedule-meeting-popup-page .modal-overlay {
    background-image: url("https://i.ibb.co/HLb95ykZ/schedulenew-bg.png");
  }
}

/* Extra large screens */
@media (min-width: 1400px) {
  .schedule-meeting-popup-page .custom-modal {
    width: 60%;
  }

  .schedule-meeting-popup-page .form-content-wrapper {
    overflow-y: hidden !important;
  }
}
