/* Employee Registration Funnel - Modern Eduro Design v3 */

:root {
    --eduro-orange: #DE6B3B;
    --eduro-orange-light: #F2943C;
    --eduro-orange-hover: #c55a2f;
    --eduro-gradient: linear-gradient(135deg, #DE6B3B 0%, #F2943C 100%);
    --eduro-text: #2d2d2d;
    --eduro-text-light: #666;
    --eduro-border: #e0e0e0;
    --eduro-bg: #f4f5f7;
    --eduro-white: #ffffff;
}

/* Base */
.funnel-container {
    min-height: 100vh;
    background: var(--eduro-bg);
    font-family: 'Nunito Sans', 'Segoe UI', sans-serif;
}

.funnel-main {
    max-width: 760px;
    margin: 0 auto;
    padding: 24px 16px 48px;
}

/* Progress bar */
.funnel-progress-wrap {
    text-align: center;
    margin-bottom: 20px;
}

.funnel-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.progress-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--eduro-border);
    transition: all 0.3s ease;
    display: inline-block;
}

.progress-dot.active {
    background: var(--eduro-orange);
    transform: scale(1.3);
    box-shadow: 0 0 0 3px rgba(222, 107, 59, 0.18);
}

.progress-dot.completed {
    background: var(--eduro-orange-light);
}

.progress-percent {
    font-size: 12px;
    font-weight: 700;
    color: var(--eduro-orange);
    letter-spacing: 0.2px;
}

/* Card */
.funnel-card {
    background: var(--eduro-white);
    border-radius: 14px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    padding: 36px 44px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .funnel-card {
        padding: 24px 18px;
        border-radius: 10px;
    }
    .funnel-main {
        padding: 16px 12px 40px;
    }
}

/* Step visibility */
.funnel-step {
    display: none;
}

.funnel-step.active {
    display: block;
    animation: fadeIn 0.25s ease;
}

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

/* Step Header */
.funnel-header {
    text-align: center;
    margin-bottom: 28px;
}

.funnel-header .step-label {
    display: inline-block;
    background: var(--eduro-gradient);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.funnel-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--eduro-text);
    margin: 0 0 8px;
    line-height: 1.3;
}

@media (max-width: 480px) {
    .funnel-header h2 { font-size: 18px; }
}

.funnel-header p {
    font-size: 14px;
    color: var(--eduro-text-light);
    margin: 0;
}

/* ===== STEP 1: Job-Group Cards (FA icons, no emojis, 9 items = 3×3) ===== */
.job-group-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 8px;
}

@media (max-width: 600px) {
    .job-group-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 360px) {
    .job-group-grid {
        grid-template-columns: 1fr;
    }
}

.option-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 10px;
    border: 2px solid var(--eduro-border);
    border-radius: 12px;
    background: var(--eduro-white);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    min-height: 88px;
    gap: 6px;
}

.option-card:hover {
    border-color: var(--eduro-orange);
    background: rgba(222, 107, 59, 0.04);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(222, 107, 59, 0.12);
}

.option-card.selected {
    border-color: var(--eduro-orange);
    background: var(--eduro-gradient);
    color: white;
    box-shadow: 0 3px 12px rgba(222, 107, 59, 0.3);
}

.card-icon {
    font-size: 20px;
    color: var(--eduro-orange);
}

.option-card.selected .card-icon {
    color: white;
}

.card-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--eduro-text);
    line-height: 1.2;
}

.card-sub {
    font-size: 10px;
    color: var(--eduro-text-light);
    line-height: 1.2;
}

.option-card.selected .card-label,
.option-card.selected .card-sub {
    color: white;
}

/* ===== Generic Option Buttons ===== */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.options-grid.two-columns {
    grid-template-columns: repeat(2, 1fr);
}

.options-grid.single-column {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 500px) {
    .options-grid { grid-template-columns: 1fr 1fr; }
    .options-grid.two-columns { grid-template-columns: 1fr 1fr; }
    .options-grid.single-column { max-width: 100%; }
}

.option-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 13px 16px;
    border: 2px solid var(--eduro-border);
    border-radius: 50px;
    background: var(--eduro-white);
    font-size: 14px;
    font-weight: 600;
    color: var(--eduro-text);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    min-height: 48px;
    line-height: 1.2;
}

.option-btn:hover {
    border-color: var(--eduro-orange);
    background: rgba(222, 107, 59, 0.05);
}

.option-btn.selected {
    border-color: var(--eduro-orange);
    background: var(--eduro-orange);
    color: white;
}

.option-btn.selected:hover {
    background: var(--eduro-orange-hover);
    border-color: var(--eduro-orange-hover);
}

/* ===== STEP 2: Conditional section ===== */
.conditional-section {
    margin-top: 20px;
}

.section-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    color: var(--eduro-text-light);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--eduro-border);
}

/* ===== Form Elements ===== */
.funnel-form-group {
    margin-bottom: 16px;
    position: relative;
}

.funnel-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--eduro-text);
    margin-bottom: 7px;
}

.funnel-input,
.funnel-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--eduro-border);
    border-radius: 10px;
    font-size: 14px;
    color: var(--eduro-text);
    background: var(--eduro-white);
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.funnel-input:focus,
.funnel-select:focus {
    outline: none;
    border-color: var(--eduro-orange);
    box-shadow: 0 0 0 3px rgba(222, 107, 59, 0.08);
}

.funnel-input::placeholder { color: #bbb; }

.funnel-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}

/* Range Slider */
.range-container { margin: 20px 0; }

.range-label {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--eduro-text-light);
    margin-bottom: 8px;
}

.range-value { font-weight: 700; color: var(--eduro-orange); }

.funnel-range {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--eduro-border);
    appearance: none;
    cursor: pointer;
}

.funnel-range::-webkit-slider-thumb {
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--eduro-orange);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(222, 107, 59, 0.35);
}

.funnel-range::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--eduro-orange);
    cursor: pointer;
    border: none;
}

/* Multi-select Pills */
.pills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
    min-height: 4px;
}

.pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border: 2px solid var(--eduro-border);
    border-radius: 30px;
    background: var(--eduro-white);
    font-size: 13px;
    font-weight: 500;
    color: var(--eduro-text);
    cursor: pointer;
    transition: all 0.18s ease;
}

.pill-btn:hover { border-color: var(--eduro-orange-light); }

.pill-btn.selected {
    border-color: var(--eduro-orange);
    background: var(--eduro-orange);
    color: white;
}

.pill-btn i { font-size: 12px; }

/* ===== STEP 4: Two-section ===== */
.two-section-step { margin-bottom: 4px; }

.section-block { margin-bottom: 4px; }

.section-block-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--eduro-text);
    margin-bottom: 12px;
}

/* ===== Navigation Buttons ===== */
.funnel-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}

.btn-back,
.btn-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.btn-back {
    background: var(--eduro-white);
    border: 2px solid var(--eduro-border);
    color: var(--eduro-text);
}

.btn-back:hover { border-color: #aaa; }
.btn-back i { margin-right: 7px; }

.btn-next {
    background: var(--eduro-gradient);
    border: none;
    color: white;
}

.btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(222, 107, 59, 0.38);
}

.btn-next i { margin-left: 7px; }

.btn-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Yes/No Buttons */
.yesno-container {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 8px;
}

.yesno-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
}

.yesno-btn.yes {
    background: var(--eduro-gradient);
    border: none;
    color: white;
}

.yesno-btn.yes:hover,
.yesno-btn.yes.selected {
    box-shadow: 0 4px 14px rgba(222, 107, 59, 0.38);
}

.yesno-btn.no {
    background: var(--eduro-white);
    border: 2px solid var(--eduro-border);
    color: var(--eduro-text);
}

.yesno-btn.no:hover { border-color: #aaa; }

.yesno-btn.no.selected {
    border-color: var(--eduro-orange);
    color: var(--eduro-orange);
}

.yesno-btn i { margin-right: 7px; }

/* ===== STEP 7: Final Layout ===== */
.final-step-layout {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 32px;
    align-items: start;
}

@media (max-width: 680px) {
    .final-step-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.final-left {
    background: linear-gradient(160deg, rgba(222,107,59,0.07) 0%, rgba(242,148,60,0.03) 100%);
    border-radius: 12px;
    padding: 22px 18px;
    text-align: center;
}

.final-left h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--eduro-orange);
    margin: 0 0 6px;
    line-height: 1.4;
}

.final-left > p {
    font-size: 13px;
    color: var(--eduro-text-light);
    margin: 0 0 16px;
}

/* Stats */
.stats-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.stat-card {
    background: var(--eduro-white);
    border-radius: 10px;
    padding: 10px 14px;
    text-align: left;
    border-left: 3px solid var(--eduro-orange);
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-number {
    font-size: 18px;
    font-weight: 800;
    color: var(--eduro-orange);
    white-space: nowrap;
    min-width: 44px;
}

.stat-label {
    font-size: 11px;
    color: var(--eduro-text-light);
    line-height: 1.4;
}

/* Testimonials */
.testimonial-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.testimonial-item {
    background: var(--eduro-white);
    border-radius: 8px;
    padding: 10px 12px;
    text-align: left;
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
}

.testimonial-item p {
    font-size: 11px;
    color: var(--eduro-text);
    margin: 0 0 4px;
    line-height: 1.5;
    font-style: italic;
}

.testimonial-author {
    font-size: 10px;
    color: var(--eduro-orange);
    font-weight: 600;
}

/* Contact Form */
.gender-options {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.gender-radio {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.gender-radio input { display: none; }

.gender-radio .radio-circle {
    width: 18px;
    height: 18px;
    border: 2px solid var(--eduro-border);
    border-radius: 50%;
    margin-right: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.gender-radio input:checked + .radio-circle {
    border-color: var(--eduro-orange);
}

.gender-radio input:checked + .radio-circle::after {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--eduro-orange);
    border-radius: 50%;
}

.gender-radio span:last-child {
    font-size: 13px;
    font-weight: 500;
    color: var(--eduro-text);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 500px) {
    .form-row { grid-template-columns: 1fr; }
}

.terms-text {
    font-size: 11px;
    color: var(--eduro-text-light);
    line-height: 1.5;
    margin: 12px 0;
}

.terms-text a { color: var(--eduro-orange); text-decoration: none; }
.terms-text a:hover { text-decoration: underline; }

.btn-submit {
    width: 100%;
    padding: 14px 28px;
    background: var(--eduro-gradient);
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-top: 4px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(222, 107, 59, 0.38);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Phone */
.phone-input-container { position: relative; }

.phone-prefix {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: var(--eduro-text);
    font-weight: 500;
    pointer-events: none;
}

.phone-input-container .funnel-input { padding-left: 54px; }

/* Error messages */
.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
    min-height: 16px;
}

.funnel-input.error,
.funnel-select.error { border-color: #dc3545; }

/* Trust Section */
.trust-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 4px;
    flex-wrap: wrap;
    gap: 12px;
}

.trust-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.trust-list li {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: var(--eduro-text);
    margin-bottom: 7px;
}

.trust-list li:last-child { margin-bottom: 0; }

.trust-list li i {
    color: var(--eduro-orange);
    margin-right: 8px;
    font-size: 14px;
}

.trust-badges {
    display: flex;
    gap: 10px;
    align-items: center;
}

.trust-badges img { height: 50px; width: auto; }

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid var(--eduro-border);
    border-top-color: var(--eduro-orange);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Dropdown */
.dropdown-options {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--eduro-white);
    border: 2px solid var(--eduro-border);
    border-top: none;
    border-radius: 0 0 10px 10px;
    max-height: 240px;
    overflow-y: auto;
    z-index: 100;
}

.dropdown-option {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.12s ease;
}

.dropdown-option:hover { background: rgba(222, 107, 59, 0.07); }
.dropdown-option.selected { background: var(--eduro-orange); color: white; }
