/* Hire Developers Modal - Light Theme */
/* Completely Isolated CSS - Zero interference with GSAP or other animations */

/* NO body scroll lock - GSAP ScrollTrigger needs natural scroll position */
/* We prevent scrolling only on the overlay itself, not the body */
/* This ensures GSAP animations continue to work normally */

/* Store scroll position before modal opens to restore after close */
body.hire-modal-open::before {
    content: '';
    display: none;
}

/* Modal overlay - completely isolated, won't affect any other elements */
.hire-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Mobile viewport fix - use 100dvh for dynamic viewport height */
    height: 100vh;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    /* Isolate modal from rest of page - critical for GSAP compatibility */
    isolation: isolate;
    /* Prevent affecting GSAP animations - layout and style containment */
    contain: layout style paint;
    /* Create new stacking context */
    will-change: opacity;
    /* Prevent pointer events when hidden */
    pointer-events: none;
    /* Prevent body scroll - allow touches on container */
    overscroll-behavior: contain;
    /* Allow touch on overlay but prevent body scroll */
    touch-action: pan-y pinch-zoom;
    /* Prevent body scroll when modal is active - overlay covers entire viewport */
    overflow: hidden;
    /* Mobile Safari fix */
    -webkit-overflow-scrolling: touch;
}

.hire-modal-overlay.active {
    pointer-events: auto;
}

.hire-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.hire-modal-container {
    background: #ffffff;
    border-radius: 20px;
    width: 90%;
    max-width: 1080px;
    max-height: 90vh;
    max-height: 90dvh; /* Mobile viewport fix */
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    /* Mobile touch scrolling */
    -webkit-overflow-scrolling: touch;
    /* Allow touch interactions */
    touch-action: pan-y pinch-zoom;
    /* Mobile padding fix */
    margin: 20px;
    width: calc(100% - 40px);
}

/* Mobile: Use bottom sheet style */
@media (max-width: 768px) {
    .hire-modal-container {
        margin: 0;
        width: 100%;
        border-radius: 20px 20px 0 0;
        transform: translateY(100%);
        transition: transform 0.3s ease;
    }
    
    .hire-modal-overlay.active .hire-modal-container {
        transform: translateY(0);
    }
}

.hire-modal-overlay.active .hire-modal-container {
    transform: scale(1);
}

.hire-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    /* Mobile touch-friendly size */
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    /* Mobile touch fix */
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.hire-modal-close:hover {
    background: #e0e0e0;
    transform: rotate(90deg);
}

.hire-modal-close svg {
    width: 18px;
    height: 18px;
    stroke: #333;
}

.hire-modal-content {
    padding: 40px;
}

.hire-modal-step {
    display: none;
}

.hire-modal-step.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

.hire-modal-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.2;
}

.hire-modal-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* Step 1: AI-Powered Consultation Interface */
.consultation-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.consultation-title {
    font-size: 33px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.consultation-subtitle {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 500;
}

.conversational-input-wrapper {
    margin: 30px 0;
}

.conversational-input-container {
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
}

.conversational-input-container:focus-within {
    border-color: #5841D8;
    box-shadow: 0 4px 12px rgba(88, 65, 216, 0.1);
}

.conversational-textarea {
    width: 100%;
    min-height: 280px;
    padding: 24px;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
    background: transparent;
    color: #1a1a1a;
    line-height: 1.6;
}

.conversational-textarea:focus {
    outline: none;
}

.conversational-textarea::placeholder {
    color: #9ca3af;
    font-weight: 500;
    font-style: normal;
}

.input-footer {
    padding: 16px 24px;
    border-top: 1px solid #f3f4f6;
    background: #fafbfc;
}

.suggestion-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.suggestion-chip {
    padding: 7px 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 500;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: inherit;
}

.suggestion-chip:hover {
    background: #f9fafb;
    border-color: #5841D8;
    color: #5841D8;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(88, 65, 216, 0.1);
}

.suggestion-chip:active {
    transform: translateY(0);
}

.consultation-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 32px 0 24px;
}

.trust-microcopy {
    font-size: 14px;
    color: #9ca3af;
    font-weight: 400;
    margin: 0;
    text-align: center;
}

.textarea-helper {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 13px;
    color: #6b7280;
    border-top: 1px solid #f3f4f6;
    background: #fafbfc;
}

.textarea-helper svg {
    width: 16px;
    height: 16px;
    color: #9ca3af;
    flex-shrink: 0;
}

.consultation-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background-color: #0A58CA;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(88, 65, 216, 0.3);
    font-family: inherit;
}

.consultation-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 65, 216, 0.4);
    background: #0A58CA;
}

.consultation-cta-btn:active {
    transform: translateY(0);
}

.consultation-cta-btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
}

.form-select {
    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='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.privacy-reassurance {
    font-size: 12px;
    color: #6b7280;
    margin-top: 8px;
    margin-left: 28px;
    font-style: italic;
}

/* .trust-microcopy-form {
    font-size: 13px;
    color: #5841D8;
    font-weight: 500;
    text-align: center;
    margin: 20px 0 16px;
    padding: 12px;
    background: #f0f4ff;
    border-radius: 8px;
} */

.optional-upload-section {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #f3f4f6;
}

.optional-upload-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 13px;
    font-weight: 500;
    cursor: not-allowed;
    opacity: 0.6;
    transition: all 0.2s ease;
    font-family: inherit;
}

.optional-upload-link svg {
    width: 16px;
    height: 16px;
}

.optional-upload-link small {
    font-size: 11px;
    opacity: 0.8;
    font-weight: 400;
}

/* Responsive adjustments for Step 1 */
@media (max-width: 768px) {
    .consultation-title {
        font-size: 26px;
    }
    
    .consultation-subtitle {
        font-size: 14px;
    }
    
    .conversational-textarea {
        min-height: 240px;
        padding: 20px;
        font-size: 15px;
    }
    
    .suggestion-chips {
        gap: 6px;
    }
    
    .suggestion-chip {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .consultation-cta-btn {
        padding: 14px 28px;
        font-size: 15px;
    }
}

/* Step 2: Analysis - Premium Loading Screen */
.analysis-container {
    padding: 40px 30px;
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.analysis-header {
    text-align: center;
    margin-bottom: 50px;
}

.analysis-icon-main {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #5841D8 0%, #8e44ad 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(88, 65, 216, 0.3);
    animation: icon-pulse 2s ease-in-out infinite;
}

@keyframes icon-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 24px rgba(88, 65, 216, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 32px rgba(88, 65, 216, 0.4);
    }
}

.analysis-icon-main svg {
    width: 40px;
    height: 40px;
    stroke: white;
    fill: none;
    stroke-width: 2.5;
}

.analysis-title-main {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.analysis-subtitle-main {
    font-size: 15px;
    font-weight: 500;
    color: #666;
    margin-bottom: 20px;
}

.live-counter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #f0f4ff;
    border: 1px solid #e0e8ff;
    border-radius: 20px;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 600;
    color: #5841D8;
}

.counter-label {
    color: #6b7280;
    font-weight: 500;
}

.counter-value {
    font-weight: 600;
    color: #5841D8;
    font-variant-numeric: tabular-nums;
}

.finalizing-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    margin-top: 30px;
    background: #f0f4ff;
    border: 1px solid #e0e8ff;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    color: #5841D8;
    transition: opacity 0.3s ease;
}

.finalizing-icon {
    width: 20px;
    height: 20px;
    animation: spin 2s linear infinite;
}

.finalizing-icon svg {
    width: 100%;
    height: 100%;
    color: #5841D8;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

.analysis-steps-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.analysis-step-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: #fafafa;
    border-radius: 16px;
    border: 2px solid #f0f0f0;
    transition: all 0.4s ease;
    opacity: 0.5;
}

.analysis-step-item.active {
    opacity: 1;
    background: #fff;
    border-color: #5841D8;
    box-shadow: 0 4px 16px rgba(88, 65, 216, 0.1);
    transform: translateX(4px);
}

.analysis-step-item.completed {
    opacity: 1;
    background: #f0f7ff;
    border-color: #4caf50;
}

.analysis-step-item.active .step-loader.active {
    display: flex !important;
}

.analysis-step-item.completed .step-checkmark.active {
    display: flex !important;
}

.step-icon-wrapper {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-loader {
    position: absolute;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 2;
}

.step-loader.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid #e0e0e0;
    border-top: 3px solid #5841D8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-sizing: border-box;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.step-checkmark {
    position: absolute;
    width: 48px;
    height: 48px;
    background: #4caf50;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    animation: checkmark-appear 0.4s ease;
    z-index: 3;
}

.step-checkmark.active {
    display: flex;
}

@keyframes checkmark-appear {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.step-checkmark svg {
    width: 24px;
    height: 24px;
    stroke: white;
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.step-content {
    flex: 1;
    padding-top: 4px;
}

.step-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 6px;
    line-height: 1.4;
}

.analysis-step-item.active .step-title {
    color: #5841D8;
}

.analysis-step-item.completed .step-title {
    color: #2e7d32;
}

.step-description {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.analysis-footer {
    margin-top: auto;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.info-badges {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.info-badge {
    background: #f5f5f5;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-weight: 500;
}

.info-badge svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.analysis-footer {
    margin-top: auto;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.info-badges {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.info-badge {
    background: #f5f5f5;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-weight: 500;
}

.info-badge svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* Step 3: Candidates - Premium Card Layout */
/* AI Status Message */
.ai-status-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f0f4ff 0%, #f8f9ff 100%);
    border: 1px solid #e0e8ff;
    border-radius: 12px;
    margin-bottom: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ai-status-icon {
    width: 24px;
    height: 24px;
    color: #5841D8;
    animation: spin 2s linear infinite;
}

.ai-status-icon svg {
    width: 100%;
    height: 100%;
}

.ai-status-text {
    font-size: 14px;
    font-weight: 500;
    color: #5841D8;
    transition: opacity 0.2s ease;
}

@keyframes skillPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(88, 65, 216, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 4px rgba(88, 65, 216, 0);
    }
}

.results-header {
    margin-bottom: 30px;
    padding-bottom: 24px;
    border-bottom: 2px solid #f0f0f0;
}

.results-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.results-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.results-subtitle {
    font-size: 15px;
    color: #666;
    margin: 0;
}

.ai-badge-new {
    background: linear-gradient(135deg, #5841D8 0%, #8e44ad 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(88, 65, 216, 0.3);
}

.ai-badge-new svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
}

.match-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f0f7ff;
    padding: 10px 20px;
    border-radius: 12px;
    border: 1px solid #e0e8ff;
}

.match-number {
    font-size: 24px;
    font-weight: 700;
    color: #5841D8;
}

.match-text {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.ai-extracted-requirements {
    background: linear-gradient(135deg, #f0f4ff 0%, #f8f9ff 100%);
    border: 2px solid #e0e8ff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.extracted-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.extracted-header svg {
    width: 24px;
    height: 24px;
    color: #5841D8;
}

.extracted-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.extracted-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.extracted-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #1a1a1a;
    font-size: 14px;
}

.extracted-label {
    font-weight: 600;
    color: #6b7280;
    min-width: 100px;
}

.extracted-value {
    color: #1a1a1a;
    font-weight: 500;
}

.preview-count-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    background: #f0f4ff;
    border: 1px solid #e0e8ff;
    border-radius: 12px;
    margin-top: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #5841D8;
}

.preview-count-message svg {
    width: 18px;
    height: 18px;
    animation: spin 2s linear infinite;
}

.candidate-card-masked {
    opacity: 0.85;
    border: 2px dashed #d0d0d0;
}

.job-summary-section {
    background: #fafbff;
    border: 1px solid #e0e8ff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 30px;
}

.job-summary-header {
    display: flex;
    padding-top: 12px;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.job-summary-header svg {
    width: 20px;
    height: 20px;
    stroke: #5841D8;
    fill: none;
    stroke-width: 2;
}

.job-summary-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.job-summary-content {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.summary-tag {
    background: white;
    color: #333;
    padding: 6px px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #e0e0e0;
}

.candidates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.candidate-card {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
}

.candidate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #5841D8 0%, #8e44ad 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.candidate-card:hover {
    border-color: #5841D8;
    box-shadow: 0 8px 24px rgba(88, 65, 216, 0.15);
    transform: translateY(-4px);
}

.candidate-card:hover::before {
    transform: scaleX(1);
}

.candidate-card-blurred {
    filter: blur(3.5px);
    opacity: 0.75;
    pointer-events: none;
}

.candidate-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.candidate-identity {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.candidate-avatar-new {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #5841D8 0%, #8e44ad 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 20px;
    position: relative;
    flex-shrink: 0;
}

.verified-badge-new {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    background: #4caf50;
    border: 3px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.verified-badge-new svg {
    width: 10px;
    height: 10px;
    stroke: white;
    fill: white;
    stroke-width: 3;
}

.candidate-info-new {
    flex: 1;
    min-width: 0;
}

.candidate-role-new {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
    line-height: 1.3;
}

.candidate-title-new {
    font-size: 13px;
    color: #666;
    margin: 0 0 0 2px;
}

.match-score-wrapper {
    text-align: right;
}

.match-score-label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    font-weight: 600;
}

.match-score-value {
    font-size: 24px;
    font-weight: 700;
    color: #5841D8;
    line-height: 1;
    margin-bottom: 6px;
}

.match-score-bar {
    width: 60px;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    margin: 0 auto;
}

.match-score-fill {
    height: 100%;
    background: linear-gradient(90deg, #5841D8 0%, #8e44ad 100%);
    border-radius: 3px;
    transition: width 0.6s ease;
}

.candidate-experience {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 10px;
}

.experience-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #5841D8 0%, #8e44ad 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.experience-icon svg {
    width: 27px;
    height: 27px;
    stroke: white;
    fill: none;
    stroke-width: 2.5;
}

.experience-content {
    flex: 1;
}

.experience-years {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 2px;
    padding-top: 10px;
}

.experience-label {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: -7px 0 0 3px ;
}

.candidate-skills {
    margin-bottom: 20px;
}

.skills-label {
    font-size: 11px;
    color: #999;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    font-weight: 600;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.skill-tag {
    background: #f5f5f5;
    color: #333;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: background-color 400ms ease;
}

.skill-tag:hover{
    background-color: rgb(243, 243, 243);
}

.skill-tag.highlight {
    background: #e8e5ff;
    color: #5841D8;
    border-color: #d0c7ff;
    font-weight: 600;
}

.match-reasons {
    margin-bottom: 20px;
    padding: 12px;
    background: #f0f7ff;
    border-radius: 10px;
    border-left: 3px solid #5841D8;
}

.match-reasons-title {
    font-size: 11px;
    color: #5841D8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.match-reasons-title svg {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
}

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

.match-reasons-list li {
    font-size: 12px;
    color: #555;
    margin-bottom: 6px;
    padding-left: 16px;
    position: relative;
    line-height: 1.5;
}

.match-reasons-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4caf50;
    font-weight: 700;
    font-size: 14px;
}

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

.candidate-cta {
    width: 100%;
    background: linear-gradient(135deg, #5841D8 0%, #8e44ad 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(88, 65, 216, 0.3);
}

.candidate-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 65, 216, 0.4);
}

.candidate-cta:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.candidate-cta svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
}

.results-cta-section {
    background: linear-gradient(135deg, #5841D8 0%, #8e44ad 100%);
    border-radius: 16px;
    padding: 24px;
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: white;
}

.cta-content-new {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.cta-icon-new {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cta-icon-new svg {
    width: 24px;
    height: 24px;
    stroke: white;
    fill: none;
    stroke-width: 2.5;
}

.cta-text-new h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: white;
}

.cta-text-new p {
    font-size: 13px;
    margin: 0;
    opacity: 0.95;
    line-height: 1.5;
}

.unlock-btn-new {
    background: white;
    color: #5841D8;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.unlock-btn-new:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.unlock-btn-new svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
}

.candidates-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px;
}

.candidate-row {
    background: #fafafa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.candidate-row:hover {
    background: #f5f0ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(155, 89, 230, 0.1);
}

/* Blur Effect for Candidate Cards */
.candidate-card-blurred {
    filter: blur(3.5px);
    opacity: 0.75;
    pointer-events: none;
    transition: all 0.4s ease;
}

.candidates-grid {
    position: relative;
}

.blur-overlay-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 16px;
    transition: opacity 0.3s ease;
    box-shadow: 0 8px 32px rgba(88, 65, 216, 0.2);
    border: 1px solid rgba(88, 65, 216, 0.15);
    pointer-events: auto;
    animation: pulse-overlay 2s ease-in-out infinite;
    max-width: 90%;
}

@keyframes pulse-overlay {
    0%, 100% {
        opacity: 0.95;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.85;
        transform: translate(-50%, -50%) scale(1.02);
    }
}

.blur-message-content {
    text-align: center;
    padding: 32px 40px;
    max-width: 400px;
}

.blur-message-content svg {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    stroke: #5841D8;
    fill: none;
    stroke-width: 2;
    opacity: 0.9;
}

.blur-message-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
    opacity: 0.95;
}

.blur-message-content p {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 24px;
}

.blur-overlay-btn {
    width: 100%;
    background: linear-gradient(135deg, #5841D8 0%, #0A58CA 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(88, 65, 216, 0.3);
    margin-top: 8px;
}

.blur-overlay-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(88, 65, 216, 0.4);
}

.blur-overlay-btn:active {
    transform: translateY(0);
}

.blur-overlay-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
}

.candidate-cta:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    position: relative;
}

.candidate-cta:disabled::after {
    content: '🔒';
    position: absolute;
    right: 12px;
    font-size: 14px;
    opacity: 0.7;
}

.candidate-cell {
    padding: 16px;
    vertical-align: middle;
}

.candidate-id {
    display: flex;
    align-items: center;
    gap: 12px;
}

.candidate-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5841D8 0%, #8e44ad 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
    position: relative;
}

.verify-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    background: #2196f3;
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.verify-badge svg {
    width: 10px;
    height: 10px;
    stroke: white;
    fill: white;
}

.candidate-role {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.domain-depth {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.domain-rank {
    font-size: 12px;
    color: #666;
}

.stack-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.stack-tag {
    background: #e0e0e0;
    color: #333;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.dossier-btn {
    background: #1a1a1a;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.dossier-btn:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.dossier-btn svg {
    width: 14px;
    height: 14px;
}

.cta-banner {
    background: linear-gradient(135deg, #5841D8 0%, #8e44ad 100%);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
}

.cta-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cta-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-text {
    flex: 1;
}

.cta-title {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 4px;
}

.cta-subtitle {
    font-size: 12px;
    opacity: 0.9;
}

.unlock-btn {
    background: white;
    color: #5841D8;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.unlock-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Step 4: Form */
.form-container {
    margin-top: 20px;
}

.form-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
   border: 1px solid #e6e8ec;
    background-color: #f5f7fa;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-icon svg {
    width: 32px;
    height: 32px;
    stroke: white;
    fill: none;
    stroke-width: 2;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group-half {
    margin-bottom: 0;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-label .required {
    color: #e74c3c;
    margin-left: 2px;
}

.form-input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #fff;
    color: #333;
    box-sizing: border-box;
    line-height: 1.5;
}

.form-input:focus {
    outline: none;
    border-color: #5841D8;
    box-shadow: 0 0 0 4px rgba(155, 89, 230, 0.1);
}

.form-input.field-error,
.form-textarea.field-error {
    border-color: #e74c3c;
    background-color: #fff5f5;
}

.form-input.field-error:focus,
.form-textarea.field-error:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.1);
}

.form-input-icon {
    position: absolute;
    left: 16px;
    top: 24px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #999;
    z-index: 1;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-input-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    display: block;
}

.form-textarea-wrapper {
    position: relative;
}

.form-textarea {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
    background: #fff;
    color: #333;
    line-height: 1.6;
}

.form-textarea:focus {
    outline: none;
    border-color: #5841D8;
    box-shadow: 0 0 0 4px rgba(88, 65, 216, 0.1);
    background: #fafbff;
}

.field-error-message {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 6px;
    margin-bottom: 0;
    display: block;
    line-height: 1.4;
    font-weight: 600;
    padding-left: 0;
    clear: both;
}

.field-error-message::before {
    content: '⚠ ';
    font-size: 14px;
    margin-right: 4px;
    display: inline-block;
}

.form-input-wrapper .field-error-message,
.form-textarea-wrapper .field-error-message {
    margin-top: 6px;
    margin-bottom: 0;
}

.form-group .field-error-message {
    margin-top: 8px;
    margin-bottom: 0;
    margin-left: 10px;
}
.consent-checkbox.field-error {
    border: 2px solid #e74c3c;
    border-radius: 8px;
    padding: 12px;
    background-color: #fff5f5;
}

.form-consent .field-error-message {
    margin-top: 8px;
    margin-left: 0;
    margin-bottom: 0;
}

.form-textarea::placeholder {
    color: #999;
    font-style: italic;
}

.textarea-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 11px;
    color: #999;
}

.textarea-hint svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.form-consent {
    margin: 24px 0;
    padding: 16px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.consent-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.consent-checkbox input[type="checkbox"] {
    margin-top: 2px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #5841D8;
    flex-shrink: 0;
}

.consent-checkbox input[type="checkbox"]:checked {
    background: #5841D8;
}

.authorize-btn {
    width: 100%;
    background-color: #0A58CA;
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(88, 65, 216, 0.3);
}

.authorize-btn:hover {
    transform: translateY(-2px);
    background-color: #0A58CA;
    box-shadow: 0 6px 20px rgba(88, 65, 216, 0.4);
}

.authorize-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
}

.back-link {
    text-align: center;
    margin-top: 20px;
}

.back-link a {
    color: #999;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.back-link a:hover {
    color: #5841D8;
}

/* Action Buttons */
.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
    justify-content: flex-end;
}

.btn-primary {
    background: linear-gradient(135deg, #5841D8 0%, #8e44ad 100%);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(155, 89, 230, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(155, 89, 230, 0.4);
}

.btn-primary svg {
    width: 16px;
    height: 16px;
    stroke: white;
    fill: none;
    stroke-width: 2.5;
}

.btn-secondary {
    background: #f5f5f5;
    color: #333;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

/* Responsive - Mobile fixes */
@media (max-width: 768px) {
    .hire-modal-overlay {
        /* Mobile viewport fix */
        height: 100vh;
        height: -webkit-fill-available;
        height: 100dvh;
    }
    

    .hire-modal-content {
        padding: 24px 16px;
    }
    
    .hire-modal-close {
        top: 12px;
        right: 12px;
    }
    
    /* Touch-friendly buttons - minimum 44px height for mobile */
    .consultation-cta-btn,
    .btn-primary,
    .btn-secondary,
    .modal-next-btn,
    .modal-prev-btn,
    .scan-btn,
    .authorize-btn {
        min-height: 44px;
        padding: 12px 24px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Fix suggestion chips for mobile */
    .suggestion-chip {
        min-height: 36px;
        padding: 8px 14px;
        touch-action: manipulation;
    }

    .hire-modal-title {
        font-size: 24px;
    }

    .results-header-top {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .results-title {
        font-size: 24px;
    }

    .candidates-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .candidate-card {
        padding: 20px;
    }

    .results-cta-section {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .cta-content-new {
        flex-direction: column;
        text-align: center;
    }

    .unlock-btn-new {
        width: 100%;
    }

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

    .form-group-half {
        margin-bottom: 20px;
    }

    .match-count-badge {
        width: 100%;
        justify-content: center;
    }
}

