/*
  File: assets/css/register.css
  Purpose: Register page only
*/

.hero {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 26px;
}

.case-card {
  padding: clamp(24px, 3vw, 42px);
  min-height: 388px;
  overflow: hidden;
  position: relative;
}

.case-card::after {
  content: "CASE FILE 017";
  position: absolute;
  right: -12px;
  bottom: 42px;
  transform: rotate(-90deg);
  color: rgba(255, 255, 255, 0.055);
  font-size: 56px;
  font-weight: 900;
  letter-spacing: 4px;
}

.case-card h2 {
  margin: 0;
  font-size: clamp(38px, 6vw, 86px);
  line-height: 0.94;
  letter-spacing: -2.5px;
}

.case-card h2 span {
  color: var(--blood-bright);
  text-shadow: 0 0 24px rgba(227, 0, 27, 0.22);
}

.case-card p {
  max-width: 640px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.case-note {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 22px;
  padding: 10px 13px;
  border-radius: 999px;
  border: 1px solid rgba(227, 0, 27, 0.28);
  background: rgba(227, 0, 27, 0.09);
  color: #ffd8dc;
  font-size: 13px;
  font-weight: 800;
}

.ep-showcase {
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.ep-showcase-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 16px;
}

.ep-showcase h3 {
  margin: 0;
  font-size: 24px;
}

.ep-showcase p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px;
}

.source-pill {
  flex: 0 0 auto;
  border: 1px solid rgba(143, 186, 255, 0.25);
  color: #d7e5ff;
  background: rgba(143, 186, 255, 0.08);
  border-radius: 999px;
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 900;
}

.ep-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ep-card {
  min-height: 132px;
  padding: 15px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 96% 0%, rgba(227, 0, 27, 0.2), transparent 24%),
    rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  box-shadow: inset 3px 3px 12px rgba(0, 0, 0, 0.35), inset -1px -1px 6px rgba(255, 255, 255, 0.05);
  transition: var(--ease);
}

.ep-card:hover {
  transform: translateY(-3px);
  border-color: rgba(143, 186, 255, 0.35);
  background:
    radial-gradient(circle at 96% 0%, rgba(227, 0, 27, 0.26), transparent 24%),
    rgba(143, 186, 255, 0.075);
}

.ep-id {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(227, 0, 27, 0.15);
  border: 1px solid rgba(227, 0, 27, 0.24);
  color: #ffd8dc;
  font-size: 12px;
  font-weight: 950;
  margin-bottom: 10px;
}

.ep-card h4 {
  margin: 0 0 7px;
  font-size: 16px;
  color: #f6f7ff;
}

.ep-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 13px;
}

.form-card {
  padding: clamp(22px, 3vw, 36px);
  margin-top: 22px;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
}

.section-title p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.selected-date-readout {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 15px 18px;
  margin-top: -6px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
}

.selected-date-readout strong {
  color: white;
  font-size: 18px;
}

.calendar-shell {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  margin-top: 4px;
}

.calendar,
.slot-panel {
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
}

.calendar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.calendar-head strong {
  font-size: 20px;
}

.mini-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  color: white;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  cursor: pointer;
}

.dow,
.dates {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.dow div {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
}

.day {
  aspect-ratio: 1;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.045);
  color: #dfe7ff;
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  font-weight: 800;
  transition: var(--ease);
  position: relative;
}

.day:hover,
.day.selected {
  background: linear-gradient(135deg, rgba(18, 59, 138, 0.95), rgba(179, 20, 34, 0.82));
  transform: translateY(-2px);
  box-shadow: 0 16px 26px rgba(0, 0, 0, 0.34);
}

.day.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 7px, rgba(227, 0, 27, 0.08) 8px 12px);
}

.day.disabled::after {
  content: "";
  position: absolute;
  width: 70%;
  height: 2px;
  background: rgba(227, 0, 27, 0.88);
  transform: rotate(-28deg);
}

.slot-panel h3 {
  margin: 0 0 6px;
  font-size: 22px;
}

.slot-panel p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.5;
}

.slot-list {
  display: grid;
  gap: 10px;
}

.slot {
  cursor: pointer;
  padding: 15px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: #FAFAFA;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--ease);
}

.slot strong {
  color: #fff;
}

.slot small {
  color: #97ffbd;
}

.slot:hover,
.slot.active {
  background: rgba(143, 186, 255, 0.12);
  border-color: rgba(143, 186, 255, 0.42);
  transform: translateX(4px);
}

.slot small {
  color: #97ffbd;
  font-weight: 800;
}

.slot.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.note {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .hero,
  .calendar-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .section-title,
  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .ep-grid {
    grid-template-columns: 1fr;
  }

  .selected-date-readout {
    flex-direction: column;
    align-items: flex-start;
  }

  .case-card::after {
    display: none;
  }
}


/* Strong override for time slot buttons: some browsers keep native button text black. */
.slot-list button.slot,
.slot-list button.slot strong {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
}

.slot-list button.slot small {
  color: #97ffbd !important;
  -webkit-text-fill-color: #97ffbd;
}

