/* =========================
   DOCTOR SEARCH PAGE
========================= */

.rsko-doctor-page {
  background: #fff;
  color: #1f2937;
  padding-bottom: 56px;
}

.rsko-doctor-page .container,
.rsko-doctor-detail-page .container {
  width: min(1360px, calc(100% - 48px));
  margin: 0 auto;
}

/* HERO */
.rsko-doctor-hero {
  min-height: 250px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, #f3f5f8 0%, #f3f5f8 62%, rgba(243,245,248,0.7) 78%, rgba(243,245,248,0.15) 100%),
    url("/modules/custom/rsko_doctor_search/images/doctor-hero.jpg") right center / cover no-repeat;
  border-bottom: 1px solid #eceff4;
}

.rsko-doctor-hero__inner {
  min-height: 250px;
  display: flex;
  align-items: center;
}

.rsko-breadcrumb,
.rsko-doctor-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14px;
  color: #6b7280;
}

.rsko-breadcrumb {
  margin-bottom: 18px;
}

.rsko-doctor-breadcrumb {
  margin-bottom: 26px;
}

.rsko-breadcrumb a,
.rsko-doctor-breadcrumb a {
  color: #6b7280;
  text-decoration: none;
}

.rsko-breadcrumb a:hover,
.rsko-doctor-breadcrumb a:hover {
  color: #24338a;
}

.rsko-doctor-hero h1 {
  margin: 0;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #202534;
}

/* SEARCH BAR */
.rsko-doctor-searchbar {
  margin-top: 26px;
  margin-bottom: 28px;
}

.rsko-doctor-searchbar form {
  margin: 0;
}

.rsko-doctor-searchbar__box {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.rsko-search-input {
  flex: 1 1 420px;
  min-width: 320px;
  height: 54px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  box-sizing: border-box;
}

.rsko-search-input input {
  border: 0;
  outline: 0;
  width: 100%;
  background: transparent;
  font-size: 15px;
  color: #111827;
}

.rsko-doctor-searchbar select {
  height: 54px;
  min-width: 190px;
  padding: 0 14px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  font-size: 15px;
  color: #111827;
  outline: 0;
}

/* LIST HEADER */
.rsko-doctor-list__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.rsko-doctor-list__header h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #182033;
}

/* GRID */
.rsko-doctor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

/* CARD */
.rsko-doctor-card {
  background: #fff;
  border: 1px solid #e9edf4;
  border-radius: 20px;
  padding: 22px 20px 18px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.rsko-doctor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
  border-color: #dbe4f1;
}

.rsko-doctor-card__top {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  min-height: 130px;
}

.rsko-doctor-card__avatar {
  width: 92px;
  height: 92px;
  border-radius: 999px;
  overflow: hidden;
  background: #eef2f7;
  border: 1px solid #e5e7eb;
  flex: 0 0 92px;
}

.rsko-doctor-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.rsko-doctor-card__availability {
  font-size: 14px;
  color: #7b8494;
  margin-bottom: 18px;
  line-height: 1.45;
}

.rsko-doctor-card__available-label {
  margin-bottom: 4px;
  color: #7b8494;
}

.rsko-doctor-card__availability strong {
  color: #263041;
  font-weight: 700;
  display: block;
}

@media (max-width: 767px) {
  .rsko-doctor-card__avatar {
    width: 82px;
    height: 82px;
    flex-basis: 82px;
  }
}

.rsko-doctor-card__service {
  font-size: 13px;
  line-height: 1.4;
  color: #8a93a5;
  margin-bottom: 6px;
}

.rsko-doctor-card__name {
  margin: 0 0 6px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.rsko-doctor-card__name a {
  color: #27314a;
  text-decoration: none;
}

.rsko-doctor-card__name a:hover {
  color: #24338a;
}

.rsko-doctor-card__speciality,
.rsko-doctor-card__subspeciality {
  font-size: 15px;
  line-height: 1.5;
  color: #8b95a7;
}

.rsko-doctor-card__divider {
  height: 1px;
  background: #e5e7eb;
  margin: 16px 0 14px;
}

.rsko-doctor-card__hospital {
  font-size: 15px;
  color: #9aa2b0;
  margin-bottom: 8px;
}

.rsko-doctor-card__availability {
  font-size: 15px;
  color: #7b8494;
  margin-bottom: 18px;
}

.rsko-doctor-card__availability strong {
  color: #263041;
  font-weight: 700;
}

.rsko-doctor-card__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

/* BUTTON */
.rsko-btn {
  min-height: 48px;
  border-radius: 12px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.rsko-btn--outline {
  background: #fff;
  color: #24338a;
  border: 1.5px solid #9fb0ea;
}

.rsko-btn--outline:hover {
  background: #f7f9ff;
  border-color: #7f95df;
  color: #1d2a71;
}

.rsko-btn--primary {
  background: #24338a;
  color: #fff;
  border: 1px solid #24338a;
}

.rsko-btn--primary:hover {
  background: #1d2a71;
  border-color: #1d2a71;
  color: #fff;
}

/* =========================
   DOCTOR DETAIL PAGE
========================= */

.rsko-doctor-detail-page {
  background: #fff;
  color: #1f2937;
  padding: 26px 0 56px;
}

.rsko-doctor-alert {
  margin-bottom: 20px;
  padding: 16px 18px;
  border-radius: 14px;
  font-size: 14px;
}

.rsko-doctor-alert--error {
  background: #fff4f4;
  color: #b42318;
  border: 1px solid #f3c7c7;
}

.rsko-doctor-detail-siloam__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.rsko-doctor-detail-siloam__main {
  min-width: 0;
}

/* PROFILE */
.rsko-doctor-profile {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e9eef5;
  margin-bottom: 14px;
}

.rsko-doctor-profile__media {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 96px;
  background: #f3f6fb;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.rsko-doctor-profile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rsko-doctor-profile__name {
  margin: 0 0 6px;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: #202534;
}

.rsko-doctor-profile__specialty {
  font-size: 15px;
  line-height: 1.35;
  color: #1f2b46;
  margin-bottom: 3px;
}

.rsko-doctor-profile__subspecialty {
  font-size: 14px;
  line-height: 1.35;
  color: #667085;
}

/* LEFT CONTENT */
.rsko-doctor-section-siloam {
  padding: 14px 0;
  border-bottom: 1px solid #e9eef5;
}

.rsko-doctor-section-siloam--compact {
  margin-top: 0 !important;
}

.rsko-doctor-section-siloam__title {
  margin: 0 0 8px;
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #182033;
}

.rsko-doctor-richtext {
  color: #42526b;
  line-height: 1.5;
  font-size: 14px;
}

.rsko-doctor-richtext p {
  margin: 0;
}

.rsko-doctor-info-list {
  display: grid;
  gap: 8px;
}

.rsko-doctor-info-list__item {
  padding: 9px 12px;
  background: #f8fafc;
  border: 1px solid #e9eef5;
  border-radius: 12px;
  color: #24324a;
  line-height: 1.45;
  font-size: 14px;
}

.rsko-doctor-hospital-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  color: #24324a;
}

.rsko-doctor-hospital-line__dot {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #eef3ff;
  color: #2740a3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
  font-size: 11px;
}

/* SIDEBAR */
.rsko-booking-premium-side {
  position: sticky;
  top: 96px;
}

.rsko-booking-sidebar {
  background: #f9fbff;
  border: 1px solid #e6edf8;
  border-radius: 22px;
  overflow: hidden;
}

.rsko-booking-sidebar__title {
  margin: 0;
  padding: 18px 18px 10px;
  font-size: 17px;
  font-weight: 700;
  color: #243c96;
}

.rsko-booking-sidebar__block {
  padding: 12px 16px;
  border-top: 1px solid #edf2fa;
}

.rsko-booking-sidebar__block--first {
  border-top: 0;
  padding-top: 6px;
}

.rsko-booking-sidebar__grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.rsko-booking-sidebar__grid2 .rsko-booking-sidebar__block {
  min-height: 110px;
}

.rsko-booking-sidebar__label {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #475467;
}

.rsko-date-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rsko-slot-item--select {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1.5px solid #c8d3f1;
  background: #fff;
  color: #24338a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.rsko-slot-item--select.is-disabled,
.rsko-slot-item--select:disabled {
  opacity: .45;
  cursor: not-allowed;
  pointer-events: none;
}

.rsko-slot-item--select:hover {
  background: #f7f9ff;
  border-color: #92a6e3;
}

.rsko-slot-item--select.is-active,
.rsko-slot-item--select.is-selected {
  background: #24338a;
  color: #fff;
  border-color: #24338a;
}

.rsko-slot-item--time {
  border-radius: 14px;
  min-height: 48px;
}

.rsko-empty-state {
  padding: 10px 12px;
  border: 1px dashed #d9e2f2;
  border-radius: 12px;
  background: #fff;
  color: #667085;
  font-size: 13px;
  line-height: 1.4;
}

.rsko-booking-form {
  padding: 14px 16px 18px;
  border-top: 1px solid #edf2fa;
  background: #fff;
}

.rsko-booking-form__slot-summary {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e8edf6;
  font-size: 13px;
  line-height: 1.45;
}

.rsko-booking-form__patient-status,
.rsko-booking-form__message {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.45;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.form-group--full {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 600;
  color: #344054;
}

.form-group input,
.form-group select,
.form-group textarea,
#rsko_search_mode,
#rsko_search_value,
#rsko_tanggal_lahir_cek,
#rsko_baru_nik,
#rsko_nm_pasien_baru,
#rsko_tempat_lahir,
#rsko_tanggal_lahir,
#rsko_kelamin,
#rsko_hp,
#rsko_alamat,
#rsko_cara_bayar_id,
#rsko_nm_pasien,
#rsko_nik,
#rsko_nomr,
#rsko_hp_lama {
  width: 100%;
  border: 1px solid #d7dfef;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.35;
  background: #fff;
  box-sizing: border-box;
}

.form-group textarea,
#rsko_alamat {
  min-height: 72px;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
#rsko_search_mode:focus,
#rsko_search_value:focus,
#rsko_tanggal_lahir_cek:focus,
#rsko_baru_nik:focus,
#rsko_nm_pasien_baru:focus,
#rsko_tempat_lahir:focus,
#rsko_tanggal_lahir:focus,
#rsko_kelamin:focus,
#rsko_hp:focus,
#rsko_alamat:focus,
#rsko_cara_bayar_id:focus,
#rsko_nm_pasien:focus,
#rsko_nik:focus,
#rsko_nomr:focus,
#rsko_hp_lama:focus {
  border-color: #9fb0ea;
  box-shadow: 0 0 0 4px rgba(36, 51, 138, 0.08);
  outline: none;
}

.rsko-form-help {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.4;
  color: #6b7280;
}

.form-actions {
  margin-top: 10px;
}

.btn-primary {
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  background: #24338a;
  color: #fff;
  padding: 0 18px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-primary:hover {
  background: #1d2a71;
}

.btn-primary--full {
  width: 100%;
}

.btn-primary--large {
  min-height: 52px;
  font-size: 16px;
}

/* RESPONSIVE */
@media (max-width: 1199px) {
  .rsko-doctor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rsko-doctor-card__name {
    font-size: 24px;
  }

  .rsko-doctor-detail-siloam__grid {
    grid-template-columns: 1fr;
  }

  .rsko-booking-premium-side {
    position: static;
  }
}

@media (max-width: 767px) {
  .rsko-doctor-page .container,
  .rsko-doctor-detail-page .container {
    width: min(100%, calc(100% - 24px));
  }

  .rsko-doctor-hero,
  .rsko-doctor-hero__inner {
    min-height: 210px;
  }

  .rsko-doctor-hero h1 {
    font-size: 40px;
  }

  .rsko-doctor-searchbar__box {
    flex-direction: column;
    align-items: stretch;
  }

  .rsko-search-input,
  .rsko-doctor-searchbar select,
  .rsko-btn {
    width: 100%;
    min-width: 0;
  }

  .rsko-doctor-list__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .rsko-doctor-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .rsko-doctor-card {
    padding: 18px 16px 16px;
  }

  .rsko-doctor-card__actions {
    grid-template-columns: 1fr;
  }

  .rsko-doctor-card__name {
    font-size: 22px;
  }

  .rsko-doctor-profile {
    align-items: flex-start;
    gap: 14px;
  }

  .rsko-doctor-profile__media {
    width: 84px;
    height: 84px;
    flex-basis: 84px;
  }

  .rsko-doctor-profile__name {
    font-size: 28px;
  }

  .rsko-booking-sidebar__grid2 {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}