:root {
    --bg-color: #080808;
    --card-bg: rgba(20, 20, 20, 0.9);
    --primary-red: #ff3c3c;
    --text-white: #ffffff;
    --text-gray: #a0a0a0;
    --border-color: #2a2a2a;
    --accent-glow: rgba(255, 60, 60, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-white);
    font-family: 'JetBrains Mono', monospace;
    line-height: 1.5;
    background-image: url('https://www.transparenttextures.com/patterns/dark-matter.png');
}

/* Layout Styles */
.main-header {
    padding: 40px 20px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    letter-spacing: 2px;
}

.brand-icon {
    width: 300px;
    margin-bottom: 5px;
}

.brand-tags {
    color: var(--primary-red);
    font-weight: bold;
    letter-spacing: 3px;
    font-size: 12px;
    margin-bottom: 20px;
}

.main-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 1;
}

.highlight {
    color: var(--primary-red);
    text-shadow: 0 0 20px rgba(255, 60, 60, 0.4);
}

.form-wrapper {
    padding: 20px;
    display: flex;
    justify-content: center;
}

.form-container {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 700px;
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
}

.form-header h2 {
    color: var(--primary-red);
    margin-bottom: 10px;
    font-size: 20px;
}

.form-header p {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 30px;
}

/* Input Cards */
.input-card {
    display: flex;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    margin-top: 20px;
    padding: 20px;
    border-radius: 4px;
}

.input-card:focus-within {
    border-color: var(--primary-red);
    box-shadow: 0 0 15px var(--accent-glow);
}

.icon-section {
    width: 40px;
    color: var(--primary-red);
    margin-right: 20px;
    opacity: 0.8;
}

.field-section {
    flex: 1;
}

.field-section label {
    display: block;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.star {
    color: var(--primary-red);
}

/* Form Elements */
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
    width: 100%;
    background: #111;
    border: 1px solid #333;
    padding: 12px;
    color: white;
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

.checkbox-group {
    /*display: grid;*/
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-gray);
    cursor: pointer;
}

.check-item input {
    accent-color: var(--primary-red);
    width: 18px;
    height: 18px;
}

.file-upload {
    border: 1px dashed #444;
    padding: 20px;
    text-align: center;
    cursor: pointer;
}

.file-upload:hover {
    border-color: var(--primary-red);
}

#file-input {
    display: none;
}

.submit-btn {
    width: 100%;
    background: var(--primary-red);
    color: black;
    border: none;
    padding: 20px;
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-top: 30px;
    cursor: pointer;
    transition: 0.3s;
}

.submit-btn:hover {
    background: white;
    transform: translateY(-2px);
}

.submit-btn:disabled {
    background: #444;
    cursor: not-allowed;
}

/* Intl-tel-input Dark Mode Overrides */
.iti {
    width: 100%;
}

.iti__country-list {
    background-color: #111 !important;
    color: white !important;
    border: 1px solid #333 !important;
}

.iti__country:hover {
    background-color: #333 !important;
}

.iti__selected-flag {
    background-color: #111 !important;
    border-right: 1px solid #333;
}

.footer {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-gray);
    font-size: 12px;
    letter-spacing: 2px;
}

/* Media Queries untuk HP kecil */
@media (max-width: 480px) {
    .main-title {
        font-size: 2.2rem;
    }

    .input-card {
        flex-direction: column;
        gap: 8px;
    }

    /* Stack icon and field */
    .icon-section {
        display: none;
    }

    /* Sembunyikan ikon di layar sangat kecil agar hemat ruang */
    .checkbox-group {
        grid-template-columns: 1fr;
    }

    .form-container {
        padding: 20px 15px;
    }
}

/* Overlay System */
.status-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none; /* Default hidden */
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    text-align: center;
}

/* Spinner Animasi */
.glitch-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--primary-red);
    border-top: 4px solid transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.result-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 40px 20px;
    border-radius: 8px;
    max-width: 500px;
    width: 100%;
}

.result-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.result-icon.success {
    color: #00ff88;
}

.result-icon.error {
    color: var(--primary-red);
}

/* Efek Glitch Sederhana untuk Teks Loading */
.glitch-text {
    font-family: 'Oswald';
    font-size: 24px;
    letter-spacing: 5px;
    color: #fff;
    position: relative;
}

/* Recap Page */
#recapSection {
    display: none;
    border: 2px solid var(--primary-red);
    background: #000;
}

.recap-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #222;
    font-size: 13px;
}

.recap-label {
    color: var(--text-gray);
}

.recap-val {
    text-align: right;
    font-weight: bold;
}

/* Style untuk Pembatas Section */
.section-title-divider {
    display: flex;
    align-items: center;
    margin: 40px 0 20px 0;
    text-align: center;
}

.section-title-divider::before,
.section-title-divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.section-title-divider span {
    padding: 0 15px;
    color: var(--primary-red);
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    letter-spacing: 3px;
    font-weight: bold;
    text-transform: uppercase;
}

#btnQRIS:hover {
    background: var(--primary-red) !important;
    color: white !important;
}

.admin-contact-wrapper {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    text-align: center;
    border-radius: 4px;
}

.admin-contact-wrapper p {
    font-size: 12px;
    color: var(--text-gray);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wa-admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #25d366; /* Warna Hijau WA */
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: bold;
    transition: 0.3s;
    border: 1px solid #25d366;
    padding: 8px 20px;
    border-radius: 2px;
}

.wa-admin-btn:hover {
    background: #25d366;
    color: #000;
}

.wa-admin-btn svg {
    fill: currentColor;
}

.btn-wa-confirm {
    display: block;
    width: 100%;
    background: #25d366;
    color: black;
    text-align: center;
    padding: 15px;
    margin-top: 15px;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 4px;
    transition: 0.3s;
}

.btn-wa-confirm:hover {
    background: white;
    transform: translateY(-2px);
}