/* ===== CSS Variables ===== */
:root {
    --primary-color: #1565C0;
    --primary-dark: #0D47A1;
    --primary-light: #42A5F5;
    --secondary-color: #00897B;
    --secondary-dark: #00695C;
    --accent-color: #FF6F00;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    
    --text-primary: #1A1A2E;
    --text-secondary: #5C5C7A;
    --text-light: #9E9EAF;
    
    --bg-primary: #ffffff;
    --bg-secondary: #F5F7FA;
    --bg-dark: #1A1A2E;
    
    --border-color: #E0E0E0;
    --border-light: #F0F0F0;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.15);
    --shadow-colored: 0 8px 32px rgba(102, 126, 234, 0.25);
    --shadow-glow: 0 0 30px rgba(102, 126, 234, 0.3);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --transition: all 0.3s ease;
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ===== Reset & Base Styles ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Visually hidden - accessible to screen readers but not visible */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

html {
    scroll-behavior: smooth;
}

/* Scroll-based fade-in animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.fade-in-up.delay-1 {
    animation-delay: 0.1s;
}

.fade-in-up.delay-2 {
    animation-delay: 0.2s;
}

.fade-in-up.delay-3 {
    animation-delay: 0.3s;
}

.fade-in-up.delay-4 {
    animation-delay: 0.4s;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background-attachment: fixed;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Container ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.75);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-img {
    height: 70px;
    width: auto;
    object-fit: contain;
}

/*
  Targets the image with class 'logo-img' ONLY when it is inside the 
  main <header> HTML tag. This is the most robust fix.
*/
header .logo-img {
    /* Set a new, visually prominent height */
    height: 120px; 

    /* Keep the image proportional */
    width: auto;

    /* Optional: Ensure it has proper space around it in the header */
    padding: 10px 0;
    display: block;
}

.footer-logo .logo-img {
    height: 45px;
    filter: brightness(1.2);
    mix-blend-mode: screen;
}

.logo-icon {
    font-size: 28px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-colored);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-large {
    padding: 18px 36px;
    font-size: 17px;
    border-radius: var(--radius-lg);
}

.btn-icon {
    font-size: 20px;
}

.btn-arrow {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* ===== Hero Section ===== */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.5) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 70%;
    height: 150%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    animation: floatBubble 20s ease-in-out infinite;
}

@keyframes floatBubble {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-50px, 50px) scale(1.1); }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 60px;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.office-photo {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    object-fit: cover;
}

.hero-content {
    max-width: 700px;
}

.hero-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.tagline {
    font-size: 22px;
    font-weight: 500;
    font-style: italic;
    color: var(--secondary-color);
    margin-bottom: 16px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 24px;
    max-width: 600px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: var(--shadow-colored);
    border-color: rgba(102, 126, 234, 0.3);
}

.stat-card.ai-card {
    background: var(--gradient-primary);
    color: white;
    position: relative;
    overflow: hidden;
}

.stat-card.ai-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotateGradient 10s linear infinite;
}

@keyframes rotateGradient {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.stat-card.ai-card .stat-number {
    color: white;
}

.stat-card.ai-card .stat-label,
.stat-card.ai-card .stat-detail {
    color: rgba(255, 255, 255, 0.9);
}

.stat-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.stat-detail {
    font-size: 12px;
    color: var(--secondary-color);
    font-weight: 500;
    margin-top: 4px;
}

/* ===== Section Styles ===== */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Jobs Section ===== */
.jobs-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.jobs-container {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: 48px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.jobs-cta {
    text-align: center;
    margin-bottom: 40px;
}

.jobs-widget-container {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--border-color);
}

.widget-header {
    margin-bottom: 24px;
}

.widget-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.jobs-widget {
    min-height: 300px;
}

.powered-by {
    text-align: center;
    margin-top: 32px;
}

.powered-by a {
    font-size: 12px;
    color: var(--text-light);
    transition: var(--transition);
}

.powered-by a:hover {
    color: var(--primary-color);
}

/* ===== Custom Jobs Section ===== */
.custom-jobs-section {
    margin-bottom: 32px;
}

.custom-jobs-section .widget-header h3 {
    color: var(--accent-color);
}

.custom-jobs-list {
    display: grid;
    gap: 16px;
}

.custom-job-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 4px solid transparent;
    background-image: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), var(--gradient-primary);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.custom-job-card:hover {
    box-shadow: var(--shadow-colored);
    transform: translateY(-4px) scale(1.02);
    border-left-width: 6px;
}

.custom-job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
}

.custom-job-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.custom-job-company {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.custom-job-type {
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.custom-job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
}

.custom-job-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-secondary);
}

.custom-job-meta-icon {
    font-size: 16px;
}

.custom-job-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.custom-job-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

.custom-job-salary {
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary-color);
}

.custom-job-apply {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.custom-job-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(21, 101, 192, 0.3);
}

@media (max-width: 600px) {
    .custom-job-header {
        flex-direction: column;
        gap: 8px;
    }
    
    .custom-job-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .custom-job-footer {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .custom-job-apply {
        width: 100%;
        text-align: center;
    }
}

/* ===== About Section ===== */
.about-section {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.6);
    position: relative;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(0, 137, 123, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-text {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.8;
}

.about-text strong {
    color: var(--primary-color);
}

.about-text em {
    font-style: normal;
    font-weight: 600;
    color: var(--secondary-color);
}

.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(21, 101, 192, 0.3);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(21, 101, 192, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(21, 101, 192, 0.5);
    }
}

.ai-badge-icon {
    font-size: 18px;
}

.benefits-list {
    list-style: none;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 16px;
    color: var(--text-primary);
}

.benefit-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.about-image {
    display: flex;
    justify-content: center;
}

.about-photo {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    object-fit: cover;
}

.about-video {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    object-fit: cover;
    background: #000;
}

.image-placeholder {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    gap: 16px;
    box-shadow: var(--shadow-xl);
}

.placeholder-icon {
    font-size: 80px;
}

.placeholder-text {
    font-size: 18px;
    font-weight: 600;
}

/* ===== Process Section ===== */
.process-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.process-card {
    background: var(--bg-primary);
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
}

.process-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.process-number {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.process-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.process-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.process-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== Contact Section ===== */
.contact-section {
    padding: 80px 0;
    background: var(--bg-primary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-text {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.8;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.contact-method strong {
    display: block;
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.contact-method p {
    font-size: 15px;
    color: var(--text-secondary);
}

.contact-cta {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.cta-card {
    background: var(--gradient-primary);
    padding: 48px;
    border-radius: var(--radius-xl);
    text-align: center;
    color: white;
    box-shadow: var(--shadow-colored);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    animation: rotateSlow 15s linear infinite;
}

@keyframes rotateSlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cta-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-glow);
}

.cta-card h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-card p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 28px;
}

.cta-card .btn-primary {
    background: white;
    color: var(--primary-color);
}

.cta-card .btn-primary:hover {
    background: var(--bg-secondary);
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 48px 0 24px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
    color: white;
    margin-bottom: 8px;
}

.footer-tagline {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-links .admin-link {
    opacity: 0.5;
    font-size: 13px;
}

.footer-links .admin-link:hover {
    opacity: 1;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.footer-social a:hover {
    background: #1877F2;
    transform: scale(1.1);
}

.footer-social svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    .office-photo {
        max-width: 400px;
    }
    
    .about-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
    
    .jobs-container {
        padding: 24px;
    }
    
    .jobs-widget-container {
        padding: 20px;
    }
    
    .process-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .btn-large {
        padding: 14px 24px;
        font-size: 15px;
    }
    
    .cta-card {
        padding: 32px 24px;
    }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Secondary Button ===== */
.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--primary-color);
    border: 2px solid rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.4s ease;
    z-index: 0;
}

.btn-secondary span {
    position: relative;
    z-index: 1;
}

.btn-secondary:hover::before {
    left: 0;
}

.btn-secondary:hover {
    color: white;
    transform: translateY(-2px);
    border-color: transparent;
    box-shadow: var(--shadow-colored);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-full {
    width: 100%;
}

/* ===== Enhanced Tracking Section ===== */
.tracking-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 50%, #2d1b4e 100%);
    position: relative;
    overflow: hidden;
}

.tracking-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(59, 130, 246, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.tracking-section .section-header {
    position: relative;
    z-index: 1;
}

.tracker-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.5px;
}

.badge-icon {
    font-size: 14px;
}

.tracking-section .section-title {
    color: white;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
}

.tracking-section .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    max-width: 500px;
    margin: 0 auto;
}

.tracking-container {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Tracking Form Wrapper */
.tracking-form-wrapper {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 24px;
    padding: 48px;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tracking-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #a855f7);
}

.tracking-form-header {
    margin-bottom: 32px;
}

.tracking-icon-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.tracking-icon {
    font-size: 56px;
    position: relative;
    z-index: 1;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.icon-ring {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 3px solid rgba(99, 102, 241, 0.2);
    border-radius: 50%;
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}

.tracking-form-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.tracking-form-header p {
    font-size: 15px;
    color: var(--text-secondary);
}

/* Access Code Input */
.tracking-form {
    max-width: 380px;
    margin: 0 auto;
}

.access-code-input-wrapper {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.access-code-input-wrapper:focus-within {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    background: white;
}

.input-prefix {
    padding: 16px;
    padding-right: 0;
    font-size: 20px;
    font-weight: 700;
    color: #6366f1;
    font-family: 'SF Mono', 'Fira Code', monospace;
    letter-spacing: 2px;
}

.access-code-input-wrapper input {
    flex: 1;
    padding: 16px;
    padding-left: 4px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    border: none;
    background: transparent;
    font-family: 'SF Mono', 'Fira Code', monospace;
    color: var(--text-primary);
}

.access-code-input-wrapper input::placeholder {
    color: #94a3b8;
    letter-spacing: 3px;
}

.access-code-input-wrapper input:focus {
    outline: none;
}

.input-hint {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-light);
}

/* Track Button */
.btn-track {
    width: 100%;
    margin-top: 24px;
    padding: 18px 32px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-track::before {
    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 ease;
}

.btn-track:hover::before {
    left: 100%;
}

.btn-track:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px -10px rgba(99, 102, 241, 0.5);
}

.btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-icon-svg {
    flex-shrink: 0;
}

.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Tracking Footer */
.tracking-footer {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.tracking-footer p {
    font-size: 14px;
    color: var(--text-secondary);
}

.tracking-footer a {
    color: #6366f1;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.tracking-footer a:hover {
    color: #4f46e5;
    text-decoration: underline;
}

/* ===== Status Display ===== */
.status-display {
    margin-top: 32px;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.status-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
}

.status-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 50px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.status-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-secondary);
}

.close-btn:hover {
    background: #fee2e2;
    border-color: #fecaca;
    color: #dc2626;
}

.status-content {
    padding: 32px;
}

/* Applicant Card */
.applicant-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    margin-bottom: 32px;
}

.applicant-avatar {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.applicant-details {
    flex: 1;
    min-width: 0;
}

.applicant-details h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 6px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.applicant-position {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0;
}

.applicant-position svg {
    color: #6366f1;
    flex-shrink: 0;
}

.applicant-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 20px;
    border-left: 2px solid #e2e8f0;
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
}

.meta-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.meta-value.code {
    font-family: 'SF Mono', 'Fira Code', monospace;
    color: #6366f1;
}

/* Timeline Container */
.timeline-container {
    margin-bottom: 32px;
}

.timeline-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    margin: 0 0 20px 0;
}

.status-timeline {
    position: relative;
    display: flex;
    justify-content: space-between;
    padding: 0;
}

.timeline-track {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    z-index: 0;
}

.timeline-progress {
    position: absolute;
    top: 20px;
    left: 20px;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #059669);
    border-radius: 2px;
    z-index: 1;
    transition: width 0.5s ease;
    width: 0%;
}

.timeline-item {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    text-align: center;
    padding: 0 8px;
}

.timeline-marker {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    border: 3px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.timeline-marker svg {
    opacity: 0;
    color: white;
    transition: opacity 0.3s;
}

.timeline-item.completed .timeline-marker {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #10b981;
    box-shadow: 0 4px 14px -4px rgba(16, 185, 129, 0.5);
}

.timeline-item.completed .timeline-marker svg {
    opacity: 1;
}

.timeline-item.current .timeline-marker {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-color: #6366f1;
    box-shadow: 0 0 0 6px rgba(99, 102, 241, 0.2);
    animation: pulse-marker 2s infinite;
}

@keyframes pulse-marker {
    0%, 100% { box-shadow: 0 0 0 6px rgba(99, 102, 241, 0.2); }
    50% { box-shadow: 0 0 0 12px rgba(99, 102, 241, 0.1); }
}

.timeline-content h5 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.timeline-content p {
    font-size: 11px;
    color: var(--text-light);
    margin: 0;
    line-height: 1.4;
}

.timeline-item:not(.completed):not(.current) .timeline-content h5 {
    color: var(--text-light);
}

/* ===== Tracker Alerts ===== */
.tracker-alert {
    display: flex;
    gap: 20px;
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.tracker-alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

/* Document Alert */
.tracker-document-alert {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.tracker-document-alert::before {
    background: linear-gradient(180deg, #f59e0b, #d97706);
}

/* Warning Alert */
.oasis-error-alert {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
}

.oasis-error-alert::before {
    background: linear-gradient(180deg, #ef4444, #dc2626);
}

/* Recruiter Message */
.recruiter-message {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
}

.recruiter-message::before {
    background: linear-gradient(180deg, #6366f1, #4f46e5);
}

.alert-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.alert-icon-wrapper.document {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.alert-icon-wrapper.warning {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.alert-icon-wrapper.message {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
}

.alert-content {
    flex: 1;
}

.alert-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.7);
    margin-bottom: 8px;
}

.alert-content h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 6px 0;
}

.alert-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.alert-details {
    margin-top: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    font-size: 13px;
}

.alert-details p {
    margin: 4px 0;
}

.btn-alert-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-alert-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -8px rgba(245, 158, 11, 0.5);
}

.recruiter-message-text {
    font-size: 15px !important;
    line-height: 1.6 !important;
    white-space: pre-wrap;
}

/* ===== Section Cards ===== */
.section-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
}

.section-card-header {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.section-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    flex-shrink: 0;
}

.section-icon.forms {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.section-icon.resume {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.section-card-header h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.section-card-header p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

/* ===== Message Compose ===== */
.message-compose {
    background: white;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #e2e8f0;
}

.message-compose textarea {
    width: 100%;
    padding: 14px;
    font-size: 14px;
    font-family: inherit;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    resize: vertical;
    min-height: 100px;
    transition: all 0.2s;
    background: #f8fafc;
}

.message-compose textarea:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    background: white;
}

.message-compose-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.char-count {
    font-size: 12px;
    color: var(--text-light);
}

.btn-send {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -8px rgba(16, 185, 129, 0.5);
}

/* Message History */
.message-history {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.message-history-header h5 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    margin: 0 0 16px 0;
}

.message-history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 350px;
    overflow-y: auto;
    padding-right: 8px;
}

.message-history-list::-webkit-scrollbar {
    width: 6px;
}

.message-history-list::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.message-history-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.message-item {
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 14px;
}

.message-item.from-candidate {
    background: white;
    border: 1px solid #d1fae5;
    margin-left: 24px;
    border-left: 3px solid #10b981;
}

.message-item.from-recruiter {
    background: #e0e7ff;
    border: 1px solid #c7d2fe;
    margin-right: 24px;
    border-left: 3px solid #6366f1;
}

.message-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.message-item-sender {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
}

.message-item-time {
    font-size: 11px;
    color: var(--text-light);
}

.message-item-text {
    color: var(--text-primary);
    line-height: 1.6;
    white-space: pre-wrap;
}

/* ===== Forms Section ===== */
.forms-section .forms-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.form-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.2s;
}

.form-item:hover {
    border-color: #f59e0b;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.1);
}

.form-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-item-icon {
    font-size: 24px;
}

.form-item-name {
    font-weight: 600;
    color: var(--text-primary);
}

.form-item-btn {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.form-item-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* Upload Dropzone */
.forms-upload-area {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #cbd5e1;
}

.upload-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    background: white;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
}

.upload-dropzone:hover {
    border-color: #f59e0b;
    background: #fffbeb;
}

.upload-dropzone svg {
    color: #cbd5e1;
    margin-bottom: 12px;
    transition: color 0.3s;
}

.upload-dropzone:hover svg {
    color: #f59e0b;
}

.upload-dropzone h5 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.upload-dropzone p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

.upload-formats {
    display: block;
    margin-top: 8px;
    font-size: 11px;
    color: var(--text-light);
}

.upload-dropzone input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.btn-upload {
    margin-top: 16px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #f59e0b;
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    z-index: 2;
}

.btn-upload:hover {
    background: #fde68a;
}

.uploaded-files-list {
    margin-top: 16px;
}

/* ===== Resume Section ===== */
.resume-status-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 16px;
}

.resume-status-icon {
    width: 44px;
    height: 44px;
    background: #f1f5f9;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.resume-status-card.has-resume .resume-status-icon {
    background: #d1fae5;
    color: #10b981;
}

.resume-status-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.resume-upload-area {
    text-align: center;
}

.resume-btn-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-upload-resume {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-upload-resume:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -8px rgba(99, 102, 241, 0.5);
}

.btn-delete-resume {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-delete-resume:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -8px rgba(239, 68, 68, 0.5);
}

.btn-delete-resume:disabled,
.btn-upload-resume:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-delete-resume.hidden {
    display: none;
}

.upload-hint {
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-light);
}

.upload-progress {
    margin-top: 16px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
}

.progress-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 3px;
    animation: progress 1.5s ease-in-out infinite;
    width: 40%;
}

@keyframes progress {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(350%); }
}

.progress-text {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.upload-result {
    margin-top: 12px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
}

.upload-result.success {
    background: #d1fae5;
    color: #065f46;
}

.upload-result.error {
    background: #fee2e2;
    color: #991b1b;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
    .tracking-section {
        padding: 60px 0;
    }
    
    .tracking-section .section-title {
        font-size: 28px;
    }
    
    .tracking-form-wrapper {
        padding: 32px 24px;
    }
    
    .tracking-icon {
        font-size: 44px;
    }
    
    .icon-ring {
        width: 80px;
        height: 80px;
    }
    
    .applicant-card {
        flex-direction: column;
        text-align: center;
    }
    
    .applicant-meta {
        flex-direction: row;
        padding-left: 0;
        border-left: none;
        padding-top: 16px;
        border-top: 1px solid #e2e8f0;
        gap: 24px;
    }
    
    .status-timeline {
        flex-direction: column;
        gap: 0;
    }
    
    .timeline-track,
    .timeline-progress {
        display: none;
    }
    
    .timeline-item {
        flex-direction: row;
        text-align: left;
        padding: 0;
        margin-bottom: 20px;
    }
    
    .timeline-item:last-child {
        margin-bottom: 0;
    }
    
    .timeline-marker {
        margin-bottom: 0;
        margin-right: 16px;
    }
    
    .tracker-alert {
        flex-direction: column;
        gap: 16px;
    }
}

/* ===== Forms Container (Legacy Support) ===== */
.forms-container {
    margin-top: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-radius: var(--radius-lg);
    border-left: 4px solid #f57c00;
}

.forms-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.forms-icon {
    font-size: 24px;
}

.forms-header h4 {
    margin: 0;
    font-size: 16px;
    color: #f57c00;
    font-weight: 600;
}

.forms-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.form-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.form-item-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-item-icon {
    font-size: 20px;
}

.form-item-name {
    font-weight: 500;
    color: var(--text-primary);
}

.form-item-btn {
    padding: 6px 12px;
    font-size: 13px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.form-item-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
}

.upload-completed-forms {
    border-top: 2px dashed rgba(245, 124, 0, 0.3);
    padding-top: 16px;
    margin-top: 16px;
}

.upload-completed-forms h5 {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #f57c00;
    font-weight: 600;
}

.candidate-uploaded-list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.uploaded-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-primary);
}

.uploaded-file-item .file-name {
    display: flex;
    align-items: center;
    gap: 6px;
}

.uploaded-file-item .remove-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 2px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.uploaded-file-item .remove-btn:hover {
    opacity: 1;
}

input[type="file"] {
    display: none;
}

/* ===== Tracker Resume Upload Section ===== */
.tracker-resume-section {
    margin-top: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: var(--radius-lg);
    border-left: 4px solid #1976d2;
}

.resume-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.resume-icon {
    font-size: 24px;
}

.resume-section-header h4 {
    margin: 0;
    font-size: 16px;
    color: #1976d2;
    font-weight: 600;
}

.current-resume-display {
    padding: 12px 16px;
    background: white;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

#currentResumeStatus {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
}

#currentResumeStatus.has-resume {
    color: #2e7d32;
    font-weight: 500;
}

#currentResumeStatus .resume-link {
    color: #1976d2;
    text-decoration: none;
    margin-left: 8px;
}

#currentResumeStatus .resume-link:hover {
    text-decoration: underline;
}

.resume-upload-area {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.resume-hint {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.resume-progress {
    display: flex;
    align-items: center;
    gap: 12px;
}

.resume-progress .progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(25, 118, 210, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.resume-progress .progress-fill {
    height: 100%;
    background: #1976d2;
    border-radius: 4px;
    animation: progressPulse 1.5s ease-in-out infinite;
    width: 60%;
}

@keyframes progressPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.resume-progress .progress-text {
    font-size: 13px;
    color: #1976d2;
    font-weight: 500;
    white-space: nowrap;
}

.resume-result {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
}

.resume-result.success {
    background: rgba(76, 175, 80, 0.1);
    color: #2e7d32;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.resume-result.error {
    background: rgba(244, 67, 54, 0.1);
    color: #c62828;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

/* ===== Modal Styles ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal.hidden {
    display: none;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: 40px;
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-content.application-modal {
    max-width: 680px;
}

@keyframes modalSlideIn {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.modal-header h2 {
    font-size: 24px;
    color: var(--text-primary);
}

/* Form Group Base Styles */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-group legend,
.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    padding: 0;
}

fieldset.form-group {
    border: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    font-family: var(--font-family);
    border: 2px solid rgba(224, 224, 224, 0.6);
    border-radius: var(--radius-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15), 0 4px 12px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.95);
}

.form-group input::placeholder {
    color: var(--text-light);
}

/* Form Section Styling */
.form-section {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 20px;
    padding-bottom: 0;
}

.form-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-row:has(.form-group-small) {
    grid-template-columns: 1fr 60px 1fr;
}

.form-row.form-row-address {
    grid-template-columns: 1fr 80px 120px;
}

.form-group-small input {
    text-align: center;
    text-transform: uppercase;
}

.form-group-state select {
    text-align: center;
}

.form-group-zip input {
    text-align: center;
}

.form-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #E8F5E9;
    border: 1px solid #A5D6A7;
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin-bottom: 20px;
}

.form-notice .notice-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.form-notice p {
    font-size: 13px;
    color: #2E7D32;
    line-height: 1.5;
    margin: 0;
}

/* Resume Upload Styles */
.resume-upload-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.resume-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(245, 247, 250, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px dashed rgba(102, 126, 234, 0.3);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.resume-btn:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-colored);
}

.resume-file-name {
    font-size: 14px;
    color: var(--text-secondary);
    font-style: italic;
}

.resume-file-name.has-file {
    color: var(--secondary-color);
    font-style: normal;
    font-weight: 500;
}

.form-hint {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 8px;
}

/* reCAPTCHA Container */
.recaptcha-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.recaptcha-container .g-recaptcha {
    transform-origin: center;
}

@media (max-width: 400px) {
    .recaptcha-container .g-recaptcha {
        transform: scale(0.85);
    }
}

.form-group input[type="file"] {
    padding: 12px;
    cursor: pointer;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* ===== Work History & Skills Sections ===== */
.form-section-note {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    padding: 10px 14px;
    background: #f0f9ff;
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary-color);
}

.work-history-entry {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
}

.work-history-entry:hover {
    border-color: var(--primary-light);
}

.work-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.entry-number {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    background: var(--primary-light);
    padding: 4px 12px;
    border-radius: 12px;
}

.btn-remove-entry {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 18px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.btn-remove-entry:hover {
    background: #fef2f2;
}

.btn-add-entry {
    width: 100%;
    border-style: dashed;
    margin-top: 8px;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.checkbox-label:hover {
    background: var(--primary-light);
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + span,
.checkbox-label:has(input:checked) {
    background: var(--primary-light);
}

/* Work History & Skills in Admin View */
.work-history-view {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.work-history-item {
    background: #f8fafc;
    border-radius: 10px;
    padding: 14px;
    border-left: 3px solid var(--primary-color);
}

.work-history-item .job-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 15px;
}

.work-history-item .employer {
    color: var(--primary-color);
    font-size: 14px;
    margin-top: 2px;
}

.work-history-item .duration-location {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 6px;
}

.work-history-item .duties {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 8px;
    line-height: 1.5;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
}

.qualification-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
}

.qualification-item:last-child {
    border-bottom: none;
}

.qualification-item .q-label {
    font-size: 12px;
    color: var(--text-secondary);
    min-width: 100px;
}

.qualification-item .q-value {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

/* ===== Success Modal ===== */
.success-modal {
    text-align: center;
    max-width: 480px;
}

.success-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.success-modal h2 {
    font-size: 28px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.success-modal > p {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* ===== Update Notice (Profile Update Notification) ===== */
.update-notice {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    border: 2px solid var(--secondary-color);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 28px;
    text-align: left;
    box-shadow: var(--shadow-md);
}

.update-notice.hidden {
    display: none;
}

.update-notice-icon {
    font-size: 36px;
    flex-shrink: 0;
    line-height: 1;
}

.update-notice-content {
    flex: 1;
}

.update-notice-content strong {
    display: block;
    color: var(--secondary-dark);
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
}

.update-notice-content p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* ===== Document Signing Alert (Success Modal) ===== */
.document-signing-alert {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
    border: 2px solid #FF9800;
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 28px;
    text-align: left;
    box-shadow: var(--shadow-md);
    animation: pulse-alert 2s ease-in-out infinite;
}

@keyframes pulse-alert {
    0%, 100% { box-shadow: var(--shadow-md); }
    50% { box-shadow: 0 0 20px rgba(255, 152, 0, 0.4); }
}

.document-alert-icon {
    font-size: 36px;
    flex-shrink: 0;
    line-height: 1;
}

.document-alert-content {
    flex: 1;
}

.document-alert-content strong {
    display: block;
    color: #E65100;
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
}

.document-alert-content p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.btn-document-sign {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

.btn-document-sign:hover {
    background: linear-gradient(135deg, #F57C00 0%, #EF6C00 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 152, 0, 0.4);
    color: white;
}

/* ===== Document Signing Alert (Tracker Section) ===== */
.tracker-document-alert {
    background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
    border: 2px solid #FF9800;
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    text-align: left;
    animation: pulse-alert 2s ease-in-out infinite;
}

.tracker-alert-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.tracker-alert-icon {
    font-size: 28px;
}

.tracker-alert-header h4 {
    color: #E65100;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.tracker-alert-message {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.btn-tracker-sign {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
    color: white;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
    width: 100%;
    justify-content: center;
}

.btn-tracker-sign:hover {
    background: linear-gradient(135deg, #F57C00 0%, #EF6C00 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 152, 0, 0.4);
    color: white;
}

/* ===== OASIS Error Alert (Tracker Section) ===== */
.oasis-error-alert {
    background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
    border: 2px solid #DC2626;
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    text-align: left;
    animation: pulse-alert 2s ease-in-out infinite;
}

.oasis-error-alert .tracker-alert-header h4 {
    color: #991B1B;
}

.oasis-error-message {
    background: rgba(220, 38, 38, 0.05);
    border-left: 4px solid #DC2626;
    padding: 12px 16px;
    margin: 12px 0;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #991B1B;
}

.oasis-error-details {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-top: 12px;
}

.oasis-error-details p {
    margin: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.oasis-error-details strong {
    color: var(--text-primary);
    font-weight: 600;
}

.access-code-display {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 32px;
}

.access-code-display > p:first-child {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.code-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--bg-primary);
    border: 2px dashed var(--primary-color);
    border-radius: var(--radius-md);
    padding: 16px 24px;
    margin-bottom: 12px;
}

#generatedCode {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 3px;
    font-family: 'Courier New', monospace;
}

.copy-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.copy-btn:hover {
    background: var(--bg-secondary);
    transform: scale(1.1);
}

.copy-btn.copied {
    color: var(--secondary-color);
}

.code-note {
    font-size: 13px;
    color: var(--accent-color);
    font-weight: 500;
}

/* ===== Not Found State ===== */
.not-found {
    text-align: center;
    padding: 32px;
}

.not-found-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.not-found h4 {
    color: var(--text-primary);
    margin-bottom: 8px;
}

.not-found p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ===== Responsive Modal ===== */
@media (max-width: 600px) {
    .modal-content {
        padding: 24px;
        margin: 16px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    #generatedCode {
        font-size: 22px;
        letter-spacing: 2px;
    }
    
    .tracking-form-wrapper {
        padding: 32px 24px;
    }
}

.hidden {
    display: none !important;
}

.hero-content,
.stat-card,
.process-card,
.jobs-container {
    animation: fadeInUp 0.6s ease-out forwards;
}

.stat-card:nth-child(2) {
    animation-delay: 0.1s;
}

.stat-card:nth-child(3) {
    animation-delay: 0.2s;
}

.process-card:nth-child(1) { animation-delay: 0.1s; }
.process-card:nth-child(2) { animation-delay: 0.2s; }
.process-card:nth-child(3) { animation-delay: 0.3s; }
.process-card:nth-child(4) { animation-delay: 0.4s; }

/* ===== UI ENHANCEMENTS ===== */

/* === Floating Apply Button === */
.floating-apply-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 16px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 8px 32px rgba(21, 101, 192, 0.4);
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    transform: translateY(100px);
    opacity: 0;
}

.floating-apply-btn.visible {
    transform: translateY(0);
    opacity: 1;
}

.floating-apply-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(21, 101, 192, 0.5);
}

.floating-apply-btn .pulse-dot {
    width: 10px;
    height: 10px;
    background: #4CAF50;
    border-radius: 50%;
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

/* === Testimonials Carousel === */
.testimonials-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f4f8 100%);
}

.testimonials-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    padding: 20px 0;
}

.testimonials-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s ease;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-card {
    flex: 0 0 calc(33.333% - 16px);
    min-width: calc(33.333% - 16px);
    padding: 32px;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

@media (max-width: 1024px) {
    .testimonial-card {
        flex: 0 0 calc(50% - 12px);
        min-width: calc(50% - 12px);
    }
}

@media (max-width: 768px) {
    .testimonial-card {
        flex: 0 0 100%;
        min-width: 100%;
    }
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
}

.testimonial-text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-stars {
    font-size: 18px;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.testimonial-info {
    text-align: left;
}

.testimonial-info strong {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 15px;
}

.testimonial-info span {
    color: var(--text-secondary);
    font-size: 13px;
}

.testimonial-role {
    color: var(--primary-color);
    font-size: 14px;
    margin-top: 4px;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
}

.carousel-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 5px;
}

/* === Live Job Counter === */
.live-job-counter {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(232, 245, 233, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 50px;
    margin-bottom: 24px;
    border: 2px solid rgba(76, 175, 80, 0.5);
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.2);
    animation: subtleGlow 3s ease-in-out infinite;
}

@keyframes subtleGlow {
    0%, 100% { box-shadow: 0 4px 20px rgba(76, 175, 80, 0.2); }
    50% { box-shadow: 0 4px 30px rgba(76, 175, 80, 0.4); }
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-dot {
    width: 10px;
    height: 10px;
    background: #4CAF50;
    border-radius: 50%;
    animation: pulseDot 1.5s infinite;
}

.live-text {
    font-size: 14px;
    font-weight: 600;
    color: #2e7d32;
}

.job-count {
    font-size: 24px;
    font-weight: 700;
    color: #1b5e20;
}

.job-count-label {
    font-size: 14px;
    color: #388e3c;
}

/* === Progress Stepper (Application Form) === */
.form-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
    padding: 0 20px;
    position: relative;
}

.form-progress::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 60px;
    right: 60px;
    height: 3px;
    background: var(--border-color);
    z-index: 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 8px;
    transition: all 0.3s ease;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.progress-step.active .step-circle {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.progress-step.completed .step-circle {
    background: var(--secondary-color);
    color: white;
}

.progress-step.completed .step-circle::after {
    content: '✓';
}

.step-label {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
    text-align: center;
}

.progress-step.active .step-label,
.progress-step.completed .step-label {
    color: var(--text-primary);
}

/* === Field Validation Animation === */
.form-group.valid input,
.form-group.valid select {
    border-color: #4CAF50 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='%234CAF50'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.form-group.invalid input,
.form-group.invalid select {
    border-color: #f44336 !important;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

.validation-message {
    font-size: 12px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.validation-message.success {
    color: #4CAF50;
}

.validation-message.error {
    color: #f44336;
}

/* === Save Draft Button === */
.save-draft-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.save-draft-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.save-draft-btn.saved {
    color: #4CAF50;
    border-color: #4CAF50;
}

/* Form Actions Top Container */
.form-actions-top {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 0 8px;
}

/* Draft Saved Indicator */
.draft-saved-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #4CAF50;
    animation: fadeIn 0.3s ease;
}

.draft-saved-indicator.hidden {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.draft-indicator {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background: #fff3cd;
    color: #856404;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.draft-indicator.visible {
    transform: translateY(0);
    opacity: 1;
}

.draft-indicator .restore-btn {
    background: #856404;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

.draft-indicator .dismiss-btn {
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #856404;
}

/* === Application Tracker Enhancements === */
.progress-ring-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: var(--radius-lg);
}

.progress-ring {
    position: relative;
    width: 100px;
    height: 100px;
}

.progress-ring svg {
    transform: rotate(-90deg);
}

.progress-ring-bg {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 8;
}

.progress-ring-fill {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 251.2;
    stroke-dashoffset: 251.2;
    transition: stroke-dashoffset 1s ease;
}

.progress-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.progress-info h4 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.progress-info p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Timeline animation */
.timeline-item.animate-in .timeline-marker {
    animation: markerPop 0.5s ease forwards;
}

@keyframes markerPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.timeline-item.animate-in .timeline-content {
    animation: slideInLeft 0.5s ease forwards;
}

@keyframes slideInLeft {
    0% { opacity: 0; transform: translateX(-20px); }
    100% { opacity: 1; transform: translateX(0); }
}

/* Document Checklist */
.document-checklist {
    margin-top: 20px;
    padding: 16px;
    background: #f5f5f5;
    border-radius: var(--radius-md);
}

.checklist-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.checklist-item.completed {
    color: #4CAF50;
}

.checklist-item .check-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.checklist-item.completed .check-icon {
    background: #4CAF50;
    border-color: #4CAF50;
    color: white;
}

/* Estimated Timeline */
.estimated-timeline {
    margin-top: 16px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
}

.estimated-timeline .icon {
    font-size: 24px;
}

.estimated-timeline .text {
    font-size: 14px;
    color: #2e7d32;
}

.estimated-timeline .text strong {
    display: block;
    font-size: 15px;
}

/* === Button Ripple Effect === */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

/* === Success Modal Enhancement === */
.success-modal .success-icon {
    font-size: 80px;
    animation: celebrateIcon 0.6s ease;
}

@keyframes celebrateIcon {
    0% { transform: scale(0) rotate(-180deg); }
    50% { transform: scale(1.2) rotate(10deg); }
    100% { transform: scale(1) rotate(0); }
}

.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    animation: confettiFall 3s ease forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100%) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

@keyframes confetti-fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(400px) rotate(720deg);
        opacity: 0;
    }
}

/* === Chat Widget Teaser === */
.chat-widget-btn {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: all 0.3s ease;
    z-index: 998;
}

.chat-widget-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}

.chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 22px;
    height: 22px;
    background: #ff5252;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.chat-tooltip {
    position: absolute;
    bottom: 70px;
    left: 0;
    background: white;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-size: 14px;
    color: var(--text-primary);
    white-space: nowrap;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.chat-widget-btn:hover .chat-tooltip {
    opacity: 1;
    transform: translateY(0);
}

/* === Mobile Responsive for Enhancements === */
@media (max-width: 768px) {
    .floating-apply-btn {
        bottom: 16px;
        right: 16px;
        padding: 14px 20px;
        font-size: 14px;
    }
    
    .form-progress {
        padding: 0;
    }
    
    .form-progress::before {
        left: 30px;
        right: 30px;
    }
    
    .step-circle {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .step-label {
        font-size: 10px;
    }
    
    .progress-ring-container {
        flex-direction: column;
        text-align: center;
    }
    
    .testimonial-card {
        padding: 24px;
    }
    
    .testimonial-text {
        font-size: 16px;
    }
    
    .live-job-counter {
        flex-wrap: wrap;
        justify-content: center;
        padding: 10px 16px;
    }
    
    .chat-widget-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .save-draft-btn {
        position: static;
        margin-bottom: 16px;
    }
}

/* ===== Document Library Section ===== */
.documents-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.document-category-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.document-category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Category-specific colors */
.required-docs {
    border-top: 4px solid #FF9800;
}

.required-docs .category-icon {
    background: linear-gradient(135deg, #FFF3E0, #FFE0B2);
    color: #E65100;
}

.tax-docs {
    border-top: 4px solid #2196F3;
}

.tax-docs .category-icon {
    background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
    color: #1565C0;
}

.policy-docs {
    border-top: 4px solid #9C27B0;
}

.policy-docs .category-icon {
    background: linear-gradient(135deg, #F3E5F5, #E1BEE7);
    color: #7B1FA2;
}

.resource-docs {
    border-top: 4px solid #4CAF50;
}

.resource-docs .category-icon {
    background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
    color: #2E7D32;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.category-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.category-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.category-description {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.document-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.document-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.document-item:hover {
    background: var(--bg-tertiary, #e9ecef);
}

.doc-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.doc-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.doc-info > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.doc-info strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.doc-type {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.doc-btn {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.doc-btn-sign {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
    color: white;
}

.doc-btn-sign:hover {
    background: linear-gradient(135deg, #F57C00 0%, #EF6C00 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
    color: white;
}

.doc-btn-download {
    background: var(--primary-color);
    color: white;
}

.doc-btn-download:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3);
    color: white;
}

.documents-notice {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-top: 40px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    border-radius: var(--radius-lg);
    border-left: 4px solid #2196F3;
}

.notice-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.documents-notice p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.documents-notice a {
    color: var(--primary-color);
    text-decoration: underline;
}

.documents-notice a:hover {
    color: var(--primary-dark);
}

/* Document Library Mobile Responsive */
@media (max-width: 768px) {
    .documents-section {
        padding: 60px 0;
    }
    
    .documents-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 32px;
    }
    
    .document-category-card {
        padding: 20px;
    }
    
    .category-header h3 {
        font-size: 18px;
    }
    
    .document-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 12px;
    }
    
    .doc-btn {
        width: 100%;
        text-align: center;
    }
    
    .documents-notice {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }
}
