/* =========================================
   GLOBAL STYLES & LAYOUT DASAR
   ========================================= */
* { 
    box-sizing: border-box; 
    font-family: 'Outfit', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    margin: 0; 
    padding: 0; 
}

html { 
    scroll-behavior: smooth; 
    width: 100%;
    height: 100%;
}

body { 
    background: linear-gradient(135deg, #291b11 0%, #120c08 100%);
    background-attachment: fixed;
    padding-top: 90px; /* Jarak aman dari navbar fixed */
    padding-bottom: 40px;
    color: #ffffff; 
    line-height: 1.6;
    width: 100%;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }

/* =========================================
   LAYOUT UTAMA HALAMAN PEMESANAN BURUNG
   ========================================= */
.main-wrapper { 
    width: 100%;
    max-width: 1100px; 
    margin: 40px auto; 
    padding: 0 20px; 
    display: grid; 
    grid-template-columns: 1.5fr 1fr; 
    gap: 30px; 
    align-items: start; 
}

.left-column { 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
}

.seat-section, .registration-section { 
    background-color: rgba(255, 255, 255, 0.95); 
    padding: 30px; 
    border-radius: 16px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.2); 
    color: #333; 
}

.booking-disabled .form-group:nth-of-type(-n+3) {
    display: none;
}

.booking-disabled .contact-booking {
    display: block;
    padding: 18px 14px;
    border: 1px solid rgba(217, 119, 6, 0.3);
    border-radius: 10px;
    background: #fff7ed;
    color: #4b5563;
    text-align: center;
}

.contact-booking strong {
    display: block;
    margin-bottom: 6px;
    color: #9a3412;
}

.contact-booking p {
    margin: 0 0 14px;
    font-size: 13px;
}

.contact-booking a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 190px;
    padding: 10px 16px;
    border-radius: 8px;
    background: #16a34a;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.contact-booking a:hover { background: #15803d; }

.booking-disabled .contact-booking a {
    display: inline-flex !important;
    background: #16a34a !important;
    color: #fff !important;
    opacity: 1 !important;
    visibility: visible !important;
}

h2 { 
    margin-top: 0; 
    color: #333; 
    border-bottom: 2px solid #eee; 
    padding-bottom: 15px; 
    margin-bottom: 20px; 
}

.back-link { 
    display: inline-block; 
    margin-bottom: 20px; 
    padding: 10px 18px; 
    background-color: #d97706; 
    color: white; 
    border-radius: 10px; 
    text-decoration: none; 
    font-weight: 600; 
    transition: 0.3s; 
}

.back-link:hover { 
    background-color: #b45309; 
}

/* =========================================
   PILIH KELAS / SESI LOMBA
   ========================================= */
.select-kelas-box { 
    background: #f3f4f6; 
    padding: 15px; 
    border-radius: 10px; 
    margin-bottom: 20px; 
    border: 1px solid #e5e7eb; 
}

.select-kelas-box label { 
    display: block; 
    font-size: 13px; 
    font-weight: bold; 
    margin-bottom: 5px; 
    color: #4b5563; 
}

.select-kelas-box select { 
    width: 100%; 
    padding: 10px; 
    border-radius: 6px; 
    border: 1px solid #d1d5db; 
    font-size: 15px; 
    font-weight: 600; 
    color: #111827; 
    outline: none; 
}

/* =========================================
   MAP & STATUS GANTANGAN (SEAT)
   ========================================= */
.legend { 
    display: flex; 
    justify-content: center; 
    gap: 15px; 
    margin-bottom: 30px; 
    flex-wrap: wrap; 
}

.legend-item { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    font-size: 14px; 
    color: #555; 
    font-weight: 500; 
}

.box { 
    width: 20px; 
    height: 20px; 
    border-radius: 4px; 
}
.box.available { background-color: #4CAF50; }
.box.selected { background-color: #808080; }
.box.dp { background-color: #3b82f6; }
.box.occupied { background-color: #F44336; }

.seat-map { 
    display: grid; 
    grid-template-columns: repeat(4, 45px); 
    gap: 15px; 
    justify-content: center; 
    margin: 30px auto; 
}

.seat { 
    width: 45px; 
    height: 45px; 
    border-radius: 6px; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    font-size: 14px; 
    font-weight: bold; 
    color: white; 
    cursor: pointer; 
    transition: all 0.2s ease; 
    user-select: none; 
}

.seat:hover:not(.occupied):not(.occupied-dp) { 
    transform: scale(1.1); 
    opacity: 0.9; 
}

.seat.available { background-color: #4CAF50; }
.seat.occupied { background-color: #F44336; cursor: not-allowed; }
.seat.occupied-dp { background-color: #3b82f6; cursor: not-allowed; }

.seat.selected { 
    background-color: #808080; 
    border: 2px solid #555; 
}

.mode-dp .seat.selected { 
    background-color: #3b82f6; 
    border: 2px solid #1e3a8a; 
}

/* =========================================
   KARTU REGISTRASI & RIWAYAT
   ========================================= */
.reg-card { 
    background: #f9fafb; 
    border: 1px solid #e5e7eb; 
    padding: 15px 20px; 
    border-radius: 10px; 
    margin-bottom: 12px; 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start; 
}

.reg-info h4 { 
    font-size: 16px; 
    color: #111827; 
    margin-bottom: 6px; 
    text-transform: uppercase; 
}

.reg-info p { 
    font-size: 13px; 
    color: #6b7280; 
    margin: 4px 0; 
}

.reg-seat { 
    text-align: right; 
}

.reg-seat span { 
    display: block; 
    font-size: 12px; 
    color: #6b7280; 
}

.reg-seat strong { 
    font-size: 20px; 
    color: #d97706; 
}

.btn-edit, .btn-hapus { 
    padding: 6px 10px; 
    border-radius: 5px; 
    border: none; 
    cursor: pointer; 
    font-size: 12px; 
    font-weight: 600; 
}

.btn-edit { background: #d97706; color: white; }
.btn-edit:hover { background: #b45309; }

.btn-hapus { background: #ef4444; color: white; }
.btn-hapus:hover { background: #dc2626; }

/* =========================================
   FORM BOOKING & SIDEBAR KANAN
   ========================================= */
.side-booking { 
    position: sticky; 
    top: 20px; 
}

.floating-card { 
    background: white; 
    padding: 30px 25px; 
    border: 1px solid #e5e7eb; 
    border-radius: 16px; 
    box-shadow: 0 15px 30px rgba(0,0,0,0.08); 
    color: #333; 
}

.card-price { 
    margin-bottom: 25px; 
    padding-bottom: 15px; 
    border-bottom: 1px dashed #ddd; 
}

.card-price .amount { 
    font-size: 2rem; 
    font-weight: 800; 
    color: #111827; 
    display: block; 
}

.card-price .unit { 
    color: #6b7280; 
    font-size: 0.9rem; 
}

.form-group { 
    margin-bottom: 15px; 
}

.form-group label { 
    display: block; 
    font-size: 12px; 
    font-weight: 600; 
    text-transform: uppercase; 
    margin-bottom: 8px; 
    color: #374151; 
}

.form-group input[type="text"], 
.form-group input[type="number"], 
.form-group select { 
    width: 100%; 
    padding: 12px 15px; 
    border: 1px solid #d1d5db; 
    border-radius: 8px; 
    font-family: inherit; 
    font-size: 14px; 
    transition: border-color 0.3s; 
    background-color: white; 
    color: #333; 
}

.form-group input:focus, .form-group select:focus { 
    outline: none; 
    border-color: #d97706; 
}

.form-group input[readonly] { 
    background-color: #f3f4f6; 
    cursor: not-allowed; 
    color: #6b7280; 
    font-weight: 600; 
}

.btn-primary { 
    background: #d97706; 
    color: white; 
    border: none; 
    border-radius: 8px; 
    cursor: pointer; 
    font-size: 16px; 
    font-weight: 600; 
    width: 100%; 
    padding: 15px; 
    margin-top: 10px; 
    transition: background 0.3s; 
}

.btn-primary:hover { 
    background: #b45309; 
}

/* =========================================
   NAVBAR STYLES (RESPONSIF & SIMETRIS)
   ========================================= */
.navbar {
    background: rgba(41, 27, 17, 0.85);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 0.8rem 0; 
    position: fixed;
    top: 0; 
    width: 100%; 
    z-index: 1000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-wrapper { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    width: 100%;
}

.btn-kategori, 
.btn-riwayat {
    font-weight: 600; 
    font-size: 0.95rem; 
    color: #ffffff; 
    background: transparent;
    border: none;
    cursor: pointer; 
    transition: color 0.3s ease;
    padding: 0.5rem;
}

.btn-kategori:hover, 
.btn-riwayat:hover { 
    color: #f59e0b; 
}

.logo h1 { 
    color: #ffffff; 
    font-size: 1.35rem; 
    font-weight: 800; 
    letter-spacing: 0.5px;
    margin: 0;
    text-align: center;
}

/* =========================================
   HERO & KONTEN UTAMA (PAKET.PHP)
   ========================================= */
.hero-section {
    height: 100vh; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    background: transparent; 
    overflow: hidden;
}
.hero-container { text-align: center; z-index: 2; padding: 0 1rem; }

.hero-badge {
    display: inline-block; background: rgba(245, 158, 11, 0.15); color: #fcd34d;
    padding: 8px 18px; border-radius: 50px; font-size: 0.95rem; font-weight: 600;
    margin-bottom: 1.2rem; backdrop-filter: blur(6px); border: 1px solid rgba(245, 158, 11, 0.3);
    opacity: 0; transform: translateY(20px);
    animation: munculMulus 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.hero-title {
    font-size: 6rem; font-weight: 800;
    color: #ffffff; text-transform: uppercase; letter-spacing: 3px;
    text-shadow: 0 15px 35px rgba(0, 0, 0, 0.4); margin-bottom: 1.2rem;
    opacity: 0; transform: translateY(30px);
    animation: munculMulus 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-delay: 0.15s;
}
.hero-desc {
    color: #d1d5db; font-size: 1.15rem; max-width: 600px; margin: 0 auto 2rem auto;
    opacity: 0; transform: translateY(30px); font-weight: 400;
    animation: munculMulus 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-delay: 0.3s;
}
.hero-btn {
    display: inline-flex; align-items: center; gap: 0.5rem; background: #d97706;
    color: #ffffff; padding: 14px 32px; border-radius: 50px; font-weight: 700; font-size: 1rem;
    box-shadow: 0 10px 25px rgba(217, 119, 6, 0.4); transition: all 0.3s ease;
    opacity: 0; transform: translateY(30px);
    animation: munculMulus 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-delay: 0.45s;
}
.hero-btn:hover { background: #b45309; transform: translateY(-3px) scale(1.02); box-shadow: 0 15px 30px rgba(217, 119, 6, 0.6); }

@keyframes munculMulus { to { opacity: 1; transform: translateY(0); } }

/* PENCARIAN & PAKET GRID */
#bagian-lomba { padding-top: 50px; min-height: 100vh; }

.search-section {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    padding: 2.5rem 2rem; border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); margin-bottom: 2rem; 
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.search-section h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; color: #ffffff; border: none; padding: 0; }
.search-section p { font-size: 0.95rem; color: #d1d5db; margin-bottom: 1.5rem; }

.search-box input {
    width: 100%; padding: 16px 20px; background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px; font-size: 16px; outline: none; transition: 0.3s; font-weight: 600; color: #1f2937;
}
.search-box input:focus { border-color: #f59e0b; box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2); background: #ffffff; }

.search-result {
    background: rgba(0, 0, 0, 0.4); border: 2px dashed rgba(255, 255, 255, 0.15); border-radius: 12px;
    padding: 1.5rem; display: none; font-size: 16px; color: #ffffff; margin-top: 15px;
}

.paket { padding: 1.5rem 0 5rem 0; }
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-title { font-size: 2.2rem; font-weight: 800; margin-bottom: 0.5rem; color: #ffffff; letter-spacing: 0.5px; }
.paket-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; max-width: 1050px; margin: 0 auto; }

.paket-card {
    background: #ffffff;
    border-radius: 1rem; overflow: hidden; color: #1f2937;
    box-shadow: 0 15px 30px rgba(0,0,0,0.35); transition: all 0.3s ease; border: 1px solid rgba(255, 255, 255, 0.2);
}
.paket-card:hover { box-shadow: 0 20px 40px rgba(0,0,0,0.5); transform: translateY(-0.5rem); }
.paket-image { position: relative; height: 12rem; overflow: hidden; }
.paket-image img { width: 100%; height: 100%; object-fit: cover; transition: 0.3s; }
.paket-card:hover .paket-image img { transform: scale(1.1); }
.paket-price-tag {
    position: absolute; bottom: 0; right: 0; background: #ef4444;
    color: white; padding: 0.4rem 0.9rem; font-weight: 700; border-radius: 0.5rem 0 0 0; font-size: 0.9rem;
}
.paket-content { padding: 1.3rem; }
.paket-content h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.75rem; color: #1f2937; }
.paket-link { color: #d97706; font-weight: 600; font-size: 0.95rem; display: inline-flex; align-items: center; gap: 0.5rem; }

/* =========================================
   RESPONSIVE MEDIA QUERY
   ========================================= */
@media (max-width: 992px) { 
    .paket-grid { grid-template-columns: repeat(2, 1fr); } 
}

@media (max-width: 900px) { 
    .main-wrapper { grid-template-columns: 1fr; } 
    .side-booking { position: relative; top: 0; } 
}

@media (max-width: 768px) { 
    .hero-title { font-size: 3.5rem; } 
    .hero-desc { font-size: 1rem; } 
    .paket-grid { grid-template-columns: 1fr; } 
}