[data-dl-form] :is(input, select, textarea):is(:user-invalid, [aria-invalid="true"]),
[data-dl-form].dl-was-submitted :is(input, select, textarea):invalid {
    border-color: #b3261e;
    background-color: #fbe9e7;
}

[data-dl-form] .dl-invalid :is(button, [role="button"]) {
    border-color: #b3261e;
}

[data-dl-form] :is(input, select, textarea, button):focus-visible,
[data-dl-form] .dl-file:focus-within .dl-file-btn {
    outline: 2px solid #293C95;
    outline-offset: 2px;
}

.dl-error {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 6px 0 0;
    color: #b3261e;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.4;
    text-align: left;
}

.dl-error::before,
.dl-summary::before {
    content: "";
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin-top: 1px;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm0 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16zm-1 3v7h2V7h-2zm0 9v2h2v-2h-2z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm0 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16zm-1 3v7h2V7h-2zm0 9v2h2v-2h-2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.dl-error[hidden],
.dl-summary[hidden] {
    display: none;
}

.dl-summary {
    display: grid;
    grid-template-columns: 20px 1fr;
    column-gap: 10px;
    margin: 0 0 24px;
    padding: 14px 16px;
    border: 1px solid #b3261e;
    border-radius: 4px;
    background: #fbe9e7;
    text-align: left;
}

.dl-summary::before {
    width: 20px;
    height: 20px;
    margin-top: 0;
    color: #b3261e;
    grid-row: 1 / span 2;
}

.dl-summary:focus {
    outline: 2px solid #293C95;
    outline-offset: 2px;
}

.dl-summary-title,
.dl-summary-text {
    grid-column: 2;
    margin: 0;
    line-height: 1.45;
}

.dl-summary-title {
    color: #b3261e;
    font-weight: 600;
}

.dl-summary-text {
    margin-top: 2px;
    font-size: 0.9375rem;
}

.dl-summary-text:empty {
    display: none;
}

.dl-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-height: 44px;
}

.dl-check input[type="checkbox"],
.dl-check input[type="radio"] {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    margin: 0;
    accent-color: #293C95;
    cursor: pointer;
}

.dl-check label {
    flex: 1 1 auto;
    min-height: 44px;
    cursor: pointer;
}

.dl-file {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    cursor: pointer;
}

.dl-file input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    border: 0;
    opacity: 0;
}

.dl-file-btn {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1.5px solid #293C95;
    color: #293C95;
    background: #fff;
    font-weight: 600;
    white-space: nowrap;
}

.dl-file:hover .dl-file-btn {
    background: #f0f3ff;
}

.dl-file-name {
    min-width: 0;
    overflow-wrap: anywhere;
}

[data-dl-form] .dl-busy {
    cursor: progress;
}

.dl-spinner {
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-right: 0.5em;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    vertical-align: -0.15em;
    animation: dl-spin 0.7s linear infinite;
}

@keyframes dl-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .dl-spinner {
        animation-duration: 2s;
    }
}

.dl-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

body:has(.dl-recaptcha-note) .grecaptcha-badge {
    visibility: hidden;
}

@media (max-width: 767px) {
    [data-dl-form] :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):not([data-dl-group]), select),
    [data-dl-form] :is(button, input[type="submit"]) {
        min-height: 48px;
    }
}

@media (max-width: 600px) {
    [data-dl-form] .two-form-group,
    [data-dl-form] .three-form-group {
        grid-template-columns: 1fr;
    }

    #techServiceForm[data-dl-form] {
        max-width: 100%;
    }
}
