.fault-report-form-wrapper * {
    box-sizing: border-box;
}

.fault-report-heading {
    margin-bottom: 24px;
}

.fault-report-heading h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1f2a44;
    margin: 0 0 6px;
}

.fault-report-heading p {
    color: #6b7280;
    margin: 0;
}

.fault-report-steps {
    display: flex;
    flex-wrap: nowrap;
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
}

.fault-report-step {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    color: #9ca3af;
    font-size: 13px;
    font-weight: 600;
}

/* Összekötő vonal: szürke alapsáv + animáltan kitöltődő kék sáv */
.fault-report-step:not(:first-child)::before,
.fault-report-step:not(:first-child)::after {
    content: "";
    position: absolute;
    top: 15.5px;
    left: -50%;
    width: 100%;
    height: 3px;
    border-radius: 999px;
}

.fault-report-step:not(:first-child)::before {
    background-color: #e5e7eb;
}

.fault-report-step:not(:first-child)::after {
    background-image: linear-gradient(90deg, #2f7df6, #2563eb);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .45s ease;
}

.fault-report-step.is-active::after,
.fault-report-step.is-complete::after {
    transform: scaleX(1);
}

.fault-report-step-index {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid #e5e7eb;
    color: #9ca3af;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
    transition: background .3s ease, color .3s ease, border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}

.fault-report-step-title {
    line-height: 1.3;
    transition: color .3s ease;
}

/* Befejezett lépés: kék korong pipával */
.fault-report-step.is-complete {
    color: #1f2a44;
}

.fault-report-step.is-complete .fault-report-step-index {
    background-image: linear-gradient(135deg, #2f7df6, #2563eb);
    border-color: transparent;
    color: transparent;
    font-size: 0;
}

.fault-report-step.is-complete .fault-report-step-index::after {
    content: "\2713";
    color: #fff;
    font-size: 16px;
    line-height: 1;
}

/* Aktuális lépés: kiemelt korong */
.fault-report-step.is-active {
    color: #1f2a44;
}

.fault-report-step.is-active .fault-report-step-index {
    background-image: linear-gradient(135deg, #2f7df6, #2563eb);
    border-color: transparent;
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 0 0 4px rgba(47, 125, 246, .15);
}

/* Mobil: kisebb korongok és feliratok, a vonalak végigfutnak */
@media (max-width: 575.98px) {
    .fault-report-steps {
        margin-bottom: 24px;
    }

    .fault-report-step {
        gap: 6px;
        font-size: 11px;
    }

    .fault-report-step-index {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .fault-report-step:not(:first-child)::before,
    .fault-report-step:not(:first-child)::after {
        top: 12.5px;
    }

    .fault-report-step.is-complete .fault-report-step-index::after {
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fault-report-step:not(:first-child)::after,
    .fault-report-step-index {
        transition: none;
    }
}

.fault-report-row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -10px;
    margin-right: -10px;
}

.fault-report-col {
    padding-left: 10px;
    padding-right: 10px;
    width: 100%;
}

.fault-report-form-group {
    margin-bottom: 20px;
}

.fault-report-label {
    display: inline-block;
    font-weight: 600;
    color: #1f2a44;
    margin-bottom: 8px;
}

.fault-report-label.required:after {
    content: " *";
    color: #ef4444;
}

.fault-report-subheading {
    font-weight: 600;
    color: #1f2a44;
    margin: 0 0 4px;
}

.fault-report-input {
    display: block;
    width: 100%;
    background-color: #f8f9fb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    color: #1f2a44;
    font-size: 15px;
    line-height: 1.5;
    padding: 14px 16px;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.fault-report-input::placeholder {
    color: #9ca3af;
}

.fault-report-input:focus {
    border-color: #2f7df6;
    box-shadow: 0 0 0 3px rgba(47, 125, 246, .15);
    outline: 0;
    background-color: #fff;
}

.fault-report-input.is-invalid {
    border-color: #ef4444;
}

.fault-report-field-error {
    color: #b91c1c;
    font-size: 13px;
    margin-top: 6px;
}

/* Település választó (Select2) testreszabás, hogy illeszkedjen az űrlaphoz */
.fault-report-form-wrapper .select2-container {
    width: 100% !important;
}

.fault-report-form-wrapper .select2-container--default .select2-selection--single {
    display: flex;
    align-items: center;
    height: auto;
    min-height: 50px;
    padding: 7px 12px;
    background-color: #f8f9fb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.fault-report-form-wrapper .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: 0;
    color: #1f2a44;
    font-size: 15px;
    line-height: 1.5;
}

.fault-report-form-wrapper .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #9ca3af;
}

.fault-report-form-wrapper .select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 0;
    right: 10px;
    height: 100%;
}

.fault-report-form-wrapper .select2-container--default.select2-container--open .select2-selection--single,
.fault-report-form-wrapper .select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #2f7df6;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(47, 125, 246, .15);
}

.fault-report-form-wrapper select.is-invalid + .select2-container--default .select2-selection--single {
    border-color: #ef4444;
}

.fault-report-form-wrapper .select2-dropdown {
    border-color: #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .12);
}

.fault-report-form-wrapper .select2-search--dropdown .select2-search__field {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 10px;
}

.fault-report-form-wrapper .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #2f7df6;
}

.fault-report-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 500;
    color: #1f2a44;
    cursor: pointer;
}

.fault-report-checkbox input {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.fault-report-alert {
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 14px;
}

.fault-report-alert-info {
    background-color: #e0f2fe;
    border: 1px solid #bae6fd;
    color: #075985;
}

.fault-report-alert-danger {
    background-color: #fee2e2;
    border: 1px solid #fca5a5;
    color: #7f1d1d;
}

.fault-report-attachments .fault-report-dropzone {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 22px 24px;
    cursor: pointer;
    background-color: #fcfcfd;
    transition: border-color .15s ease-in-out, background-color .15s ease-in-out;
    font-weight: 400;
}

.fault-report-attachments .fault-report-dropzone:hover,
.fault-report-attachments .fault-report-dropzone.is-dragover {
    border-color: #2f7df6;
    background-color: #f3f8ff;
}

.fault-report-attachments .fault-report-dropzone-icon {
    color: #94a3b8;
    display: inline-flex;
}

.fault-report-attachments .fault-report-dropzone-text {
    color: #6b7280;
}

.fault-report-attachments .fault-report-dropzone-browse {
    margin-left: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 18px;
    font-weight: 600;
    color: #1f2a44;
    background-color: #fff;
}

.fault-report-attachments-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
}

.fault-report-attachments-list .fault-report-attachment-item {
    font-size: 13px;
    color: #4b5563;
    padding: 4px 0;
}

.fault-report-help {
    display: block;
    margin-top: 8px;
    color: #9ca3af;
    font-size: 13px;
}

.fault-report-message {
    border-radius: 10px;
    margin: 0 0 20px;
    padding: 14px 18px;
    width: 100%;
}

.fault-report-success-message {
    background-color: #dcfce7;
    border: 1px solid #86efac;
    color: #14532d;
}

.fault-report-error-message {
    background-color: #fee2e2;
    border: 1px solid #fca5a5;
    color: #7f1d1d;
}

.fault-report-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
}

.fault-report-nav .fault-report-next,
.fault-report-nav .fault-report-submit {
    margin-left: auto;
}

.fault-report-btn {
    display: inline-block;
    border: 0;
    border-radius: 10px;
    background-image: linear-gradient(135deg, #2f7df6, #2563eb);
    color: #fff;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .04em;
    padding: 14px 32px;
    transition: opacity .15s ease-in-out, box-shadow .15s ease-in-out;
}

.fault-report-btn:hover,
.fault-report-btn:focus {
    opacity: .92;
    box-shadow: 0 6px 18px rgba(37, 99, 235, .3);
    color: #fff;
}

.fault-report-prev {
    background-image: none;
    background-color: #eef2f7;
    color: #1f2a44;
}

.fault-report-prev:hover,
.fault-report-prev:focus {
    color: #1f2a44;
    box-shadow: none;
}

.fault-report-submit {
    text-transform: uppercase;
}

.button-loading {
    color: transparent !important;
    cursor: default;
    position: relative;
}

.button-loading:before {
    animation: fault-report-spinner 1s linear infinite;
    border: 3px solid;
    border-color: #fff #fff transparent;
    border-radius: 50%;
    content: "";
    height: 18px;
    left: 50%;
    margin-left: -9px;
    margin-top: -9px;
    position: absolute;
    top: 50%;
    width: 18px;
}

@media (min-width: 768px) {
    .fault-report-col-6 {
        width: 50%;
    }

    .fault-report-col-4 {
        width: 33.3333%;
    }

    .fault-report-col-12 {
        width: 100%;
    }
}

/* Visszatöltés-értesítő sáv + "Űrlap törlése" gomb */
.fault-report-restored-alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.fault-report-restored-text {
    font-weight: 600;
}

.fault-report-restored-clear {
    flex-shrink: 0;
    border: 1px solid currentColor;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
    padding: 8px 16px;
    transition: background-color .15s ease-in-out, color .15s ease-in-out;
}

.fault-report-restored-clear:hover,
.fault-report-restored-clear:focus {
    background-color: #075985;
    color: #fff;
}

@keyframes fault-report-spinner {
    0% {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(1turn);
    }
}
