/* Fonts are already loaded by the ASAP Service theme. */
.asap-catalog-help,
.asap-catalog-help * {
    box-sizing: border-box;
}

.asap-catalog-help {
    display: block;
    flex-shrink: 0;
    width: 100%;
    min-width: 0;
    margin: 0 0 100px;
    padding: 40px 32px;
    border: 1px solid #cfcfcf;
    background: #e8e7e9;
    color: #222;
    font-family: "Rubik", sans-serif;
    text-align: center;
}

.asap-catalog-help .asap-catalog-help__title {
    display: block;
    margin: 0 0 16px;
    padding: 0;
    color: #222;
    font-family: "Oswald", sans-serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
}

.asap-catalog-help .asap-catalog-help__text {
    max-width: 760px;
    margin: 0 auto 24px;
    padding: 0;
    color: #777;
    font-family: "Rubik", sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.55;
}

.asap-catalog-help .asap-catalog-help__button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: auto;
    max-width: 100%;
    min-height: 60px;
    margin: 0;
    padding: 17px 40px;
    border: 1px solid #ce153e;
    border-radius: 70px;
    background: #ce153e;
    box-shadow: none;
    color: #fff;
    font-family: "Rubik", sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0.9px;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    white-space: normal;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

.asap-catalog-help .asap-catalog-help__button:hover {
    border-color: #b71136;
    background: #b71136;
    color: #fff;
}

.asap-catalog-help .asap-catalog-help__button:focus-visible {
    outline: 3px solid #222;
    outline-offset: 4px;
}

.asap-catalog-help__button-label {
    min-width: 0;
    overflow-wrap: break-word;
}

.asap-catalog-help .asap-catalog-help__arrow {
    display: block;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
}

.asap-catalog-help .asap-catalog-help__note {
    margin: 12px 0 0;
    padding: 0;
    color: #777;
    font-family: "Rubik", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
}

@media (max-width: 767px) {
    .asap-catalog-help {
        margin-bottom: 64px;
        padding: 32px 20px;
    }

    .asap-catalog-help .asap-catalog-help__title {
        font-size: 26px;
    }

    .asap-catalog-help .asap-catalog-help__text {
        font-size: 16px;
    }

    .asap-catalog-help .asap-catalog-help__button {
        width: 100%;
        gap: 10px;
        padding: 16px 20px;
        font-size: 14px;
        letter-spacing: 0.4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .asap-catalog-help .asap-catalog-help__button {
        transition: none;
    }
}


/* Modal styles are scoped to keep existing Contact Form 7 forms independent. */
.asap-help-modal,
.asap-help-modal * {
    box-sizing: border-box;
}

.asap-help-modal:not([open]) {
    display: none;
}

.asap-help-modal {
    position: fixed;
    inset: 0;
    width: calc(100% - 32px);
    max-width: 640px;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 16px 64px rgb(0 0 0 / 16%);
    color: #222;
    font-family: "Rubik", sans-serif;
    text-align: left;
}

.asap-help-modal::backdrop {
    background: rgba(0, 0, 0, 0.8);
}

.asap-help-modal__panel {
    width: 100%;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    padding: 48px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.asap-help-modal .asap-help-modal__close {
    appearance: none;
    position: absolute;
    z-index: 2;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 6px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #222;
    cursor: pointer;
}

.asap-help-modal__close:hover {
    background: #f3f3f3;
}

.asap-help-modal .asap-help-modal__title {
    display: block;
    margin: 0 0 12px;
    padding: 0;
    color: #222;
    font-family: "Oswald", sans-serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
}

.asap-help-modal__title:focus {
    outline: none;
}

.asap-help-modal .asap-help-modal__intro {
    margin: 0 0 28px;
    padding: 0;
    color: #777;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
}

.asap-help-modal .wpcf7,
.asap-help-modal .wpcf7 form,
.asap-help-modal .asap-help-form__fields {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #222;
    font-family: "Rubik", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
}

.asap-help-modal :where(.wpcf7 form) p {
    margin: 0;
    padding: 0;
}

.asap-help-modal .asap-help-form__fields br {
    display: none;
}

.asap-help-modal .asap-help-form__group {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0 0 24px;
    padding: 0;
    border: 0;
}

.asap-help-modal .asap-help-form__group legend,
.asap-help-modal .asap-help-form__subtitle {
    float: none;
    display: block;
    width: 100%;
    margin: 0 0 12px;
    padding: 0;
    color: #222;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.asap-help-modal .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
    min-width: 0;
}

.asap-help-modal .wpcf7-radio {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
    margin: 0;
    padding: 0;
}

.asap-help-modal .asap-help-form__quantity .wpcf7-radio {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    justify-content: start;
}

.asap-help-modal .wpcf7-list-item {
    display: block;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.asap-help-modal .wpcf7-list-item label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    height: 100%;
    margin: 0;
    padding: 9px 14px;
    border: 1px solid #cfcfcf;
    border-radius: 40px;
    background: #fff;
    color: #222;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    cursor: pointer;
}

.asap-help-modal .wpcf7-list-item label:has(input:checked) {
    border-color: #ce153e;
    background: #fceef1;
}

.asap-help-modal .wpcf7-list-item-label {
    min-width: 0;
    white-space: normal;
}

.asap-help-modal .wpcf7-list-item-label::before,
.asap-help-modal .wpcf7-list-item-label::after {
    content: none;
}

.asap-help-modal input[type="radio"] {
    appearance: none;
    position: static;
    display: block;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin: 0;
    padding: 0;
    border: 1px solid #cfcfcf;
    border-radius: 50%;
    background: #fff;
    opacity: 1;
    visibility: visible;
    cursor: pointer;
}

.asap-help-modal input[type="radio"]:checked {
    border: 2px solid #ce153e;
    background: radial-gradient(circle, #ce153e 0 5px, #fff 5.5px);
}

.asap-help-modal .asap-help-form__comment,
.asap-help-modal .asap-help-form__contacts {
    margin: 0 0 24px;
}

.asap-help-modal .asap-help-form__field,
.asap-help-modal .asap-help-form__comment {
    min-width: 0;
}

.asap-help-modal .asap-help-form__field label,
.asap-help-modal .asap-help-form__comment label {
    display: block;
    margin: 0 0 6px;
    color: #222;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
}

.asap-help-modal input[type="text"],
.asap-help-modal input[type="tel"],
.asap-help-modal input[type="email"],
.asap-help-modal textarea {
    appearance: none;
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 48px;
    margin: 0;
    padding: 12px 20px;
    border: 1px solid #cfcfcf;
    border-radius: 30px;
    background: #fff;
    box-shadow: none;
    color: #222;
    font-family: "Rubik", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
    text-transform: none;
}

.asap-help-modal textarea {
    height: 96px;
    min-height: 96px;
    padding: 14px 20px;
    border-radius: 24px;
    resize: vertical;
}

.asap-help-modal input::placeholder,
.asap-help-modal textarea::placeholder {
    color: #999;
    opacity: 1;
}

.asap-help-modal .asap-help-form__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.asap-help-modal .asap-help-form__email {
    margin-top: 16px;
}

.asap-help-modal .asap-help-form__hint {
    margin: 6px 0 0;
    padding: 0;
    color: #888;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
}

.asap-help-modal .asap-help-form__actions {
    position: relative;
    margin-top: 32px;
}

.asap-help-modal .asap-help-form__submit {
    appearance: none;
    display: block;
    width: 100%;
    min-height: 60px;
    margin: 0;
    padding: 16px 24px;
    border: 1px solid #ce153e;
    border-radius: 40px;
    background: #ce153e;
    box-shadow: none;
    color: #fff;
    font-family: "Rubik", sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.5px;
    text-align: center;
    text-transform: uppercase;
    white-space: normal;
    cursor: pointer;
}

.asap-help-modal .asap-help-form__submit:hover {
    border-color: #b71136;
    background: #b71136;
}

.asap-help-modal .asap-help-form__submit:disabled,
.asap-help-modal form.submitting .asap-help-form__submit {
    opacity: 0.65;
    cursor: wait;
    pointer-events: none;
}

.asap-help-modal .asap-help-form__footnote {
    margin: 14px 0 0;
    padding: 0;
    color: #888;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
}

.asap-help-modal .wpcf7-spinner {
    position: absolute;
    top: 18px;
    right: 14px;
    margin: 0;
}

.asap-help-modal .wpcf7-not-valid {
    border-color: #ce153e;
}

.asap-help-modal .wpcf7-not-valid-tip {
    margin-top: 6px;
    color: #ce153e;
    font-size: 12px;
    line-height: 1.5;
}

.asap-help-modal .wpcf7 form .wpcf7-response-output {
    position: static;
    inset: auto;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 20px 0 0;
    padding: 12px 16px;
    transform: none;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

/* Field-level validation messages remain visible next to each invalid field. */
.asap-help-modal .wpcf7 form.invalid .wpcf7-response-output {
    display: none;
}

.asap-help-modal .asap-help-modal__unavailable {
    margin: 0 0 12px;
    color: #777;
    font-size: 16px;
    line-height: 1.6;
}

.asap-help-modal input:not([type="radio"]):focus-visible,
.asap-help-modal textarea:focus-visible,
.asap-help-modal button:focus-visible,
.asap-help-modal .wpcf7-response-output:focus-visible,
.asap-help-modal .wpcf7-list-item label:has(input:focus-visible) {
    outline: 2px solid #ce153e;
    outline-offset: 3px;
}

@media (max-width: 600px) {
    .asap-help-modal {
        width: calc(100% - 24px);
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
        border-radius: 14px;
    }

    .asap-help-modal__panel {
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
        padding: 48px 20px 28px;
    }

    .asap-help-modal .asap-help-modal__close {
        top: 8px;
        right: 8px;
    }

    .asap-help-modal .asap-help-modal__title {
        font-size: 26px;
    }

    .asap-help-modal .asap-help-modal__intro {
        margin-bottom: 24px;
    }

    .asap-help-modal .asap-help-form__service .wpcf7-list-item {
        width: 100%;
    }

    .asap-help-modal .asap-help-form__quantity .wpcf7-radio {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .asap-help-modal .wpcf7-list-item label {
        padding: 9px 12px;
    }

    .asap-help-modal .asap-help-form__row {
        grid-template-columns: minmax(0, 1fr);
    }

    .asap-help-modal input[type="text"],
    .asap-help-modal input[type="tel"],
    .asap-help-modal input[type="email"],
    .asap-help-modal textarea {
        font-size: 16px;
    }

    .asap-help-modal .asap-help-form__submit {
        font-size: 16px;
    }

    .asap-help-modal .asap-help-form__footnote {
        font-size: 12px;
    }
}
