/* Captcha Styling */
.captcha-container {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.captcha-container .form-label {
    color: #374151;
    margin-bottom: 1rem;
}

/* Style the recaptcha iframe */
.g-recaptcha {
    transform: scale(0.95);
    transform-origin: 0 0;
}

/* Responsive captcha */
@media (max-width: 768px) {
    .g-recaptcha {
        transform: scale(0.85);
    }
}

@media (max-width: 480px) {
    .g-recaptcha {
        transform: scale(0.75);
    }
}

.cv-score-checker {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.hero-section {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 50%, #ddd6fe 100%);
    position: relative;
    overflow: visible;
    z-index: 1;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.feature-badge {
    background: white;
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
    color: #4c1d95;
    font-weight: 600;
    transition: all 0.3s ease;
}

.feature-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.2);
}

/* Upload Card */
.upload-card, .job-description-card {
    background: white;
    border-radius: 20px;
    position: relative;
    z-index: 10;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.upload-area {
    border: 3px dashed #c4b5fd;
    border-radius: 15px;
    padding: 2.5rem 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 10;
    background: white;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-area:hover {
    border-color: #8b5cf6;
    background: #faf5ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.15);
}

.upload-area.drag-over {
    border-color: #7c3aed;
    background: #f3e8ff;
    transform: scale(1.02);
}

.upload-area.has-file {
    border-color: #10b981;
    background: #f0fdf4;
}

/* Divider */
.divider-with-text {
    position: relative;
    text-align: center;
}

.divider-with-text::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #c4b5fd, transparent);
}

.divider-text {
    background: white;
    padding: 0 1rem;
    color: #6b21a8;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

/* Text Areas */
.raw-text-area, .job-description-area {
    margin-bottom: 1.5rem;
}

.form-control {
    border-radius: 12px;
    border: 2px solid #e9ecef;
    padding: 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    resize: vertical;
}

.form-control:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 0.2rem rgba(139, 92, 246, 0.15);
}

.form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
}

.form-text {
    font-size: 0.875rem;
}

/* Remove File Button */
.file-card {
    position: relative;
    display: inline-block;
    padding: 1.2rem 2rem;
    background: rgba(255,255,255,0.6);
    border-radius: 12px;
    text-align: center;
}

.btn-remove-file {
    position: absolute;
    top: 50%;
    right: -20px;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.45rem 0.65rem;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.btn-remove-file:hover {
    background: linear-gradient(135deg, #c82333, #bd2130);
    transform: translateY(-50%) translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
    color: white;
}

/* Analyze Button */
.analyze-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.analyze-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.analyze-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Benefits List */
.benefits-list {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #8b5cf6;
}

.benefits-list h6 {
    color: #374151;
}

.benefits-list li {
    padding: 0.25rem 0;
    color: #6b7280;
}

/* File Selected Animation */
.file-selected {
    position: relative;
    animation: slideInUp 0.3s ease;
}

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

/* Processing Section Styles */
.processing-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
}

/* AI Animation */
.ai-animation {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px;
}

.ai-orb {
    position: relative;
    width: 80px;
    height: 80px;
}

.ai-core {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulseCore 2s ease-in-out infinite;
}

.ai-ring {
    position: absolute;
    border: 2px solid #667eea;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.ai-ring-1 {
    width: 60px;
    height: 60px;
    animation: ringPulse 3s ease-in-out infinite;
}

.ai-ring-2 {
    width: 80px;
    height: 80px;
    animation: ringPulse 3s ease-in-out infinite 0.5s;
}

.ai-ring-3 {
    width: 100px;
    height: 100px;
    animation: ringPulse 3s ease-in-out infinite 1s;
}

@keyframes pulseCore {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.4);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        box-shadow: 0 0 30px rgba(102, 126, 234, 0.6);
    }
}

@keyframes ringPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0;
    }
}

/* Progress Bar */
.progress-container {
    max-width: 500px;
    margin: 0 auto;
}

.progress {
    height: 12px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    background: linear-gradient(90deg, #667eea, #764ba2, #ec4899);
    border-radius: 10px;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.progress-info {
    font-size: 0.9rem;
    font-weight: 500;
}

.progress-text {
    color: #6c757d;
}

.progress-percentage {
    color: #667eea;
    font-weight: 600;
}

/* Enhanced Processing Steps */
.processing-steps {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    opacity: 0.3;
    transition: all 0.5s ease;
    position: relative;
    flex: 1;
    max-width: 120px;
}

.step.active {
    opacity: 1;
    transform: scale(1.05);
}

.step.completed .step-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    transform: scale(1.1);
}

.step-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: all 0.5s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.step-text {
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    color: #374151;
}

.step-progress {
    width: 100%;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.step.completed .step-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    animation: stepProgress 1s ease-in-out;
    width: 100%;
}

@keyframes stepProgress {
    from {
        width: 0%;
    }
    to {
        width: 100%;
    }
}

/* Time Estimate */
.time-estimate {
    font-size: 0.875rem;
}

/* Results Section Styles */
.score-circle {
    position: relative;
    display: inline-block;
}

.score-circle svg {
    transform: rotate(-90deg);
}

.score-circle .score-bg {
    fill: none;
    stroke: #e9ecef;
    stroke-width: 8;
}

.score-circle .score-progress {
    fill: none;
    stroke: #667eea;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 377;
    stroke-dashoffset: 377;
    transition: stroke-dashoffset 2s ease;
}

.score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.score-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #667eea;
}

.score-grade {
    font-size: 1.2rem;
    color: #6c757d;
    font-weight: 600;
}

.fade-in {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

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

.category-card {
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.check-item {
    padding: 1.25rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    background: #f8f9fa;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.check-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: white;
}

.status-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-pass {
    color: #155724;
    border-left-color: #28a745;
}

.status-warning {
    color: #856404;
    border-left-color: #ffc107;
}

.status-fail {
    color: #721c24;
    border-left-color: #dc3545;
}

.progress {
    height: 8px;
    border-radius: 10px;
}

/* Features Section Enhanced Styling */
.features-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(99, 102, 241, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    margin: 1rem auto;
    border-radius: 2px;
}

.feature-card {
    background: linear-gradient(135deg, #ffffff 0%, #fdfcff 100%);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(139, 92, 246, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15),
    0 8px 25px rgba(139, 92, 246, 0.2);
}

.feature-icon-wrapper {
    position: relative;
    display: inline-block;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
}

.icon-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 25px;
    z-index: 1;
    animation: pulse 3s infinite;
}

.feature-list {
    text-align: left;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-item:hover {
    transform: translateX(5px);
    border-bottom-color: rgba(102, 126, 234, 0.3);
}

.feature-bullet {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    margin-top: 0.125rem;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* Remove the individual color coding for different cards since we're using consistent green ticks */
.feature-card:nth-child(2) .feature-bullet,
.feature-card:nth-child(3) .feature-bullet,
.feature-card:nth-child(4) .feature-bullet,
.feature-card:nth-child(5) .feature-bullet,
.feature-card:nth-child(6) .feature-bullet {
    background: linear-gradient(135deg, #10b981, #059669);
}

.feature-item span {
    color: #374151;
    font-weight: 500;
    line-height: 1.4;
    font-size: 0.95rem;
}

/* AI-specific styling for the last card */
.feature-card:last-child .feature-icon {
    background: linear-gradient(135deg, #00d0ff, #00a7cc);
}

.feature-card:last-child .icon-bg {
    background: linear-gradient(135deg, rgba(158, 232, 255, 0.1), rgba(112, 229, 255, 0.1));
}

.feature-card:last-child .feature-bullet {
    background: linear-gradient(135deg, #00ff00, #00aa00);
}

/* Animation for feature items */
@keyframes slideInFeatures {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card {
    animation: slideInFeatures 0.6s ease forwards;
}

.feature-card:nth-child(1) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.3s;
}

.feature-card:nth-child(4) {
    animation-delay: 0.4s;
}

.feature-card:nth-child(5) {
    animation-delay: 0.5s;
}

.feature-card:nth-child(6) {
    animation-delay: 0.6s;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .upload-area {
        padding: 1.5rem 1rem;
        min-height: 150px;
    }

    .form-control {
        padding: 0.75rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-text {
        font-size: 1.1rem;
    }

    .feature-badge {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .processing-steps {
        gap: 1rem;
    }

    .step {
        max-width: 100px;
    }

    .step-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .step-text {
        font-size: 0.8rem;
    }

    .ai-orb {
        width: 60px;
        height: 60px;
    }

    .ai-core {
        width: 30px;
        height: 30px;
    }

    .feature-card {
        margin-bottom: 1.5rem;
    }

    .feature-icon {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }

    .icon-bg {
        width: 85px;
        height: 85px;
    }

    .feature-item span {
        font-size: 0.9rem;
    }
}

@media print {
    .btn, .hero-section, .features-section {
        display: none !important;
    }
}

/* Conversion Button Styles */
.rewrite-now-btn, .save-rewrite-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.rewrite-now-btn:hover, .save-rewrite-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Make the conversion button more prominent */
.rewrite-now-btn {
    font-size: 1.1rem;
    padding: 0.875rem 2rem;
}
