:root {
    --primary-color: #f39c12;
    --dark-bg: #2c3e50;
    --steel-gray: #34495e;
    --light-gray: #ecf0f1;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--light-gray);
    background-image: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)),
        url('https://images.unsplash.com/photo-1581092160562-40aa08e78837?auto=format&fit=crop&q=80&w=1470');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    background: var(--white);
    width: 100%;
    max-width: 500px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3);
    border-top: 5px solid var(--primary-color);
}

.form-header {
    background: var(--dark-bg);
    color: var(--white);
    padding: 20px;
    text-align: center;
}

.form-header h2 {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.form-header p {
    font-size: 0.9rem;
    color: #bdc3c7;
}

form {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--dark-bg);
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    border: none;
    border-radius: 4px;
    color: var(--white);
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.3s ease;
    margin-top: 10px;
}

.btn-submit:hover {
    background: #e67e22;
}

.btn-back {
    display: block;
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 2px solid #bdc3c7;
    border-radius: 4px;
    color: #7f8c8d;
    font-size: 0.9rem;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-back:hover {
    background: #bdc3c7;
    color: white;
}

.form-footer {
    text-align: center;
    padding: 20px;
    background: #f9f9f9;
    font-size: 0.85rem;
    color: #7f8c8d;
    border-top: 1px solid #eee;
}

/* === LOADING === */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #111111;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 1;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
}

.logo-box-loader {
    position: relative;
    width: 120px;
    height: 120px;
    background: #000000;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 2px solid #222;
}

.logo-icon-loader {
    font-size: 56px;
    font-weight: 800;
    line-height: 1;
}

.char-c-loader {
    color: #FFCC00;
}

.char-f-loader {
    color: #FFFFFF;
}

.precision-scanner {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 5px;
    border: 3px solid transparent;
    border-top-color: #FFCC00;
    border-bottom-color: #FFCC00;
    animation: precisionSpin 1.5s linear infinite;
}

@keyframes precisionSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loader-text h4 {
    color: #FFCC00;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 5px;
}

.loader-text p {
    color: #666;
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.custom-modal {
    display: none;
    /* Sembunyi dulu nyet */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #1a1a1a;
    /* Dark industrial theme */
    border: 1px solid #333;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.modal-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 24px;
}

.modal-icon.success {
    border: 2px solid #00ff88;
    color: #00ff88;
}

.modal-icon.error {
    border: 2px solid #ff4444;
    color: #ff4444;
}

.btn-modal-confirm,
.btn-modal-back {
    margin-top: 20px;
    padding: 10px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
}

.btn-modal-confirm {
    background: #00ff88;
    color: #000;
}

.btn-modal-back {
    background: #444;
    color: #fff;
}

/* === RESPONSIVE === */
@media (max-width: 480px) {
    form {
        padding: 20px;
    }

    .form-header h2 {
        font-size: 1.5rem;
    }
}