:root {
    --std-form-border: #d8dee8;
    --std-form-ring: rgba(244, 122, 33, .22);
    --std-form-accent: #f47a21;
    --std-form-accent-hover: #dc6513;
    --std-form-danger: #b42318;
    --std-form-success: #16794c;
}

.std-form-trap {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.order-form {
    display: grid;
    gap: 14px;
    position: relative;
}

.std-form-loading {
    position: absolute;
    inset: -6px;
    z-index: 20;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 8px;
    border-radius: 13px;
    background: rgba(255, 255, 255, .94);
    color: #0f172a;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, visibility .18s ease;
}

.order-form.is-loading .std-form-loading {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.std-form-loading strong {
    font-size: 16px;
    line-height: 1.2;
}

.std-form-loading span {
    color: #64748b;
    font-size: 13px;
    line-height: 1.35;
}

.std-form-loading__spinner {
    color: var(--std-form-accent);
    animation: std-form-spin .8s linear infinite;
}

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

.order-form .fg input,
.order-form .fg textarea {
    border: 1px solid var(--std-form-border);
    border-radius: 10px;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.order-form .fg input:hover,
.order-form .fg textarea:hover {
    border-color: #aeb8c7;
}

.order-form .fg input:focus,
.order-form .fg textarea:focus {
    border-color: var(--std-form-accent);
    box-shadow: 0 0 0 4px var(--std-form-ring);
}

.order-form .wpcf7-not-valid {
    border-color: var(--std-form-danger) !important;
}

.order-form .wpcf7-not-valid-tip {
    display: block;
    margin-top: 6px;
    color: var(--std-form-danger);
    font-size: 13px;
    line-height: 1.35;
}

.order-form .m-check .wpcf7-list-item {
    margin: 0;
}

.order-form .m-check .wpcf7-list-item label {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 10px;
    align-items: start;
    min-height: 22px;
    padding: 0;
}

.order-form .m-check .wpcf7-list-item input {
    position: relative;
    z-index: 1;
    width: 22px;
    height: 22px;
    margin: 0;
    opacity: 1;
    appearance: none;
    border: 1px solid var(--std-form-border);
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.order-form .m-check .wpcf7-list-item input:checked {
    border-color: var(--std-form-accent);
    background-color: var(--std-form-accent);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 10 3 3 7-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.order-form .m-check .wpcf7-list-item input:focus-visible {
    box-shadow: 0 0 0 4px var(--std-form-ring);
}

.order-form .m-check .wpcf7-list-item-label {
    font-size: 12px;
    line-height: 1.45;
}

.order-form .m-check .wpcf7-list-item-label a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.order-form input[type="submit"] {
    margin-top: 2px;
    border-radius: 10px;
    text-transform: none;
    transition: background-color .18s ease, transform .18s ease, opacity .18s ease;
}

.order-form input[type="submit"]:not(:disabled):hover {
    background: var(--std-form-accent-hover);
    transform: translateY(-1px);
}

.order-form input[type="submit"]:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.order-form .wpcf7-response-output {
    margin: 0 !important;
    padding: 11px 13px !important;
    border: 1px solid #f0b8b3 !important;
    border-radius: 9px;
    background: #fff6f5;
    color: #7a271a;
    font-size: 14px;
    line-height: 1.45;
}

.order-form.sent .wpcf7-response-output {
    border-color: #a6d7c0 !important;
    background: #f0faf5;
    color: var(--std-form-success);
}

.modal {
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
}

.modal._active {
    visibility: visible;
}

.modal .modal__bg {
    display: block;
    background: #0f172a;
    opacity: 0;
    transition: opacity .2s ease;
}

.modal._active .modal__bg {
    opacity: .55;
}

.modal .modal__dialog {
    max-width: min(620px, calc(100% - 24px));
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .22);
    opacity: 0;
    transform: translateY(10px) scale(.985);
    transition: opacity .2s ease, transform .2s ease;
}

.modal._active .modal__dialog {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.modal .close-btn {
    top: 18px;
    right: 18px;
    color: #465262;
}

body.fixed-body2 {
    overflow-y: auto !important;
    padding-right: 0 !important;
}

.modal__dialog.isSent {
    padding: 40px !important;
}

.modal__dialog.isSent > .wpcf7,
.modal__dialog.isSent > .modal__info,
.modal__dialog.isSent > .success-form {
    display: none !important;
}

.std-form-success {
    display: grid;
    justify-items: center;
    gap: 14px;
    padding: 12px 0 2px;
    text-align: center;
}

.std-modal-icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 50%;
    background: #fff3e9;
    color: var(--std-form-accent);
}

.std-form-success__title {
    margin: 0;
    color: #0f172a;
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.15;
}

.std-form-success__message {
    max-width: 430px;
    margin: 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.55;
}

.std-form-success__close {
    min-width: 160px;
    min-height: 46px;
    margin-top: 4px;
    border: 0;
    border-radius: 10px;
    background: var(--std-form-accent);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.std-phone-modal__content {
    display: grid;
    justify-items: center;
    gap: 18px;
    padding: 8px 16px 2px;
    text-align: center;
}

.std-phone-modal__content .std-form__intro {
    padding: 0;
}

.std-phone-modal__number {
    color: #0f172a;
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 750;
    line-height: 1.1;
    text-decoration: none;
}

.std-phone-modal__call {
    min-width: 190px;
    text-decoration: none;
}

.std-phone-trigger--mobile {
    display: none !important;
}

.std-form__intro {
    display: grid;
    gap: 10px;
    padding-right: 34px;
}

@media (prefers-reduced-motion: reduce) {
    .modal,
    .modal .modal__bg,
    .modal .modal__dialog,
    .order-form input[type="submit"] {
        transition: none;
    }

    .std-form-loading__spinner {
        animation-duration: 1.6s;
    }
}

@media (max-width: 600px) {
    .modal .modal__dialog {
        padding: 24px 18px;
    }

    .modal__dialog.isSent {
        padding: 32px 20px !important;
    }
}

.std-part-product__actions {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 9px;
}

.std-part-product__actions .std-part-product__cta {
    border: 0;
    cursor: pointer;
    font-family: inherit;
}

.std-part-product__actions .std-part-product__cta--secondary {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155 !important;
    box-shadow: none;
}

.std-part-product__actions .std-part-product__cta--secondary:hover {
    border-color: #94a3b8;
    background: #f8fafc;
    color: #0f172a !important;
}

.std-store-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: 32px;
}

.equipment-call .std-store-actions .req__link {
    margin: 0;
}

.std-store-actions > .m-btn {
    border: 0;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

@media (max-width: 767px) {
	.std-store-actions {
		width: 100%;
		margin: 20px 0 0;
		flex-direction: column;
		align-items: flex-start;
	}

    .std-part-product__actions,
    .std-part-product__actions .std-part-product__cta {
        width: 100%;
    }

    .std-phone-trigger--desktop {
        display: none !important;
    }

    .std-phone-trigger--mobile {
        display: inline-flex !important;
    }
}
