/* ============================================================
   Halaman formulir lomba (/lomba/{slug}) — memakai token dari landing.css
   ============================================================ */
.lpage { position: relative; overflow: hidden; isolation: isolate; padding: clamp(7.5rem, 13vw, 9.5rem) 0 clamp(5rem, 10vw, 8rem); }
.lpage .hero__bg { inset: 0; }
.lpage .hero__bg::after { background: linear-gradient(180deg, rgba(7,11,31,.2) 0%, rgba(7,11,31,.35) 40%, rgba(7,11,31,.75) 100%); }
.lpage .blob { opacity: .8; }
.lpage .crumb a:not(:hover) { opacity: .85; }
.lpage__head { display: grid; gap: 1rem; justify-items: start; margin-bottom: clamp(2rem, 4vw, 3rem); max-width: 760px; }
.lpage__head h1 { font-size: clamp(2.6rem, 7vw, 5rem); text-shadow: 0 4px 30px rgba(20,30,90,.35); }
.lpage__head .lead { color: rgba(255,255,255,.9); text-shadow: 0 2px 20px rgba(0,0,0,.25); max-width: 62ch; }
.lpage__head .hero__meta { justify-content: flex-start; }

.lpage__grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2rem); align-items: start; }
.lpage__aside { display: grid; gap: 1rem; position: sticky; top: 6rem; }
.lnote { padding: 1.5rem 1.6rem; border-radius: 24px; background: rgba(7,11,31,.62); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 30px 60px -40px rgba(0,0,0,.7); }
.lnote .section__label { margin-bottom: .9rem; }
.lnote__list { margin: 0; padding-left: 1.2rem; display: grid; gap: .6rem; font-size: .9rem; line-height: 1.55; color: rgba(255,255,255,.82); }
.lnote__list li::marker { color: var(--sky); font-weight: 700; }
.lnote--help { font-size: .9rem; color: rgba(255,255,255,.8); }
.lnote--help strong { display: block; margin-bottom: .3rem; color: #fff; }
.lnote--help a { color: var(--cyan); font-weight: 600; }

/* ---------- Kartu formulir ---------- */
.lform { padding: clamp(1.5rem, 4vw, 2.75rem); border-radius: 32px; background: #fff; color: var(--ink); box-shadow: 0 40px 80px -40px rgba(11,18,48,.6); min-width: 0; }
.lform__head { margin-bottom: 1.75rem; padding-bottom: 1.25rem; border-bottom: 1px solid rgba(11,18,48,.08); }
.lform__head .section__label, .lform--closed .section__label { color: var(--sky-deep); margin-bottom: .5rem; }
.lform h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 .5rem; }
.lform__desc { font-size: .95rem; color: rgba(11,18,48,.68); max-width: 60ch; }
.lform__desc a { color: var(--sky-deep); font-weight: 600; }
.lform--closed { display: grid; gap: .6rem; justify-items: start; }
.lform--closed .btn { margin-top: 1rem; }
.lform--soon h2 { font-size: clamp(2rem, 4.5vw, 3rem); background: linear-gradient(120deg, var(--sky-deep), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; padding: .08em .15em; margin: 0 -.15em .3rem; }
.lform__soon-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1rem; }
.lform__soon-actions .btn { margin: 0; }
.lform__soon-actions .btn--outline { color: var(--ink); border-color: rgba(11,18,48,.3); backdrop-filter: none; }
.lform__soon-actions .btn--outline:hover { background: rgba(11,18,48,.06); }
.lnote__dl { margin: 0; display: grid; gap: .7rem; }
.lnote__dl div { display: grid; gap: .1rem; }
.lnote__dl dt { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); font-weight: 600; }
.lnote__dl dd { margin: 0; font-size: .92rem; font-weight: 600; }

.lform__alert { margin-bottom: 1.25rem; padding: .9rem 1.1rem; border-radius: 14px; background: #fff0f3; color: #b4213f; font-size: .92rem; font-weight: 500; border: 1px solid rgba(180,33,63,.15); }
.lform__hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

.lform__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.25rem; }
.lfield { display: grid; gap: .4rem; min-width: 0; align-content: start; }
.lfield--full { grid-column: 1 / -1; }
.lfield > label { font-size: .86rem; font-weight: 600; color: rgba(11,18,48,.82); }
.lfield > label b { color: var(--coral); font-weight: 700; }
.lfield small { font-size: .77rem; color: rgba(11,18,48,.55); line-height: 1.45; }
.lfield input:not([type="checkbox"]):not([type="file"]), .lfield select, .lfield textarea {
    width: 100%; padding: .8rem 1rem; border-radius: 12px; border: 1.5px solid rgba(11,18,48,.16); background: #fff;
    font: inherit; font-size: .95rem; color: var(--ink); transition: border-color .25s, box-shadow .25s;
    -webkit-appearance: none; appearance: none;
}
.lfield input::placeholder, .lfield textarea::placeholder { color: rgba(11,18,48,.35); }
.lfield select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%233b8bea' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.4rem; }
.lfield textarea { resize: vertical; min-height: 96px; }
.lfield input:focus, .lfield select:focus, .lfield textarea:focus { outline: none; border-color: var(--sky-deep); box-shadow: 0 0 0 4px rgba(59,139,234,.15); }
.lfield.is-invalid input:not([type="file"]), .lfield.is-invalid select, .lfield.is-invalid textarea { border-color: #e0304f; }
.lfield.is-invalid .lupload { border-color: #e0304f; }
.lfield__err { font-size: .8rem; color: #c0233f; margin: 0; font-weight: 500; }

/* Unggah foto */
.lupload { position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 1.1rem; align-items: center; padding: 1rem; border-radius: 18px; border: 1.5px dashed rgba(59,139,234,.5); background: rgba(59,139,234,.05); cursor: pointer; transition: border-color .25s, background .25s, box-shadow .25s; }
.lupload:hover, .lupload.is-drag { border-color: var(--sky-deep); background: rgba(59,139,234,.1); }
.lupload:focus-within { box-shadow: 0 0 0 4px rgba(59,139,234,.15); border-color: var(--sky-deep); }
.lupload input[type="file"] { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.lupload__preview { width: 96px; height: 96px; border-radius: 14px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 24 24' fill='none' stroke='%233b8bea' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") center/34px no-repeat; border: 1px solid rgba(11,18,48,.1); overflow: hidden; display: block; }
.lupload__preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lupload__body { display: grid; gap: .35rem; justify-items: start; min-width: 0; }
.lupload__title { font-size: .95rem; }
.lupload__meta { font-size: .78rem; color: rgba(11,18,48,.55); overflow-wrap: anywhere; }
.lupload__meta.is-error { color: #c0233f; font-weight: 600; }
.lupload__btn { margin-top: .3rem; color: var(--sky-deep); border-color: rgba(59,139,234,.6); backdrop-filter: none; pointer-events: none; }
.lupload.has-file .lupload__title { color: var(--sky-deep); }
.lupload--doc .lupload__preview { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 24 24' fill='none' stroke='%233b8bea' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5M9 13h6M9 17h6'/%3E%3C/svg%3E"); }
.lupload--doc.has-file .lupload__preview { background-color: var(--mist); }

.lconsent { display: flex; gap: .75rem; align-items: flex-start; font-size: .87rem; color: rgba(11,18,48,.78); line-height: 1.5; cursor: pointer; margin-top: .5rem; font-weight: 500; }
.lconsent input { margin-top: .2rem; width: 18px; height: 18px; accent-color: var(--sky-deep); flex: none; }
.lform__submit { width: 100%; margin-top: 1.25rem; }
.lform__submit:disabled { opacity: .65; cursor: wait; transform: none; }
.lform__hint { display: block; margin-top: .8rem; font-size: .76rem; color: rgba(11,18,48,.55); text-align: center; line-height: 1.5; }
.lform__hint a { color: var(--sky-deep); font-weight: 600; }

/* Sub-judul bagian formulir */
.lform__section { grid-column: 1 / -1; margin: .9rem 0 -.2rem; padding-top: 1.1rem; border-top: 1px solid rgba(11,18,48,.08); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--sky-deep); }
.lform__grid > .lform__section:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

/* Daftar anggota tim (field group) */
.lgroup { border: 0; margin: 0; padding: 0; min-width: 0; }
.lgroup__legend { float: left; width: 100%; padding: 0; margin-bottom: .4rem; font-size: .86rem; font-weight: 600; color: rgba(11,18,48,.82); display: flex; align-items: center; gap: .5rem; }
.lgroup__legend b { color: var(--coral); font-weight: 700; }
.lgroup__legend + * { clear: both; }
.lgroup__count { margin-left: auto; font-size: .72rem; font-weight: 700; padding: .15rem .6rem; border-radius: 999px; background: rgba(59,139,234,.1); color: var(--sky-deep); font-variant-numeric: tabular-nums; }
.lgroup__rows { display: grid; gap: .7rem; margin-top: .35rem; counter-reset: row; }
.lgroup__row { padding: .85rem .95rem 1rem; border-radius: 16px; border: 1.5px solid rgba(11,18,48,.1); background: #f8fbff; display: grid; gap: .65rem; transition: border-color .25s, box-shadow .25s; }
.lgroup__row:focus-within { border-color: rgba(59,139,234,.55); box-shadow: 0 0 0 4px rgba(59,139,234,.1); }
.lgroup__row.is-new { animation: lgroupIn .35s ease; }
@keyframes lgroupIn { from { opacity: 0; transform: translateY(-6px); } }
.lgroup__head { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.lgroup__num { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--sky-deep), var(--violet)); }
.lgroup__title { font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lgroup__remove { margin-left: auto; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(11,18,48,.14); background: #fff; color: rgba(11,18,48,.55); display: grid; place-items: center; cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.lgroup__remove svg { width: 14px; height: 14px; }
.lgroup__remove:hover:not(:disabled) { color: #c0233f; border-color: rgba(192,35,63,.35); background: #fff4f6; }
.lgroup__remove:disabled { opacity: .35; cursor: not-allowed; }
.lgroup__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .6rem .75rem; }
.lgroup__cell { display: grid; gap: .3rem; min-width: 0; }
.lgroup__cell > span { font-size: .74rem; font-weight: 600; color: rgba(11,18,48,.6); }
.lgroup__cell > span b { color: var(--coral); }
.lgroup__cell input, .lgroup__cell select { width: 100%; padding: .65rem .85rem; border-radius: 10px; border: 1.5px solid rgba(11,18,48,.16); background: #fff; font: inherit; font-size: .92rem; color: var(--ink); -webkit-appearance: none; appearance: none; transition: border-color .25s, box-shadow .25s; }
.lgroup__cell select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%233b8bea' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .8rem center; padding-right: 2.2rem; }
.lgroup__cell input:focus, .lgroup__cell select:focus { outline: none; border-color: var(--sky-deep); box-shadow: 0 0 0 3px rgba(59,139,234,.15); }
.lgroup__cell input::placeholder { color: rgba(11,18,48,.35); }
.lgroup__cell.is-invalid input, .lgroup__cell.is-invalid select { border-color: #e0304f; }
.lgroup__cell .lfield__err { font-style: normal; font-size: .76rem; }
.lgroup__add { margin-top: .7rem; width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .75rem 1rem; border-radius: 14px; border: 1.5px dashed rgba(59,139,234,.55); background: rgba(59,139,234,.05); color: var(--sky-deep); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; transition: background .2s, border-color .2s; }
.lgroup__add svg { width: 16px; height: 16px; }
.lgroup__add:hover:not(:disabled) { background: rgba(59,139,234,.1); border-color: var(--sky-deep); }
.lgroup__add:disabled { opacity: .45; cursor: not-allowed; }

/* Kotak info samping: penilaian, hadiah, kontak */
.lnote__score { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.lnote__score li { display: grid; grid-template-columns: 1fr auto; gap: .3rem .75rem; font-size: .88rem; color: rgba(255,255,255,.85); }
.lnote__score b { color: #fff; font-variant-numeric: tabular-nums; }
.lnote__score i { grid-column: 1 / -1; height: 5px; border-radius: 99px; background: rgba(255,255,255,.12); position: relative; overflow: hidden; }
.lnote__score i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--sky), var(--cyan)); }
.lnote__prize { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.lnote__prize li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: .88rem; color: rgba(255,255,255,.8); }
.lnote__prize li:last-child { border-bottom: 0; }
.lnote__prize b { color: #fff; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lnote__contacts { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .35rem; }
.lnote--help p { margin: 0; }

/* Ringkasan anggota di halaman sukses */
.ldone__dl .ldone__full { grid-column: 1 / -1; }
.ldone__members { margin: .2rem 0 0; padding-left: 1.2rem; display: grid; gap: .15rem; font-weight: 500; }
.ldone__role { color: rgba(11,18,48,.55); font-weight: 600; }

/* ---------- Halaman sukses ---------- */
.lpage--done { display: grid; align-items: center; min-height: 100svh; }
.ldone__wrap { display: grid; justify-items: center; }
.ldone { width: min(680px, 100%); padding: clamp(1.75rem, 5vw, 3rem); border-radius: 32px; background: #fff; color: var(--ink); box-shadow: 0 50px 100px -40px rgba(11,18,48,.7); text-align: center; display: grid; justify-items: center; gap: .9rem; }
.ldone .section__label { color: #17864a; margin-bottom: 0; }
.ldone .section__label::before { background: #17864a; }
.ldone__check { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #17c964, #0f8a4c); box-shadow: 0 16px 36px -14px rgba(23,201,100,.8); }
.ldone__check svg { width: 34px; height: 34px; }
.ldone h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
.ldone__desc { font-size: .98rem; color: rgba(11,18,48,.7); max-width: 52ch; }
.ldone__code { margin: .6rem 0; padding: 1.1rem 1.5rem; max-width: 100%; border-radius: 20px; background: linear-gradient(135deg, #eaf3ff, #f4fbff); border: 1.5px solid rgba(59,139,234,.3); display: grid; gap: .2rem; }
.ldone__code span { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--sky-deep); }
.ldone__code strong { font-family: var(--display); font-size: clamp(1.7rem, 8vw, 3rem); letter-spacing: .04em; color: var(--ink); line-height: 1.1; white-space: nowrap; }
.ldone__dl { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 1.5rem; margin: .5rem 0 0; padding: 1.25rem; border-radius: 18px; background: var(--mist); text-align: left; }
.ldone__dl div { display: grid; gap: .15rem; min-width: 0; }
.ldone__dl dt { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(11,18,48,.5); font-weight: 600; }
.ldone__dl dd { margin: 0; font-weight: 600; font-size: .92rem; overflow-wrap: anywhere; }
.ldone__dl a { color: var(--sky-deep); }
.ldone__actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: .75rem; }
.ldone__actions .btn--outline { color: var(--ink); border-color: rgba(11,18,48,.3); backdrop-filter: none; }
.ldone__actions .btn--outline:hover { background: rgba(11,18,48,.06); }

@media (max-width: 960px) {
    .lpage__grid { grid-template-columns: 1fr; }
    .lpage__aside { position: static; order: 2; }
}
@media (max-width: 640px) {
    .lform { border-radius: 24px; }
    .lform__grid { grid-template-columns: 1fr; }
    .lupload { grid-template-columns: 72px 1fr; }
    .lgroup__row { padding: .75rem .8rem .9rem; }
    .lgroup__cols { grid-template-columns: 1fr; }
    .lupload__preview { width: 72px; height: 72px; }
    .ldone__dl { grid-template-columns: 1fr; }
    .ldone { border-radius: 24px; }
    .lpage .pill { padding: .4rem .8rem; font-size: .76rem; }
}
