@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&family=Montserrat:wght@700&display=swap');

:root {
    --primary: #D32F2F;
    --dark: #0a0a0a;
    --light-bg: #f3f4f6;
    --white: #ffffff;
    --border: #e5e7eb;
    --green: #28a745;
    --red: #dc3545;
}

body { font-family: 'Poppins', sans-serif; background: var(--light-bg); margin: 0; padding: 0; color: #1f2937; }

/* Header */
header { background: var(--dark); padding: 15px; text-align: center; border-bottom: 3px solid var(--primary); position: sticky; top: 0; z-index: 100; }
.logo-text { font-family: 'Montserrat', sans-serif; font-size: 24px; color: white; letter-spacing: 0.5px; }
.red-b { color: var(--primary); }

/* Layout */
.container { max-width: 800px; margin: 40px auto; background: var(--white); padding: 40px; border-radius: 16px; box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1); }

/* Progress Bar */
.progress-container { background: #e5e7eb; height: 8px; border-radius: 10px; margin-bottom: 30px; overflow: hidden; }
.progress-bar { height: 100%; width: 0%; background: var(--primary); transition: width 0.4s ease; }

/* Steps - IMPORTANT FIX */
.step { display: none; opacity: 0; transition: opacity 0.3s ease-in-out; }
.step.active { display: block; opacity: 1; animation: fadeIn 0.5s; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Form Elements */
h2 { color: #111; font-weight: 600; margin-bottom: 5px; }
.desc { color: #6b7280; font-size: 14px; margin-bottom: 30px; }
.form-group { margin-bottom: 25px; }
label { display: block; font-weight: 500; font-size: 14px; margin-bottom: 8px; color: #374151; }
input, select, textarea { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 15px; box-sizing: border-box; transition: 0.3s; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1); }

/* Card Box */
.card-box { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin-bottom: 15px; position: relative; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.default-job { border-left: 5px solid var(--primary); }

/* Education Radio Tiles (Colors) */
.radio-tile-group { display: flex; gap: 10px; margin-bottom: 15px; }
.radio-tile-label { flex: 1; cursor: pointer; }
.radio-tile-label input { display: none; }
.radio-tile { display: flex; justify-content: center; align-items: center; padding: 12px; border: 1px solid var(--border); border-radius: 8px; color: #6b7280; transition: 0.2s; font-weight: 500; }

/* Passed Green */
.radio-tile-label input[value="Passed"]:checked + .radio-tile { background-color: #d4edda; border-color: var(--green); color: var(--green); font-weight: 700; }
/* Failed Red */
.radio-tile-label input[value="Failed"]:checked + .radio-tile { background-color: #f8d7da; border-color: var(--red); color: var(--red); font-weight: 700; }

/* File Upload UI */
.upload-area { border: 2px dashed #ccc; padding: 30px; text-align: center; border-radius: 10px; cursor: pointer; transition: 0.3s; background: #fafafa; }
.upload-area:hover { border-color: var(--primary); background: #fff5f5; }
.file-list { margin-top: 15px; }
.file-item { display: flex; align-items: center; justify-content: space-between; background: #f8f9fa; padding: 10px; border-radius: 6px; margin-bottom: 5px; border: 1px solid #eee; }
.file-progress { height: 4px; background: #eee; width: 100%; margin-top: 5px; border-radius: 2px; overflow: hidden; }
.file-bar { height: 100%; background: var(--green); width: 0%; transition: width 1s; }

/* Buttons */
.btn-group { display: flex; gap: 10px; margin-top: 30px; }
.btn-group.right { justify-content: flex-end; }
.btn { padding: 12px 24px; border: none; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 14px; transition: 0.2s; }
.btn-next { background: var(--primary); color: white; flex: 2; }
.btn-back { background: #e5e7eb; color: #374151; flex: 1; }
.btn-skip { background: #333; color: white; flex: 1; }
.btn-add { background: #222; color: white; width: 100%; padding: 12px; border-radius: 8px; margin-top: 5px; }
.btn-sm { padding: 8px 15px; font-size: 12px; background: #444; color: white; border: none; border-radius: 5px; cursor: pointer; width: auto; margin-top: 5px; }

/* AI Button */
.ai-wrapper { text-align: right; margin-bottom: 5px; }
.ai-btn { background: linear-gradient(135deg, #667eea, #764ba2); color: white; border: none; padding: 5px 10px; border-radius: 5px; font-size: 11px; cursor: pointer; }

/* Mobile */
@media (max-width: 600px) {
    .container { margin: 10px; padding: 20px; }
    .btn-group { flex-wrap: wrap; }
    .btn { width: 100%; margin-bottom: 5px; }
}