/* SFC Exam & Eligibility Checker - shared styles (extracted from index.html) */
:root {
            --primary: #ED1C24;
            --primary-dark: #C41920;
            --secondary: #1a1a2e;
            --success: #28a745;
            --warning: #ffc107;
            --danger: #dc3545;
            --white: #ffffff;
            --gray-100: #f1f3f5;
            --gray-200: #e9ecef;
            --gray-300: #dee2e6;
            --gray-600: #6c757d;
            --gray-800: #343a40;
        }
        * { box-sizing: border-box; margin: 0; padding: 0; }
        body { font-family: 'Inter', sans-serif; background: var(--gray-100); color: var(--gray-800); line-height: 1.6; }
        .container { max-width: 900px; margin: 0 auto; padding: 0 20px; }

        /* Language Bar */
        .lang-bar { background: var(--secondary); padding: 10px 0; }
        .lang-selector { display: flex; justify-content: flex-end; gap: 5px; }
        .lang-btn { background: transparent; border: 1px solid rgba(255,255,255,0.3); color: rgba(255,255,255,0.8); padding: 6px 14px; border-radius: 4px; cursor: pointer; font-size: 0.85rem; }
        .lang-btn:hover { background: rgba(255,255,255,0.1); }
        .lang-btn.active { background: var(--primary); border-color: var(--primary); color: white; }

        /* Header */
        .header { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: white; padding: 25px 0; }
        .header-content { display: flex; align-items: center; gap: 20px; }
        .logo { width: 70px; height: auto; border-radius: 8px; background: white; padding: 5px; }
        .header h1 { font-size: 1.6rem; margin-bottom: 5px; }
        .header p { opacity: 0.9; font-size: 0.95rem; }

        /* Main */
        .main-content { padding: 30px 0 50px; }
        .card { background: white; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); margin-bottom: 20px; overflow: hidden; }
        .card-header { background: var(--gray-100); padding: 20px 25px; border-bottom: 1px solid var(--gray-200); }
        .card-header h2 { color: var(--secondary); font-size: 1.3rem; margin-bottom: 5px; }
        .card-header p { color: var(--gray-600); font-size: 0.9rem; }
        .card-body { padding: 25px; }
        .card-footer { padding: 15px 25px; background: var(--gray-100); border-top: 1px solid var(--gray-200); display: flex; justify-content: space-between; gap: 10px; }

        /* Form */
        .form-group { margin-bottom: 25px; }
        .form-group:last-child { margin-bottom: 0; }
        .form-group > label { display: block; font-weight: 600; margin-bottom: 10px; }

        /* Radio/Checkbox Cards */
        .option-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
        .option-card { cursor: pointer; display: flex; }
        .option-card input { display: none; }
        .option-content { background: white; border: 2px solid var(--gray-300); border-radius: 8px; padding: 15px; transition: all 0.2s; text-align: center; width: 100%; min-height: 95px; display: flex; flex-direction: column; justify-content: center; align-items: center; }
        .option-card:hover .option-content { border-color: var(--primary); }
        .option-card input:checked + .option-content { border-color: var(--primary); background: #fff5f5; box-shadow: 0 0 0 3px rgba(237,28,36,0.1); }
        .option-type { display: block; font-size: 0.7rem; font-weight: 700; color: var(--primary); text-transform: uppercase; margin-bottom: 5px; }
        .option-name { display: block; font-size: 0.85rem; font-weight: 500; color: var(--secondary); }
        .option-detail { display: block; font-size: 0.75rem; color: var(--gray-600); margin-top: 3px; }
        .option-badge { display: inline-block; margin-top: 5px; padding: 2px 8px; background: var(--success); color: white; font-size: 0.65rem; border-radius: 4px; }
        .option-badge.new { background: #17a2b8; }

        /* Toggle */
        .toggle-grid { display: flex; gap: 15px; }
        .toggle-card { flex: 1; cursor: pointer; }
        .toggle-card input { display: none; }
        .toggle-content { background: white; border: 2px solid var(--gray-300); border-radius: 8px; padding: 15px; text-align: center; transition: all 0.2s; }
        .toggle-card:hover .toggle-content { border-color: var(--gray-600); }
        .toggle-card input:checked + .toggle-content { border-color: var(--primary); background: #fff5f5; }

        /* Select */
        select { width: 100%; padding: 12px; border: 2px solid var(--gray-300); border-radius: 8px; font-size: 1rem; background: white; }
        select:focus { outline: none; border-color: var(--primary); }

        /* Input */
        .input-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
        .input-row input { flex: 1; padding: 10px; border: 2px solid var(--gray-300); border-radius: 8px; font-size: 1rem; }
        .input-row input:focus { outline: none; border-color: var(--primary); }
        .input-row .unit { color: var(--gray-600); }
        .help-text { font-size: 0.8rem; color: var(--gray-600); }

        /* Checkbox Grid */
        .checkbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
        .checkbox-item { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: white; border: 2px solid var(--gray-300); border-radius: 6px; cursor: pointer; font-size: 0.85rem; }
        .checkbox-item:hover { border-color: var(--gray-600); }
        .checkbox-item input { width: 16px; height: 16px; accent-color: var(--primary); }

        /* License with Role Selection */
        .license-grid { display: flex; flex-direction: column; gap: 8px; }
        .license-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: white; border: 2px solid var(--gray-300); border-radius: 6px; flex-wrap: wrap; }
        .license-row:hover { border-color: var(--gray-600); }
        .license-row.selected { border-color: var(--primary); background: #fff5f5; }
        .license-row input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }
        .license-row .ra-label { font-size: 0.85rem; font-weight: 500; min-width: 55px; cursor: pointer; }
        .role-toggle { display: none; margin-left: auto; gap: 5px; align-items: center; }
        .license-row.selected .role-toggle { display: flex; }
        .role-toggle label { display: flex; align-items: center; gap: 3px; padding: 4px 10px; background: var(--gray-100); border: 1px solid var(--gray-300); border-radius: 4px; cursor: pointer; font-size: 0.75rem; font-weight: 500; transition: all 0.2s; }
        .role-toggle input { display: none; }
        .role-toggle input:checked + span { background: var(--primary); color: white; }
        .role-toggle label:has(input:checked) { background: var(--primary); color: white; border-color: var(--primary); }

        /* Conditional Fields */
        .conditional-field { margin-top: 15px; padding: 15px; background: #f8f9fa; border-radius: 8px; border-left: 3px solid var(--primary); }
        .conditional-field.hidden { display: none; }
        .field-row { display: flex; align-items: center; gap: 15px; margin-bottom: 10px; flex-wrap: wrap; }
        .field-row:last-child { margin-bottom: 0; }
        .field-row label { font-weight: 500; font-size: 0.9rem; min-width: 200px; }
        .field-row input[type="number"] { width: 80px; padding: 8px; border: 2px solid var(--gray-300); border-radius: 6px; font-size: 0.9rem; }
        .field-row .unit { color: var(--gray-600); font-size: 0.85rem; }
        .mini-toggle { display: flex; gap: 5px; }
        .mini-toggle label { padding: 6px 12px; background: white; border: 1px solid var(--gray-300); border-radius: 4px; cursor: pointer; font-size: 0.8rem; transition: all 0.2s; }
        .mini-toggle input { display: none; }
        .mini-toggle label:has(input:checked) { background: var(--primary); color: white; border-color: var(--primary); }

        /* Info Box */
        .info-box { display: flex; gap: 10px; padding: 12px; background: #e3f2fd; border-radius: 8px; margin-top: 15px; border-left: 4px solid #2196f3; }
        .info-box.warning { background: #fff8e1; border-left-color: var(--warning); }
        .info-box p { font-size: 0.85rem; color: var(--gray-800); }

        /* Buttons */
        .btn { display: inline-block; padding: 12px 24px; font-size: 1rem; font-weight: 600; border: none; border-radius: 8px; cursor: pointer; transition: all 0.2s; }
        .btn-primary { background: var(--primary); color: white; }
        .btn-primary:hover { background: var(--primary-dark); }
        .btn-secondary { background: white; color: var(--gray-800); border: 2px solid var(--gray-300); }
        .btn-secondary:hover { background: var(--gray-100); }
        .btn-success { background: var(--success); color: white; }
        .btn-success:hover { background: #218838; }

        /* Steps */
        .step { display: none; }
        .step.active { display: block; }

        /* Results */
        .result-box { padding: 20px; border-radius: 8px; margin-bottom: 15px; }
        .result-box.success { background: #d4edda; border: 1px solid #c3e6cb; }
        .result-box.warning { background: #fff3cd; border: 1px solid #ffeeba; }
        .result-box.danger { background: #f8d7da; border: 1px solid #f5c6cb; }
        .result-box.info { background: #d1ecf1; border: 1px solid #bee5eb; }
        .result-box h3 { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
        .result-list { list-style: none; }
        .result-list li { padding: 12px; background: white; margin-bottom: 8px; border-radius: 6px; display: flex; justify-content: space-between; align-items: center; border-left: 4px solid var(--primary); }
        .result-list li.exempt { border-left-color: var(--success); background: #f0fff4; }
        .badge { padding: 4px 10px; border-radius: 20px; font-size: 0.7rem; font-weight: 600; }
        .badge-danger { background: var(--danger); color: white; }
        .badge-success { background: var(--success); color: white; }

        /* Footer */
        .footer { background: var(--secondary); color: rgba(255,255,255,0.8); padding: 30px 0; margin-top: 40px; }
        .footer h4 { color: white; margin-bottom: 10px; }
        .footer a { color: rgba(255,255,255,0.8); }
        .footer a:hover { color: var(--primary); }

        @media (max-width: 600px) {
            .header-content { flex-direction: column; text-align: center; }
            .option-grid { grid-template-columns: repeat(2, 1fr); }
            .card-footer { flex-direction: column; }
            .card-footer .btn { width: 100%; }
        }
