.amweb-pro-modal .modal-dialog {
    max-width: 760px;
}

.amweb-pro-modal .modal-content {
    position: relative;
    padding: 30px;
    border-radius: 0;
}

.amweb-pro-modal__close {
    position: absolute;
    top: 26px;
    right: 26px;
    z-index: 2;
    font-size: 20px;
    cursor: pointer;
}

.amweb-pro-modal__header {
    text-align: center;
    margin-bottom: 24px;
}

.amweb-pro-modal__header h3 {
    margin-bottom: 8px;
    font-size: 30px;
    font-weight: 600;
}

.amweb-pro-modal__step-title {
    font-size: 16px;
    font-weight: 600;
}

.amweb-pro-modal__progress {
    width: 90%;
    height: 7px;
    margin: 14px auto 0;
    background: #f1f2f6;
    border-radius: 10px;
    overflow: hidden;
}

.amweb-pro-modal__progress-bar {
    width: 20%;
    height: 100%;
    background: var(--primary);
    border-radius: inherit;
    transition: width .35s ease;
}

.amweb-pro-step {
    display: none;
}

.amweb-pro-step.is-active {
    display: block;
    animation: amwebProStep .3s ease both;
}

@keyframes amwebProStep {
    from {
        opacity: 0;
        transform: translateX(12px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.amweb-pro-domain-box,
.amweb-pro-form {
    padding: 26px;
    background: #f7f7f7;
}

.amweb-pro-domain-title {
    margin-bottom: 12px;
    font-weight: 600;
}

.amweb-pro-domain-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.amweb-pro-domain {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border: 1px solid #eee;
    background: #fff;
    text-align: left;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.amweb-pro-domain__check {
    display: none;
}

.amweb-pro-domain.is-selected {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.amweb-pro-domain.is-selected .amweb-pro-domain__check {
    display: inline-flex;
}

.amweb-pro-step__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 22px;
}

.amweb-pro-next {
    background-color: var(--primary);
    border-color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.amweb-pro-next:disabled {
    opacity: .45;
    pointer-events: none;
}

.amweb-pro-back {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.amweb-pro-catalogue {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.amweb-pro-catalogue__link {
    text-transform: uppercase;
    border-color: var(--primary);
    color: var(--primary);
}

.amweb-pro-catalogue__link:hover {
    border-color: var(--primary);
    background-color: var(--primary);
    color: #ffffff;
}

.amweb-pro-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 24px;
}

.amweb-pro-field {
    min-width: 0;
}

.amweb-pro-field--full {
    grid-column: 1 / -1;
}

.amweb-pro-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.amweb-pro-field label span {
    color: #aaa;
    font-weight: 400;
}

.amweb-pro-field input:not([type="checkbox"]),
.amweb-pro-field textarea {
    width: 100%;
    padding: 14px 16px;
    border: 0;
    background: #fff;
}

.amweb-pro-field .wpcf7-submit {
    background: var(--primary) !important;
}

.amweb-pro-field textarea {
    min-height: 150px;
    resize: vertical;
}

.amweb-pro-acceptance label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
}

.amweb-pro-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
}

.amweb-pro-modal__privacy {
    margin-top: 30px;
    font-size: 12px;
}

.amweb-pro-modal__privacy a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

@media (max-width: 767px) {
    .amweb-pro-modal .modal-content {
        padding: 24px 18px;
    }

    .amweb-pro-form-grid {
        grid-template-columns: 1fr;
    }

    .amweb-pro-field--full {
        grid-column: auto;
    }

    .amweb-pro-domain {
        width: 100%;
    }
}

.amweb-pro-modal .wpcf7-response-output {
    position: relative;
    margin: 20px 0 0 !important;
    padding: 12px 16px 12px 44px !important;
    border: 0 !important;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
    animation: amwebCf7Message .3s ease both;
}

.amweb-pro-modal .wpcf7-response-output::before {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    font-family: "icomoon";
    font-size: 18px;
}

.amweb-pro-modal .wpcf7 form.sent .wpcf7-response-output {
    color: #08783e;
    background: #eaf8f0;
}

.amweb-pro-modal .wpcf7 form.sent .wpcf7-response-output::before {
    content: "✓";
    color: #00a84a;
}

.amweb-pro-modal .wpcf7 form.invalid .wpcf7-response-output,
.amweb-pro-modal .wpcf7 form.unaccepted .wpcf7-response-output,
.amweb-pro-modal .wpcf7 form.failed .wpcf7-response-output,
.amweb-pro-modal .wpcf7 form.aborted .wpcf7-response-output,
.amweb-pro-modal .wpcf7 form.spam .wpcf7-response-output {
    color: #a12622;
    background: #fdf0ef;
}

.amweb-pro-modal .wpcf7 form.invalid .wpcf7-response-output::before,
.amweb-pro-modal .wpcf7 form.unaccepted .wpcf7-response-output::before,
.amweb-pro-modal .wpcf7 form.failed .wpcf7-response-output::before,
.amweb-pro-modal .wpcf7 form.aborted .wpcf7-response-output::before,
.amweb-pro-modal .wpcf7 form.spam .wpcf7-response-output::before {
    content: "!";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 1px solid #d93025;
    border-radius: 50%;
    color: #d93025;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
}

@keyframes amwebCf7Message {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}