.rl-yc {
  --rl-vien: #e8e8e8;
  display: grid;
  gap: 1.2rem;
  max-width: 34rem;
  margin: 1.5rem 0 2rem;
}
.rl-yc__buoc {
  display: grid;
  gap: .9rem;
  margin: 0;
  padding: 1.1rem;
  border: 1px solid var(--rl-vien);
  border-radius: 14px;
  min-width: 0;
}
.rl-yc [data-loai] {
  display: grid;
  gap: .9rem;
}
.rl-yc__buoc[hidden],
.rl-yc [hidden] { display: none !important; }
.rl-yc legend {
  padding: 0 .4rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--rl-den);
}
.rl-yc__dan {
  margin: 0;
  font-size: .9rem;
  color: var(--rl-xam-chu);
}
.rl-yc__o {
  display: grid;
  gap: .35rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--rl-den);
}
.rl-yc__o input,
.rl-yc__o select,
.rl-yc__o textarea {
  width: 100%;
  font-weight: 400;
}
.rl-yc__o input:not([type="file"]),
.rl-yc__o textarea {
  background-color: #fff;
  border-radius: 12px;
}
.rl-yc__o textarea {
  min-height: 6.5rem;
  resize: vertical;
  line-height: 1.5;
}
.rl-yc__tai {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 3.25rem;
  margin: 0;
  padding: .7rem 1rem;
  border: 1.5px dashed #d4d4d4;
  border-radius: 12px;
  background: #fff;
  color: var(--rl-do);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.rl-yc__tai:hover { border-color: var(--rl-do); background: #fff7f7; }
.rl-yc__tai:focus-within { border-color: var(--rl-do); box-shadow: 0 0 0 3px rgba(228, 33, 42, .12); }
.rl-yc__tai input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.rl-yc__anh:empty { display: none; }
.rl-yc__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.rl-yc__nut {
  width: 100%;
  min-height: 3rem;
  border: 0;
  border-radius: 999px;
  background: var(--rl-do);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}
.rl-yc__nut:hover { background: var(--rl-do-dam); }
.rl-yc__nut:disabled { opacity: .6; cursor: wait; }
.rl-yc__don { display: grid; gap: .8rem; }
.rl-yc__the {
  display: grid;
  gap: .5rem;
  padding: .8rem;
  border-radius: 10px;
  background: var(--rl-xam-nen);
}
.rl-yc__the-dau {
  margin: 0;
  font-size: .85rem;
  font-weight: 700;
}
.rl-yc__dong {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .5rem;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}
.rl-yc__dong img {
  flex: 0 0 56px;
  border-radius: 6px;
  object-fit: cover;
}
.rl-yc__dong-chu {
  display: grid;
  gap: .15rem;
  min-width: 0;
  font-size: .88rem;
}
.rl-yc__dong-chu span { color: var(--rl-xam-chu); }
.rl-yc__dong:has(input:checked) { outline: 2px solid var(--rl-do); }
.rl-yc__loai {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.rl-yc__loai label {
  flex: 1 1 8rem;
  margin: 0;
  background: #fff;
  color: var(--rl-den);
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem .9rem;
  border: 1px solid var(--rl-vien);
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}
.rl-yc__loai label:has(input:checked) { border-color: var(--rl-do); color: var(--rl-do); box-shadow: 0 0 0 1px var(--rl-do) inset; }
.rl-yc__loai input { margin: 0; width: 1.1rem; height: 1.1rem; accent-color: var(--rl-do); }
.rl-yc__anh {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .5rem;
}
.rl-yc__anh-o { position: relative; }
.rl-yc__anh-o img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}
.rl-yc__anh-xoa {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 1.6rem;
  height: 1.6rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, .65);
  color: #fff;
  line-height: 1;
  cursor: pointer;
}
.rl-yc__loi {
  margin: 0;
  padding: .8rem 1rem;
  border-radius: 10px;
  background: #fdecec;
  color: var(--rl-do-dam);
  font-size: .9rem;
}
.rl-yc__xong {
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: #F2FAF5;
  color: #12864B;
}
.rl-yc__xong p { margin: .4rem 0 0; color: var(--rl-den); }
.rl-yc__canh {
  padding: .6rem .8rem;
  border-radius: 10px;
  background: #fff6e0;
  color: #7a5200;
}
