:root {
    --jur-navy: #062f52;
    --jur-blue: #075783;
    --jur-accent: #0099ff;
    --jur-ink: #172837;
    --jur-muted: #687987;
    --jur-line: #dfe7ed;
    --jur-soft: #f5f8fa;
    --jur-success: #198754;
    --jur-success-dark: #155d43;
    --jur-success-soft: #eef9f4;
    --jur-danger: #dc3545;
    --jur-danger-dark: #8a2330;
    --jur-danger-soft: #fff1f3;
}

.jur-request-page {
    background: #f6f9fb;
    color: var(--jur-ink);
}

.jur-hero {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 48px 0 44px;
    color: #fff;
    background:
        radial-gradient(circle at 88% 5%, rgba(31, 132, 183, .32), transparent 30%),
        linear-gradient(125deg, #031d33, #063f69 58%, #075f91);
}

.jur-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--jur-accent);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .17em;
    text-transform: uppercase;
}

.jur-hero-eyebrow::before {
    width: 32px;
    height: 2px;
    background: currentColor;
    content: "";
}

.jur-hero-title {
    margin: 9px 0 6px;
    font-size: 2.45rem;
    font-weight: 800;
    letter-spacing: -.04em;
}

.jur-hero-text {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, .76);
}

.jur-request-wrapper {
    padding-top: 40px;
    padding-bottom: 64px;
}

.jur-accordion {
    display: grid;
    gap: 14px;
}

.jur-step-card {
    overflow: hidden;
    border: 1px solid var(--jur-line) !important;
    border-radius: 15px !important;
    background: #fff;
    box-shadow: 0 10px 30px rgba(6, 47, 82, .065);
}

.jur-step-header {
    padding: 19px 22px;
    border: 0;
    color: var(--jur-navy);
    background: #fff;
}

.jur-step-header h3 {
    font-size: 1.05rem;
    font-weight: 800;
}

.jur-step-header.jur-step-active {
    background: #edf8ff;
    box-shadow: inset 4px 0 0 var(--jur-accent);
}

.jur-step-body {
    padding: 25px;
}

.jur-step-body .form-group {
    margin-bottom: 16px;
}

.jur-request-form label {
    margin-bottom: 7px;
    color: var(--jur-navy);
    font-size: .84rem;
    font-weight: 800;
}

.jur-request-form label.req::after {
    color: #e30613;
    content: " *";
}

.jur-request-form .form-control,
.jur-request-form .form-select {
    min-height: 49px;
    border-color: #cad8e1;
    border-radius: 10px;
    background-color: #fff;
}

.jur-request-form .form-control:focus,
.jur-request-form .form-select:focus {
    border-color: var(--jur-accent);
    box-shadow: 0 0 0 3px rgba(0, 153, 255, .12);
}

.jur-request-form select.form-select {
    display: block;
    width: 100%;
    padding: .75rem 2.75rem .75rem .9rem;
    color: var(--jur-ink);
    background-color: #fff;
    background-repeat: no-repeat !important;
    background-position: right .85rem center !important;
    background-size: 16px 12px !important;
    appearance: none;
    -webkit-appearance: none;
}

.jur-request-form select.form-select.is-invalid {
    background-repeat: no-repeat !important;
    background-position: right 2.35rem center, right .75rem center !important;
    background-size: 16px 12px, 18px 18px !important;
}

.jur-request-form select.form-select option {
    color: var(--jur-ink);
    background: #fff;
}

.jur-request-form .is-invalid {
    border-color: var(--jur-danger) !important;
}

.jur-choice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    padding: 15px;
    border: 1px solid var(--jur-line);
    border-radius: 11px;
    background: #f9fbfc;
}

.jur-choice:has(input:checked) {
    border-color: var(--jur-accent);
    background: #edf8ff;
}

.jur-choice .form-check-input {
    margin: 3px 0 0;
}

.jur-navigation {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--jur-line);
}

.jur-navigation .btn {
    min-height: 48px;
    padding: 11px 18px;
    border-radius: 10px;
    font-weight: 800;
}

.jur-navigation .btn-primary,
.jur-navigation .btn-success {
    border-color: var(--jur-navy);
    background: var(--jur-navy);
}

.jur-navigation .btn-primary:hover,
.jur-navigation .btn-success:hover {
    border-color: var(--jur-blue);
    background: var(--jur-blue);
}

.jur-navigation .btn-danger,
.jur-navigation .btn-secondary {
    border-color: #cad8e1;
    color: var(--jur-navy);
    background: #fff;
}

.jur-navigation .btn-danger:hover,
.jur-navigation .btn-secondary:hover {
    border-color: var(--jur-navy);
    color: #fff;
    background: var(--jur-navy);
}

.jur-request-form .btn:disabled {
    color: #fff !important;
    opacity: .58;
}

.jur-request-form #submit {
    text-align: center;
    white-space: normal;
}

#knownFromWrapper {
    padding: 17px;
    border: 1px solid #cfe8f6;
    border-radius: 11px;
    background: #f2faff;
}

.jur-info-card {
    position: sticky;
    top: 110px;
    padding: 25px;
    border: 1px solid var(--jur-line);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(6, 47, 82, .065);
}

.jur-agb-check {
    padding: 18px 18px 18px 44px;
    border-left: 4px solid var(--jur-accent);
    border-radius: 10px;
    background: var(--jur-soft);
}

.jur-request-form [hidden] {
    display: none !important;
}

/* Statusmeldung */
#jurMessage.jur-feedback {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 90px;
    margin-top: 22px;
    padding: 18px 20px;
    border: 1px solid;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(6, 47, 82, .08);
}

/* Das Font-Awesome-i wird bewusst ausgeblendet. Das Symbol wird rein per CSS
   gezeichnet, damit keine Font-Baseline das Icon nach oben verschiebt. */
.jur-feedback__icon {
    position: relative;
    display: block;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 12px;
    color: #fff;
}

.jur-feedback__icon > i {
    display: none !important;
}

.jur-feedback__icon::before,
.jur-feedback__icon::after {
    position: absolute;
    display: block;
    box-sizing: border-box;
    content: "";
}

/* Erfolg: sauber zentriertes Häkchen */
.jur-feedback--success .jur-feedback__icon::before {
    top: 50%;
    left: 50%;
    width: 18px;
    height: 10px;
    border-bottom: 3px solid #fff;
    border-left: 3px solid #fff;
    transform: translate(-50%, -62%) rotate(-45deg);
}

/* Fehler: zentriertes Ausrufezeichen ohne Font-Abhängigkeit */
.jur-feedback--error .jur-feedback__icon::before {
    top: 12px;
    left: 22px;
    width: 4px;
    height: 17px;
    border-radius: 3px;
    background: #fff;
}

.jur-feedback--error .jur-feedback__icon::after {
    bottom: 11px;
    left: 22px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #fff;
}

/* Laden: CSS-Spinner */
.jur-feedback--loading .jur-feedback__icon::before {
    top: 50%;
    left: 50%;
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255, 255, 255, .42);
    border-top-color: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: jur-feedback-spin .75s linear infinite;
}

@keyframes jur-feedback-spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.jur-feedback > div {
    min-width: 0;
}

.jur-feedback strong,
.jur-feedback span,
.jur-feedback small {
    display: block;
}

.jur-feedback strong {
    margin: 0 0 3px;
    font-size: 1rem;
    line-height: 1.35;
}

.jur-feedback span {
    line-height: 1.5;
}

.jur-feedback small {
    margin-top: 5px;
    opacity: .82;
}

.jur-feedback--loading {
    border-color: #b9dcef;
    color: var(--jur-navy);
    background: #edf8ff;
}

.jur-feedback--loading .jur-feedback__icon {
    background: var(--jur-accent);
}

.jur-feedback--success {
    border-color: #b8dfcf;
    color: var(--jur-success-dark);
    background: var(--jur-success-soft);
}

.jur-feedback--success .jur-feedback__icon {
    background: var(--jur-success);
}

.jur-feedback--error {
    border-color: #efbcc2;
    color: var(--jur-danger-dark);
    background: var(--jur-danger-soft);
}

.jur-feedback--error .jur-feedback__icon {
    background: var(--jur-danger);
}

@media (max-width: 991px) {
    .jur-info-card {
        position: static;
        margin-top: 20px;
    }
}

@media (max-width: 575px) {
    .jur-hero {
        padding: 30px 0 27px;
    }

    .jur-hero-title {
        font-size: 1.9rem;
    }

    .jur-request-wrapper {
        padding-top: 25px;
    }

    .jur-step-body {
        padding: 18px;
    }

    .jur-navigation {
        flex-direction: column-reverse;
    }

    .jur-navigation .btn {
        width: 100%;
    }

    #jurMessage.jur-feedback {
        align-items: flex-start;
        gap: 13px;
        padding: 15px;
    }

    .jur-feedback__icon {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
    }

    .jur-feedback--success .jur-feedback__icon::before {
        width: 16px;
        height: 9px;
    }

    .jur-feedback--error .jur-feedback__icon::before {
        top: 10px;
        left: 19px;
        height: 15px;
    }

    .jur-feedback--error .jur-feedback__icon::after {
        bottom: 9px;
        left: 19px;
    }
}
