/* =========================================================
   XLSMART FONT FAMILY
   Simpan semua file OTF di dalam: assets/fonts/
   ========================================================= */

@font-face {
    font-family: "XLSMART Sans";
    src: url("../fonts/Salinan XLSMARTSans-ExtraLight.otf") format("opentype");
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "XLSMART Sans";
    src: url("../fonts/Salinan XLSMARTSans-ExtraLightItalic.otf") format("opentype");
    font-weight: 200;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "XLSMART Sans";
    src: url("../fonts/Salinan XLSMARTSans-Light.otf") format("opentype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "XLSMART Sans";
    src: url("../fonts/Salinan XLSMARTSans-LightItalic.otf") format("opentype");
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "XLSMART Sans";
    src: url("../fonts/Salinan XLSMARTSans-Regular.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "XLSMART Sans";
    src: url("../fonts/Salinan XLSMARTSans-Italic.otf") format("opentype");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "XLSMART Sans";
    src: url("../fonts/Salinan XLSMARTSans-Medium.otf") format("opentype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "XLSMART Sans";
    src: url("../fonts/Salinan XLSMARTSans-MediumItalic.otf") format("opentype");
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "XLSMART Sans";
    src: url("../fonts/Salinan XLSMARTSans-SemiBold.otf") format("opentype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "XLSMART Sans";
    src: url("../fonts/Salinan XLSMARTSans-SemiBoldItalic.otf") format("opentype");
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "XLSMART Sans";
    src: url("../fonts/Salinan XLSMARTSans-Bold.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "XLSMART Sans";
    src: url("../fonts/Salinan XLSMARTSans-BoldItalic.otf") format("opentype");
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "XLSMART Sans";
    src: url("../fonts/Salinan XLSMARTSans-ExtraBold.otf") format("opentype");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "XLSMART Sans";
    src: url("../fonts/Salinan XLSMARTSans-ExtraBoldItalic.otf") format("opentype");
    font-weight: 800;
    font-style: italic;
    font-display: swap;
}

/* =========================================================
   VARIABLES & RESET
   ========================================================= */

:root {
    --color-blue: #303b99;
    --color-purple: #663b91;
    --color-purple-dark: #543384;
    --color-pink: #e31362;
    --color-white: #ffffff;
    --font-primary: "XLSMART Sans", Arial, sans-serif;
    --content-width: 900px;
    --content-narrow-width: 620px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    background-color: var(--color-blue);
    color: var(--color-white);
    font-family: var(--font-primary);
    font-weight: 400;
}

img {
    max-width: 100%;
}

/* =========================================================
   RESPONSIVE VISIBILITY
   ========================================================= */

/* Disembunyikan di desktop dan hanya ditampilkan di mobile. */
.mobile-show {
    display: none !important;
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;
    width: 100%;
    aspect-ratio: 1918 / 1081;
    background: url("../images/background-hero-dekstop.png") center / cover no-repeat;
}

.image-button {
    display: inline-block;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.image-button:hover {
    filter: brightness(1.08);
    transform: translateY(-2px) scale(1.03);
}

.register-button {
    position: absolute;
    bottom: 15.5%;
    left: 50%;
    width: clamp(120px, 10vw, 190px);
    transform: translateX(-50%);
}

.register-button:hover {
    transform: translateX(-50%) translateY(-2px) scale(1.03);
}

.register-button img,
.maps-button img {
    display: block;
    width: 100%;
    height: auto;
}

/* =========================================================
   GENERAL LAYOUT
   ========================================================= */

.microsite-body {
    min-height: 100vh;
    background: linear-gradient(110deg,
            #e11662 0%,
            #a72d78 22%,
            #6a398d 52%,
            #3b3e99 100%);
}

.content-wrap {
    position: relative;
    z-index: 2;
    width: min(var(--content-width), calc(100% - 40px));
    margin-inline: auto;
}

.narrow-wrap {
    width: min(var(--content-narrow-width), calc(100% - 40px));
}

.section-space {
    position: relative;
    padding: 0;
    margin-top: 8%;
}

.side-ornament {
    position: absolute;
    z-index: 1;
    top: 120px;
    width: 105px;
    opacity: 0.78;
    pointer-events: none;
}

.side-ornament-left {
    left: 0;
}

.side-ornament-right {
    right: 0;
}

.section-title {
    display: block;
    width: min(460px, 84vw);
    max-height: 52px;
    margin: 20px auto 32px;
    object-fit: contain;
}

.section-divider {
    position: relative;
    z-index: 2;
    height: 72px;
    margin-top: 14%;
    background: url("../images/line.png") center / cover no-repeat;
}

/* =========================================================
   ABOUT & SPONSORS
   ========================================================= */

.about-logo {
    width: min(245px, 62vw);
    height: auto;
    margin-top: 20px;
    margin-bottom: 18px;
}

.lead-copy {
    max-width: 700px;
    font-size: 18px;
    line-height: 1.35;
}

.sponsor-title {
    width: min(500px, 88vw);
    margin-top: 38px;
    margin-bottom: 8%;
}

.sponsor-image {
    display: block;
    width: min(420px, 82vw);
    height: auto;
    margin-inline: auto;
}

/* =========================================================
   EVENT LOCATION
   ========================================================= */

.location-address {
    margin-bottom: 28px;
    font-size: 17px;
    line-height: 1.35;
}

.map-frame {
    width: min(620px, 100%);
    aspect-ratio: 2.35 / 1;
    overflow: hidden;
    border-radius: 26px;
    box-shadow: 0 9px 28px rgba(22, 17, 74, 0.23);
}

.map-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.maps-button {
    width: 140px;
    margin-top: 24px;
}

/* =========================================================
   WINNER CATEGORIES & PRIZES
   ========================================================= */

.winner-grid {
    width: min(690px, 100%);
    margin-inline: auto;
    font-size: 12px;
    line-height: 1.15;
}

.hole-title {
    margin-top: 65px;
}

.prize-grid {
    width: min(720px, 100%);
    margin-inline: auto;
}

.prize-label {
    display: grid;
    min-height: 32px;
    place-items: end center;
    font-size: 11px;
    font-weight: 800;
}

.hole-pill {
    position: relative;
    z-index: 2;
    width: 82px;
    padding: 3px;
    margin: 7px auto -8px;
    border-radius: 999px;
    background-color: var(--color-white);
    color: var(--color-purple-dark);
    font-size: 9px;
    font-weight: 800;
}

.prize-card,
.car-card {
    min-height: 105px;
    padding: 18px 8px 8px;
    border: 1px solid rgba(240, 54, 139, 0.9);
    border-radius: 17px;
    background: linear-gradient(145deg,
            rgba(108, 48, 137, 0.7),
            rgba(233, 18, 96, 0.12));
}

.prize-card b {
    font-size: 48px;
    font-style: italic;
    line-height: 0.9;
    text-shadow: 0 4px 0 #e51663, 0 7px 12px rgba(0, 0, 0, 0.35);
}

.prize-card span {
    font-size: 17px;
    font-weight: 800;
    font-style: italic;
}

.prize-card small,
.car-card small {
    display: block;
    margin-top: 8px;
    font-size: 8px;
    font-weight: 600;
}

.car-card {
    padding-top: 10px;
}

.car-shape {
    font-size: 55px;
    line-height: 1;
    filter: drop-shadow(0 7px 5px rgba(0, 0, 0, 0.35));
}

.car-black .car-shape {
    filter: grayscale(1) brightness(0.55) drop-shadow(0 7px 5px rgba(0, 0, 0, 0.35));
}

.car-gray .car-shape {
    filter: grayscale(0.7) brightness(1.1) drop-shadow(0 7px 5px rgba(0, 0, 0, 0.35));
}

/* =========================================================
   EVENT RUNDOWN
   ========================================================= */

.css-title {
    width: min(460px, 84vw);
    padding: 5px 15px;
    margin: 0 auto 34px;
    background: linear-gradient(90deg,
            transparent,
            #2d40a1 21%,
            #2d40a1 72%,
            #ed1161 89%,
            transparent);
    font-size: 23px;
    font-weight: 800;
}

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

.rundown-item {
    display: grid;
    grid-template-columns: 160px 1fr;
    align-items: center;
    min-height: 43px;
    padding: 6px 20px 6px 8px;
    border-radius: 999px;
    background-color: var(--color-white);
    color: #5e3189;
    font-size: 12px;
    font-style: italic;
}

.rundown-item span {
    padding: 7px 10px;
    border-radius: 999px;
    background: linear-gradient(100deg, #56348f, #ec1262);
    color: var(--color-white);
    font-weight: 700;
}

/* =========================================================
   REGISTRATION
   ========================================================= */

.registration-section {
    padding-bottom: 0;
}

.registration-card {
    position: relative;
    z-index: 3;
    width: min(560px, 100%);
    padding: 52px 70px;
    margin-inline: auto;
    border: 2px solid rgba(255, 255, 255, 0.32);
    border-radius: 52px;
    background: linear-gradient(160deg,
            rgba(47, 57, 154, 0.94),
            rgba(105, 52, 142, 0.88) 50%,
            rgba(237, 16, 95, 0.93));
    box-shadow: 0 10px 30px rgba(35, 22, 88, 0.22);
}

.registration-card label {
    margin-left: 5px;
    font-size: 14px;
    font-weight: 600;
}

.registration-card .form-control {
    min-height: 30px;
    padding: 4px 12px;
    border: 0;
    border-radius: 999px;
    font-family: var(--font-primary);
    font-size: 13px;
}

.registration-card .form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(238, 18, 98, 0.3);
}

.terms-check {
    padding-left: 24px;
}

.terms-check .form-check-input {
    width: 13px;
    height: 13px;
    margin-left: -20px;
    border-radius: 1px;
}

.terms-check .form-check-label {
    font-size: 12px;
    line-height: 1.25;
}

.submit-button {
    width: 140px;
    padding: 0;
    border: 0;
    background-color: transparent;
    transition: transform 0.2s ease;
}

.submit-button:hover {
    transform: translateY(-2px) scale(1.04);
}

.submit-button img {
    display: block;
    width: 100%;
}

.bottom-art {
    position: relative;
    z-index: 2;
    width: 100%;
    aspect-ratio: 1925 / 580;
    margin-top: -105px;
    background: url("../images/bottom-desktop.png") center bottom / 100% auto no-repeat;
    pointer-events: none;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767.98px) {

    /* Sembunyikan elemen khusus desktop pada tampilan mobile. */
    .mobile-hide {
        display: none !important;
    }

    /* Tampilkan elemen khusus mobile. */
    .mobile-show {
        display: block !important;
    }

    .hero {
        aspect-ratio: 1078 / 1908;
        background-image: url("../images/background-hero-mobile.png");
    }

    .register-button {
        bottom: 22%;
        width: 120px;
    }

    .section-space {
        padding: 0;
    }

    .content-wrap,
    .narrow-wrap {
        width: min(calc(100% - 30px), var(--content-narrow-width));
    }

    .lead-copy {
        max-width: 340px;
        font-size: 14px;
        line-height: 1.32;
    }

    .section-title {
        max-height: 34px;
        margin-bottom: 23px;
    }

    .sponsor-title {
        margin-top: 32px;
        margin-bottom: 20px;
    }

    .sponsor-image {
        width: min(305px, 85vw);
    }

    .section-divider {
        height: 50px;
        background-size: auto 50px;
    }

    .location-address {
        font-size: 14px;
    }

    .map-frame {
        aspect-ratio: 2.2 / 1;
        border-radius: 18px;
    }

    .side-ornament {
        width: 55px;
        opacity: 0.45;
    }

    .winner-grid {
        font-size: 11px;
        line-height: 1.12;
    }

    .winner-grid .col-4,
    .prize-grid .col-4 {
        padding-right: 4px;
        padding-left: 4px;
    }

    .hole-title {
        margin-top: 43px;
    }

    .prize-grid {
        --bs-gutter-x: 0.25rem;
    }

    .prize-label {
        min-height: 24px;
        font-size: 7px;
    }

    .hole-pill {
        width: 55px;
        margin-top: 5px;
        font-size: 6px;
    }

    .prize-card,
    .car-card {
        min-height: 75px;
        padding: 14px 3px 5px;
        border-radius: 11px;
    }

    .prize-card b {
        font-size: 27px;
        text-shadow: 0 2px 0 #e51663, 0 4px 7px rgba(0, 0, 0, 0.35);
    }

    .prize-card span {
        font-size: 10px;
    }

    .prize-card small,
    .car-card small {
        margin-top: 5px;
        font-size: 5px;
    }

    .car-card {
        padding-top: 7px;
    }

    .car-shape {
        font-size: 34px;
    }

    .css-title {
        margin-bottom: 25px;
        font-size: 15px;
    }

    .rundown-list {
        gap: 7px;
    }

    .rundown-item {
        grid-template-columns: 112px 1fr;
        min-height: 34px;
        padding: 5px 12px 5px 6px;
        font-size: 12px;
    }

    .rundown-item span {
        padding: 6px 4px;
    }

    .registration-card {
        padding: 38px 32px;
        border-radius: 36px;
    }

    .bottom-art {
        aspect-ratio: 1920 / 1215;
        margin-top: -60px;
        background-image: url("../images/bottom-mobile.png");
    }
}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 374px) {
    .registration-card {
        padding-inline: 22px;
    }

    .rundown-item {
        grid-template-columns: 103px 1fr;
    }
}