/* Layar setelah pulang: penilaian, ulasan pengemudi, survei, sertifikat, dan berangkat lagi (awalan ot-). */

/* ---------- Bintang penilaian ---------- */
.ot-stars {
  display: flex;
  flex: none;
}

.ot-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: var(--tap);
  color: var(--faint);
  transition:
    transform var(--duration-fast) var(--ease),
    color var(--duration-fast) var(--ease);
}

.ot-star:active {
  transform: scale(0.86);
}

.ot-star[data-filled] {
  color: var(--gold-logo);
}

.ot-star[data-filled] .icon {
  fill: currentcolor;
}

.ot-stars--lg {
  justify-content: center;
  gap: var(--space-1);
}

.ot-stars--lg .ot-star {
  width: 52px;
  height: 52px;
}

.ot-stars--lg .icon {
  width: 38px;
  height: 38px;
}

.ot-rate-hero,
.ot-rate-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  text-align: center;
}

.ot-rate-hero {
  padding: var(--space-6) var(--space-4);
}

.ot-rate-hero__word {
  font-weight: 800;
  color: var(--gold-strong);
}

.ot-aspects {
  display: flex;
  flex-direction: column;
  padding-block: var(--space-1);
}

.ot-aspect {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 var(--space-2);
  min-height: 56px;
  padding-block: var(--space-1);
}

/* Di layar sempit semua baris ditumpuk supaya bintang sejajar, bukan hanya baris berlabel panjang. */
@media (max-width: 400px) {
  .ot-aspect {
    flex-direction: column;
    align-items: flex-start;
  }
}

.ot-aspect + .ot-aspect {
  border-top: 1px solid var(--hairline);
}

.ot-aspect__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
}

.ot-aspect__label .icon {
  color: var(--gold);
}

.ot-quote {
  margin: 0;
  font-style: italic;
  color: var(--ink-2);
}

.ot-thanks {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-8) var(--space-5);
  text-align: center;
}

.ot-thanks__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  color: #ecd9a3;
  background: rgb(255 255 255 / 8%);
}

.ot-thanks__arabic {
  font-size: 30px;
  line-height: 1.6;
  color: #ecd9a3;
  text-align: center;
}

/* ---------- Survei ---------- */
.ot-survey__question {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.ot-survey__question[data-invalid] {
  border-color: var(--danger);
}

.ot-survey__number {
  font-size: var(--fs-2xs);
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
}

.ot-survey__label {
  font-size: var(--fs-lg);
  font-weight: 800;
  line-height: 1.35;
}

.ot-survey__choices {
  display: flex;
  flex-direction: column;
}

.ot-survey__choice {
  align-items: center;
  min-height: 50px;
  padding-block: var(--space-2);
  font-weight: 600;
}

.ot-survey__choice + .ot-survey__choice {
  border-top: 1px solid var(--hairline);
}

.ot-scale {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-2);
}

.ot-scale__item {
  min-height: 48px;
  border: 1.5px solid var(--hairline-strong);
  border-radius: var(--radius-md);
  font-size: var(--fs-lg);
  font-weight: 800;
  background: var(--surface);
  transition:
    background-color var(--duration-fast) var(--ease),
    transform var(--duration-fast) var(--ease);
}

.ot-scale__item:active {
  transform: scale(0.94);
}

.ot-scale__item[aria-checked="true"] {
  border-color: transparent;
  color: var(--on-gold);
  background: var(--gold-gradient);
}

/* ---------- Sertifikat & album ---------- */
.ot-cert {
  padding: 7px;
  border-radius: var(--radius-xl);
  background: var(--gold-gradient);
  box-shadow: var(--shadow-float);
}

.ot-cert__frame {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-8) var(--space-5) var(--space-6);
  overflow: hidden;
  border-radius: 20px;
  text-align: center;
  background: var(--surface-raised);
  isolation: isolate;
}

.ot-cert__frame::before {
  position: absolute;
  inset: 9px;
  border: 1px solid var(--gold-border);
  border-radius: 13px;
  content: "";
  pointer-events: none;
}

.ot-cert__frame::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' fill='none' stroke='%23d1ad4f' stroke-opacity='.22'%3E%3Cpath d='M28 2 36 20 54 28 36 36 28 54 20 36 2 28 20 20Z'/%3E%3Ccircle cx='28' cy='28' r='9'/%3E%3C/svg%3E");
  background-size: 56px 56px;
  mask-image: radial-gradient(90% 60% at 50% 0%, #000 0%, transparent 75%);
  content: "";
}

.ot-cert__emblem {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.ot-cert__brand {
  font-size: var(--fs-xl);
  line-height: 1.2;
}

.ot-cert__arabic {
  font-size: 25px;
  line-height: 1.7;
  color: var(--gold);
  text-align: center;
}

.ot-cert__lead,
.ot-cert__text {
  font-size: var(--fs-sm);
  color: var(--ink-2);
}

.ot-cert__name {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--gold-strong);
  overflow-wrap: anywhere;
}

.ot-cert__date {
  font-size: var(--fs-lg);
  font-weight: 800;
  line-height: 1.4;
}

.ot-cert__date span {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--gold);
}

.ot-cert__signs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  width: 100%;
  margin-top: var(--space-4);
}

.ot-cert__signs > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: var(--space-2);
  border-top: 1px solid var(--hairline-strong);
}

.ot-cert__sign {
  font-size: var(--fs-sm);
  font-weight: 800;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.ot-cert__signs small {
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}

.ot-cert__number {
  margin-top: var(--space-2);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  color: var(--muted);
}

.ot-album {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.ot-album__item {
  display: block;
  border-radius: var(--radius-lg);
  text-align: left;
  transition: transform var(--duration-fast) var(--ease);
}

.ot-album__item:active {
  transform: scale(0.97);
}

.ot-album__photo {
  aspect-ratio: 1;
  padding: var(--space-3);
}

.ot-album__caption {
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.3;
}

.ot-album__full {
  width: 100%;
  aspect-ratio: 4 / 3;
}

/* ---------- Berangkat lagi ---------- */
.ot-option-check {
  flex: none;
}

.option-card .ot-option-check {
  margin-left: auto;
}

.option-card[aria-checked="true"] .ot-option-check,
.ot-rebook-trip__main[aria-checked="true"] .ot-option-check {
  border-color: transparent;
  color: var(--on-gold);
  background: var(--gold-gradient);
}

.ot-rebook-trip {
  transition:
    border-color var(--duration-fast) var(--ease),
    background-color var(--duration-fast) var(--ease);
}

.ot-rebook-trip[data-selected] {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.ot-rebook-trip__main {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  width: 100%;
  padding: var(--space-4);
  text-align: left;
}

.ot-rebook-trip__main:disabled {
  opacity: 0.5;
}

.ot-rebook-trip__main .list__body {
  gap: 4px;
}

.ot-rebook-trip__detail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  min-height: var(--tap);
  border-top: 1px solid var(--hairline);
  font-size: var(--fs-sm);
  font-weight: 800;
  color: var(--gold);
}
