   :root {
        --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
        --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
        --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        --hover-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
        --border-radius: 20px;
        --animation-speed: 0.3s;
    }

    * {
        box-sizing: border-box;
    }

    body {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
        min-height: 100vh;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        overflow-x: hidden;
    }

    /* Animated background particles */
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image:
            radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
            radial-gradient(circle at 40% 80%, rgba(120, 219, 255, 0.3) 0%, transparent 50%);
        animation: float 20s ease-in-out infinite;
        pointer-events: none;
        z-index: -1;
    }

    @keyframes float {

        0%,
        100% {
            transform: translateY(0px) rotate(0deg);
        }

        33% {
            transform: translateY(-20px) rotate(120deg);
        }

        66% {
            transform: translateY(10px) rotate(240deg);
        }
    }

    .main-container {
        min-height: 100vh;
        display: flex;
        align-items: center;
        padding: 20px 0;
    }

    .form-card {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        border-radius: var(--border-radius);
        box-shadow: var(--card-shadow);
        border: 1px solid rgba(255, 255, 255, 0.2);
        transition: all var(--animation-speed) ease;
        overflow: hidden;
    }

    .form-card:hover {
        box-shadow: var(--hover-shadow);
        transform: translateY(-5px);
    }

    .card-header {
        background: var(--primary-gradient);
        color: white;
        border: none;
        padding: 30px;
        position: relative;
    }

    .card-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
        opacity: 0.3;
    }

    .card-header h4 {
        position: relative;
        z-index: 2;
        margin: 0;
        font-weight: 700;
        font-size: 1.8rem;
    }

    /* Modern Step Indicator */
    .step-indicator {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 20px 0;
        position: relative;
        z-index: 2;
        gap: 8px;
        flex-wrap: wrap;
    }

    .step-item {
        width: 35px;
        height: 35px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.7);
        transition: all var(--animation-speed) ease;
        position: relative;
        cursor: pointer;
        font-size: 0.9rem;
    }

    .step-item.active {
        background: white;
        color: #667eea;
        transform: scale(1.2);
        box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
    }

    .step-item.completed {
        background: var(--success-gradient);
        color: white;
        transform: scale(1.1);
    }

    .step-item.completed::after {
        content: '✓';
        position: absolute;
        font-size: 12px;
        font-weight: bold;
    }

    .step-item.saved {
        background: #28a745;
        color: white;
        border: 2px solid #20c997;
    }

    /* Progress Bar */
    .progress {
        height: 6px;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.2);
        overflow: hidden;
        margin: 20px 0;
    }

    .progress-bar {
        background: var(--success-gradient);
        border-radius: 10px;
        transition: width 0.6s ease;
        position: relative;
    }

    .progress-bar::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
        animation: shimmer 2s infinite;
    }

    @keyframes shimmer {
        0% {
            transform: translateX(-100%);
        }

        100% {
            transform: translateX(100%);
        }
    }

    /* Step Content */
    .step {
        display: none;
        animation: fadeIn 0.5s ease;
    }

    .step.active {
        display: block;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .step h5 {
        color: #667eea;
        font-weight: 700;
        margin-bottom: 25px;
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .step h5::before {
        content: '';
        width: 4px;
        height: 30px;
        background: var(--primary-gradient);
        border-radius: 2px;
    }

    /* Form Controls */
    .form-label {
        font-weight: 600;
        color: #495057;
        margin-bottom: 8px;
        font-size: 0.95rem;
    }

    .form-control,
    .form-select {
        border: 2px solid #e9ecef;
        border-radius: 12px;
        padding: 12px 16px;
        font-size: 1rem;
        transition: all var(--animation-speed) ease;
        background: white;
    }

    .form-control:focus,
    .form-select:focus {
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        transform: translateY(-2px);
    }

    .form-control:hover,
    .form-select:hover {
        border-color: #667eea;
    }

    /* Dynamic Entries */
    .experience-entry,
    .family-entry {
        background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
        border: 2px solid #e3f2fd;
        border-radius: 15px;
        padding: 20px;
        margin-bottom: 20px;
        position: relative;
        transition: all var(--animation-speed) ease;
    }

    .experience-entry:hover,
    .family-entry:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(102, 126, 234, 0.1);
    }

    .remove-btn {
        position: absolute;
        top: 15px;
        right: 15px;
        background: var(--secondary-gradient);
        border: none;
        color: white;
        border-radius: 50%;
        width: 35px;
        height: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all var(--animation-speed) ease;
    }

    .remove-btn:hover {
        transform: scale(1.1) rotate(90deg);
        box-shadow: 0 5px 15px rgba(241, 87, 108, 0.3);
    }

    /* Buttons */
    .btn {
        border-radius: 12px;
        padding: 12px 30px;
        font-weight: 600;
        transition: all var(--animation-speed) ease;
        border: none;
        position: relative;
        overflow: hidden;
    }

    .btn-primary {
        background: var(--primary-gradient);
        box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    }

    .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 25px rgba(102, 126, 234, 0.4);
    }

    .btn-success {
        background: var(--success-gradient);
        box-shadow: 0 8px 20px rgba(79, 172, 254, 0.3);
    }

    .btn-success:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 25px rgba(79, 172, 254, 0.4);
    }

    .btn-secondary {
        background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
        box-shadow: 0 8px 20px rgba(108, 117, 125, 0.3);
    }

    .btn-outline-primary {
        border: 2px solid #667eea;
        color: #667eea;
        background: transparent;
    }

    .btn-outline-primary:hover {
        background: var(--primary-gradient);
        border-color: transparent;
        transform: translateY(-2px);
    }

    /* Navigation */
    .btn-navigation {
        margin-top: 30px;
        padding-top: 20px;
        border-top: 2px solid #f8f9fa;
    }

    /* Cards and Sections */
    .form-section h6 {
        color: #667eea;
        font-weight: 700;
        border-bottom: 3px solid #e3f2fd;
        padding-bottom: 10px;
        margin-bottom: 20px;
        position: relative;
    }

    .form-section h6::after {
        content: '';
        position: absolute;
        bottom: -3px;
        left: 0;
        width: 50px;
        height: 3px;
        background: var(--primary-gradient);
        border-radius: 2px;
    }

    /* Declaration Cards */
    .card {
        border: none;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        overflow: hidden;
    }

    .card-body {
        padding: 25px;
    }

    /* Form Check */
    .form-check-input {
        width: 20px;
        height: 20px;
        border: 2px solid #667eea;
        border-radius: 6px;
    }

    .form-check-input:checked {
        background: var(--primary-gradient);
        border-color: #667eea;
    }

    .form-check-label {
        font-weight: 500;
        color: #495057;
        margin-left: 10px;
    }

    /* Alerts */
    .alert {
        border: none;
        border-radius: 12px;
        padding: 20px;
        background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
        border-left: 4px solid #667eea;
    }

    /* Photo Preview */
    .img-thumbnail {
        border-radius: 15px;
        border: 3px solid #e3f2fd;
        transition: all var(--animation-speed) ease;
    }

    .img-thumbnail:hover {
        transform: scale(1.05);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    }

    /* Validation */
    .is-invalid {
        border-color: #e74c3c !important;
        animation: shake 0.5s ease;
    }

    .spwidth {
        width: 100%;
    }

    /* Resume Progress Alert */
    .resume-progress {
        background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
        border: 2px solid #28a745;
        border-radius: 15px;
        margin-bottom: 20px;
    }

    .resume-progress .alert-heading {
        color: #155724;
        font-weight: 700;
    }

    @keyframes shake {

        0%,
        100% {
            transform: translateX(0);
        }

        25% {
            transform: translateX(-5px);
        }

        75% {
            transform: translateX(5px);
        }
    }

    .invalid-feedback {
        color: #e74c3c;
        font-weight: 500;
        font-size: 0.9rem;
        margin-top: 5px;
    }

    /* Mobile Responsiveness */
    @media (max-width: 768px) {
        .spwidth {
            width: auto !important;
        }

        .main-container {
            padding: 10px 0;
        }

        .form-card {
            margin: 10px;
            border-radius: 15px;
        }

        .card-header {
            padding: 20px 15px;
        }

        .card-header h4 {
            font-size: 1.4rem;
        }

        .step-indicator {
            gap: 4px;
            padding: 0 10px;
        }

        .step-item {
            width: 28px;
            height: 28px;
            font-size: 0.8rem;
        }

        .step-item.active {
            transform: scale(1.1);
        }

        .step-item.completed {
            transform: scale(1.05);
        }

        .card-body {
            padding: 20px 15px;
        }

        .step h5 {
            font-size: 1.2rem;
            margin-bottom: 20px;
        }

        .btn-navigation {
            margin-top: 20px;
            gap: 10px;
        }

        .btn {
            padding: 10px 20px;
            font-size: 0.9rem;
        }

        .experience-entry,
        .family-entry {
            padding: 15px;
            margin-bottom: 15px;
        }

        .remove-btn {
            width: 30px;
            height: 30px;
            top: 10px;
            right: 10px;
        }

        .form-control,
        .form-select {
            padding: 10px 12px;
            font-size: 0.95rem;
        }

        /* Stack columns on mobile */
        .row.g-3>[class*="col-"] {
            margin-bottom: 15px;
        }
    }

    @media (max-width: 576px) {
        .step-indicator {
            flex-wrap: wrap;
            max-height: 120px;
            overflow-y: auto;
        }

        .btn-navigation {
            flex-direction: column;
            gap: 10px;
        }

        .btn-navigation .btn {
            width: 100%;
        }
    }

    /* Loading Animation */
    .btn-loading {
        position: relative;
    }

    .btn-loading::after {
        content: '';
        position: absolute;
        width: 20px;
        height: 20px;
        border: 2px solid transparent;
        border-top: 2px solid currentColor;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin-left: 10px;
    }

    @keyframes spin {
        0% {
            transform: rotate(0deg);
        }

        100% {
            transform: rotate(360deg);
        }
    }

    /* Step Counter */
    .step-counter {
        background: rgba(255, 255, 255, 0.2);
        color: white;
        padding: 8px 16px;
        border-radius: 20px;
        font-size: 0.9rem;
        font-weight: 600;
    }

    /* Glassmorphism effect for mobile */
    @media (max-width: 768px) {
        .form-card {
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(15px);
        }
    }

    /* Save notification */
    .save-notification {
        position: fixed;
        top: 20px;
        right: 20px;
        background: var(--success-gradient);
        color: white;
        padding: 15px 20px;
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        z-index: 9999;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }

    .save-notification.show {
        transform: translateX(0);
    }
