:root {
    --gold-1: #be8511;
    --gold-2: #94660d;
    --gold-light: #f4c542;
    --card-bg: #ffffff;
    --muted: #7b7b9a;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
    color: #222;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.wrap {
    width: 100%;
    max-width: 1100px;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* LEFT PANEL */
.left {
    background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold-1) 100%);
    color: #fff;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.logo-area {
    margin-bottom: 30px;
}

.logo-area img {
    max-width: 160px;
    height: auto;
    filter: brightness(0) invert(1);
}

.event-info h1 {
    margin: 0;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
}

.event-info p.lead {
    margin-top: 12px;
    font-size: 15px;
    opacity: 0.95;
    max-width: 360px;
}

.event-detail {
    margin-top: 24px;
    background: rgba(255, 255, 255, 0.15);
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    width: fit-content;
}

.event-detail h3 {
    margin: 0;
    font-size: 18px;
    color: #fff;
}

.event-detail p {
    margin: 6px 0 0;
    font-size: 14px;
    opacity: 0.95;
}

.brochure {
    margin-top: 24px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1.2s ease forwards;
}

.brochure img {
    width: 100%;
    max-width: 400px;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brochure img:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

/* RIGHT PANEL */
.right {
    background: #faf9f7;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-title {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.title-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.title-header .badge {
    background: var(--gold-1);
    color: #fff;
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.3px;
}

.title-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: var(--gold-2);
}

.title-sub {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.title-sub .small-note {
    font-size: 13px;
    color: #6b6b86;
}

.title-sub .greeting {
    font-size: 15px;
    font-weight: 600;
    color: var(--gold-1);
}

/* FORM ELEMENTS */
label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 6px;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 14px;
    background: #fff;
    transition: 0.25s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--gold-1);
    box-shadow: 0 4px 14px rgba(190, 133, 17, 0.25);
}
input:disabled,
select:disabled,
textarea:disabled {
    background-color: #f5f5f5; /* abu-abu muda */
    color: #888; /* teks agak pudar */
    border-color: #ddd;
    cursor: not-allowed; /* tunjukkan tidak bisa diklik */
    opacity: 0.8; /* sedikit transparan */
}

/* Jika ingin efek hover tetap netral saat disabled */
input:disabled:hover,
select:disabled:hover,
textarea:disabled:hover {
    box-shadow: none;
    border-color: #ddd;
}
#regForm {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
}

.full {
    grid-column: 1 / -1;
}

/* AUTOFILL BOX */
.autofill-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 10px 14px;
    background: #fffbea;
    border: 1px solid var(--gold-light);
    border-radius: 10px;
}

.autofill-box input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--gold-1);
    cursor: pointer;
}

.autofill-box label {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #5c4b1e;
    cursor: pointer;
}

/* PHONE GROUP */
.phone-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.phone-group select {
    width: 100%;
}

.phone-group input {
    width: 100%;
}

/* BUTTONS */
.actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.btn-primary {
    background: var(--gold-1);
    color: #fff;
    padding: 8px 20px;
    font-size: 10pt;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--gold-2);
    box-shadow: 0 8px 20px rgba(148, 102, 13, 0.3);
}

.btn-ghost {
    background: transparent;
    color: var(--gold-1);
    border: 1px solid var(--gold-1);
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
}

.btn-ghost:hover {
    background: var(--gold-1);
    color: #fff;
}


/* ANIMATION */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE */
@media(max-width: 900px) {
    .wrap {
        grid-template-columns: 1fr;
    }

    .left {
        text-align: center;
        padding: 28px;
    }

    .logo-area img {
        margin: 0 auto 20px;
    }

    .event-info p.lead {
        max-width: none;
    }

    .right {
        padding: 28px;
    }

    #regForm {
        grid-template-columns: 1fr;
    }

    .actions {
        justify-content: center;
    }

    .small-note {
        text-align: center;
    }

    .brochure img {
        max-width: 90%;
    }
}

@media(max-width: 768px) {
    .phone-group {
        flex-direction: column;
        gap: 8px;
    }

    .phone-group select {
        width: 100%;
    }
}

@media(max-width: 600px) {
    .title-sub {
        flex-direction: column;
        align-items: flex-start;
    }
}

#loader {
    display: none;
}
.centering-loader {
    display: none;
    position: fixed;             /* Tetap di posisi layar */
    top: 0;
    left: 0;
    width: 100vw;                /* Lebar penuh layar */
    height: 100vh;               /* Tinggi penuh layar */
    background: rgba(0, 0, 0, 0.5); /* Backdrop hitam transparan */
    display: flex;
    justify-content: center;     /* Posisikan di tengah horizontal */
    align-items: center;         /* Posisikan di tengah vertikal */
    z-index: 9999;               /* Pastikan tampil di atas elemen lain */
}

.loader-custom  {
    width: 40px;
    height: 40px;
    --c:no-repeat linear-gradient(#f4c542 0 0);
    background: var(--c),var(--c),var(--c),var(--c);
    background-size: 21px 21px;
    animation: l5 1.5s infinite cubic-bezier(0.3,1,0,1);
}

@keyframes l5 {
    0%   {background-position: 0    0,100% 0   ,100% 100%,0 100%}
    33%  {background-position: 0    0,100% 0   ,100% 100%,0 100%;width:60px;height: 60px}
    66%  {background-position: 100% 0,100% 100%,0    100%,0 0   ;width:60px;height: 60px}
    100% {background-position: 100% 0,100% 100%,0    100%,0 0   }
}
