/* ==========================================================================
   register-members.css
   Pemolesan form registrasi IPFEST 2027 (tema Grand).
   Muat SETELAH register.css dan register-animations.css.

   Palet: Midnight Navy #16213E · Warm Ivory #F8F5F2 · Slate Grey #6C677D
          Burnt Orange #D97706 · Muted Gold #E6C72A
   ========================================================================== */

.registration-shell {
	--rg-navy: #16213e;
	--rg-ivory: #f8f5f2;
	--rg-slate: #6c677d;
	--rg-orange: #d97706;
	--rg-gold: #e6c72a;
	--rg-error: #ff9b8f;
	--rg-control-h: 48px;
	--rg-radius: 12px;
}

/* ------------------------------ Kartu anggota ----------------------------- */

#registration-form .member-entry {
	position: relative;
	display: block;
	width: 100%;
	min-width: 0;
	margin: 0 0 1.5rem;
	padding: 1.5rem 1.5rem 1.75rem 1.75rem;
	background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
	border: 1px solid rgba(230, 199, 42, 0.28);
	border-radius: 18px;
	box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.07);
	overflow: hidden;
	transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
	animation: member-card-in 0.45s ease both;
}

/* aksen emas di sisi kiri */
#registration-form .member-entry::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 4px;
	background: linear-gradient(180deg, var(--rg-gold), var(--rg-orange));
}

#registration-form .member-entry:hover,
#registration-form .member-entry:focus-within {
	border-color: rgba(230, 199, 42, 0.55);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

/* judul kartu: badge nomor + garis tipis */
#registration-form .member-entry > legend {
	float: none;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	width: 100%;
	margin: 0 0 1.25rem;
	padding: 0;
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--rg-ivory);
}

#registration-form .member-entry > legend::after {
	content: "";
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
}

#registration-form .member-badge {
	display: inline-grid;
	place-items: center;
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--rg-navy);
	background: linear-gradient(135deg, var(--rg-gold), var(--rg-orange));
	box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
}

/* sub-judul: Personal details / Required documents */
#registration-form .member-subtitle {
	margin: 0 0 0.9rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--rg-gold);
}

#registration-form .member-subtitle--docs {
	margin-top: 1.75rem;
	padding-top: 1.25rem;
	border-top: 1px dashed rgba(255, 255, 255, 0.16);
}

/* ------------------------- Label & kontrol (semua step) ------------------- */

#registration-form .registration-step .form-label {
	margin-bottom: 0.4rem;
	font-size: 0.85rem;
	font-weight: 500;
	letter-spacing: 0.01em;
	color: rgba(248, 245, 242, 0.92);
}

#registration-form .registration-step .form-control,
#registration-form .registration-step .form-select {
	display: block;
	width: 100%;
	height: var(--rg-control-h);
	padding: 0 0.95rem;
	font-size: 0.95rem;
	color: var(--rg-navy);
	background-color: var(--rg-ivory);
	border: 1.5px solid transparent;
	border-radius: var(--rg-radius);
	box-shadow: inset 0 1px 2px rgba(22, 33, 62, 0.08);
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

#registration-form .registration-step .form-select {
	padding-right: 2.5rem; /* ruang untuk panah dropdown */
}

/* placeholder "Select sex" tampil abu-abu sampai dipilih */
#registration-form .registration-step .form-select:required:invalid {
	color: var(--rg-slate);
}

#registration-form .registration-step .form-control:hover,
#registration-form .registration-step .form-select:hover {
	border-color: rgba(230, 199, 42, 0.5);
}

#registration-form .registration-step .form-control:focus,
#registration-form .registration-step .form-select:focus {
	background-color: #fff;
	border-color: var(--rg-gold);
	box-shadow: 0 0 0 0.25rem rgba(230, 199, 42, 0.25);
	outline: 0;
}

/* ------------------------------ Input file -------------------------------- */

#registration-form .registration-step input[type="file"].form-control {
	padding: 0 0.95rem 0 0;
	line-height: calc(var(--rg-control-h) - 3px);
	color: var(--rg-slate);
	cursor: pointer;
	overflow: hidden;
}

#registration-form .registration-step input[type="file"].form-control::file-selector-button {
	margin: 0 0.9rem 0 0;
	padding: 0 1.1rem;
	line-height: calc(var(--rg-control-h) - 3px);
	font-weight: 600;
	color: var(--rg-ivory);
	background: var(--rg-navy);
	border: 0;
	border-radius: 0;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

#registration-form .registration-step input[type="file"].form-control:hover::file-selector-button {
	color: var(--rg-navy);
	background: var(--rg-gold);
}

/* --------------------------- Pesan validasi ------------------------------- */

/* sembunyikan sampai step divalidasi */
#registration-form .registration-step .invalid-feedback {
	display: none;
	margin-top: 0.35rem;
	font-size: 0.8rem;
	line-height: 1.35;
	color: var(--rg-error);
}

#registration-form .registration-step.was-validated :invalid ~ .invalid-feedback {
	display: block;
}

#registration-form .registration-step.was-validated .form-control:invalid,
#registration-form .registration-step.was-validated .form-select:invalid {
	border-color: var(--rg-error);
	box-shadow: 0 0 0 0.2rem rgba(255, 155, 143, 0.18);
}

#registration-form .registration-step.was-validated .form-control:valid,
#registration-form .registration-step.was-validated .form-select:valid {
	border-color: rgba(230, 199, 42, 0.7);
}

/* ------------------------------ Responsif --------------------------------- */

@media (max-width: 575.98px) {
	#registration-form .member-entry {
		padding: 1.25rem 1rem 1.4rem 1.25rem;
		border-radius: 14px;
	}
}

/* ------------------------------ Animasi ----------------------------------- */

@keyframes member-card-in {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	#registration-form .member-entry {
		animation: none;
		transition: none;
	}
}

/* ==========================================================================
   Perbaikan layout (anti-overflow)
   - input teks/file melebar melewati kolom karena box-sizing content-box
   - tinggi select & input tidak seragam
   - panah dropdown berbeda-beda
   ========================================================================== */

#registration-form .registration-step .row > * {
	min-width: 0;
}

#registration-form .registration-step .form-label {
	display: block;
}

#registration-form .registration-step .form-control,
#registration-form .registration-step .form-select {
	box-sizing: border-box !important;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0;
	height: var(--rg-control-h) !important;
	min-height: var(--rg-control-h);
	margin: 0;
	font-family: inherit;
}

#registration-form .registration-step .form-select {
	-webkit-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%2316213e' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.95rem center;
	background-size: 14px 14px;
}

#registration-form .registration-step input[type="file"].form-control {
	padding: 0 0.95rem 0 0 !important;
}

/* Cegah kartu anggota tim keluar dari panel registrasi */
#entry,
#entry *,
#entry *::before,
#entry *::after {
  box-sizing: border-box;
}

#entry {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

#entry > * {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  min-width: 0;
}

/* Kolom grid di dalam kartu boleh menyusut, tidak mendorong kartu melebar */
#entry .row,
#entry [class*="col-"] {
  min-width: 0;
}