.fm-exhibitor-web-btn:hover {
    background-color: #005177;
}

/* Filters */
.fm-exhibitor-controls {
    background: #fff;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
}

.fm-controls-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
    align-items: center;
    justify-content: space-between;
}
.fm-controls-row:last-child { margin-bottom: 0; }

.fm-entries-length select, .fm-sector-filter select, .fm-search-box input {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.fm-search-box { flex-grow: 1; text-align: right; }
.fm-search-box input { width: 100%; max-width: 300px; }

.fm-az-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.fm-az-btn {
    padding: 5px 10px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    cursor: pointer;
    border-radius: 3px;
    font-size: 14px;
}
.fm-az-btn:hover, .fm-az-btn.active {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* Exhibitor Table Layout */
.fm-exhibitor-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.fm-exhibitor-table th, .fm-exhibitor-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    text-align: left;
    vertical-align: middle;
}

.fm-exhibitor-table th {
    background-color: #f4f4f4;
    font-weight: 700;
    color: #333;
}

.fm-col-logo img {
    max-width: 100px;
    max-height: 100px;
    object-fit: contain;
    display: block;
}

.fm-no-logo-small {
    width: 60px;
    height: 60px;
    background: #e0e0e0;
    color: #fff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
}

.fm-company-name {
    margin: 0 0 5px;
    font-size: 18px;
    color: #0073aa;
}

.fm-company-about {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.fm-web-btn {
    white-space: nowrap;
}

.fm-view-stand-map {
    color: #0073aa;
    text-decoration: none;
    border-bottom: 1px dashed #0073aa;
}

/* Pagination Buttons */
.fm-page-btn {
    margin: 0 2px;
    padding: 5px 10px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
}
.fm-page-btn.button-primary {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* Auth Form */
.fm-auth-container { 
    display: flex; 
    gap: 40px; 
    flex-wrap: wrap;
}
.fm-auth-container > div { 
    flex: 1; 
    min-width: 300px;
    padding: 20px; 
    border: 1px solid #ddd; 
    border-radius: 8px; 
}

/* ── Dashboard — Sidebar Layout ────────────────────────────────────────── */
.fm-dashboard {
    --fmd-navy: #16324f;
    --fmd-navy-light: #234a72;
    --fmd-accent: #6366f1;
    --fmd-accent-dark: #4f46e5;
    --fmd-accent-light: #eef2ff;
    --fmd-border: #e6ebf2;
    --fmd-bg: #f8fafc;
    --fmd-text: #1e293b;
    --fmd-text-muted: #64748b;
    --fmd-radius-sm: 8px;
    --fmd-radius-md: 12px;
    --fmd-radius-lg: 16px;
    --fmd-shadow-sm: 0 2px 10px rgba(15, 23, 42, .06);
    --fmd-shadow-md: 0 10px 30px rgba(15, 23, 42, .10);

    display: flex;
    align-items: flex-start;
    background: var(--fmd-bg);
    border: 1px solid var(--fmd-border);
    border-radius: var(--fmd-radius-lg);
    overflow: hidden;
    box-shadow: var(--fmd-shadow-md);
    min-height: 600px;
}

/* Sidebar */
.fm-steps {
    width: 224px;
    min-width: 224px;
    background: linear-gradient(180deg, var(--fmd-navy), var(--fmd-navy-light) 140%);
    padding: 22px 12px 28px;
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex-shrink: 0;
}

.fm-step-group-label {
    padding: 16px 10px 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255,255,255,.38);
}

.fm-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    cursor: pointer;
    color: rgba(255,255,255,.78);
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--fmd-radius-sm);
    transition: background .15s, color .15s, transform .15s;
    text-align: left;
}

.fm-step:hover {
    background: rgba(255,255,255,.08);
    color: #fff;
}

.fm-step.active {
    background: var(--fmd-accent);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(99, 102, 241, .35);
}

.fm-step .fms-icon {
    font-size: 15px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

/* Main content wrapper (flex sibling of .fm-steps) */
.fm-main-content {
    flex: 1;
    min-width: 0;
    background: #fff;
    display: flex;
    flex-direction: column;
}

/* Content area */
.fm-step-content {
    display: none;
    padding: 30px 36px;
    background: #fff;
    min-height: 580px;
    width: 100%;
    box-sizing: border-box;
    color: var(--fmd-text, #1e293b);
}

.fm-step-content.active {
    display: block;
    animation: fmd-step-fade-in .18s ease;
}

@keyframes fmd-step-fade-in {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fm-step-content h3 {
    color: #16324f;
    letter-spacing: -.01em;
}

/* Button spacing + accent color in step content */
.fm-step-content .button,
.fm-step-content button.button,
.fm-step-content input[type="submit"] {
    margin-top: 8px;
    margin-bottom: 8px;
    border-radius: 7px;
}

.fm-step-content .button-primary {
    background: #6366f1;
    border-color: #6366f1;
    box-shadow: none;
    text-shadow: none;
}

.fm-step-content .button-primary:hover {
    background: #4f46e5;
    border-color: #4f46e5;
}

/* Consistent input/select/textarea widths in step content */
.fm-step-content input[type="text"],
.fm-step-content input[type="email"],
.fm-step-content input[type="number"],
.fm-step-content input[type="url"],
.fm-step-content input[type="tel"],
.fm-step-content select,
.fm-step-content textarea {
    box-sizing: border-box;
    max-width: 100%;
    border-radius: 7px;
}

/* Tables inside step content — light card-row look */
.fm-step-content table {
    border-radius: 10px;
    overflow: hidden;
}

.fm-step-content table thead th {
    background: #f8fafc;
    font-weight: 700;
    color: #334155;
}

/* Responsive: sidebar collapses to horizontal scroll on mobile */
@media (max-width: 768px) {
    .fm-dashboard {
        flex-direction: column;
    }
    .fm-main-content {
        width: 100%;
    }
    .fm-step-content {
        padding: 20px 16px;
    }
    .fm-steps {
        width: 100%;
        min-width: 0;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 8px;
        gap: 2px;
        -webkit-overflow-scrolling: touch;
    }
    .fm-step-group-label { display: none; }
    .fm-step {
        flex-direction: column;
        gap: 4px;
        padding: 8px 12px;
        font-size: 11px;
        white-space: nowrap;
    }
    .fm-step-content {
        padding: 20px 16px;
        min-height: auto;
    }
}

.fm-table th, .fm-table td {
    padding: 12px;
    border: 1px solid #eee;
    text-align: left;
}
.fm-table th {
    background-color: #f9f9f9;
    width: 150px;
    font-weight: 600;
}

/* Summary Section */
.fm-summary-section {
    margin-bottom: 25px;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 8px;
    background: #fff;
}
.fm-summary-section h4 {
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
    color: #0073aa;
}

@media print {
    .fm-steps, .fm-form-footer, button, #wpadminbar, .site-header, .footer { display: none !important; }
    .fm-dashboard { display: block !important; width: 100% !important; margin: 0 !important; padding: 0 !important; }
    .fm-step-content { display: block !important; border: none !important; box-shadow: none !important; }
    .fm-step-content:not(.active) { display: none !important; }
}

/* Extras Table Styles */
.fm-extras-table th {
    background-color: #f4f4f4;
    padding: 10px;
    text-align: left;
    border-bottom: 2px solid #ddd;
}
.fm-extras-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}
.fm-category-header {
    background-color: #f9f9f9;
    color: #0073aa;
    padding-top: 15px !important;
    padding-bottom: 5px !important;
}
.fm-extra-img-wrapper {
    width: 100px;
    height: 100px;
    overflow: hidden;
    position: relative;
    border: 1px solid #eee;
    background: #fff;
}
.fm-extra-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.fm-extra-img-wrapper:hover img {
    transform: scale(1.5);
    z-index: 10;
    position: relative;
    background: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}
