/**
 * OBS Step Menu - Bar Variant Styling
 *
 * Glass morphism "bar" style for homepage use.
 * Loaded conditionally when .dm3-stepmenu-bar wrapper is present.
 *
 * @since 3.3.0
 */

/* ============================================
   BAR CONTAINER + GLASS MORPHISM
   ============================================ */
.dm3-stepmenu-bar {
    background: rgba(26, 26, 46, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 16px 4vw;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

/* Gradient accent line at bottom */
.dm3-stepmenu-bar::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00D4AA 0%, #0088FF 50%, #667eea 100%);
}

/* Headline above dropdowns */
.dm3-stepmenu-headline {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px 0;
    text-align: center;
    letter-spacing: 0.5px;
    line-height: 1;
}

/* ============================================
   PLUGIN ELEMENT OVERRIDES (scoped to bar)
   ============================================ */

/* Full width container */
.dm3-stepmenu-bar .obs-stepmenu-container {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Hide header, progress, indicators */
.dm3-stepmenu-bar .obs-stepmenu-header,
.dm3-stepmenu-bar .obs-progress-bar,
.dm3-stepmenu-bar .obs-field-indicator {
    display: none !important;
}

/* Labels: visually hidden but accessible to screen readers */
.dm3-stepmenu-bar .obs-field-label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Main row - horizontal flex */
.dm3-stepmenu-bar .obs-stepmenu-row {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 16px !important;
}

/* Fields grid - horizontal layout */
.dm3-stepmenu-bar .obs-fields-grid {
    display: flex !important;
    gap: 16px !important;
    margin-top: 0 !important;
    grid-template-columns: unset !important;
    width: 100% !important;
}

/* Field wrapper - equal distribution */
.dm3-stepmenu-bar .obs-field-wrapper {
    flex: 1 1 0 !important;
    min-width: 0 !important;
}
.dm3-stepmenu-bar .obs-field-content {
    padding-left: 0 !important;
}

/* Dropdown styling */
.dm3-stepmenu-bar .obs-dropdown {
    background-color: rgba(255,255,255,0.1) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    border-radius: 50px !important;
    padding: 14px 44px 14px 22px !important;
    font-size: 16px !important;
    width: 100% !important;
    height: auto !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 16px !important;
}
.dm3-stepmenu-bar .obs-dropdown option {
    color: #333 !important;
    background: #fff !important;
}

/* Submit button */
.dm3-stepmenu-bar .obs-stepmenu-submit {
    margin-top: 0 !important;
    flex-shrink: 0 !important;
}
.dm3-stepmenu-bar .obs-stepmenu-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #fff !important;
    font-weight: 600 !important;
    border-radius: 50px !important;
    padding: 14px 40px !important;
    font-size: 16px !important;
    border: none !important;
    white-space: nowrap !important;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .dm3-stepmenu-headline {
        font-size: 16px;
        margin-bottom: 10px;
    }
    .dm3-stepmenu-bar {
        padding: 12px 10px;
    }
    .dm3-stepmenu-bar .obs-stepmenu-row {
        flex-direction: column !important;
        gap: 8px !important;
    }
    .dm3-stepmenu-bar .obs-fields-grid {
        flex-direction: column !important;
    }
    .dm3-stepmenu-bar .obs-field-wrapper {
        width: 100% !important;
    }
    .dm3-stepmenu-bar .obs-dropdown {
        border-radius: 12px !important;
        min-height: 48px !important;
    }
    .dm3-stepmenu-bar .obs-stepmenu-btn {
        width: 100% !important;
        border-radius: 12px !important;
        min-height: 48px !important;
    }
}
