/* Animation Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-30px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes glow {
    0% {
        box-shadow: 0 0 5px #c084fc, 0 0 10px #c084fc, 0 0 15px #c084fc;
    }

    100% {
        box-shadow: 0 0 10px #a855f7, 0 0 20px #a855f7, 0 0 30px #a855f7;
    }
}

/* Animation Classes */
.animate-slide-up {
    animation: slideUp 0.8s ease-out;
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

.animate-slide-in {
    animation: slideIn 0.8s ease-out;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite alternate;
}

/* Layout */
.main-content-wrapper {
    margin: 0 auto;
    max-width: 1200px;
    padding: 157px;
}

body {
    font-family: inherit;
    background: linear-gradient(135deg, #f0f4ff 0%, #e6e6ff 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 20%);
    z-index: -1;
}

/* Form Sections */
.form-section {
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

/* Fixed Floating Labels */
.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.input-field {
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem 1rem 0.5rem 1rem;
    width: 100%;
    font-size: 1rem;
}

.input-field:focus {
    background: rgba(255, 255, 255, 0.9);
    border-color: #7c3aed;
    outline: none;
    box-shadow: 0 4px 6px -1px rgba(124, 58, 237, 0.1), 0 2px 4px -1px rgba(124, 58, 237, 0.06);
}

.floating-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: #6b7280;
    transition: all 0.3s ease;
    pointer-events: none;
    background: transparent;
    font-size: 1rem;
}

.input-field:focus+.floating-label,
.input-field:not(:placeholder-shown)+.floating-label {
    top: 0.25rem;
    left: 0.75rem;
    font-size: 0.75rem;
    color: #7c3aed;
    background: white;
    padding: 0 0.5rem;
}

/* Textarea specific styles */
textarea.input-field {
    padding-top: 1.5rem;
    resize: vertical;
    min-height: 100px;
}

/* Progress Bar */
.progress-bar {
    transition: width 0.5s ease-in-out;
}

/* Icons */
.section-icon {
    transition: all 0.3s ease;
}

.form-section:hover .section-icon {
    transform: scale(1.1) rotate(5deg);
    color: #7c3aed;
}

/* File Upload */
.file-upload-area {
    border: 2px dashed #c084fc;
    transition: all 0.3s ease;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
}

.file-upload-area:hover
 {
    border-color: #7c3aed;
    background: #e7dff5;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    color: white;
    font-weight: 600;
    border-radius: 0.75rem;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.3);
}

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

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::after {
    left: 100%;
}

.btn-secondary {
    transition: all 0.3s ease;
    background: #e5e7eb;
    border: none;
    color: #374151;
    font-weight: 600;
    border-radius: 0.75rem;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
}

.btn-secondary:hover {
    background: #d1d5db;
    transform: translateY(-2px);
}

/* Form Steps */
.form-step {
    transition: all 0.5s ease;
}

.form-step.active {
    display: block;
    animation: slideIn 0.5s ease-out;
}

.form-step:not(.active) {
    display: none;
}

/* Step Indicators */
.step-indicator {
    transition: all 0.3s ease;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.step-indicator.active {
    background: #7c3aed;
    color: white;
    transform: scale(1.1);
}

.step-indicator.completed {
    background: #10b981;
    color: white;
}

/* Tooltips */
.tooltip {
    position: relative;
}

.tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    white-space: nowrap;
    z-index: 10;
}

.tooltip:hover::before {
    content: '';
    position: absolute;
    bottom: calc(100% - 5px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1f2937;
    z-index: 10;
}

/* Skill Tags */
.skill-tag {
    transition: all 0.3s ease;
    cursor: pointer;
}

.skill-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Form Container */
.form-container {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-container {
        margin: 1rem;
        padding: 1.5rem;
    }

    .main-content-wrapper {
        padding: 20px 10px;
    }

    .input-field {
        padding: 1.25rem 0.75rem 0.25rem 0.75rem;
    }

    .floating-label {
        top: 0.75rem;
        left: 0.75rem;
    }

    .input-field:focus+.floating-label,
    .input-field:not(:placeholder-shown)+.floating-label {
        top: 0.125rem;
        left: 0.5rem;
        font-size: 0.7rem;
    }
}

@media (max-width: 640px) {
    .form-section {
        padding: 1.5rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
}
/* Progress Bar Styles */
.step-indicator {
    transition: all 0.3s ease;
    position: relative;
}

.step-indicator.active {
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.2);
}

.step-indicator.completed::after {
    content: '✓';
    position: absolute;
    top: -2px;
    right: -2px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-label {
    transition: all 0.3s ease;
    line-height: 1.2;
}

.progress-bar {
    transition: width 0.5s ease-in-out;
}

/* CV Builder (formcv.php) */
.cv-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.35rem;
}

.cv-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.cv-input:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.cv-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cv-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.75rem;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, #0284c7 0%, #7c3aed 100%);
    transition: transform 0.2s, box-shadow 0.2s;
}

.cv-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.35);
}

.cv-btn-primary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.cv-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    font-weight: 600;
    color: #475569;
    background: #f8fafc;
    cursor: pointer;
    transition: background 0.2s;
}

.cv-btn-secondary:hover {
    background: #f1f5f9;
}

.step-pill {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.4rem 0.85rem;
    border-radius: 9999px;
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.step-pill.active {
    background: linear-gradient(135deg, #0284c7 0%, #7c3aed 100%);
    color: #fff;
    border-color: transparent;
}

.step-pill.done {
    background: #d1fae5;
    color: #047857;
    border-color: #a7f3d0;
}

.cv-success-panel {
    background: linear-gradient(135deg, #ecfdf5 0%, #f0f9ff 100%);
    border: 1px solid #a7f3d0;
}

.cv-form-card .hidden {
    display: none !important;
}