body {
    padding: 0;
    margin: 0;
    background-color: #87CEFA;
    box-sizing: border-box; 
    font-family: "Plus Jakarta Sans";
}

*, *::before, *::after {
    box-sizing: inherit;
}
::-webkit-scrollbar {
	display: none; /* Hide scrollbar for Chrome, Safari and Opera */
}

.form-card {
    padding: 5rem;
    position: relative;
    background-color: #87CEFA;
    background-image: url(/IT-BOOTCAMP/assets/img/daftar/pattern.svg);
}
.card-wrapper {
    border-radius: 45px;
    background: linear-gradient(180deg, #4A320E, #E29738);
}


/*==================== NAVBAR ====================*/
nav {
  display: flex;
  background: linear-gradient(90deg, rgba(255, 248, 244, 1) 70%, rgba(141, 208, 249, 1) 100%);
  justify-content: space-between; 
  align-items: center;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 96px;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

nav .logo {
  display: flex;
  align-items: center;
}

nav .logo img {
  height: 60px; 
  width: auto;
  margin-right: 20px;
}
.gradient-text {
  background: linear-gradient(180deg, rgba(74, 50, 14, 1) 0%, rgba(226, 151, 56, 1) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; /* khusus Chrome/Safari */
  background-clip: text; /* untuk browser yang support */
  color: transparent; /* fallback */
}
nav .logo span {
  font-size: 32px;
  font-weight: 700;
  word-wrap: break-word;
}

nav ul {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

nav ul li a {
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 500;
  background: linear-gradient(180deg, #58090F, #7C0211);
  background-clip: text;
  color: transparent;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 8px 0;
  transition: background 300ms, border-bottom 300ms;
  border-bottom: 1px solid rgba(221, 37, 37, 0);
}

nav ul li a:hover {
  background: linear-gradient(180deg, #000000b0, #ff0000);
  background-clip: text;
  color: transparent;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  border-bottom: 1px solid #ff0000b0;
}

.menu-icon {
    font-size: 2.5rem;
    display: none; 
    cursor: pointer;
    background: linear-gradient(180deg, #58090F, #7C0211);
    background-clip: text;
    color: transparent;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 8px; 
    background: #6E5B3E;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
}

.back-btn img.icon-daftar {
    width: 20px;
    height: 20px;
}

nav ul li a.back-btn:hover {
    background: #E39738;
    transform: scale(1.05);
    border-bottom: none;
}

/* =============== Hero section ================ */
.hero-section {
    position: relative;
    background: url("../img/daftar/hero/bg.svg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 70px 20px 0;
    color: white;
}

.hero-section .hero-title {
    position: relative;
    z-index: 1;
    font-family: "Namecat", sans-serif;
    letter-spacing: -3px;
    margin-bottom: 5rem;
}
.hero-title h1 {
    font-weight: 600;
    font-size: 9.375em; 
    margin: 0;
    color: #4A320E;
    filter: drop-shadow(15px 15px 1px rgba(44, 44, 44, 0.3));
}
.hero-title p {
    font-size: 3.125em; 
    margin: 0;
    color: #807056;
    filter: drop-shadow(15px 10px 1px rgba(44, 44, 44, 0.3));
}
.hero-section .live-hero {
    width: 100%;
    height: 64px;
    background-color: #1c1e32;
    display: flex;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
    position: absolute;
    left: 0;
    bottom: 0;
}
@keyframes tickerMove {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}
.live-hero .live {
    display: flex;
    align-items: center;
    padding: 0 70px;
    flex-shrink: 0;
    animation: tickerMove 3s linear infinite;
}

.live-hero img {
    width: 40%;
    max-width: 150px; 
}
.live-hero span {
    color: white;
    font-weight: 600;
    font-style: italic;
    font-size: 1rem;
}

/* =============== section-ke2 ================ */
.section-ke2 {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 150vh;
    color: white;
    text-align: center;
    justify-content: center;
    align-items: center;
    font-family: "Oxanium";
    padding: 50px 20px; /* Menambah padding */
}
.section-ke2 h1 {
    font-size: 4.6875rem; /* 75px */
    font-weight: 500;
    letter-spacing: -3px;
    margin-top: 1rem;
    filter: drop-shadow(6px 5px 1px rgba(44, 44, 44, 0.3));
}
.form {
    --bg-light: #efefef;
    --bg-dark: #707070;
    --clr: #ffffff;
    --clr-alpha: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
    max-width: 1024px;
    z-index: 1;
}

.form .input-span {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form input[type="text"],
.form input[type="email"],
.form input[type="number"] {
    border-radius: 2rem;
    padding: 1.5rem 0.75rem;
    width: 100%; /* Ubah ke 100% agar responsif */
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--clr-alpha);
    outline: 2px solid var(--bg-dark);
    font-size: 1.5rem;
}

.form input[type="text"]:focus,
.form input[type="email"]:focus,
.form input[type="number"]:focus {
    outline: 2px solid var(--clr);
}

.label {
    align-self: flex-start;
    color: var(--clr);
    font-weight: 400;
    font-size: 1.5em;
}

/* =============== section-ke3 ================ */
.section-ke3 {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 250vh;
    color: white;
    text-align: center;
    justify-content: center;
    align-items: center;
    font-family: 'Oxanium', sans-serif;
    padding: 50px 20px; /* Menambah padding */
}
.section-ke3 h1 {
    font-size: 4.6875rem; /* 75px */
    font-weight: 600;
    max-width: 800px;
    letter-spacing: -1px;
    margin-bottom: 60px;
    filter: drop-shadow(6px 5px 1px rgba(44, 44, 44, 0.3));
}
.section-ke3 .payment-info{
    margin-top: 50px;
    font-weight: 400;
    font-size: 1.6em;
    text-align: center;
    align-items: normal;
}

.section-ke3 .radio-buttons {
    display: flex;
    gap: 70px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 20px;
}

.radio-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 500px;
    max-width: 100%; /* Tambahkan max-width agar tidak melebihi kontainer */
    padding: 15px;
    border: 2px solid #4a3112;
    border-radius: 60px;
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s;
    user-select: none;
    background: #4a3112;
    box-sizing: border-box; 
    box-shadow: 4px 4px 20px rgba(255, 255, 255, 0.9);
}

.radio-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 10px;
}

.radio-card span {
    font-weight: 600;
    max-width: 400px;
    font-size: 3rem;
    font-family: "Oxanium";
    text-align: center;
    color: #ffffff;
}

/* Sembunyikan input radio asli */
.radio-card input[type="radio"] {
    display: none;
}

.radio-card input[type="radio"]:checked + img + span {
    color: #007BFF;
    font-weight: 700;
}

.radio-card:hover {
    border-color: #007BFF;
    box-shadow: 0 0 8px rgba(0,123,255,0.5);
}

.form-2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    width: 100%;
    max-width: 800px;
    margin-top: 3rem;
    z-index: 1;
}

.input-span-2 {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.label-2 {
    color: white;
    font-size: 2rem;
    text-align: center;
    font-weight: 400;
}

/* Sembunyikan input file asli */
.form-2 input[type="file"] {
    display: none;
}
/* Tombol upload custom */
.upload-wrapper {
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.custom-file-upload {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    padding: 1.2rem 0.5rem;
    width: 100%; /* Ubah agar fleksibel */
    min-width: 280px; /* Beri min-width untuk layar kecil */
    max-width: 500px;
    border-radius: 2rem;
    background-color: white;
    outline: 2px solid #707070;
    color: black;
    font-size: 2rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-file-upload i {
    font-size: 2.5rem;
}

.custom-file-upload:hover {
    outline: 2px solid white;
    background-color: #707070;
    color: #efefef;
}
.upload-success {
    margin-left: 1rem;
    font-size: 1.2rem;
    color: green;
    font-weight: 600;
}

.change-file-btn {
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    border-radius: 1.5rem;
    border: none;
    background-color: #707070;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.change-file-btn:hover {
    background-color: #505050;
}

/* =============== section-ke4 ================ */
.section-ke4 {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 220vh;
    padding: 50px 20px;
    color: white;
    text-align: center;
    justify-content: center;
    align-items: center;
    font-family: "Oxanium";
}
.section-ke4 h1 {
    font-size: 4.6875rem; /* 75px */
    font-weight: 500;
    letter-spacing: -3px;
    margin-top: 1rem;
    filter: drop-shadow(6px 5px 1px rgba(44, 44, 44, 0.3));
}
.form-2 {
    --bg-light: #efefef;
    --bg-dark: #707070;
    --clr: #ffffff;
    --clr-alpha: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
    max-width: 1000px;
    z-index: 1;
}

.form-2 .input-span {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-2 input[type="text"],
.form-2 input[type="number"] {
    border-radius: 2rem;
    padding: 1.5rem 0.75rem;
    width: 100%;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--clr-alpha);
    outline: 2px solid var(--bg-dark);
    font-size: 1.5rem;
}

.form-2 input[type="text"]:focus,
.form-2 input[type="number"]:focus {
    outline: 2px solid var(--clr);
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0 9rem;
    width: 100%;
    flex-wrap: wrap; /* Tambahkan agar tombol bisa wrap */
}
/* Tombol Kirim*/
.form-2 .submit {
    width: auto;
    padding: 1rem 0.75rem;
    border: none;
    border-radius: 3rem;
    font-size: 1.5rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: #4a3112;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}

.form-2 .submit:hover {
    outline: 2px solid #007BFF;
}

.btn-kembali{
    width: auto;
    padding: 1rem 0.75rem;
    border: none;
    border-radius: 3rem;
    background-color: #ffffff;
    color: #000000;
    font-size: 1.5rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

.btn-kembali:hover {
    outline: 2px solid #007BFF;
}
.button-group .submit,
.button-group .btn-kembali {
    padding: 1rem 5rem;
    min-width: 140px;
}


/* =============== section Footer ================ */
footer {
    background: linear-gradient(180deg, #4A320E, #E29738);
    color: white;
    padding: 20px 0; /* Tambah padding atas bawah */
}

.footer-container {
    display: flex;
    position: relative;
    justify-content: space-around;
    flex-wrap: wrap;
    flex-direction: row;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* Tambah padding horizontal */
}

.footer-text{
    display: flex;
    position: relative;
    flex-wrap: wrap;
    gap: 140px;
    padding: 30px 20px 0 250px;
}

.footer-section h4 {
    font-size: 1.3em;
    margin-bottom: 10px;
    font-family: "Figtree";
}

.footer-section ul {
    padding: 0; /* Hapus default padding UL */
}

.footer-section ul li {
    list-style: none;
    margin: 15px 0;
}

.footer-section ul li a {
    color: white;
    font-family: "Figtree";
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1.0em;
}

.footer-section ul li a:hover {
    color: #b3b3b3;
}

.logo-section {
    text-align: center;
    max-width: 170px;
    margin: 20px 0 0 40px;
}

.logo-footer {
    width: 170px;
    height: 170px;
    justify-content: center;
}

.logo-section h3 {
    font-size: 1.8em;
    letter-spacing: 1px;
    font-family: "Figtree";
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 20px;
}

.footer-line {
    width: 100%;
    height: 5px;
    background-color: rgb(255, 255, 255);
    margin-bottom: 10px;
}

.footer-bottom p {
    margin: 5px 0;
    color: white;
    font-size: 18px;
    text-align: center;
    font-family: "Figtree";
}

.footer-logo-container {
    display: flex;
    align-items: center;
}

.footer-logo {
    max-width: 50px;
    margin: 10px 10px 10px 0;
}

.footer-logo-container p {
    margin: 0;
    color: white;
    font-size: 18px;
    font-family: "Figtree";
}

.social-icons {
    display: flex;
    justify-content: center;
    margin-top: 5px;
}

.social-icons a {
    text-decoration: none;
    color: white;
    margin: 0 5px;
    font-size: 20px;
    transition: color 0.3s ease;
    background-color: #ffffff0c;
    border-radius: 50%;
    line-height: 2px;
    padding: 5px;
    display: flex;
    align-items: center;
    font-family: "Figtree";
}

.social-icons a i {
    justify-content: center;
}

.social-icons a:hover {
    color: #ffffffc2;
    background-color: #000000b0;
}

/* =============== UX: Loading & Modal Pop Up =============== */

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none; /* Disembunyikan secara default */
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 8px solid rgba(255, 255, 255, 0.3);
    border-top: 8px solid #E39738; /* Warna emas dari tema */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none; /* Disembunyikan secara default */
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
}

.modal-box {
    background: linear-gradient(180deg, #4A320E, #9e6927);
    color: white;
    padding: 30px 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 90%;
    width: 450px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    border: 3px solid #E39738;
}

.modal-overlay.show .modal-box {
    transform: scale(1);
}

#modal-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    line-height: 1;
}

#modal-title {
    margin-top: 0;
    margin-bottom: 10px;
    font-family: "Oxanium", sans-serif;
    font-size: 2rem;
}

#modal-message {
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 25px;
    opacity: 0.9;
}

.modal-button {
    background-color: #fff;
    color: #4A320E;
    border: none;
    padding: 12px 40px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.modal-button:hover {
    transform: scale(1.05);
}


/* =============== Responsive Media Queries ================ */

/* Untuk Tablet (Landscape) & Desktop Kecil */
@media (max-width: 1024px) {
    nav {
        padding: 1rem; /* Kurangi padding di layar kecil */
    }

    /* Tampilkan ikon hamburger */
    .menu-icon {
        display: block;
    }

    /* Ubah ul menjadi menu dropdown vertikal */
    nav ul {
        position: absolute;
        top: 96px; /* Letakkan persis di bawah navbar */
        left: 0;
        width: 100%;
        
        flex-direction: column; /* Susun item secara vertikal */
        align-items: center;
        background: rgba(255, 248, 244, 0.95); /* Beri background agar tidak transparan */
        backdrop-filter: blur(5px); /* Efek glassmorphism (opsional) */
        padding: 2rem 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);

        /* Sembunyikan menu di luar layar secara default */
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none; /* Menu tidak bisa di-klik saat tersembunyi */
    }

    /* Kelas .active untuk menampilkan menu */
    nav ul.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto; /* Aktifkan kembali interaksi */
    }
    .hero-title h1 {
        font-size: 7em; /* 112px */
    }
    .hero-title p {
        font-size: 2.5em; /* 40px */
    }

    .section-ke2 h1, .section-ke3 h1, .section-ke4 h1 {
        font-size: 3.5rem; /* 56px */
    }

     /* =============== section Footer ================ */
    .logo-section {
        margin: 20px 0;
    }
    .footer-text{
        display: flex;
        position: relative;
        gap: 70px;
        padding: 20px 0 0 20px;
    }
    .section-3{
        margin-top: -40px; 
    }
    .footer-bottom p{
        font-size: 1rem;
    }
}


/* Untuk Tablet (Portrait) */
@media (max-width: 768px) {
    .hero-title h1 {
        font-size: 5em; /* 80px */
        filter: drop-shadow(8px 8px 1px rgba(44, 44, 44, 0.3));
    }
    .hero-title p {
        font-size: 2em; /* 32px */
        filter: drop-shadow(8px 6px 1px rgba(44, 44, 44, 0.3));
    }

    /* Ubah tinggi section menjadi auto agar konten tidak terpotong */
    .section-ke2, .section-ke3, .section-ke4 {
        height: auto;
        min-height: 100vh; /* Gunakan min-height sebagai pengganti */
        padding: 80px 20px;
    }

    .section-ke2 h1, .section-ke3 h1, .section-ke4 h1 {
        font-size: 3rem; /* 48px */
    }
    .section-ke3 .payment-info .p-1 {
      font-size: 1.2rem;
    }
    .section-ke3 h1 {
        max-width: 100%;
    }

    .section-ke3 .radio-buttons {
        gap: 20px;
    }

    .radio-card {
        width: 100%; /* Lebar penuh agar tumpuk rapi */
    }

    .custom-file-upload {
        font-size: 1.5rem;
    }

    .custom-file-upload i {
        font-size: 2rem;
    }

    .button-group .submit, .button-group .btn-kembali {
        padding: 1rem 2.5rem; /* Kurangi padding tombol */
        width: 100%;
    }
    
    .button-group {
        flex-direction: column; /* Tombol jadi vertikal */
    }

     /* =============== section Footer ================ */
    .footer-text{
      display: flex;
      position: relative;
      gap: 70px;
      padding: 20px 0 0 20px;
    }

    .logo-section{
      margin: 0;
    }
    .section-3{
      margin-top: 0px; 
    }
    .footer-bottom p{
      font-size: 1rem;
    }
}


/* Untuk Mobile */
@media (max-width: 480px) {
    nav .logo span {
        font-size: 24px; /* Perkecil font logo di mobile */
    }
    nav .logo img {
        height: 50px; /* Perkecil ukuran logo */
    }
    .form-card {
        padding: 2rem 1rem;
    }
    .card-wrapper {
        border-radius: 25px;
    }

    .hero-title h1 {
        font-size: 3.5em; /* 56px */
        letter-spacing: -2px;
    }
    .hero-title p {
        font-size: 1.5em; /* 24px */
    }

    .section-ke2 h1, .section-ke3 h1, .section-ke4 h1 {
        font-size: 2.5rem; /* 40px */
        letter-spacing: -1px;
    }

    .form input[type="text"],
    .form input[type="email"],
    .form input[type="number"],
    .form-2 input[type="text"],
    .form-2 input[type="number"] {
        font-size: 1.2rem;
        padding: 1rem 0.75rem;
    }
    
    .label, .label-2 {
        font-size: 1.2em;
    }
    
    .radio-card span {
        font-size: 2rem;
    }

    .custom-file-upload {
        font-size: 1.2rem;
        gap: 0.5rem;
    }
     .custom-file-upload i {
        font-size: 1.5rem;
    }
    
    .button-group .submit, .button-group .btn-kembali {
        font-size: 1.2rem;
        padding: 1rem;
    }

    .live-hero .live {
        padding: 0 20px;
    }
}