/* =========================
   GLOBAL
========================= */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  background:
    linear-gradient(
      rgba(245, 247, 250, 0.85),
      rgba(245, 247, 250, 0.95)
    ),
    url("festival-bg.png") center / cover no-repeat fixed;
}

/* =========================
   FORM WRAPPER
========================= */
.form-wrapper {
  max-width: 480px;
  margin: 30px auto;
  padding: 20px;
  background: rgba(235, 242, 252, 0.96);
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(47, 95, 170, 0.18);
}
/* LOGO BAR – satu baris */
.logo-bar{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:6px;
  margin-bottom:10px;
  flex-wrap:nowrap;
  overflow-x:auto;
}

/* TAJUK FESTIVAL */
.festival-title{
  font-size:22px;
  font-weight:bold;
  text-align:center;
  margin:11px 0 16px;
}

/* =========================
   LABEL & INPUT
========================= */
label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
}

label small {
  display: block;
  font-size: 13px;
  font-weight: normal;
  color: #555;
  margin-top: 4px;
}

input,
select,
textarea,
button {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border-radius: 6px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

/* =========================
   SELECT KHAS (JENIS PENDAFTARAN)
========================= */
#jenisPendaftaran {
  background-color: #f3f7ff;
  border: 1px solid #2f5faa;
  font-weight: 600;
}

/* =========================
   BUTTON
========================= */
button {
  margin-top: 20px;
  background: #2f5faa;
  color: white;
  border: none;
  font-size: 16px;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
}

button:hover {
  background: #244a88;
}

/* =========================
   NOTE
========================= */
.note {
  font-size: 14px;
  color: #555;
  background: #f7f7f7;
  padding: 10px;
  border-left: 4px solid #c9a24d;
  margin-bottom: 12px;
}

/* =========================
   BANK INFO
========================= */
.bank-info {
  margin-top: 18px;
  padding: 12px;
  background: #f8f8f8;
  border-left: 4px solid #2f5faa;
  font-size: 14px;
  line-height: 1.6;
}

/* =========================
   (LEGACY – TAK DIGUNAKAN SEKARANG)
   Selamat biarkan, tak rosakkan apa-apa
========================= */
.baju-pilihan {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.baju-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  margin-bottom: 6px;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  background: #fafafa;
  transition: all 0.2s ease;
}

.baju-card input[type="radio"] {
  transform: scale(0.85);
  margin: 0;
}

.baju-card strong {
  font-size: 13px;
  font-weight: 600;
}

.baju-card small {
  display: none;
}

.baju-card:hover {
  border-color: #2f5faa;
  background: #f3f7ff;
}

.baju-card input[type="radio"]:checked {
  accent-color: #2f5faa;
}

/* =========================
   SELECT – VISUAL PERINGATAN
========================= */

/* default */
select {
  color: #333;
  border-color: #ccc;
}

/* option placeholder */
select option[value=""] {
  color: #c0392b;
}

/* bila masih “Tidak Pilih” */
select:has(option[value=""]:checked) {
  color: #c0392b;
  border-color: #e74c3c;
}

/* bila dah pilih option sebenar */
select:not(:has(option[value=""]:checked)) {
  color: #333;
  border-color: #ccc;
}

/* focus */
select:focus {
  border-color: #2f5faa;
  outline: none;
}

.btn-submit{
  width:100%;
  padding:14px;
  background:#2f5faa;
  color:#fff;
  font-size:16px;
  border:none;
  border-radius:8px;
  cursor:pointer;
}


.btn-submit{
  width:100%;
  padding:14px;
  background:#2f5faa;
  color:#fff;
  font-size:16px;
  border:none;
  border-radius:8px;
  cursor:pointer;
}

/* =========================
   SAIZ BAJU GRID
========================= */
.size-group{
  margin-top:10px;
}

.size-title{
  font-weight:600;
  margin:10px 0 4px;
}

.size-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 12px;
  margin-bottom: 12px;
}

.size-grid label{
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: normal;
}

input[type="radio"]{
  width: auto;
}

.note {
  background: white;
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  border-left: 5px solid #2b6cb0;
  font-size: 14px;
  line-height: 1.6;
}

.note p {
  margin: 0 0 10px;
}

.note p:last-child {
  margin-bottom: 0;
}


.card{
  background:white;
  padding:20px;
  border-radius:10px;
  margin-bottom:20px;
  box-shadow:0 2px 6px rgba(0,0,0,0.1);
}

.card-peserta{
  background:#fff7d6;   /* kuning lembut */
  border:2px solid #e0b200;
}
/* KECILKAN TAJUK FESTIVAL */

footer{
  text-align:center;
  font-size:10px;
  color:#666;
  margin:20px 0 8px;
  line-height:1.3;
}

footer p{
  margin:2px 0;
}


.bank-info{
  background:#f8f8f8;
  padding:12px;
  border-left:4px solid #2f5faa;
  font-size:14px;
  line-height:1.6;
  margin-bottom:10px;
}

.desc-merah{
  display:block;
  color:#c0392b;
  font-size:13px;
  margin:4px 0 10px;
}

.tajuk-peserta{
  font-size:20px;
}

.card h2{
  font-size:20px;
}

.btn-home{
  display:inline-block;
  margin-top:15px;
  padding:10px 16px;
  background:#555;
  color:white;
  text-decoration:none;
  border-radius:8px;
  font-weight:bold;
}

.btn-home:hover{
  background:#333;
}

.btn-daftar{
  background:#1e7a4f;
  color:white;
  border:none;
  padding:10px 16px;
  border-radius:8px;
  font-weight:bold;
  cursor:pointer;
}

.btn-home,
.btn-daftar{
  transition:0.3s;
}

.btn-daftar:hover{
  background:#155c3b;
}


#spinner{
  width:16px;
  height:16px;
  border:3px solid #fff;
  border-top:3px solid transparent;
  border-radius:50%;
  display:inline-block;
  margin-left:8px;
  animation:spin 1s linear infinite;
}

@keyframes spin{
  from{ transform:rotate(0deg); }
  to{ transform:rotate(360deg); }
}

.note h2{
  text-align:center;
  margin-bottom:15px;
  color:#0b4da2;
  font-size:15px;   /* kecilkan saiz teks */
}


.section-box {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 3px solid #444;
}



.size-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.size-item {
  background: #f4f6f8;
  padding: 12px;
  border-radius: 8px;
}

.size-item label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.size-item input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
}






