/* HireVA Delegation Widget Frontend Styles */

/* Widget Container */
#hireva-delegation-widget {
    max-width: 700px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    position: relative;
}

#hireva-delegation-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.98) 100%);
    backdrop-filter: blur(10px);
    z-index: 1;
}

#hireva-delegation-widget > * {
    position: relative;
    z-index: 2;
}

/* Steps */
.hireva-step {
    display: none;
    padding: 40px;
    min-height: 400px;
    animation: hireva-fadeIn 0.5s ease-in-out;
}

.hireva-step.active {
    display: block;
}

@keyframes hireva-fadeIn {
    0% { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    100% { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.hireva-step-header {
    text-align: center;
    margin-bottom: 30px;
}

/* Header Badge */
.hireva-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.hireva-badge-icon {
    font-size: 16px;
}

.hireva-step-header h3 {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #1a1a1a, #4f46e5);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.hireva-subtitle {
    font-size: 18px;
    color: #666;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

/* Social Proof Section */
.hireva-social-proof {
    margin: 25px 0;
    padding: 20px;
    background: rgba(79, 70, 229, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(79, 70, 229, 0.1);
}

.hireva-testimonial-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.hireva-testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.hireva-testimonial-content {
    flex: 1;
}

.hireva-testimonial-text {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 14px;
    margin-bottom: 2px;
}

.hireva-testimonial-author {
    font-size: 12px;
    color: #666;
}

.hireva-stats-row {
    display: flex;
    justify-content: space-around;
    gap: 15px;
}

.hireva-stat-item {
    text-align: center;
    flex: 1;
}

.hireva-stat-number {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #4f46e5;
    margin-bottom: 2px;
}

.hireva-stat-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

/* Social Login Section */
.hireva-social-login-section {
    margin-bottom: 25px;
}

.hireva-social-login-header {
    text-align: center;
    margin-bottom: 15px;
}

.hireva-social-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.hireva-social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    background: white;
    color: #374151;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.hireva-social-btn:hover {
    border-color: #4f46e5;
    background: #f8fafc;
    transform: translateY(-1px);
}

.hireva-google-btn:hover {
    border-color: #ea4335;
}

.hireva-linkedin-btn:hover {
    border-color: #0077b5;
}

.hireva-social-icon {
    font-size: 18px;
}

.hireva-divider {
    position: relative;
    text-align: center;
    margin: 20px 0;
}

.hireva-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e1e5e9;
    z-index: 1;
}

.hireva-divider-text {
    background: white;
    color: #9ca3af;
    padding: 0 15px;
    font-size: 14px;
    position: relative;
    z-index: 2;
}

/* Enhanced Form Styles */
.hireva-enhanced-form {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(79, 70, 229, 0.1);
}

.hireva-input-wrapper {
    position: relative;
}

.hireva-enhanced-input {
    width: 100%;
    padding: 14px 16px 14px 45px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
    background: #fafbfc;
}

.hireva-enhanced-input:focus {
    outline: none;
    border-color: #4f46e5;
    background: white;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    transform: translateY(-1px);
}

.hireva-enhanced-input:valid {
    border-color: #10b981;
}

.hireva-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #9ca3af;
    transition: color 0.3s ease;
    pointer-events: none;
}

.hireva-enhanced-input:focus + .hireva-input-icon {
    color: #4f46e5;
}

.hireva-input-validation {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hireva-enhanced-input:valid + .hireva-input-icon + .hireva-input-validation::after {
    content: '✓';
    color: #10b981;
    opacity: 1;
}

.hireva-enhanced-input.hireva-error {
    border-color: #ef4444;
    background: #fef2f2;
}

.hireva-enhanced-input.hireva-valid {
    border-color: #10b981;
    background: #f0fdf4;
}

/* ROI Preview Card */
.hireva-roi-card {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    margin: 20px 0;
    animation: hireva-slideIn 0.5s ease-out;
}

.hireva-roi-card.hireva-roi-animated {
    animation: hireva-pulse 0.6s ease-in-out;
}

.hireva-roi-header h4 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
}

.hireva-roi-highlight {
    text-align: center;
    margin-bottom: 20px;
}

.hireva-roi-amount {
    display: block;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
}

.hireva-roi-period {
    font-size: 14px;
    opacity: 0.9;
}

.hireva-roi-breakdown {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.hireva-roi-item {
    text-align: center;
    flex: 1;
}

.hireva-roi-label {
    display: block;
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 4px;
}

.hireva-roi-value {
    display: block;
    font-size: 18px;
    font-weight: 600;
}

@keyframes hireva-slideIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hireva-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

/* Progress Indicators */
.hireva-progress-indicator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.hireva-progress-bar {
    flex: 1;
    height: 4px;
    background: #e1e5e9;
    border-radius: 2px;
    margin: 0 15px;
    overflow: hidden;
}

.hireva-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Trust Indicators */
.hireva-trust-indicators {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    padding: 15px;
    background: rgba(79, 70, 229, 0.05);
    border-radius: 8px;
}

.hireva-trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.hireva-trust-item .hireva-icon {
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    #hireva-delegation-widget {
        margin: 10px;
        border-radius: 12px;
    }
    
    .hireva-step {
        padding: 25px 20px;
    }
    
    .hireva-step-header h3 {
        font-size: 24px;
    }
    
    .hireva-social-buttons {
        flex-direction: column;
    }
    
    .hireva-roi-breakdown {
        flex-direction: column;
        gap: 10px;
    }
    
    .hireva-stats-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .hireva-form-row {
        flex-direction: column;
    }
    
    .hireva-form-group-half {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hireva-step {
        padding: 20px 15px;
    }
    
    .hireva-step-header h3 {
        font-size: 20px;
    }
    
    .hireva-roi-amount {
        font-size: 28px;
    }
    
    .hireva-enhanced-input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Input Section */
.hireva-input-section {
    margin-bottom: 30px;
}

#hireva-task-input {
    width: 100%;
    min-height: 200px;
    padding: 20px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

#hireva-task-input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.hireva-tips {
    margin-top: 15px;
    padding: 15px;
    background: #f8fafc;
    border-left: 4px solid #4f46e5;
    border-radius: 4px;
    font-size: 14px;
    color: #555;
}

/* Buttons */
.hireva-btn {
    display: inline-block;
    padding: 16px 32px;
    background: #4f46e5;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hireva-btn:hover {
    background: #4338ca;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
}

.hireva-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.hireva-btn-primary {
    background: #4f46e5;
}

.hireva-btn-secondary {
    background: #6b7280;
}

.hireva-btn-large {
    padding: 20px 40px;
    font-size: 18px;
}

.hireva-btn-loading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hireva-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: hireva-spin 1s linear infinite;
}

@keyframes hireva-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hireva-link-btn {
    background: none;
    border: none;
    color: #4f46e5;
    text-decoration: underline;
    cursor: pointer;
    font-size: 14px;
    margin-top: 15px;
}

/* Action Section */
.hireva-action-section {
    text-align: center;
    margin-top: 30px;
}

.hireva-privacy {
    margin-top: 15px;
    font-size: 14px;
    color: #6b7280;
}

/* Analysis Results */
.hireva-recommendations {
    margin-bottom: 30px;
}

.hireva-recommendations h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.hireva-icon {
    font-size: 24px;
}

.hireva-recommendations-list {
    display: grid;
    gap: 15px;
}

.hireva-recommendation-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.2s ease;
}

.hireva-recommendation-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hireva-rec-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.hireva-rec-header strong {
    font-size: 16px;
    color: #1a1a1a;
}

.hireva-confidence {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.hireva-confidence-high {
    background: #dcfce7;
    color: #166534;
}

.hireva-confidence-medium {
    background: #fef3c7;
    color: #92400e;
}

.hireva-confidence-low {
    background: #fee2e2;
    color: #991b1b;
}

.hireva-rec-details {
    font-size: 14px;
    color: #6b7280;
}

.hireva-rec-service {
    margin-bottom: 8px;
    font-weight: 500;
}

.hireva-rec-savings {
    display: flex;
    gap: 15px;
}

.hireva-time-saved {
    color: #059669;
    font-weight: 600;
}

.hireva-cost-savings {
    color: #dc2626;
    font-weight: 600;
}

/* Task Breakdown */
.hireva-task-breakdown {
    margin-bottom: 30px;
}

.hireva-tasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.hireva-task-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    border-left: 4px solid;
}

.hireva-delegation-high {
    border-left-color: #059669;
}

.hireva-delegation-medium {
    border-left-color: #d97706;
}

.hireva-delegation-low {
    border-left-color: #dc2626;
}

.hireva-task-name {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.hireva-task-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 12px;
    color: #6b7280;
}

.hireva-delegation-score {
    font-size: 12px;
    font-weight: 600;
    color: #4f46e5;
}

/* ROI Section */
.hireva-roi-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.hireva-roi-container h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
    color: white;
}

.hireva-roi-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.hireva-roi-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.hireva-roi-primary {
    background: rgba(255, 255, 255, 0.2);
}

.hireva-roi-value {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
}

.hireva-roi-label {
    font-size: 12px;
    opacity: 0.9;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.hireva-roi-breakdown {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
}

.hireva-roi-breakdown h5 {
    margin: 0 0 15px 0;
    font-size: 16px;
}

.hireva-cost-comparison {
    display: grid;
    gap: 10px;
}

.hireva-cost-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.hireva-cost-savings {
    font-weight: 700;
    border-bottom-color: rgba(255, 255, 255, 0.4);
}

.hireva-roi-insight {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    border-left: 4px solid #fbbf24;
}

.hireva-insight-excellent {
    border-left-color: #10b981;
}

.hireva-insight-good {
    border-left-color: #3b82f6;
}

/* Form Styles */
.hireva-form {
    max-width: 400px;
    margin: 0 auto;
}

.hireva-form-group {
    margin-bottom: 20px;
}

.hireva-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #374151;
}

.hireva-form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.hireva-form-group input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.hireva-form-group small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #6b7280;
}

.hireva-benefits {
    background: #f8fafc;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
}

.hireva-benefits h4 {
    margin: 0 0 15px 0;
    color: #1a1a1a;
}

.hireva-benefits ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hireva-benefits li {
    padding: 5px 0;
    font-size: 14px;
    color: #4b5563;
}

/* Success Page */
.hireva-success-content {
    text-align: center;
}

.hireva-success-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.hireva-next-steps {
    background: #f8fafc;
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
    text-align: left;
}

.hireva-timeline {
    margin-top: 15px;
}

.hireva-timeline-item {
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
}

.hireva-timeline-item:last-child {
    border-bottom: none;
}

.hireva-cta-section {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

/* Progress Indicator */
.hireva-progress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #e5e7eb;
}

.hireva-progress-bar {
    position: relative;
    height: 100%;
}

.hireva-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    transition: width 0.5s ease;
    width: 33.33%;
}

.hireva-progress-steps {
    position: absolute;
    bottom: -30px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
}

.hireva-progress-step {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hireva-progress-step.active {
    background: #4f46e5;
    color: white;
}

.hireva-progress-step.completed {
    background: #10b981;
    color: white;
}

/* Error Handling */
.hireva-error {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #fecaca;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hireva-error-icon {
    font-size: 18px;
}

/* Privacy Link */
.hireva-privacy-link {
    color: #4f46e5;
    text-decoration: none;
}

.hireva-privacy-link:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    #hireva-delegation-widget {
        margin: 10px;
        border-radius: 8px;
    }
    
    .hireva-step {
        padding: 30px 20px;
        min-height: 300px;
    }
    
    .hireva-step-header h3 {
        font-size: 24px;
    }
    
    .hireva-roi-cards {
        grid-template-columns: 1fr;
    }
    
    .hireva-tasks-grid {
        grid-template-columns: 1fr;
    }
    
    .hireva-rec-savings {
        flex-direction: column;
        gap: 5px;
    }
    
    .hireva-cta-section {
        text-align: center;
    }
    
    .hireva-progress-steps {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .hireva-step {
        padding: 20px 15px;
    }
    
    .hireva-btn {
        width: 100%;
        padding: 16px;
    }
    
    .hireva-roi-value {
        font-size: 24px;
    }
}
