#multiStepForm,
#referralForm,
#hiringForm,
#contactForm {
    width: 100%;
}

.modal-overlay::-webkit-scrollbar {
    width: 6px;
}

.modal-overlay::-webkit-scrollbar-thumb {
    background: #38ef7d;
    border-radius: 10px;
}

@media (max-width: 600px) {
    #multiStepForm {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
}

/* ===== MODAL BULLTERPROOF SCROLLING & COMPACT BOX DESIGN ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(15px);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    z-index: 10000;
}

.modal-content {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Header and Footer stay, only body scrolls */
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.7);
    animation: modalPop 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.modal-form-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.modal-content.modal-full {
    max-width: 100vw !important;
    width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    border-radius: 0;
    border: none;
    margin: 0;
    position: fixed;
    top: 0;
    left: 0;
}

.modal-body-scroll {
    overflow-y: auto;
    padding: 1rem 2rem;
    flex: 1;
}

.modal-footer {
    padding: 1.5rem 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: #0f172a;
}

.modal-header-fixed {
    padding: 1.5rem 2.5rem 0.5rem;
    text-align: center;
    position: relative;
}

.modal-header-fixed .close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.modal-header-fixed .close-modal:hover {
    background: #f43f5e;
    color: white;
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.partner-hub-section {
    background: #020617;
    /* Deep Navy Dark */
    padding: 3rem 1rem;
    position: relative;
    overflow: hidden;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 3rem auto 0;
}

.glass-form-card {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 32px;
    padding: 1.5rem;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.card-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
    transition: all 0.6s ease;
    pointer-events: none;
    border-radius: 50%;
    z-index: -1;
}

.glass-form-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6);
}

.glass-form-card:hover .card-glow {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.form-header-premium {
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.5rem;
}

.form-header-premium h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.compact-form {
    display: grid;
    gap: 0.75rem;
}

.compact-form .input-group {
    margin-bottom: 0.5rem;
}

.compact-form label {
    display: block;
    font-size: 0.65rem;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.compact-form input,
.compact-form select,
.compact-form textarea {
    width: 100%;
    background: #1e293b !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 12px;
    color: white !important;
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.compact-form input:focus {
    background: #232f42 !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.1);
    outline: none;
}

.btn-form-submit {
    width: 100%;
    padding: 0.85rem;
    border-radius: 50px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: white;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.3);
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.btn-form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(124, 58, 237, 0.4);
}

@media (max-width: 768px) {
    .partner-grid {
        grid-template-columns: 1fr;
    }

    .modal-overlay {
        padding: 1rem 0.5rem !important;
    }

    .modal-content {
        padding: 1.25rem !important;
        border-radius: 24px !important;
    }
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 10000;
}

.scroll-progress-bar {
    height: 100%;
    background: var(--primary-gradient);
    width: 0%;
    transition: width 0.1s ease;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(56, 239, 125, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(56, 239, 125, 0.4);
}

.back-to-top:active {
    transform: translateY(-2px);
}

/* PWA Install Button */
#pwa-install-btn {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    padding: 0.85rem 1.5rem;
    background: var(--primary-gradient);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    display: none;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(56, 239, 125, 0.3);
    transition: all 0.3s ease;
}

#pwa-install-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(56, 239, 125, 0.4);
}

#pwa-install-btn i {
    margin-right: 0.5rem;
}

/* Network Status Indicator */
body[data-network-status="offline"]::before {
    content: 'Offline Mode';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #ef4444;
    color: white;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 10001;
}

/* Share Button */
.share-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.share-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Copy Button */
.copy-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.copy-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.copy-btn.copied {
    background: var(--primary-color);
    color: white;
}

/* Loading Skeleton Enhancement */
.skeleton-pulse {
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

@keyframes skeleton-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* Image Lazy Load Placeholder */
img[loading="lazy"] {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.05) 25%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(255, 255, 255, 0.05) 75%);
    background-size: 200% 100%;
}

img[loading="lazy"].loaded {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Keyboard Shortcut Hint */
.keyboard-hint {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10000;
    backdrop-filter: blur(10px);
}

.keyboard-hint.visible {
    opacity: 1;
    visibility: visible;
}

.keyboard-hint kbd {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
    margin: 0 0.25rem;
}

/* Performance Badge */
.performance-badge {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.8);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10000;
    backdrop-filter: blur(10px);
    display: none;
}

.performance-badge.good {
    color: #10b981;
}

.performance-badge.warning {
    color: #fbbf24;
}

.performance-badge.poor {
    color: #ef4444;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    #pwa-install-btn {
        bottom: 1rem;
        left: 1rem;
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }

    .scroll-progress {
        height: 2px;
    }
}

/* Print Styles */
@media print {

    .back-to-top,
    #pwa-install-btn,
    .scroll-progress,
    .share-btn,
    .keyboard-hint,
    .performance-badge {
        display: none !important;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    .back-to-top,
    #pwa-install-btn,
    .scroll-progress-bar {
        transition: none !important;
    }
}

/* ===== FRIENDLY & ATTRACTIVE PREMIUM UI v8.0 ===== */
:root {
    --brand-glow: 0 10px 30px rgba(37, 99, 235, 0.2);
    --soft-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.resume-modal-header {
    background: #0f172a;
    color: white;
    padding: 12px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.field-modern {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.field-modern label {
    font-size: 0.7rem;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.field-modern:focus-within label {
    color: #2563eb;
}

.field-modern input,
.field-modern textarea {
    width: 100%;
    padding: 14px 20px;
    border: 1.5px solid #f1f5f9;
    border-radius: 14px;
    font-size: 0.95rem;
    color: #1e293b;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8fafc;
    box-sizing: border-box;
}

.field-modern input:focus,
.field-modern textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    outline: none;
    background: white;
    transform: translateY(-1px);
}



/* SECTION MANAGEMENT VISUALS */
.resume-section-active {
    position: relative;
    padding: 0;
    background: transparent;
}

/* SECTION PILLS & CARDS */
.section-pill {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid transparent !important;
    margin-bottom: 4px;
}

.section-pill:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    transform: scale(1.02) translateX(5px);
}

.section-pill.active {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(99, 102, 241, 0.2)) !important;
    border-color: rgba(37, 99, 235, 0.4) !important;
    color: white !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.premium-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border-radius: 16px !important;
}

.premium-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.premium-card.active {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(59, 130, 246, 0.1)) !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.25) !important;
}



.log-entry {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1.5px solid #f1f5f9;
    background: white;
}

.log-entry:hover {
    border-color: #3b82f6 !important;
    box-shadow: 0 15px 45px rgba(15, 23, 42, 0.05);
    background: #ffffff !important;
}

.exit-panel-btn:hover {
    background: #dc2626 !important;
    transform: scale(1.02);
}

/* Scrollbar for Dark Sidebar */
.resume-sidebar::-webkit-scrollbar {
    width: 4px;
}

.resume-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
}

/* AI Insight HUD - Integrated */
.ai-insight-fixed {
    position: relative;
    width: 100%;
    margin-bottom: 2rem;
}

/* RESPONSIVE PROTOCOL: RESUME DISTINGUISHED v5.2 */
@media (max-width: 1400px) {
    .modal-body-scroll>div {
        grid-template-columns: 280px 1fr 1fr !important;
    }
}

@media (max-width: 1100px) {
    .modal-body-scroll>div {
        grid-template-columns: 1fr !important;
        height: auto !important;
        overflow-y: auto !important;
    }

    .resume-sidebar {
        border-right: none !important;
        border-bottom: 1.5px solid rgba(255, 255, 255, 0.05);
        height: auto !important;
        padding: 40px !important;
    }
}

/* RESUME BUILDER ENHANCEMENTS */
.delete-entry-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    background: #fff1f2;
    border: none;
    color: #ef4444;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.1);
}

.delete-entry-btn:hover {
    background: #ef4444;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.2);
}

.section-entry-card {
    transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.section-entry-card:hover {
    border-color: #3b82f6 !important;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.05);
}

.premium-card.active {
    background: rgba(37, 99, 235, 0.05) !important;
    border-color: #2563eb !important;
}

.section-pill {
    transition: 0.3s;
}

.section-pill:hover {
    background: rgba(255, 255, 255, 0.05) !important;
}

/* NEURAL LIBRARY ANIMATIONS */
@keyframes slideUpModal {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

#templateLibraryModal .modal-content {
    animation: slideUpModal 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.library-card {
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    overflow: hidden;
}

.library-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: 0.5s;
}

.library-card:hover::before {
    left: 100%;
}

.library-card:hover {
    transform: translateY(-8px);
    border-color: #3b82f6 !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.section-pill.active {
    background: rgba(59, 130, 246, 0.1) !important;
    border-color: #3b82f6 !important;
}

.template-pill {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 800;
    cursor: pointer;
    text-align: left;
    transition: 0.2s;
}

.template-pill:hover {
    background: #334155;
    color: white;
}

.template-pill.active {
    background: #2563eb;
    color: white;
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.modern-select {
    width: 100%;
    background: #fdfdfe;
    border: 1.5px solid #f1f5f9;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.8rem;
    color: #0f172a;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
}

.modern-select:focus {
    border-color: #8b5cf6;
    background-color: #f5f3ff;
}

.category-pill {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s;
}

.category-pill:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.intel-btn-mini {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
    font-size: 0.8rem;
}

.intel-btn-mini:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e0;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* SORTABLE DRAG EFFECTS */
.sortable-ghost {
    opacity: 0.4;
    background: #e2e8f0 !important;
    border: 2px dashed #94a3b8 !important;
}

.section-entry-card {
    cursor: grab;
}

.section-entry-card:active {
    cursor: grabbing;
}