/**
 * Resource Insight Styles
 * 
 * Custom styling for Resource Insight custom post type
 * including hero sections, action bars, modals, and archive layout
 *
 * @package OMS Resource Insight
 * @since 1.0
 */

/* ==========================================
   HIDE THEME HEADER IMAGE ON RESOURCE INSIGHT PAGES
   ========================================== */

/* Hide the theme's header-wrapper div since we have our custom hero */
.single-resource-insight .header-wrapper {
    display: none !important;
}

/* ==========================================
   HERO SECTION STYLES
   ========================================== */

.resource-insight-hero {
    position: relative;
    width: 100%;
    height: 100vh; /* Will be overridden by JavaScript */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
}

/* Hero Background Media */
.hero-background-image,
.hero-background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-background-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Video specific styles */
.hero-background-video {
    pointer-events: none;
}

/* Mobile fallback for video */
.hero-background-image.mobile-fallback {
    display: none;
}

@media (max-width: 768px) {
    .hero-background-video {
        display: none;
    }
    
    .hero-background-image.mobile-fallback {
        display: block;
    }
}

/* Hero Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 30px;
    max-width: 1200px;
}

.hero-title {
    font-family: 'Lato', sans-serif;
    font-weight: 900;
    font-size: 48px;
    line-height: 1.2;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    transform: translateY(0); /* For parallax effect */
    transition: transform 0.1s ease-out, opacity 0.3s ease-out;
    will-change: transform, opacity;
    text-align: center;
}

@media (max-width: 1200px) {
    .hero-title {
        font-size: 42px;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 28px;
        padding: 0 20px;
    }
    
    .hero-content {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 24px;
    }
}

/* ==========================================
   ACTION BAR STYLES
   ========================================== */

.resource-insight-action-bar {
    background-color: #ff6b35; /* Orange color matching brand */
    padding: 15px 0;
    position: relative;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.action-bar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.action-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.action-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    font-size: 16px;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.action-button:hover,
.action-button:focus {
    background-color: #ffffff;
    color: #ff6b35;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    outline: none;
}

.action-icon {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.action-text {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Action Bar */
@media (max-width: 768px) {
    .action-buttons {
        gap: 15px;
    }
    
    .action-button {
        font-size: 12px;
        padding: 8px 12px;
        flex-direction: column;
        gap: 4px;
        min-width: 60px;
    }
    
    .action-icon {
        width: 18px;
        height: 18px;
    }
    
    .action-text {
        font-size: 11px;
        line-height: 1.2;
    }
    
    .action-bar-container {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .action-buttons {
        gap: 10px;
        justify-content: center;
    }
    
    .action-button {
        padding: 6px 8px;
        font-size: 11px;
        min-width: 50px;
        flex: 1;
        max-width: 80px;
    }
    
    .action-icon {
        width: 16px;
        height: 16px;
    }
    
    .action-text {
        font-size: 10px;
    }
}

/* ==========================================
   MODAL STYLES
   ========================================== */

.resource-insight-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    /* Use transform to move off-screen instead of visibility/opacity */
    transform: translateY(-200%);
    transition: transform 0.3s ease;
}

.resource-insight-modal.active {
    transform: translateY(0);
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: -1;
}

.modal-container {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.resource-insight-modal.active .modal-container {
    opacity: 1;
    transform: scale(1);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e5e5e5;
    position: relative;
}

.modal-header h3 {
    margin: 0;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: #333333;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.3s ease;
}

.modal-close:hover,
.modal-close:focus {
    color: #333333;
    outline: none;
}

.modal-content {
    padding: 24px;
}

/* ==========================================
   SHARE MODAL STYLES
   ========================================== */

.share-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 20px 0;
}

.share-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 2px solid #e5e5e5;
    border-radius: 6px;
    text-decoration: none;
    color: #333333;
    font-weight: 600;
    transition: all 0.3s ease;
}

.share-link:hover,
.share-link:focus {
    border-color: #ff6b35;
    background-color: #ff6b35;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    text-decoration: none;
}

.share-link.linkedin:hover {
    background-color: #0077B5;
    border-color: #0077B5;
}

.share-link.twitter:hover {
    background-color: #000000;
    border-color: #000000;
}

.share-link.facebook:hover {
    background-color: #1877F2;
    border-color: #1877F2;
}

.share-link.email:hover {
    background-color: #666666;
    border-color: #666666;
}

.copy-link-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

.copy-link-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333333;
}

.copy-link-container {
    display: flex;
    gap: 8px;
}

.copy-link-container input {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #e5e5e5;
    border-radius: 4px;
    font-size: 14px;
    background-color: #f8f8f8;
}

.copy-link-container button {
    padding: 10px 16px;
    background-color: #ff6b35;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.copy-link-container button:hover {
    background-color: #e55a2b;
}

/* ==========================================
   DOWNLOAD MODAL STYLES
   ========================================== */

.download-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333333;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e5e5;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-group input:invalid {
    border-color: #dc3545;
}

.form-actions {
    margin-top: 24px;
    text-align: center;
}

.download-submit-button {
    background-color: #ff6b35;
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.download-submit-button:hover,
.download-submit-button:focus {
    background-color: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    outline: none;
}

.download-submit-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.download-loading {
    color: #666666;
    font-style: italic;
    margin-top: 12px;
}

/* ==========================================
   CONTENT AREA STYLES
   ========================================== */

.resource-insight-content {
    padding: 40px;
}

/* Hide print-only title on screen */
.print-only-title {
    display: none !important;
}

.resource-insight-article {
    margin-bottom: 40px;
}

.entry-date {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.entry-date time {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #666666;
    font-style: italic;
    letter-spacing: 0.5px;
}

.entry-content {
    line-height: 1.7;
    font-size: 17px;
    color: #333333;
}

.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    margin-top: 32px;
    margin-bottom: 16px;
    color: #333333;
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}



/* Fix mobile layout issues with theme's interior-content margins */
@media (max-width: 768px) {
    .single-resource-insight .interior-content {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}



/* ==========================================
   ARCHIVE PAGE STYLES
   ========================================== */

.archive-header {
    margin-bottom: 40px;
    text-align: center;
}

.archive-title {
    font-size: 48px;
    color: #333333;
    margin-bottom: 16px;
}

.archive-description {
    font-size: 18px;
    color: #666666;
    max-width: 600px;
    margin: 0 auto;
}

.resource-insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.resource-insight-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.resource-insight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-image {
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.resource-insight-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 24px;
}

.card-categories {
    margin-bottom: 12px;
}

.card-category {
    display: inline-block;
    background-color: #ff6b35;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    margin-right: 8px;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-category:hover {
    background-color: #e55a2b;
    color: #ffffff;
    text-decoration: none;
}

.card-title {
    margin: 0 0 12px;
    font-size: 24px;
    line-height: 1.3;
}

.card-title a {
    color: #333333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-title a:hover {
    color: #ff6b35;
    text-decoration: none;
}

.card-excerpt {
    color: #666666;
    line-height: 1.6;
    margin-bottom: 16px;
}

.card-meta {
    font-size: 14px;
    color: #999999;
    margin-bottom: 16px;
}

.card-author,
.card-date {
    margin-right: 16px;
}

.card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.read-more-link {
    color: #ff6b35;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.read-more-link:hover {
    color: #e55a2b;
    text-decoration: underline;
}

.download-indicator {
    color: #28a745;
    display: flex;
    align-items: center;
}

.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    padding: 0 !important;
    border: 0 !important;
    height: 1px !important;
    width: 1px !important;
    overflow: hidden;
}



/* Pagination Styles */
.archive-pagination {
    text-align: center;
    margin-top: 50px;
}

.page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    color: #666666;
    text-decoration: none;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.page-numbers:hover,
.page-numbers.current {
    background-color: #ff6b35;
    color: #ffffff;
    border-color: #ff6b35;
    text-decoration: none;
}

/* No Results Styles */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666666;
}

.no-results h2 {
    margin-bottom: 16px;
    color: #333333;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 1200px) {
    .archive-title {
        font-size: 42px;
    }
    
    .resource-insights-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 992px) {
    .archive-title {
        font-size: 36px;
    }
    
    .resource-insights-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
    }
    
    .modal-container {
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .archive-title {
        font-size: 30px;
    }
    
    .resource-insights-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .share-buttons {
        grid-template-columns: 1fr;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .modal-content {
        padding: 20px;
    }
    
    .modal-header {
        padding: 20px 20px 12px;
    }
}

@media (max-width: 480px) {
    .archive-title {
        font-size: 24px;
    }
    
    .card-title {
        font-size: 20px;
    }
    
    .archive-description {
        font-size: 16px;
    }
    
    .modal-container {
        margin: 10px;
        max-width: none;
        width: calc(100% - 20px);
    }
}

/* ==========================================
   PRINT STYLES
   ========================================== */

@media print {
    /* Hide elements that shouldn't be printed */
    .resource-insight-action-bar,
    .resource-insight-modal,
    .modal-backdrop,
    .modal-container,
    .action-button,
    .share-buttons,
    .copy-link-section,
    footer,
    #footer,
    .footer,
    .site-footer,
    header,
    #header,
    #masthead,
    .site-header,
    .header-wrapper,
    .navigation,
    .admin-bar,
    #wpadminbar {
        display: none !important;
        height: 0 !important;
        min-height: 0 !important;
        max-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Completely hide hero section for print and override inline styles */
    .resource-insight-hero,
    .resource-insight-hero *,
    .hero-title,
    .hero-content,
    .hero-background-image,
    .hero-background-video,
    .hero-overlay {
        display: none !important;
        visibility: hidden !important;
        position: absolute !important;
        left: -9999px !important;
        top: -9999px !important;
        height: 0 !important;
        min-height: 0 !important;
        max-height: 0 !important;
        width: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
        transform: none !important;
        opacity: 0 !important;
        page-break-before: avoid !important;
        page-break-after: avoid !important;
        page-break-inside: avoid !important;
        break-before: avoid !important;
        break-after: avoid !important;
        break-inside: avoid !important;
    }
    
    /* Style the print-only title */
    .print-only-title {
        display: block !important;
        font-size: 24pt !important;
        font-weight: bold !important;
        color: #000000 !important;
        margin: 0 0 20px 0 !important;
        padding: 0 !important;
        line-height: 1.2 !important;
        page-break-after: avoid !important;
        break-after: avoid !important;
        transform: none !important;
        opacity: 1 !important;
        position: static !important;
    }
    
    /* Adjust main content for print */
    .resource-insight-content {
        padding-top: 0 !important;
        margin-top: 0 !important;
        page-break-before: avoid !important;
        break-before: avoid !important;
    }
    
    /* Ensure continuous flow without page breaks */
    .resource-insight-article,
    .entry-date,
    .entry-content {
        page-break-before: avoid !important;
        break-before: avoid !important;
    }
    
    /* Remove any top spacing from interior elements */
    #interior {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    
    /* Ensure no extra spacing above content */
    .interior-content {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    
    /* Force body and html to start content immediately */
    body {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    
    /* Override any theme-specific spacing that might create gaps */
    .single-resource-insight #interior,
    .single-resource-insight .interior-content,
    .single-resource-insight .container-fluid {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    
    /* ENSURE CONTENT IS VISIBLE */
    #interior,
    .resource-insight-content,
    .resource-insight-article,
    .entry-content,
    .entry-date,
    .mainContent,
    #content,
    #right {
        display: block !important;
        visibility: visible !important;
        position: relative !important;
        opacity: 1 !important;
    }
    
    /* Style content for print */
    .entry-content {
        color: #000000 !important;
        font-size: 12pt !important;
        line-height: 1.5 !important;
    }
    
    .entry-content h1,
    .entry-content h2,
    .entry-content h3,
    .entry-content h4,
    .entry-content h5,
    .entry-content h6 {
        color: #000000 !important;
        page-break-after: avoid !important;
        page-break-inside: avoid !important;
    }
    
    .entry-content h1 { font-size: 20pt !important; }
    .entry-content h2 { font-size: 18pt !important; }
    .entry-content h3 { font-size: 16pt !important; }
    .entry-content h4 { font-size: 14pt !important; }
    .entry-content h5 { font-size: 13pt !important; }
    .entry-content h6 { font-size: 12pt !important; }
    
    /* Style entry date for print */
    .entry-date {
        margin-bottom: 20px !important;
        padding-bottom: 10px !important;
        border-bottom: 1px solid #cccccc !important;
    }
    
    .entry-date time {
        color: #666666 !important;
        font-size: 11pt !important;
    }
    
    /* Adjust images for print */
    .entry-content img {
        max-width: 100% !important;
        height: auto !important;
        box-shadow: none !important;
        border: 1px solid #cccccc !important;
        page-break-inside: avoid !important;
    }
    
    /* Page break improvements */
    .resource-insight-article {
        page-break-inside: avoid !important;
    }
    
    /* Adjust container widths for print */
    .container-fluid,
    .interior-content,
    .mainContent {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 20px !important;
    }
    
    /* Ensure proper page margins */
    @page {
        margin: 0.75in !important;
    }
    
    /* Force first page to start with content */
    @page :first {
        margin-top: 0.75in !important;
    }
    
    /* Remove any automatic page breaks but ensure visibility */
    body.single-resource-insight > *:not(.resource-insight-hero) {
        page-break-before: avoid !important;
        break-before: avoid !important;
    }
    
    /* Ensure body and html are visible */
    html,
    body,
    body.single-resource-insight {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        background: white !important;
    }
    
    /* Fix row containers that might cause overflow */
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Ensure content doesn't overflow */
    #content,
    .mainContent {
        overflow: visible !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Hide navigation and sidebar elements */
    #sidebar,
    .sidebar,
    nav,
    .nav,
    .navigation,
    .menu,
    .widget,
    .social-links {
        display: none !important;
    }
    
    /* Ensure good contrast for print */
    * {
        color-adjust: exact !important;
        -webkit-print-color-adjust: exact !important;
    }
    
    /* Add page URL for reference */
    .resource-insight-article::after {
        content: "Source: " attr(data-url);
        display: block;
        margin-top: 30px;
        padding-top: 20px;
        border-top: 1px solid #cccccc;
        font-size: 10pt;
        color: #666666;
    }
}

/* ==========================================
   ACCESSIBILITY IMPROVEMENTS
   ========================================== */

/* Focus styles for keyboard navigation */
.action-button:focus,
.share-link:focus,
.modal-close:focus,
.copy-link-container button:focus {
    outline: 3px solid #ff6b35;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero-title {
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    }
    
    .action-button {
        border-width: 3px;
    }
    
    .resource-insight-card {
        border: 2px solid #333333;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .hero-title {
        transition: none;
    }
    
    .action-button,
    .share-link,
    .resource-insight-card,
    .card-image img {
        transition: none;
    }
    
    .modal-container {
        animation: none;
    }
    
    .resource-insight-card:hover,
    .action-button:hover {
        transform: none;
    }
}

/* Download Modal Specific Styles */
.download-form-container {
    margin-top: 20px;
}

.download-form-container .nf-form-cont {
    /* Ensure forms display properly in modal */
    max-width: 100%;
}

.download-form-container .nf-field-container {
    margin-bottom: 15px;
}

.download-form-container .submit-container {
    text-align: center;
    margin-top: 20px;
}

/* Custom Form Styling to Match Ninja Forms */
.oms-resource-insight-form .nf-field-container {
    margin-bottom: 20px;
}

.oms-resource-insight-form .nf-field-label {
    margin-bottom: 8px;
}

.oms-resource-insight-form .nf-field-label label {
    font-weight: 600;
    color: #333333;
    font-size: 14px;
    display: block;
}

.oms-resource-insight-form .ninja-forms-req-symbol {
    color: #dc3545;
    font-weight: bold;
}

.oms-resource-insight-form .nf-field-element input[type="text"],
.oms-resource-insight-form .nf-field-element input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
}

.oms-resource-insight-form .nf-field-element input[type="text"]:focus,
.oms-resource-insight-form .nf-field-element input[type="email"]:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.oms-resource-insight-form .nf-field-element button[type="submit"] {
    background-color: #ff6b35;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-width: 100px;
}

.oms-resource-insight-form .nf-field-element button[type="submit"]:hover:not(:disabled) {
    background-color: #e55a2b;
}

.oms-resource-insight-form .nf-field-element button[type="submit"]:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.oms-resource-insight-form .nf-form-fields-required {
    margin-bottom: 20px;
    font-size: 12px;
    color: #666666;
    font-style: italic;
}

.oms-resource-insight-form .nf-form-hp {
    position: absolute;
    left: -9999px;
    visibility: hidden;
}

.oms-resource-insight-form .nf-error-wrap {
    display: none;
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
}

.oms-resource-insight-form .nf-error-wrap.nf-error-show {
    display: block;
}

.oms-resource-insight-form .nf-element.nf-error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.oms-resource-insight-form .nf-response-msg .nf-success {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #c3e6cb;
    margin: 10px 0;
}

.oms-resource-insight-form .nf-response-msg .nf-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
    margin: 10px 0;
}

.oms-resource-insight-form .nf-loading {
    text-align: center;
    color: #666666;
    font-style: italic;
    margin: 15px 0;
}

/* Ensure proper spacing for custom form elements */
.oms-resource-insight-form nf-field {
    display: block;
}

.oms-resource-insight-form nf-section {
    display: block;
}

.oms-resource-insight-form nf-fields-wrap {
    display: block;
}

/* =====================================
   END MODAL STYLES
   ===================================== */

 
 