/* --- RESET & VARIABLES --- */
:root {
    --primary-color: #111827;       /* Hampir Hitam (Premium Dark) */
    --primary-hover: #000000;       /* Hitam Pekat */
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --bg-color: #f3f4f6;            /* Abu-abu Muda Solid (No Gradient) */
    --surface-color: #ffffff;
    --border-color: #e5e7eb;
    --error-color: #dc2626;         /* Merah Standar */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }

body {
    background: var(--bg-color);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--text-main);
}

/* --- MAIN CONTAINER --- */
#main-container {
    width: 100%;
    max-width: 700px; /* Lebih ramping agar fokus */
    position: relative;
}

/* --- LANDING SECTION --- */
#landing-section {
    background: var(--surface-color);
    border-radius: var(--radius);
    padding: 60px 40px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--border-color);
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 50px;
    font-weight: 400;
    line-height: 1.6;
}

/* Positions Grid - Minimalist Style */
.positions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 50px;
}

.position-card {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 25px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Efek hover minimalis */
.position-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Garis aksen kiri saat hover */
.position-card::before {
    content: '';
    position: absolute;
    left: 0; top: 10%; bottom: 10%;
    width: 3px;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.position-card:hover::before {
    transform: scaleY(1);
}

.position-card h3 {
    font-size: 1.1rem;
    color: var(--text-main);
    font-weight: 600;
    margin: 0;
}

/* Buttons - Clean Black/White */
.apply-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.apply-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* --- FORM SECTION --- */
#typeform-container {
    display: none;
    background: var(--surface-color);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    animation: fadeIn 0.5s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

/* Progress Bar - Hitam Elegan */
.progress-bar-container {
    position: absolute;
    top: 0; left: 0; height: 4px; width: 100%; background: #f3f4f6;
}
.progress-bar {
    height: 100%; background: var(--primary-color); width: 25%; transition: width 0.4s ease;
}

.back-to-landing {
    background: transparent; color: var(--text-muted); border: none; padding: 5px 0;
    cursor: pointer; font-size: 0.9rem; font-weight: 600;
    display: inline-flex; align-items: center; gap: 5px; margin-bottom: 30px;
    transition: color 0.3s;
}
.back-to-landing:hover { color: var(--primary-color); }

/* Form Steps */
.step { display: none; }
.step.active { display: block; animation: slideIn 0.4s ease; }

label { 
    display: block; font-size: 1.5rem; font-weight: 700; color: var(--primary-color);
    margin-bottom: 25px; line-height: 1.3;
}

.input-group { position: relative; margin-bottom: 20px; }

input, select { 
    width: 100%; padding: 16px; border: 1px solid var(--border-color); border-radius: 8px;
    font-size: 1rem; outline: none; transition: all 0.3s ease; background: #fff;
    color: var(--text-main); appearance: none;
}

input:focus, select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05); /* Shadow hitam samar */
}

input.error, select.error { border-color: var(--error-color); background-color: #fff5f5; }

.error-msg {
    color: var(--error-color); font-size: 0.85rem; margin-top: 8px;
    display: flex; align-items: center; gap: 5px;
    opacity: 0; transform: translateY(-5px); transition: all 0.3s;
}
.error-msg.visible { opacity: 1; transform: translateY(0); }

/* Custom File Input */
.file-upload-wrapper {
    position: relative; border: 2px dashed var(--border-color); border-radius: 8px;
    padding: 40px 20px; text-align: center; cursor: pointer; transition: all 0.3s; background: #fafafa;
}

.file-upload-wrapper:hover { border-color: var(--primary-color); background: #fff; }

.file-upload-wrapper input[type="file"] {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer;
}

.file-custom-text { color: var(--text-muted); pointer-events: none; font-size: 0.95rem; }
.file-custom-text strong { color: var(--primary-color); display: block; margin-bottom: 5px; }

/* Navigation Buttons */
.nav-btns { display: flex; justify-content: space-between; margin-top: 30px; }

.btn {
    padding: 12px 30px; border-radius: 50px; font-size: 0.95rem; font-weight: 600;
    cursor: pointer; transition: all 0.3s ease; border: none;
}

.btn-primary { background: var(--primary-color); color: white; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }

.btn-secondary {
    background: #fff; color: var(--text-muted); border: 1px solid var(--border-color); margin-right: 10px;
}
.btn-secondary:hover { background: #f9fafb; color: var(--primary-color); border-color: #d1d5db; }

/* --- LOADING SPINNER --- */
#loader-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.9); display: none; flex-direction: column;
    align-items: center; justify-content: center; z-index: 10; border-radius: var(--radius);
}

.spinner {
    width: 40px; height: 40px; border: 3px solid #e5e7eb;
    border-top: 3px solid var(--primary-color); border-radius: 50%;
    animation: spin 1s linear infinite; margin-bottom: 15px;
}

.loading-text { font-weight: 600; color: var(--primary-color); font-size: 1rem; }

/* --- SUCCESS MESSAGE --- */
#success-message { display: none; text-align: center; padding: 40px 20px; }
.success-icon { font-size: 3.5rem; margin-bottom: 20px; display: block; animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); }

/* --- ANIMATIONS --- */
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { opacity: 0; transform: translateX(15px); } to { opacity: 1; transform: translateX(0); } }
@keyframes popIn { 0% { transform: scale(0); } 80% { transform: scale(1.1); } 100% { transform: scale(1); } }

/* --- RESPONSIVE --- */
@media (max-width: 600px) {
    h1 { font-size: 2rem; }
    #landing-section, #typeform-container { padding: 30px 20px; }
    label { font-size: 1.3rem; }
    .nav-btns { flex-direction: column-reverse; gap: 10px; }
    .btn { width: 100%; }
    .btn-secondary { margin-right: 0; }
}