@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

.qfe-quiz-root {
    font-family: "Inter", system-ui, sans-serif;
    max-width: 640px;
    margin: 0 auto;
    padding: 24px;
    box-sizing: border-box;
}

.qfe-quiz-root * {
    box-sizing: border-box;
}

.qfe-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 40px 32px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.qfe-progress {
    height: 4px;
    background: #e5e7eb;
    border-radius: 99px;
    margin-bottom: 32px;
    overflow: hidden;
}

.qfe-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #16a34a, #16a34a);
    border-radius: 99px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.qfe-step-count {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.qfe-question {
    font-size: 22px;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 24px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.qfe-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.qfe-opt {
    padding: 16px 20px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #1a1a2e;
    text-align: left;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.qfe-opt:hover {
    border-color: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(22, 163, 74, 0.08);
}

.qfe-opt.selected {
    background: #f0fdf4;
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.13);
}

.qfe-text-input {
    width: 100%;
    padding: 16px 20px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    color: #1a1a2e;
    font-family: "Inter", system-ui, sans-serif;
    outline: none;
    transition: all 0.25s;
}

.qfe-text-input:focus {
    border-color: #16a34a;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.09);
}

.qfe-text-input::placeholder {
    color: #6b7280;
    opacity: 0.5;
}

.qfe-next-btn {
    display: inline-block;
    padding: 16px 48px;
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 16px;
    opacity: 0.35;
    pointer-events: none;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.25);
}

.qfe-next-btn.active {
    opacity: 1;
    pointer-events: auto;
}

.qfe-next-btn.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.31);
}

.qfe-skip-btn {
    display: inline-block;
    padding: 12px 28px;
    background: transparent;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    border: 1.5px dashed #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s;
    margin-top: 10px;
    text-decoration: none;
}

.qfe-skip-btn:hover {
    border-color: #16a34a;
    color: #16a34a;
    background: rgba(22, 163, 74, 0.03);
}

.qfe-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 48px 0;
}

.qfe-spinner {
    width: 52px;
    height: 52px;
    border: 3px solid #e5e7eb;
    border-top-color: #16a34a;
    border-radius: 50%;
    animation: qfe-spin 0.8s linear infinite;
}

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

.qfe-ltxt {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    transition: opacity 0.4s;
    letter-spacing: -0.01em;
}

.qfe-lstxt {
    font-size: 14px;
    color: #6b7280;
    font-weight: 400;
}

.qfe-lbar {
    width: 100%;
    max-width: 320px;
    height: 6px;
    background: #e5e7eb;
    border-radius: 99px;
    overflow: hidden;
}

.qfe-lbar-inner {
    height: 100%;
    background: linear-gradient(90deg, #16a34a, #16a34a);
    border-radius: 99px;
    transition: width 0.3s linear;
}

.qfe-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 48px 0;
}

.qfe-ricon {
    font-size: 56px;
    animation: qfe-pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes qfe-pop {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.qfe-rtitle {
    font-size: 26px;
    font-weight: 800;
    color: #1a1a2e;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.qfe-rsub {
    font-size: 15px;
    color: #6b7280;
    max-width: 420px;
    line-height: 1.5;
}

.qfe-rbtn {
    display: inline-block;
    padding: 18px 48px;
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.25);
    letter-spacing: 0.01em;
}

.qfe-rbtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.31);
}

.qfe-countdown {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
    font-weight: 500;
}

.qfe-job-card {
    width: 100%;
    max-width: 480px;
    margin-top: 24px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.05), rgba(22, 163, 74, 0.02));
    border: 1.5px solid rgba(22, 163, 74, 0.16);
    border-radius: 12px;
    text-align: center;
    animation: qfe-fade 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.qfe-job-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.qfe-job-label {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 6px;
    font-weight: 500;
}

.qfe-job-name {
    font-size: 22px;
    font-weight: 800;
    color: #1a1a2e;
    letter-spacing: -0.01em;
}

.qfe-job-region {
    font-size: 14px;
    color: #6b7280;
    margin-top: 6px;
}

.qfe-divider {
    margin: 32px 0 0;
    width: 100%;
    max-width: 480px;
}

.qfe-divider-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    font-family: "Inter", system-ui, sans-serif;
}

.qfe-divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
}

.qfe-divider-label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
    white-space: nowrap;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.qfe-divider-btn:hover .qfe-divider-label {
    border-color: #16a34a;
    color: #16a34a;
    box-shadow: 0 4px 16px rgba(22, 163, 74, 0.08);
}

.qfe-divider-chevron {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
    color: #6b7280;
}

.qfe-divider-chevron.open {
    transform: rotate(180deg);
}

.qfe-vacancy-wrap {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    opacity: 0;
}

.qfe-vacancy-wrap.open {
    max-height: 600px;
    opacity: 1;
}

.qfe-vacancy {
    margin-top: 24px;
    text-align: left;
    width: 100%;
    max-width: 480px;
}

.qfe-vacancy-title {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 16px;
    text-align: center;
    line-height: 1.4;
}

.qfe-vacancy-title strong {
    color: #16a34a;
}

.qfe-vacancy-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.qfe-vacancy-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, #1a7f4b, #22915a);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #fff !important;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(26, 127, 75, 0.25);
}

.qfe-vacancy-item:hover {
    background: linear-gradient(135deg, #15693e, #1a7f4b);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 127, 75, 0.35);
    color: #fff !important;
}

.qfe-vacancy-item svg {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.85);
}

.qfe-vacancy-count {
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
    text-align: center;
    margin-top: 12px;
}

.qfe-fade {
    animation: qfe-fade 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes qfe-fade {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.qfe-hero-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f0fdf4;
    border-radius: 999px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #15803d;
    font-weight: 600;
}

.qfe-hero-social .qfe-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: qfe-pulse 2s infinite;
}

@keyframes qfe-pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}

.qfe-hero-loc {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 8px;
    font-weight: 500;
}

.qfe-hero-loc .qfe-timer {
    background: #fef2f2;
    color: #dc2626;
    padding: 1px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 12px;
}

.qfe-hero-title {
    font-size: 26px;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 12px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.qfe-hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: #f0fdf4;
    border: 1.5px solid #bbf7d0;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: #15803d;
    margin-bottom: 16px;
}

.qfe-hero-img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 16px;
    object-fit: cover;
    max-height: 220px;
    background: #f1f5f9;
}

.qfe-hero-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.qfe-hero-stars {
    color: #f59e0b;
    font-size: 14px;
    letter-spacing: 1px;
}

.qfe-hero-prequestion {
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.qfe-opt-green {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    text-align: left;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 3px 10px rgba(22, 163, 74, 0.3);
}

.qfe-opt-green:hover {
    background: linear-gradient(135deg, #15803d, #16a34a);
    transform: translateY(-2px);
    box-shadow: 0 5px 16px rgba(22, 163, 74, 0.4);
}

.qfe-opt-green svg {
    flex-shrink: 0;
    opacity: 0.85;
}

@media (max-width: 640px) {
    .qfe-quiz-root {
        padding: 12px;
    }

    .qfe-card {
        padding: 24px 18px;
    }

    .qfe-question,
    .qfe-hero-title {
        font-size: 22px;
    }
}
