/* ═══════════════════════════════════════════════════════════
       1. THEME VARIABLES
    ═══════════════════════════════════════════════════════════ */
:root {
    --clr-bg: #f8fafc;
    --clr-surface: #ffffff;
    --clr-card: #ffffff;
    --clr-text: #0f172a;
    --clr-text-soft: #475569;
    --clr-border: #e2e8f0;

    --clr-accent: #337dae;
    --clr-accent-light: #5ba4da;
    --gradient-primary: linear-gradient(135deg, #337dae 0%, #1e5276 100%);
    --gradient-hover: linear-gradient(135deg, #4d94c7 0%, #2a6996 100%);
    --gradient-text: linear-gradient(135deg, #337dae 0%, #1e5276 100%);

    --nav-bg: rgba(255, 255, 255, 0.85);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 25px rgba(51, 125, 174, 0.2);

    --font-hero: "Outfit", sans-serif;
    --font-body: "Inter", sans-serif;
}

[data-theme="dark"] {
    --clr-bg: #0a1118;
    --clr-surface: #101822;
    --clr-card: #16212e;
    --clr-text: #f8fafc;
    --clr-text-soft: #94a3b8;
    --clr-border: rgba(255, 255, 255, 0.1);

    --gradient-text: linear-gradient(135deg, #5ba4da 0%, #337dae 100%);
    --nav-bg: rgba(10, 17, 24, 0.85);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 25px rgba(51, 125, 174, 0.4);
}

/* ═══════════════════════════════════════════════════════════
       2. RESET & BASE
    ═══════════════════════════════════════════════════════════ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: var(--font-body);
    background-color: var(--clr-bg);
    color: var(--clr-text);
    line-height: 1.6;
    overflow-x: hidden;
    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-hero);
    font-weight: 700;
    line-height: 1.2;
    color: var(--clr-text);
}
a {
    text-decoration: none;
    color: inherit;
}
ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-family: var(--font-hero);
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-glow);
    cursor: pointer;
}
.btn-primary:hover {
    background: var(--gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 25px rgba(51, 125, 174, 0.6);
    color: white;
}

/* Custom Grid Utilities */
.row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.row > * {
    width: 100%;
    max-width: 100%;
    flex: 0 0 auto;
}
@media (min-width: 992px) {
    .col-lg-6 {
        width: calc(50% - 0.75rem);
        max-width: calc(50% - 0.75rem);
    }
    .col-lg-4 {
        width: calc(33.333% - 1rem);
        max-width: calc(33.333% - 1rem);
    }
    .col-lg-12 {
        width: 100%;
        max-width: 100%;
    }
}

/* ═══════════════════════════════════════════════════════════
       3. NAVBAR
    ═══════════════════════════════════════════════════════════ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.2rem 0;
    z-index: 1000;
    transition: all 0.4s ease;
    border-bottom: 1px solid transparent;
}
.navbar.scrolled {
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--clr-border);
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.navbar-brand {
    font-family: var(--font-hero);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.navbar-brand i {
    font-size: 1.8rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.navbar-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.nav-link {
    font-family: var(--font-hero);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--clr-text-soft);
    transition: color 0.3s;
    position: relative;
}
.nav-link:hover {
    color: var(--clr-text);
}
.theme-toggle {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    color: var(--clr-text);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.1rem;
}
.theme-toggle:hover {
    background: var(--clr-card);
    transform: rotate(15deg);
}
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--clr-text);
    font-size: 1.8rem;
    cursor: pointer;
}

/* MOBILE MENU */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--clr-bg);
    z-index: 2000;
    display: none;
    padding: 2rem;
    overflow-y: auto;
}
.mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}
.btn-close {
    background: none;
    border: none;
    color: var(--clr-text);
    font-size: 2rem;
    cursor: pointer;
}
.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
}
.mobile-nav a {
    font-family: var(--font-hero);
    font-size: 1.5rem;
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════
       4. BANNER / HEADER
    ═══════════════════════════════════════════════════════════ */
.form-banner {
    position: relative;
    padding: 160px 0 80px;
    background: url("https://images.unsplash.com/photo-1551632811-561732d1e306?q=80&w=2070&auto=format&fit=crop")
        center/cover no-repeat;
    text-align: center;
    overflow: hidden;
}
.form-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 17, 24, 0.7),
        var(--clr-bg)
    );
    z-index: 1;
}
.form-banner-content {
    position: relative;
    z-index: 2;
}

.cat-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.5rem;
    background: rgba(51, 125, 174, 0.2);
    border: 1px solid var(--clr-accent-light);
    color: var(--clr-accent-light);
    border-radius: 50px;
    font-family: var(--font-hero);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    backdrop-filter: blur(5px);
}
.form-banner h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    text-transform: uppercase;
}
.form-banner p {
    font-size: 1.1rem;
    color: var(--clr-text-soft);
    font-family: var(--font-body);
    max-width: 600px;
    margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════
       5. FORM STYLES
    ═══════════════════════════════════════════════════════════ */
.form-section {
    padding: 4rem 0 6rem;
    background: var(--clr-bg);
}
.form-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}
.form-content {
    min-width: 0;
    width: 100%;
}

.form-card {
    background: var(--clr-card);
    border: 1px solid var(--clr-border);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}
.form-card-title {
    font-size: 1.5rem;
    font-family: var(--font-hero);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--clr-border);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.form-card-title i {
    color: var(--clr-accent-light);
}

/* Inputs */
.form-group {
    margin-bottom: 1.5rem;
}
.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--clr-text-soft);
}
.form-label span {
    color: #ef4444;
} /* Red asterisk */

.form-control,
.form-select {
    width: 100%;
    background: var(--clr-bg);
    border: 1px solid var(--clr-border);
    color: var(--clr-text);
    padding: 0.9rem 1.2rem;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.3s;
}
.form-control:focus,
.form-select:focus {
    border-color: var(--clr-accent-light);
    outline: none;
    box-shadow: 0 0 0 4px rgba(51, 125, 174, 0.15);
}
.form-control::placeholder {
    color: rgba(148, 163, 184, 0.5);
}

/* Checkbox Consent */
.checkbox-wrapper {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    background: var(--clr-bg);
    padding: 1.2rem;
    border-radius: 10px;
    border: 1px solid var(--clr-border);
}
.checkbox-wrapper input[type="checkbox"] {
    margin-top: 0.2rem;
    width: 1.2rem;
    height: 1.2rem;
    accent-color: var(--clr-accent-light);
    cursor: pointer;
}
.checkbox-wrapper label {
    font-size: 0.9rem;
    color: var(--clr-text-soft);
    cursor: pointer;
    line-height: 1.5;
}
.checkbox-wrapper label a {
    color: var(--clr-accent-light);
    text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════
       6. SIDEBAR SUMMARY
    ═══════════════════════════════════════════════════════════ */
.sidebar {
    position: sticky;
    top: 100px;
}
.summary-card {
    background: var(--clr-card);
    border: 1px solid var(--clr-border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}
.summary-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}

.summary-title {
    font-family: var(--font-hero);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed var(--clr-border);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--clr-text-soft);
}
.summary-row.bold {
    color: var(--clr-text);
    font-weight: 600;
}
.summary-row.highlight {
    color: var(--clr-accent-light);
    font-weight: 700;
    font-family: var(--font-hero);
    font-size: 1.05rem;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--clr-border);
}
.summary-total span {
    font-size: 1.1rem;
    color: var(--clr-text-soft);
}
.summary-total strong {
    font-family: var(--font-hero);
    font-size: 1.8rem;
    color: var(--clr-text);
}

/* ─── FOOTER ─── */
footer {
    background: var(--clr-surface);
    border-top: 1px solid var(--clr-border);
    padding: 4rem 0 2rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-logo {
    width: 180px;
    max-width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    display: block;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}
.footer-logo:hover {
    transform: translateY(-3px);
}
.footer-brand h3 {
    font-family: var(--font-hero);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.footer-brand i {
    color: var(--clr-accent-light);
}
.footer-brand p {
    color: var(--clr-text-soft);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}
.social-links {
    display: flex;
    gap: 1rem;
}
.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--clr-card);
    border: 1px solid var(--clr-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-text);
    transition: all 0.3s;
}
.social-links a:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}
.footer-links h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}
.footer-links ul li {
    margin-bottom: 0.8rem;
}
.footer-links a {
    color: var(--clr-text-soft);
    font-size: 0.95rem;
    transition: color 0.3s;
}
.footer-links a:hover {
    color: var(--clr-accent-light);
}
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--clr-border);
    color: var(--clr-text-soft);
    font-size: 0.9rem;
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ═══════════════════════════════════════════════════════════
       7. RESPONSIVE
    ═══════════════════════════════════════════════════════════ */
@media (max-width: 992px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .sidebar {
        position: relative;
        top: 0;
        order: 2;
        margin-top: 1rem;
    } /* Pindahkan summary ke bawah di HP */
    .form-banner h1 {
        font-size: 2.8rem;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 768px) {
    .navbar-nav {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
    .form-card {
        padding: 1.5rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
