.hib-wizard-wrapper {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--hib-bg, #ffffff);
    color: var(--hib-text, #333333);
    border-radius: var(--hib-radius, 8px);
    padding: 35px;
    max-width: 620px;
    margin: 0 auto;
    box-sizing: border-box;
    box-shadow: 0 12px 36px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.hib-wizard-wrapper.hib-glassmorphism {
    background-color: rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 35px 0 rgba(0, 0, 0, 0.12);
}

.hib-step {
    display: none !important;
}

.hib-step.active {
    display: block !important;
    animation: hibFadeInUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes hibFadeInUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.hib-step label {
    display: block;
    font-size: 1.18rem;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--hib-text, #333);
    line-height: 1.4;
}

.hib-step input, .hib-step textarea, .hib-step select {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    font-size: 1.05rem;
    border: 2px solid rgba(0,0,0,0.12);
    border-radius: calc(var(--hib-radius, 8px) - 2px);
    background: rgba(255,255,255,0.92);
    color: #222;
    transition: border-color 0.25s, box-shadow 0.25s;
    font-family: inherit;
}

.hib-wizard-wrapper.hib-glassmorphism input, 
.hib-wizard-wrapper.hib-glassmorphism textarea,
.hib-wizard-wrapper.hib-glassmorphism select {
    background: rgba(255,255,255,0.45);
    color: var(--hib-text, #333);
    border-color: rgba(255,255,255,0.6);
}

.hib-step input:focus, .hib-step textarea:focus, .hib-step select:focus {
    outline: none;
    border-color: var(--hib-primary, #2271b1);
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.18);
}

.hib-nav-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
    gap: 12px;
}

.hib-btn {
    background-color: var(--hib-primary, #2271b1);
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--hib-radius, 8px);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    line-height: 1.2;
    user-select: none;
}

.hib-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.hib-btn-secondary {
    background-color: transparent;
    color: var(--hib-text, #333);
    border: 2px solid rgba(0,0,0,0.14);
}

.hib-wizard-wrapper.hib-glassmorphism .hib-btn-secondary {
    border-color: rgba(255,255,255,0.6);
}

.hib-btn-secondary:hover {
    background-color: rgba(0,0,0,0.06);
    box-shadow: none;
}

.hib-wizard-wrapper.hib-glassmorphism .hib-btn-secondary:hover {
    background-color: rgba(255,255,255,0.25);
}

.hib-btn-success {
    background-color: #0a7a3b;
    color: #fff;
}

.hib-btn-success:hover {
    background-color: #086330;
}

.hib-progress-wrapper {
    position: relative;
    margin-bottom: 28px;
    padding-top: 8px;
}

.hib-progress {
    height: 4px;
    background: rgba(0,0,0,0.1);
    border-radius: 2px;
    overflow: visible;
    position: relative;
}

.hib-wizard-wrapper.hib-glassmorphism .hib-progress {
    background: rgba(255,255,255,0.25);
}

.hib-progress-bar {
    height: 100%;
    background: var(--hib-primary, #2271b1);
    width: 0%;
    transition: width 0.35s ease;
    border-radius: 2px;
    position: absolute;
    left: 0;
    top: 0;
}

.hib-progress-dots {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: -3px;
    left: 0;
    width: 100%;
    pointer-events: none;
}

.hib-dot {
    width: 10px;
    height: 10px;
    background: #ccc;
    border-radius: 50%;
    transition: background 0.35s ease, transform 0.3s ease;
    box-shadow: 0 0 0 4px var(--hib-bg, #ffffff);
}

.hib-wizard-wrapper.hib-glassmorphism .hib-dot {
    background: rgba(255,255,255,0.5);
    box-shadow: none;
}

.hib-dot.active {
    background: var(--hib-primary, #2271b1);
    transform: scale(1.25);
}

.hib-error-msg {
    color: var(--hib-text, #333);
    opacity: 0.9;
    font-size: 0.88rem;
    margin-top: 8px;
    display: none;
    align-items: center;
    gap: 6px;
    animation: hibFadeInError 0.3s ease;
}

@keyframes hibFadeInError {
    from { opacity: 0; transform: translateY(-3px); }
    to { opacity: 0.9; transform: translateY(0); }
}

.hib-error-msg i {
    font-size: 0.88rem;
    color: #d98a00;
}

.hib-wizard-wrapper.hib-glassmorphism .hib-error-msg {
    color: rgba(255, 255, 255, 0.95);
}

.hib-step input.hib-input-error, .hib-step textarea.hib-input-error {
    border-color: rgba(217, 138, 0, 0.8) !important;
    box-shadow: 0 0 0 2px rgba(217, 138, 0, 0.2) !important;
}

/* Svarassistent Forslagskort */
.hib-smart-answer-card {
    display: none;
    margin-top: 22px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--hib-primary, #2271b1);
    border-radius: calc(var(--hib-radius, 8px) - 2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    animation: hibFadeInUp 0.35s ease forwards;
}

.hib-wizard-wrapper.hib-glassmorphism .hib-smart-answer-card {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-left: 4px solid var(--hib-primary, #2271b1);
}

.hib-smart-card-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.hib-smart-card-icon {
    font-size: 1.25rem;
    color: var(--hib-primary, #2271b1);
    flex-shrink: 0;
    margin-top: 2px;
}

.hib-smart-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--hib-text, #333);
    margin: 0 0 4px 0;
    line-height: 1.35;
}

.hib-smart-card-subtitle {
    font-size: 0.85rem;
    opacity: 0.75;
    margin: 0;
}

.hib-smart-answer-body {
    font-size: 0.96rem;
    line-height: 1.6;
    color: var(--hib-text, #333);
    margin: 12px 0 16px 0;
    padding: 16px;
    background: rgba(0,0,0,0.025);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    max-height: 230px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.03);
}

@media (max-height: 700px), (max-width: 600px) {
    .hib-smart-answer-body {
        max-height: 180px;
    }
}

.hib-wizard-wrapper.hib-glassmorphism .hib-smart-answer-body {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Custom scrollbar for smart answer box */
.hib-smart-answer-body::-webkit-scrollbar {
    width: 6px;
}
.hib-smart-answer-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 4px;
}
.hib-smart-answer-body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.22);
    border-radius: 4px;
}
.hib-smart-answer-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.35);
}

.hib-smart-feedback-prompt {
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--hib-text, #333);
}

.hib-smart-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hib-smart-actions .hib-btn {
    font-size: 0.92rem;
    padding: 10px 18px;
}

/* Fullføringsskjermer */
.hib-success-msg, .hib-solved-msg {
    display: none;
    text-align: center;
    padding: 20px 0;
    animation: hibFadeInUp 0.4s ease;
}

.hib-success-msg i, .hib-solved-msg i {
    font-size: 3.2rem;
    color: var(--hib-primary, #2271b1);
    margin-bottom: 16px;
}

.hib-solved-msg i {
    color: #0a7a3b;
}

/* Laster */
.hib-loader {
    display: none;
    border: 3px solid rgba(255,255,255,0.35);
    border-top: 3px solid #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    animation: hibSpin 0.75s linear infinite;
}

@keyframes hibSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
