.response-page{
    padding: 60px 0 60px;
}

.faq-banner__image__wrapper{
    /*height: 100%;*/
    /*margin: auto;*/

    display: flex;
    align-items: center;
}

.response-page .faq-banner__subtitle{
    line-height: 20px;
    margin-top: 4px;
}

/* ── Banner ── */
.responses-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #f0f7ff;
  border-radius: 16px;
  padding: 20px 28px;
  margin-bottom: 32px;
}

.responses-banner__info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.responses-banner__icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.responses-banner__label {
  display: block;
  font-size: 11px;
  color: #959593;
  margin-bottom: 4px;
}

.responses-banner__title {
  font-weight: 700;
  font-size: 17px;
  color: #1a1a1a;
  margin: 0 0 6px;
}

.responses-banner__subtitle {
  font-size: 13px;
  color: #666;
  margin: 0;
  max-width: 420px;
  line-height: 1.5;
}

.responses-banner__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.responses-banner__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  background: var(--primary-color);
  color: #fff;
  border: none;
  transition: opacity 0.15s;
  font-family: inherit;
}

.responses-banner__btn:hover {
  opacity: 0.85;
  color: #fff;
  text-decoration: none;
}

/* ── Page header ── */
.responses-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.responses-header__title {
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

.responses-header__right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.responses-header__count {
  font-size: 14px;
  color: #959593;
  white-space: nowrap;
}

/* ── Branch tabs ── */
.responses-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.responses-tab {
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  text-decoration: none;
  color: #333;
  background: #f0f0f0;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
}

.responses-tab:hover,
.responses-tab.is-active {
  background: var(--primary-color);
  color: #fff;
  text-decoration: none;
}

/* ── Filter controls override (3 columns) ── */
.responses-controls {
  grid-template-columns: 1fr 1fr 1fr;
}

/* ── Review grid ── */
.responses-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 8px;
}

/* ── Review card ── */
.review-card {
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.review-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.review-card__name {
  font-weight: 700;
  font-size: 16px;
  color: #1a1a1a;
}

.review-card__stars {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
  font-size: 15px;
}

.review-card__stars .fa-star,
.review-card__stars .fa-star-half-o {
  color: #00AECB;
}

.review-card__stars .fa-star-o {
  color: #ddd;
}

.review-card__doctor {
  display: inline-block;
  background: #EBF7FF;
  border-radius: 20px;
  border: 1px solid rgba(0,174,203,0.5);
  padding: 3px 12px;
  font-size: 12px;
  color: #333;
  text-decoration: none;
  align-self: flex-start;
}

.review-card__doctor:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.review-card__text {
  font-size: 14px;
  color: #555;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.review-card__text.is-expanded {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.review-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
}

.review-card__read-more {
  font-size: 13px;
  color: var(--primary-color);
  text-decoration: none;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  font-family: inherit;
}

.review-card__read-more:hover {
  text-decoration: underline;
}

.review-card__date {
  font-size: 12px;
  color: #aaa;
}

/* ── Show more (spans both columns) ── */
.responses-grid .endless_container {
  grid-column: 1 / -1;
  text-align: center;
  /*padding: 16px 0 8px;*/
}

.endless_more {
  display: inline-block;
  /*padding: 12px 60px;*/
  width: 100%;
  margin: 0;
  border: 0px;
  border-radius: 8px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  background: #F5F5F5;
  /*transition: border-color 0.15s, color 0.15s;*/
}

.endless_more:hover {
  border-color: var(--primary-color);
  color: #fff;
  text-decoration: none;
}

/* ── Ask-form success state ── */
.ask-form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px 20px;
    gap: 16px;
}

.ask-form-success__icon {
    flex-shrink: 0;
}

.ask-form-success__title {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.ask-form-success__text {
    font-size: 15px;
    color: #474747;
    margin: 0;
    max-width: 340px;
    line-height: 1.5;
}

/* ── Star rating widget ── */
.faq-form__label {
    display: block;
    font-size: 14px;
    color: #474747;
    margin-bottom: 10px;
}

.rating-stars {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 4px;
}

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

.rating-stars > label {
    color: #d8d8d8;
    cursor: pointer;
    transition: color 0.12s, transform 0.1s;
    user-select: none;
    line-height: 0;
}

/* Hover: light up hovered star + all lower-value stars (later in DOM = left visually) */
.rating-stars > label:hover,
.rating-stars > label:hover ~ label {
    color: #00AECB;
    transform: scale(1.15);
}

/* Checked state */
.rating-stars > input:checked + label,
.rating-stars > input:checked + label ~ label {
    color: #00AECB;
}

/* ── Responses form section ── */
#response-form-div {
  background: #f9f9f9;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 28px;
}

/* ── Review popup dialog ── */
.review-dialog {
  max-width: 660px;
  max-height: 85vh;
  overflow-y: auto;
  display: flex !important;
  flex-direction: column;
  gap: 20px;
  padding: 50px 40px;
}
.review-dialog::-webkit-scrollbar{
        display: none;
}

.review-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.review-dialog__name {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
}

.review-dialog__stars {
  display: flex;
  gap: 3px;
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.review-dialog__stars .fa-star,
.review-dialog__stars .fa-star-half-o {
  color: var(--primary-color);
}

.review-dialog__stars .fa-star-o {
  color: #ddd;
}

.review-dialog__text {
  font-size: 15px;
  color: #333;
  line-height: 20px;
}

.review-dialog__text p {
  margin-bottom: 0;
}

.review-dialog__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  /*padding-top: 12px;*/
  /*border-top: 1px solid #eee;*/
}

.review-dialog__verified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #00AECB;
  color: #fff;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}

.review-dialog__pub-date {
  font-size: 13px;
  color: #959593;
}

.review-dialog__answer {
  /*background: #f5f5f5;*/
  /*border-radius: 12px;*/
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.review-dialog__answer .faq-card__answer-icon{
    width: 38px;
    height: 38px;
    flex: 0;
}

.review-dialog__answer-body {
  background: #F8F8F8;
  border-radius: 8px;
  padding: 10px 10px;
  margin-top: 10px;
  font-size: 16px;
  line-height: 20px;
}

.review-dialog__answer-footer {
  text-align: right;
}

@media (max-width: 479px){
    .response-page{
        padding: 40px 0 60px;
    }
    .review-dialog{
        padding: 50px 20px;
    }
    .review-dialog__answer{
        padding: 16px 0;
    }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .responses-controls {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .responses-grid {
    grid-template-columns: 1fr;
  }

  .responses-controls {
    grid-template-columns: 1fr;
  }

  .responses-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .responses-banner__actions {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .responses-banner__btn {
    flex: 1;
  }

  .responses-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
