/* Service detail forms: application support, spare parts and customer data. */
.page-hero--application {
    background-image: url("../images/anwendungshero.jpg");
    background-position: center 48%;
}

.page-hero--spares {
    background-image: url("../images/ersatzteilhero.jpg");
    background-position: center 58%;
}

.page-hero--customer-data {
    background-image: url("../images/kdupdate.jpg");
    background-position: center 52%;
}

.service-detail-page {
    overflow: hidden;
    background: #fafafa;
}

.service-detail-main {
    padding-block: clamp(5rem, 10vw, 9rem);
}

.service-detail-page--customer-data .service-detail-main {
    padding-bottom: 0;
}

.service-detail-page--customer-data .service-detail-form {
    position: relative;
    z-index: 1;
}

.service-detail-intro {
    max-width: 62rem;
}

.service-detail-intro--wide {
    max-width: 70rem;
}

.service-detail-intro h2 {
    margin: 0;
    color: #20262a;
    font-size: clamp(2.25rem, 4.5vw, 4rem);
    font-weight: 400;
    letter-spacing: -0.045em;
    line-height: 1.08;
}

.service-detail-intro p {
    max-width: 62rem;
    margin: 0;
    color: #596267;
    font-size: clamp(1rem, 1.25vw, 1.075rem);
    line-height: 1.78;
}

.service-detail-intro h2 + p {
    margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

.service-detail-intro p + p {
    margin-top: 1.15rem;
}

.service-detail-intro a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

.service-detail-intro a:hover,
.service-detail-intro a:focus-visible {
    color: var(--color-accent-dark);
}

.service-detail-intro .service-detail-intro__lead {
    color: #343c41;
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    font-weight: 500;
    line-height: 1.55;
}

.service-detail-form {
    display: grid;
    width: min(100%, 76rem);
    gap: clamp(1.35rem, 2.5vw, 2rem);
    margin-top: clamp(4rem, 8vw, 7rem);
    padding: clamp(2rem, 6vw, 5rem);
    border: 0.0625rem solid var(--color-border);
    background: #ffffff;
}

.service-form-row {
    display: grid;
    gap: clamp(1.35rem, 3vw, 2.5rem);
}

.service-form-field {
    display: grid;
    min-width: 0;
}

.service-form-field input,
.service-form-field select,
.service-form-field textarea {
    width: 100%;
    border: 0;
    border-bottom: 0.0625rem solid #bfc5c7;
    border-radius: 0;
    outline: 0;
    background: transparent;
    color: #111416;
    font: inherit;
    font-size: 1rem;
    transition: border-color var(--transition), background-color var(--transition);
}

.service-form-field input,
.service-form-field select {
    min-height: 3.5rem;
    padding: 0.35rem 0;
}

.service-form-field select {
    padding-inline-end: 2.25rem;
    cursor: pointer;
}

.service-form-field textarea {
    min-height: 13rem;
    padding: 0.85rem 0;
    line-height: 1.65;
    resize: vertical;
}

.service-form-field input::placeholder,
.service-form-field textarea::placeholder {
    color: #777f83;
    opacity: 1;
}

.service-form-field input:hover,
.service-form-field select:hover,
.service-form-field textarea:hover {
    border-bottom-color: #899398;
}

.service-form-field input:focus,
.service-form-field select:focus,
.service-form-field textarea:focus {
    border-bottom-color: var(--color-accent-dark);
    background: #f7fafb;
}

.service-form-field--select {
    margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.service-form-field__heading {
    margin-bottom: 1rem;
    color: #252c31;
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.3;
}

.service-form-submit {
    display: inline-flex;
    width: min(100%, 21rem);
    min-height: 3.75rem;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    margin-top: clamp(2.75rem, 5vw, 4rem);
    padding: 1rem 1.25rem;
    border: 0;
    background: var(--color-primary);
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1.3;
    text-align: center;
    transition: background-color var(--transition);
}

.service-form-submit img {
    width: 1.2rem;
    height: 1.2rem;
    flex: 0 0 auto;
    filter: brightness(0) invert(1);
    transition: transform var(--transition);
}

.service-form-submit:hover,
.service-form-submit:focus-visible {
    background: var(--color-primary-hover);
}

.service-form-submit:hover img,
.service-form-submit:focus-visible img {
    transform: translateX(0.18rem);
}

.service-choice {
    min-width: 0;
    margin: 0 0 clamp(1.5rem, 3vw, 2.5rem);
    padding: 0;
    border: 0;
}

.service-choice legend,
.service-form-section legend {
    width: 100%;
    margin: 0;
    padding: 0;
    color: #20262a;
    font-size: clamp(1.5rem, 2.8vw, 2.15rem);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.25;
}

.service-choice__options {
    display: flex;
    gap: 1rem 2rem;
    margin-top: 1.5rem;
}

.service-choice__options label {
    position: relative;
    cursor: pointer;
}

.service-choice__options input {
    position: absolute;
    width: 0.0625rem;
    height: 0.0625rem;
    overflow: hidden;
    opacity: 0;
}

.service-choice__options span {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    gap: 0.75rem;
    padding-inline: 0.85rem;
    color: #3f474c;
    font-weight: 500;
    transition: color var(--transition), background-color var(--transition);
}

.service-choice__options span::before {
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
    border: 0.0625rem solid #9ba4a8;
    background: #ffffff;
    content: "";
    transition: border-color var(--transition), background-color var(--transition);
}

.service-choice__options input:checked + span {
    color: var(--color-accent-dark);
    background: #f2f8fb;
}

.service-choice__options input:checked + span::before {
    border: 0.2rem solid #ffffff;
    outline: 0.0625rem solid var(--color-accent-dark);
    background: var(--color-accent-dark);
}

.service-choice__options input:focus-visible + span {
    outline: 0.0625rem solid var(--color-accent-dark);
    outline-offset: 0.2rem;
}

.service-upload {
    margin-top: clamp(2.5rem, 5vw, 4rem);
}

.service-upload > p {
    max-width: 54rem;
    margin: 0 0 1.5rem;
    color: #5d666b;
    line-height: 1.7;
}

.service-upload__dropzone {
    position: relative;
    display: grid;
    min-height: 12rem;
    align-content: center;
    justify-items: center;
    gap: 0.45rem;
    padding: 2rem;
    border: 0.0625rem dashed #9ba6ab;
    background: #fafbfb;
    color: #596267;
    cursor: pointer;
    text-align: center;
    transition: border-color var(--transition), background-color var(--transition), color var(--transition);
}

.service-upload__dropzone:hover,
.service-upload__dropzone:focus-within,
.service-upload__dropzone.is-dragover {
    border-color: var(--color-accent-dark);
    background: #f1f8fb;
    color: var(--color-accent-dark);
}

.service-upload__dropzone input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.service-upload__symbol {
    position: relative;
    width: 2rem;
    height: 2rem;
    margin-bottom: 0.45rem;
    border-bottom: 0.0625rem solid currentColor;
}

.service-upload__symbol::before,
.service-upload__symbol::after {
    position: absolute;
    content: "";
}

.service-upload__symbol::before {
    top: 0.2rem;
    left: 50%;
    width: 0.0625rem;
    height: 1.25rem;
    background: currentColor;
    transform: translateX(-50%);
}

.service-upload__symbol::after {
    top: 0.2rem;
    left: 50%;
    width: 0.65rem;
    height: 0.65rem;
    border-top: 0.0625rem solid currentColor;
    border-left: 0.0625rem solid currentColor;
    transform: translateX(-50%) rotate(45deg);
}

.service-upload__dropzone strong {
    color: #30383d;
    font-size: 1rem;
    font-weight: 600;
}

.service-upload__dropzone > span:not(.service-upload__symbol) {
    font-size: 0.8125rem;
}

.service-upload__filename {
    margin-top: 0.35rem;
    color: var(--color-accent-dark);
    font-weight: 500;
}

.service-form-section {
    display: grid;
    gap: clamp(1.35rem, 2.5vw, 2rem);
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.service-form-section--new-customer {
    margin-top: clamp(4rem, 8vw, 7rem);
    padding-top: clamp(3.5rem, 7vw, 6rem);
    border-top: 0.0625rem solid var(--color-border);
}

.service-form-section__intro {
    margin: 0.1rem 0 1.25rem;
    color: #4f585d;
    line-height: 1.65;
}

.service-form-section__intro span {
    color: #737b7f;
    font-size: 0.9rem;
}

.application-support {
    position: relative;
    display: flex;
    min-height: clamp(38rem, 52vw, 48rem);
    align-items: center;
    isolation: isolate;
    background: #10172a url("../images/apply.jpg") center / cover no-repeat;
    color: #ffffff;
}

.application-support::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 13, 28, 0.88) 0%, rgba(12, 17, 35, 0.72) 58%, rgba(12, 17, 35, 0.48) 100%);
    content: "";
}

.application-support__inner {
    padding-block: clamp(5rem, 9vw, 8rem);
}

.application-support__content {
    max-width: 72rem;
}

.application-support h2 {
    max-width: 62rem;
    margin: 0;
    color: #ffffff;
    font-size: clamp(2.25rem, 4.25vw, 3.75rem);
    font-weight: 400;
    letter-spacing: -0.045em;
    line-height: 1.08;
}

.application-support__accent {
    color: #89c9ea;
    background: linear-gradient(100deg, #75c7eb 0%, #9b91eb 52%, #d2a2d5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Service page lead headings share one restrained, responsive scale. */
.repair-intro__header h2,
.repair-process h2,
.service-detail-intro h2,
.application-support h2 {
    font-size: clamp(1.9rem, 3.25vw, 2.85rem);
}

.application-support__content > p:not(.application-support__hours) {
    max-width: 65rem;
    margin: 0;
    color: #dce3ec;
    font-size: clamp(1rem, 1.25vw, 1.075rem);
    line-height: 1.8;
}

.application-support h2 + p {
    margin-top: clamp(2rem, 4vw, 3rem) !important;
}

.application-support__promise {
    margin-top: 1.25rem !important;
    color: #ffffff !important;
    font-size: clamp(1.15rem, 1.7vw, 1.35rem) !important;
    font-weight: 600;
}

.application-support__phones {
    display: grid;
    grid-template-columns: minmax(0, max-content);
    gap: 2rem 4rem;
    margin-top: clamp(3.5rem, 7vw, 6rem);
}

.application-support__phone {
    display: grid;
    gap: 0.55rem;
}

.application-support__phone p {
    margin: 0;
    color: #d6dce5;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    line-height: 1.4;
    text-transform: uppercase;
}

.application-support__phone a {
    width: max-content;
    max-width: 100%;
    color: var(--color-accent);
    font-size: clamp(1.5rem, 3.2vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.1;
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--transition);
}

.application-support__phone a:hover,
.application-support__phone a:focus-visible {
    color: #ffffff;
}

.application-support__hours {
    margin: 1.5rem 0 0;
    color: #bdc7d2;
    font-size: 0.875rem;
}

.service-detail-decoration {
    display: flex;
    justify-content: flex-end;
    overflow: hidden;
    background: inherit;
}

.service-detail-decoration img {
    display: block;
    height: auto;
}

.service-detail-decoration--spares img {
    width: clamp(14rem, 25vw, 27rem);
}

.service-detail-decoration--customer-data img {
    width: clamp(13rem, 17vw, 17rem);
}

.service-detail-decoration--customer-data {
    position: relative;
    z-index: 0;
    margin-top: -1.5rem;
}

@media (min-width: 40rem) {
    .service-form-row--two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-form-row--street {
        grid-template-columns: minmax(0, 1fr) minmax(8rem, 0.32fr);
    }

    .service-form-row--location {
        grid-template-columns: minmax(7rem, 0.45fr) minmax(12rem, 1fr) minmax(10rem, 0.72fr);
    }

}

@media (min-width: 48rem) and (max-width: 63.999rem),
    (min-width: 64rem) and (max-width: 74.999rem) and (hover: none) and (pointer: coarse) {
    .service-detail-decoration--customer-data {
        margin-top: clamp(9rem, 15vw, 12rem);
    }
}

@media (min-width: 64rem) and (hover: hover) and (pointer: fine) {
    .service-detail-decoration--customer-data {
        margin-top: clamp(7rem, 9vw, 10rem);
    }
}

@media (max-width: 47.999rem) {
    .page-hero--application,
    .page-hero--spares,
    .page-hero--customer-data {
        background-position: 60% center;
    }

    .page-hero--application .page-hero__title,
    .page-hero--spares .page-hero__title {
        gap: 0.4rem;
        font-size: clamp(1.2rem, 6.5vw, 1.8rem);
        letter-spacing: -0.045em;
    }

    .page-hero--customer-data .page-hero__title {
        font-size: clamp(1.2rem, 6vw, 1.7rem);
    }

    .service-detail-main {
        padding-block: 4.5rem;
    }

    .service-detail-intro h2 {
        font-size: clamp(2rem, 10vw, 2.75rem);
    }

    .service-detail-form {
        margin-top: 3.5rem;
        padding: 1.5rem var(--page-gutter) 2rem;
    }

    .service-form-submit {
        width: 100%;
    }

    .service-choice__options {
        gap: 0.75rem;
    }

    .service-choice__legend-line {
        display: block;
    }

    .service-upload__dropzone {
        min-height: 11rem;
        padding: 1.5rem 1rem;
    }

    .service-form-section--new-customer {
        margin-top: 3.75rem;
        padding-top: 3.25rem;
    }

    .application-support {
        min-height: auto;
        background-position: 58% center;
    }

    .application-support__inner {
        padding-block: 5.5rem;
    }

    .application-support h2 {
        font-size: clamp(1.7rem, 7vw, 2.2rem);
    }

    .repair-intro__header h2,
    .repair-process h2,
    .service-detail-intro h2 {
        font-size: clamp(1.7rem, 7vw, 2.2rem);
    }

    .application-support__phone a {
        font-size: clamp(1.4rem, 7vw, 1.85rem);
    }

    .service-detail-decoration--spares img {
        width: min(62vw, 20rem);
    }

    .service-detail-decoration--customer-data img {
        width: min(56vw, 17rem);
    }

    .service-detail-decoration--customer-data {
        margin-top: 5rem;
    }
}
