/* Existing styles + Updates */
:root {
    --primary-color: #0056b3;
    --secondary-color: #00a8cc;
    --text-color: #333;
    --bg-color: #f4f7f6;
    --white: #ffffff;
}

/* ... (Keep basics) */
body {
    font-family: 'Segoe UI', sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

/* REUSABLE UTILS */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    display: inline-block;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 5px;
}

.hidden {
    display: none;
}

header {
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 999;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo img {
    height: 40px;
}

.nav-links a {
    margin-left: 15px;
    font-weight: 600;
}

/* RESPONSIVE HERO */
.hero {
    /* Dynamic BG handled in Index via inline style or separate CSS override using settings */
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 80px 20px;
    background-color: var(--primary-color);
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* PRICING */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.price-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #eee;
}

.price-card h3 {
    color: var(--primary-color);
}

.price {
    font-size: 1.5rem;
    font-weight: bold;
    display: block;
    margin: 10px 0;
}

/* FORM LAYOUT */
.form-container {
    background: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 800px;
    margin: 20px auto;
}

.participant-card {
    background: #fafafa;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    position: relative;
}

.participant-card h4 {
    margin-top: 0;
    color: var(--primary-color);
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

/* FORM GRID SYSTEM */
.row-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* MODALS */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

/* HAMBURGER MENU */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.btn-daftar {
    /* Daftar button styling */
    white-space: nowrap;
}

/* MOBILE RESPONSIVE QUERIES */
@media (max-width: 768px) {
    .navbar {
        position: relative;
        padding: 10px 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        flex-shrink: 0;
    }

    .hamburger {
        display: flex;
        margin-left: auto;
        margin-right: 15px;
    }

    .btn-daftar {
        padding: 8px 12px;
        font-size: 0.85rem;
        flex-shrink: 0;
        white-space: nowrap;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(180deg, var(--primary-color) 0%, #004494 100%);
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        transition: left 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        box-shadow: 3px 0 20px rgba(0, 0, 0, 0.3);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 18px 25px;
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 1.05rem;
        transition: all 0.2s;
        color: white;
        font-weight: 500;
        text-decoration: none;
    }

    .nav-links a:hover,
    .nav-links a:active {
        background: rgba(255, 255, 255, 0.15);
        padding-left: 30px;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .row-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* Stack inputs on mobile */
    .form-container {
        padding: 15px;
    }

    .price-card {
        margin-bottom: 10px;
    }

    /* Overlay when menu is open */
    .nav-links.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: -1;
    }
}

@media (min-width: 769px) {
    .nav-links {
        display: flex;
        align-items: center;
    }

    .navbar {
        padding: 15px 40px;
    }
}

/* BIB Suggestions */
.bib-suggestions-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.bib-suggestion-chip {
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: 16px;
    padding: 6px 12px;
    font-size: 0.85rem;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.bib-suggestion-chip:hover {
    background-color: #2d7a3e;
    color: white;
    border-color: #2d7a3e;
}