/* FjernAsbestTag.dk – WP Coder Migration v1.2.0 */

/* ---------- Shared simple calculators: wp_code 11, 12, 13 ---------- */
.fat-simple-calc,
.fat-simple-calc * {
    box-sizing: border-box;
}

.fat-simple-calc {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    max-width: 500px;
    margin: 20px auto;
    padding: 30px;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

.fat-simple-calc__inner {
    width: 100%;
}

.fat-simple-calc__title {
    margin: 0 0 25px;
    color: #111827;
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.25;
}

.fat-simple-calc__form {
    margin: 0;
}

.fat-simple-calc__field {
    margin-bottom: 20px;
}

.fat-simple-calc__label {
    display: block;
    margin: 0 0 8px;
    color: #374151;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
}

.fat-simple-calc__select,
.fat-simple-calc__input {
    width: 100%;
    min-height: 52px;
    margin: 0;
    padding: 13px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #333;
    font: inherit;
    font-size: 16px;
    line-height: 1.35;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fat-simple-calc__select {
    cursor: pointer;
}

.fat-simple-calc__input-wrap {
    position: relative;
}

.fat-simple-calc__input {
    padding-right: 48px;
}

.fat-simple-calc__unit {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 0.9rem;
    font-weight: 700;
    pointer-events: none;
}

.fat-simple-calc__select:focus,
.fat-simple-calc__input:focus {
    border-color: #27ae60;
    outline: none;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.12);
}

.fat-simple-calc__button {
    display: block;
    width: 100%;
    margin: 5px 0 0;
    padding: 14px;
    border: 0;
    border-radius: 8px;
    background: #1f2937;
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.fat-simple-calc__button:hover {
    background: #111827;
    transform: translateY(-1px);
}

.fat-simple-calc__button:focus-visible {
    outline: 2px solid #166534;
    outline-offset: 2px;
}

.fat-simple-calc__result {
    margin-top: 20px;
    padding: 22px 18px;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    background: #f0fdf4;
    text-align: center;
    animation: fatSimpleFadeIn 0.25s ease-out;
}

.fat-simple-calc__result[hidden] {
    display: none;
}

.fat-simple-calc__result-label,
.fat-simple-calc__result-note {
    display: block;
}

.fat-simple-calc__result-label {
    margin-bottom: 5px;
    color: #166534;
    font-size: 0.9rem;
    font-weight: 600;
}

.fat-simple-calc__result-amount {
    display: block;
    color: #15803d;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.fat-simple-calc__result-note {
    margin-top: 8px;
    color: #166534;
    font-size: 0.75rem;
    line-height: 1.4;
}

.fat-simple-calc__result.is-error {
    border-color: #fed7aa;
    background: #fff7ed;
}

.fat-simple-calc__result.is-error .fat-simple-calc__result-label,
.fat-simple-calc__result.is-error .fat-simple-calc__result-amount,
.fat-simple-calc__result.is-error .fat-simple-calc__result-note {
    color: #9a3412;
}

.fat-simple-calc__result.is-error .fat-simple-calc__result-amount {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
}

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

@media (max-width: 480px) {
    .fat-simple-calc {
        padding: 20px 15px;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }

    .fat-simple-calc__result-amount {
        font-size: 1.7rem;
    }
}

/* ---------- Notification bars: wp_code 14, 15, 16 ---------- */
.fat-notification-bar,
.fat-notification-bar * {
    box-sizing: border-box;
}

.fat-notification-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    text-align: center;
    box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.14);
    opacity: 0;
    transform: translateY(110%);
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.fat-notification-bar.is-visible {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.fat-notification-bar--light {
    border-top: 1px solid #e5e7eb;
    background: rgba(255, 255, 255, 0.97);
    color: #111827;
}

.fat-notification-bar--blue {
    background: rgba(0, 46, 99, 0.98);
    color: #fff;
    font-weight: 700;
}

.fat-notification-bar__text {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.fat-notification-bar__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 8px;
    background: #fdb913;
    color: #111827 !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.fat-notification-bar__button:hover {
    background: #e3a70e;
    color: #111827 !important;
    transform: translateY(-1px);
}

.fat-notification-bar__button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

@media (min-width: 768px) {
    .fat-notification-bar {
        right: auto;
        bottom: 16px;
        left: 50%;
        width: min(980px, calc(100vw - 32px));
        flex-direction: row;
        gap: 18px;
        padding: 12px 16px;
        border: 1px solid rgba(148, 163, 184, 0.24);
        border-radius: 12px;
        transform: translate(-50%, calc(100% + 32px));
    }

    .fat-notification-bar.is-visible {
        transform: translate(-50%, 0);
    }

    .fat-notification-bar__button {
        flex: 0 0 auto;
    }
}

/* ---------- Advanced asbestos calculator: wp_code 17 ---------- */
.fat-asb-calculator,
.fat-asb-calculator * {
    box-sizing: border-box;
}

.fat-asb-calculator {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    max-width: 500px;
    margin: 20px auto;
    padding: 30px;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

.fat-asb-progress {
    background-color: #f3f4f6;
    border-radius: 5px;
    height: 8px;
    margin-bottom: 25px;
    overflow: hidden;
}

.fat-asb-progress__bar {
    background-color: #27ae60;
    height: 100%;
    width: 25%;
    transition: width 0.4s ease;
}

.fat-asb-step {
    display: none;
    animation: fatAsbFadeIn 0.4s ease-out;
}

.fat-asb-step.is-active {
    display: block;
}

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

.fat-asb-calculator h3 {
    margin: 0 0 10px;
    color: #111827;
    font-size: 1.4rem;
    text-align: center;
    line-height: 1.2;
}

.fat-asb-calculator p {
    color: #6b7280;
    text-align: center;
    margin: 0 0 25px;
    line-height: 1.5;
    font-size: 0.95rem;
}

.fat-asb-input-group {
    position: relative;
    margin-bottom: 25px;
}

.fat-asb-input-group input {
    width: 100%;
    padding: 15px 40px 15px 15px;
    font-size: 18px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    text-align: center;
    transition: border-color 0.2s ease;
    background: #fff;
    color: #333;
}

.fat-asb-input-group input:focus {
    border-color: #27ae60;
    outline: 2px solid rgba(39, 174, 96, 0.2);
    outline-offset: 1px;
}

.fat-asb-unit {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-weight: 700;
}

.fat-asb-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 25px;
}

.fat-asb-radio-card {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    background: #fff;
}

.fat-asb-radio-card:hover {
    border-color: #27ae60;
    background-color: #f9fafb;
}

.fat-asb-radio-card.is-selected {
    border-color: #27ae60;
    background-color: #f0fdf4;
}

.fat-asb-radio-card input {
    margin-right: 15px;
    transform: scale(1.2);
    accent-color: #27ae60;
    flex-shrink: 0;
}

.fat-asb-radio-content {
    min-width: 0;
}

.fat-asb-radio-title {
    display: block;
    font-weight: 700;
    color: #374151;
    font-size: 1rem;
}

.fat-asb-radio-card.is-selected .fat-asb-radio-title {
    color: #166534;
}

.fat-asb-radio-desc {
    font-size: 0.85rem;
    color: #6b7280;
    display: block;
    margin-top: 2px;
}

.fat-asb-btn {
    display: block;
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.fat-asb-btn:focus-visible,
.fat-asb-link-reset:focus-visible,
.fat-asb-cta-button:focus-visible {
    outline: 2px solid #166534;
    outline-offset: 2px;
}

.fat-asb-btn--next {
    border: none;
    background-color: #1f2937;
    color: #fff;
}

.fat-asb-btn--next:hover {
    background-color: #111827;
    transform: translateY(-1px);
}

.fat-asb-btn--prev {
    background-color: #fff;
    color: #4b5563;
    border: 1px solid #d1d5db;
}

.fat-asb-btn--prev:hover {
    background-color: #f9fafb;
}

.fat-asb-btn-row {
    display: flex;
    gap: 10px;
}

.fat-asb-price-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 25px 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
}

.fat-asb-price-label {
    display: block;
    font-size: 0.9rem;
    color: #166534;
    margin-bottom: 5px;
    font-weight: 600;
}

.fat-asb-price-amount {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: #15803d;
    line-height: 1.2;
}

.fat-asb-price-note {
    display: block;
    font-size: 0.75rem;
    color: #166534;
    margin-top: 8px;
}

.fat-asb-cta-box {
    background: #fff7ed;
    border: 1px solid #ffedd5;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
}

.fat-asb-cta-box h4 {
    margin: 0 0 10px;
    color: #c2410c;
    font-size: 1.2rem;
}

.fat-asb-bullets {
    text-align: left;
    list-style: none;
    padding: 0;
    margin: 15px 0 25px;
    display: inline-block;
    max-width: 100%;
}

.fat-asb-bullets li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    line-height: 1.4;
    gap: 12px;
}

.fat-asb-check {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    width: 24px;
    height: 24px;
    color: #27ae60;
}

.fat-asb-check svg {
    width: 100%;
    height: 100%;
}

.fat-asb-cta-button {
    background-color: #ea580c;
    color: #fff !important;
    font-size: 1.1rem;
    box-shadow: 0 4px 6px rgba(234, 88, 12, 0.2);
    text-decoration: none !important;
    display: block;
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.fat-asb-cta-button:hover {
    background-color: #c2410c;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(234, 88, 12, 0.25);
}

.fat-asb-link-reset {
    background: none;
    border: none;
    color: #9ca3af;
    text-decoration: underline;
    font-size: 0.85rem;
    margin-top: 20px;
    cursor: pointer;
    width: 100%;
}

.fat-asb-link-reset:hover {
    color: #6b7280;
}

@media (max-width: 480px) {
    .fat-asb-calculator {
        padding: 20px 15px;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid #eee;
    }

    .fat-asb-price-amount {
        font-size: 1.8rem;
    }

    .fat-asb-btn-row {
        flex-direction: column-reverse;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fat-simple-calc__result,
    .fat-simple-calc__select,
    .fat-simple-calc__input,
    .fat-simple-calc__button,
    .fat-asb-step,
    .fat-asb-progress__bar,
    .fat-notification-bar,
    .fat-notification-bar__button,
    .fat-asb-btn,
    .fat-asb-cta-button {
        animation: none;
        transition: none;
    }
}

/* ---------- Specialty multi-step calculators: wp_code 12, 13 ---------- */
.fat-specialty-calc .fat-asb-progress__bar {
    width: 20%;
}

.fat-specialty-calc__select-wrap {
    margin-bottom: 25px;
}

.fat-specialty-calc__select-label {
    display: block;
    margin: 0 0 8px;
    color: #374151;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
}

.fat-specialty-calc__select {
    width: 100%;
    min-height: 54px;
    margin: 0;
    padding: 13px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #333;
    font: inherit;
    font-size: 16px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fat-specialty-calc__select:focus {
    border-color: #27ae60;
    outline: none;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.12);
}
