/* ==========================================
   sales-apply.css
   Stiluri SPECIFICE fluxului Sales Apply.
   Depinde de: screen-email.css, screen-iq.css, recruitment-form.css
   Referinta in: Sales.cshtml
   ========================================== */

/* ==================== COLOR TOKENS — Indigo/Violet (same as Support) ==================== */
.sales-orange            { background: #667eea !important; border-color: #667eea !important; color: white !important; }
.sales-orange:hover      { background: #764ba2 !important; }
.sa-badge.orange         { background: #eef2ff; color: #5b21b6; }
.sa-progress-fill.orange { background: linear-gradient(90deg, #667eea, #764ba2); }
.sa-icon-circle.orange   { background: #eef2ff; color: #667eea; }

/* ==================== YES/NO QUESTIONS (Recruitment Form) ==================== */
.sa-yesno {
    margin-bottom: 1.5rem;
}
.sa-yesno label {
    display: block;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}
.sa-yesno-btns {
    display: flex;
    gap: 0.75rem;
}
.sa-yn-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 10px;
    border: 2px solid #e5e7eb;
    background: white;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s;
    font-family: inherit;
}
.sa-yn-btn:hover        { border-color: #a5b4fc; }
.sa-yn-btn.selected-yes { background: #10b981; border-color: #10b981; color: white; }
.sa-yn-btn.selected-no  { background: #ef4444; border-color: #ef4444; color: white; }

.sa-yn-btn.locked                        { cursor: not-allowed !important; }
.sa-yn-btn.locked:not(.selected-yes):not(.selected-no) { background: #f3f4f6 !important; border-color: #e5e7eb !important; color: #9ca3af !important; }
.sa-yn-btn.locked.selected-yes,
.sa-yn-btn.locked.selected-no            { background: #9ca3af !important; border-color: #9ca3af !important; color: white !important; }
.sa-yn-btn.locked:hover,
.sa-yn-btn.locked.selected-yes:hover,
.sa-yn-btn.locked.selected-no:hover      { background: #9ca3af !important; border-color: #9ca3af !important; }

/* ==================== PSYCH OPTIONS ==================== */
.sa-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    text-align: left;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.5;
    font-family: inherit;
}
.sa-option:hover    { border-color: #a5b4fc; background: #fafafe; }
.sa-option.selected { border-color: #6366f1; background: #eef2ff; }

.sa-option.locked                   { cursor: not-allowed !important; }
.sa-option.locked:not(.selected)    { background: #f9fafb !important; border-color: #e5e7eb !important; color: #9ca3af !important; }
.sa-option.locked.selected          { background: #f3f4f6 !important; border-color: #9ca3af !important; color: #6b7280 !important; }
.sa-option.locked:hover,
.sa-option.locked.selected:hover    { background: #f3f4f6 !important; border-color: #9ca3af !important; }
.sa-option.locked .sa-option-radio.checked { border-color: #9ca3af !important; background: #9ca3af !important; }

.sa-option-radio {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    flex-shrink: 0;
    margin-top: 2px;
    position: relative;
    transition: all 0.2s;
}
.sa-option-radio.checked {
    border-color: #6366f1;
    background: #6366f1;
}
.sa-option-radio.checked::after {
    content: '\2713';
    color: white;
    font-size: 0.75rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ==================== TECH TEST — IQ-STYLE OPTIONS (A/B/C/D) ==================== */
.sa-iq-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    text-align: left;
    padding: 0.9rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.5;
    font-family: inherit;
}
.sa-iq-option:hover    { border-color: #a5b4fc; background: #fafafe; }
.sa-iq-option.selected { border-color: #6366f1; background: #eef2ff; }

.sa-iq-option.locked                { cursor: not-allowed !important; }
.sa-iq-option.locked:not(.selected) { background: #f9fafb !important; border-color: #e5e7eb !important; color: #9ca3af !important; }
.sa-iq-option.locked.selected       { background: #f3f4f6 !important; border-color: #9ca3af !important; color: #6b7280 !important; }
.sa-iq-option.locked:hover,
.sa-iq-option.locked.selected:hover { background: #f3f4f6 !important; border-color: #9ca3af !important; }
.sa-iq-option.locked .sa-iq-letter.checked { background: #9ca3af !important; border-color: #9ca3af !important; }

.sa-iq-letter {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: #6b7280;
    flex-shrink: 0;
    transition: all 0.2s;
}
.sa-iq-letter.checked {
    border-color: #6366f1;
    background: #6366f1;
    color: white;
}

/* ==================== TIMER ==================== */
.sa-timer {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: #374151;
    background: #f3f4f6;
    padding: 0.4rem 0.9rem;
    border-radius: 8px;
    letter-spacing: 0.05em;
}
.sa-timer.sa-timer-warning {
    background: #fee2e2;
    color: #dc2626;
    animation: pulse 1s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.7; }
}

/* ==================== QUICK NAVIGATION ==================== */
.sa-quick-nav {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 12px;
}
.sa-quick-nav-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.sa-qnav-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: #e5e7eb;
    color: #6b7280;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.sa-qnav-btn.current  { background: #667eea; color: white; }
.sa-qnav-btn.answered { background: #d1fae5; color: #065f46; }
.sa-qnav-btn:hover    { background: #a5b4fc; color: white; }

/* ==================== RESULT SCREENS ==================== */
.sa-result-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}
.sa-result-circle.passed { background: #d1fae5; }
.sa-result-circle.failed { background: #fee2e2; }
.sa-result-circle span {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1f2937;
}
.sa-result-sub {
    color: #6b7280;
    margin-bottom: 1.5rem;
}
.sa-result-msg {
    padding: 1.25rem;
    border-radius: 12px;
    margin-top: 1rem;
}
.sa-result-msg.success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.sa-result-msg.fail    { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; }

/* ==================== ASSESSMENT PROGRESS TRACKER ==================== */
.sa-assessment-progress {
    max-width: 900px;
    margin: 0 auto 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.sa-progress-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}
.sa-progress-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto;
    position: relative;
    z-index: 2;
}
.sa-progress-stage span {
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 500;
    text-align: center;
    max-width: 80px;
}
.sa-progress-stage.active .sa-progress-circle {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transform: scale(1.1);
}
.sa-progress-stage.active span { color: #667eea; font-weight: 600; }
.sa-progress-stage.completed .sa-progress-circle {
    background: #10b981;
    color: white;
    border-color: #10b981;
}
.sa-progress-stage.completed span { color: #10b981; font-weight: 600; }
.sa-progress-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid #e5e7eb;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #9ca3af;
    transition: all 0.3s;
}
.sa-progress-line {
    flex: 1;
    height: 3px;
    background: #e5e7eb;
    margin: 0 0.5rem;
    position: relative;
    top: -12px;
}
.sa-progress-line.completed { background: #10b981; }

/* ==================== WELCOME STAGES ==================== */
.sa-assessment-stages {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.sa-stage-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s;
}
.sa-stage-item:hover { border-color: #a5b4fc; transform: translateX(5px); }
.sa-stage-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.sa-stage-content { display: flex; flex-direction: column; gap: 0.2rem; }
.sa-stage-content strong { color: #1f2937; font-size: 1rem; }
.sa-stage-content span   { color: #6b7280; font-size: 0.85rem; }

/* ==================== BADGES ==================== */
.sa-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ==================== PROGRESS HEADER ==================== */
.sa-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #6b7280;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .sa-assessment-progress { padding: 1rem; margin-bottom: 1rem; }
    .sa-progress-container  { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.5rem; }
    .sa-progress-stage span { font-size: 0.65rem; max-width: 60px; }
    .sa-progress-circle     { width: 36px; height: 36px; font-size: 0.9rem; border-width: 2px; }
    .sa-progress-line       { min-width: 20px; margin: 0 0.25rem; }
    .sa-stage-item          { padding: 0.75rem; }
    .sa-stage-number        { width: 36px; height: 36px; font-size: 1rem; }
    .sa-stage-content strong { font-size: 0.9rem; }
    .sa-stage-content span   { font-size: 0.75rem; }
    .sa-timer               { font-size: 1rem; }
    .sa-qnav-btn            { width: 32px; height: 32px; font-size: 0.8rem; }
}
