.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 {
    display: flex;
    align-items: flex-start;
    background: #f1f5f9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    min-height: 600px;
}

/* Sidebar */
.fm-steps {
    width: 220px;
    min-width: 220px;
    background: #1b3a5c;
    padding: 24px 0 32px;
    display: flex;
    flex-direction: column;
    gap: 0;
    flex-shrink: 0;
}

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

.fm-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    cursor: pointer;
    color: rgba(255,255,255,.75);
    font-size: 13px;
    font-weight: 500;
    transition: background .15s, color .15s;
    border-left: 3px solid transparent;
    text-align: left;
}

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

.fm-step.active {
    background: rgba(255,255,255,.12);
    color: #fff;
    font-weight: 700;
    border-left-color: #60a5fa;
}

.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: 32px 36px;
    background: #fff;
    min-height: 580px;
    width: 100%;
    box-sizing: border-box;
}

.fm-step-content.active {
    display: block;
}

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

/* 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%;
}

/* 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: 0;
        gap: 0;
        -webkit-overflow-scrolling: touch;
    }
    .fm-step-group-label { display: none; }
    .fm-step {
        flex-direction: column;
        gap: 4px;
        padding: 10px 14px;
        font-size: 11px;
        white-space: nowrap;
        border-left: none;
        border-bottom: 3px solid transparent;
    }
    .fm-step.active {
        border-left-color: transparent;
        border-bottom-color: #60a5fa;
    }
    .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);
}
