.doctor-page .container {
  display: flex;
  flex-direction: column;
  gap: var(--y-space-24);
  padding-block: var(--y-space-24);
}
.doctor-page {
  position: relative;
  overflow: visible;
}
.doctor-page .top {
  display: flex;
  align-items: center;
  gap: var(--y-space-22);
}
.doctor-page .top > img {
  width: 100px;
  border-radius: var(--y-space-120);
  aspect-ratio: 1/1;
  object-fit: cover;
}
.doctor-page .top .content {
  display: flex;
  flex-direction: column;
  gap: var(--y-space-8);
}
.doctor-page .top .content h3 {
  font-size: var(--y-space-22);
  font-weight: 700;
  color: var(--y-color-btn-hover);
}
.doctor-page .top .content p {
  font-size: var(--y-space-16);
  font-weight: 400;
  color: var(--y-color-grey);
}
.main-box .icons {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
}
.main-box .icons .rating {
  display: flex;
  flex-direction: row;
  gap: var(--y-space-8);
  align-items: center;
}
.main-box .icons .rating strong {
  font-size: var(--y-space-16);
  font-weight: 700;
  color: var(--y-color-btn-hover);
}
.main-box .icons .rating i {
  font-size: var(--y-space-16);
  color: var(--y-color-warning);
}
.main-box .icons .views {
  display: flex;
  flex-direction: row;
  gap: var(--y-space-8);
  align-items: center;
}
.main-box .icons .views p {
  font-size: var(--y-space-16);
  font-weight: 400;
  color: var(--y-color-grey);
}
.doctor-page .container > .bottom {
  display: flex;
  flex-direction: column;
  gap: var(--y-space-24);
}

.doctor-page.doctors-page .container > .bottom {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}
.doctor-page .bottom .tabs {
  display: flex;
  flex-direction: row;
  gap: var(--y-space-24);
}
.doctor-page .bottom .tabs .tab {
  display: flex;
  flex-direction: row;
  gap: var(--y-space-24);
}
.doctor-page .bottom input[type="radio"] {
  display: none;
}
.doctor-page .bottom .tabs label {
  font-size: var(--y-space-20);
  font-weight: 400;
  color: var(--y-color-grey);
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
  cursor: pointer;
}
.doctor-page .bottom .tabs label:hover {
  color: var(--y-color-primary);
  border-bottom: 3px solid var(--y-color-primary);
}

.doctor-page .bottom #doctors:checked ~ .tabs label[for="doctors"],
.doctor-page .bottom #about:checked ~ .tabs label[for="about"],
.doctor-page .bottom #rating:checked ~ .tabs label[for="rating"],
.clinic-page .bottom #rating-clinic:checked ~ .tabs label[for="rating-clinic"],
.clinic-page .bottom #about-clinic:checked ~ .tabs label[for="about-clinic"],
.clinic-page
  .bottom
  #doctors-clinic:checked
  ~ .tabs
  label[for="doctors-clinic"] {
  color: var(--y-color-primary) !important;
  border-bottom: 3px solid var(--y-color-primary);
}

.doctor-page .bottom #about:checked ~ .about-box,
.doctor-page .bottom #rating:checked ~ .rating-box,
.clinic-page .bottom #doctors-clinic:checked ~ .doctors-box-clinic,
.clinic-page .bottom #rating-clinic:checked ~ .rating-box-clinic,
.clinic-page .bottom #about-clinic:checked ~ .about-box-clinic {
  display: flex;
}
.doctor-page .bottom .content .left {
  gap: var(--y-space-24);
  display: flex;
  flex-direction: column;
}

.doctor-page .bottom > .content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--y-space-24);
  position: relative;
}
.doctor-page .container::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 100vw;
  top: 288px;

  background-color: #f5f5f5;
  z-index: -1;
}
.doctor-page .bottom .content .right {
  display: flex;
  flex-direction: column;
  gap: var(--y-space-24);
}
.doctor-page:not(.doctors-page)
  .bottom
  .content
  .left
  :is(
    .about-box,
    .rating-box,
    .doctors-box,
    .about-box-clinic,
    .rating-box-clinic,
    .doctors-box-clinic
  ) {
  display: none;
  flex-direction: column;
  gap: var(--y-space-16);
}

.main-box .infos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--y-space-8);
  justify-items: center;
}
.main-box .infos .info {
  display: flex;
  flex-direction: column;
  gap: var(--y-space-4);
  align-items: center;
  justify-content: center;
  min-width: 100px;
}
.main-box .infos .info i {
  margin-bottom: var(--y-space-8);
}
.main-box .infos .info img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  margin-bottom: var(--y-space-8);
}
.main-box .infos .info p:first-child {
  font-size: var(--y-space-12);
  font-weight: 700;
  color: var(--y-color-txt);
  margin-bottom: var(--y-space-4);
}
.main-box .infos .info p:last-child {
  font-size: var(--y-space-12);
  font-weight: 400;
  color: var(--y-color-txt);
}

.another-time {
  display: flex;
  flex-direction: column;
  position: relative;
  gap: var(--y-space-16);
  justify-content: center;
  align-items: center;
}
.another-time p {
  font-size: var(--y-space-16);
  font-weight: 400;
  color: var(--y-color-txt);
  text-align: center;
}
.another-time input {
  display: none;
}
.another-time input:checked + label img {
  rotate: 180deg;
}
.another-time input:checked ~ .times {
  display: flex;
}
.another-time label {
  font-size: var(--y-space-16);
  font-weight: 400;
  color: var(--y-color-txt);
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: row;
  gap: var(--y-space-8);
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.another-time label img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  transition: all 0.3s ease;
}
.another-time .times {
  position: absolute;
  top: 120%;
  left: 0;
  width: 100%;
  background-color: var(--y-color-bg);
  box-shadow: var(--y-color-shadow);
  border-radius: var(--y-radius-l);
  padding: var(--y-space-16);
  display: none;
  flex-direction: column;
  gap: var(--y-space-16);
}
.another-time .times .time {
  display: flex;
  flex-direction: row;
  gap: var(--y-space-8);
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: var(--y-space-16);
  border-radius: var(--y-radius-l);
  background-color: var(--y-color-bg);
  color: var(--y-color-txt);
  transition: all 0.3s ease;
  cursor: pointer;
  appearance: none;
}
.another-time .times button:hover {
  background-color: var(--y-color-primary);
  color: var(--y-color-bg);
}
.another-time .times button:hover p {
  color: var(--y-color-bg);
}

.bottom .doctor-info {
  display: flex;
  flex-direction: column;
  gap: var(--y-space-12);
  padding: var(--y-space-16) var(--y-space-12);
  border-radius: var(--y-radius-l);
  box-shadow: var(--y-color-shadow);
}

.doctor-info > p {
  font-size: var(--y-space-14);
  font-weight: 700;
  color: var(--y-color-grey);
  text-align: center;
}
.bottom .doctor-info .top {
  display: flex;
  flex-direction: row;
  gap: var(--y-space-10);
  align-items: center;
}
.doctor-info .top {
  flex-direction: column;
  align-items: center;
}
.bottom .doctor-info .top img {
  width: 74px;
  height: 74px;
  object-fit: cover;
  object-position: top;
  border-radius: var(--y-space-120);
}
.bottom .doctor-info .top .desc {
  display: flex;
  flex-direction: column;
  gap: var(--y-space-8);
}
.bottom .doctor-info .top .desc p:first-child {
  font-size: var(--y-space-20);
  font-weight: 600;
  color: var(--y-color-txt);
}
.bottom .doctor-info .top .desc p:first-child {
  color: var(--y-color-btn-hover);
}
/* .bottom .doctor-info .top .desc p:last-child{
  font-size: var(--y-space-14);
  font-weight: 600;
  color: var(--y-color-txt);
} */

.bottom .doctor-info .bottom .rating {
  display: flex;
  flex-direction: row;
  gap: var(--y-space-8);
  align-items: center;
}
.bottom .doctor-info .bottom .rating strong {
  font-size: var(--y-space-18);
  font-weight: 700;
  color: var(--y-color-txt);
}
.bottom .doctor-info .bottom .rating i {
  color: var(--y-color-warning);
}
.bottom .doctor-info .bottom .views {
  display: flex;
  flex-direction: row;
  gap: var(--y-space-8);
  align-items: center;
}
.bottom .doctor-info .bottom .views p {
  font-size: var(--y-space-14);
  font-weight: 600;

  color: var(--y-color-grey);
}
.bottom .doctor-info .bottom .views img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.left .box .imgs {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: var(--y-space-16);
}
.left .box .imgs img {
  width: 104px;
  aspect-ratio: 1;
  object-fit: cover;
}

.left .box .featuers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--y-space-16);
  column-gap: 60px;
  max-width: 290px;
}
.left .box .featuers .feature {
  display: flex;
  flex-direction: row;
  gap: var(--y-space-8);
  align-items: center;
}
.left .box .featuers .feature img {
  width: 20px;
  object-fit: contain;
}

.left .box .featuers .feature p {
  font-size: var(--y-space-12);
  font-weight: 400;
  color: var(--y-color-txt);
}

.left .box .title span {
  font-size: var(--y-space-14);
  font-weight: 400;
  color: var(--y-color-grey);
}
.left .box .ratings {
  display: flex;
  flex-direction: row;
  gap: var(--y-space-8);
  align-items: center;
}
.left .box .ratings i {
  color: var(--y-color-warning);
}

.left .box .bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.bottom .doctor-info .bottom {
  display: flex;
  flex-direction: row;
  gap: var(--y-space-24);
  justify-content: space-around;
  align-items: center;
}
.bottom .price {
  display: flex;
  align-items: center;
  gap: var(--y-space-4);
}
.bottom .price img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.bottom .price p {
  font-size: var(--y-space-14);
  font-weight: 400;
  color: var(--y-color-txt);
}
.left .box .bottom .right {
  display: flex;
  flex-direction: column;
  gap: var(--y-space-8);
  align-items: center;
}
.left .box .bottom .left {
  display: flex;
  flex-direction: column;
  gap: var(--y-space-8);
  align-items: center;
}
.left .box .bottom .left .rate {
  display: flex;
  flex-direction: row;
  gap: var(--y-space-50);
  align-items: center;
}
.left .box .bottom .left .rate p {
  font-size: var(--y-space-16);
  font-weight: 400;
  color: var(--y-color-txt);
}
.left .box .bottom .left .rate .ratings {
  display: flex;
  flex-direction: row;
  gap: var(--y-space-8);
  align-items: center;
}
.left .box .bottom .left .rate .ratings i {
  color: var(--y-color-warning);
}
.left .box .bottom .left .rate .ratings span {
  font-size: var(--y-space-16);
  font-weight: 400;
  color: var(--y-color-txt);
}

.left .box .bottom .left .rate .ratings i.inactive {
  border-color: var(--y-color-warning);
}
.right > h2 {
  font-weight: 700;
}

.doctor-page .left .box .top > img {
  width: 70px;
}

/* Other doctors section - display in one row on web */
.other-doctors-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--y-space-16);
  grid-column: 1 / -1; /* Full width across all grid columns */
  width: 100%;
}

.other-doctors-section > h2 {
  grid-column: 1 / -1;
  font-weight: 700;
  margin-bottom: var(--y-space-16);
}

@media (max-width: 768px) {
  .doctor-page .bottom > .content {
    grid-template-columns: 1fr !important;
    display: flex;
    flex-direction: column;
  }

  /* Reorder sections in mobile: booking box first, then tabs/schedule, then other doctors */
  .doctor-page .bottom > .content .right {
    display: flex;
    flex-direction: column;
  }
  
  .doctor-page .bottom > .content .right {
    order: 1;
  }
  
  .doctor-page .bottom > .content .left {
    order: 2;
  }
  
  .doctor-page .bottom > .content .other-doctors-section {
    order: 3;
    margin-top: var(--y-space-24);
    grid-template-columns: 1fr;
  }

  .left:has(.rating-box, .rating-box-clinic) .box:has(.title) .bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--y-space-20);
  }
  .left .box .bottom .left {
    width: 100%;
  }
  .left .box .bottom .left .rate {
    justify-content: space-between;
    width: 100%;
    gap: var(--y-space-0);
  }
  .doctor-page .container {
    padding-block: var(--y-space-0);
  }
}

@media (max-width: 476px) {
  .main-box .infos {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--y-space-22);
  }
  .doctor-page .top {
    flex-direction: column;
  }
  .doctor-page .top .content {
    text-align: center;
  }
  .doctor-page .container > .bottom {
    text-align: center;
  }

  .left .box .featuers {
    column-gap: inherit;
    max-width: -webkit-fill-available;
    width: 100%;
  }
}

/* Review Form Styles */
.review-form {
  display: flex;
  flex-direction: column;
  gap: var(--y-space-16);
}

.star-rating-input {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: var(--y-space-4);
  align-items: center;
}

.star-rating-input input[type="radio"] {
  display: none;
}

.star-rating-input .star-label {
  cursor: pointer;
  font-size: var(--y-space-24);
  color: var(--y-color-grey);
  transition: color 0.2s ease;
}

.star-rating-input .star-label:hover,
.star-rating-input .star-label:hover ~ .star-label {
  color: var(--y-color-warning);
}

.star-rating-input input[type="radio"]:checked ~ .star-label,
.star-rating-input input[type="radio"]:checked ~ .star-label ~ .star-label {
  color: var(--y-color-warning);
}

.star-rating-input .star-label i {
  transition: all 0.2s ease;
}

#review-message {
  padding: var(--y-space-12);
  border-radius: var(--y-radius-l);
  text-align: center;
  font-weight: 600;
}
