body.amf-modal-open {
    overflow: hidden;
}

.amf-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
}

.amf-modal.is-active {
    display: block;
}

.amf-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgb(255 255 255 / 18%);
    backdrop-filter: blur(15px);
}

.amf-modal-dialog {
    position: relative;
    z-index: 2;
    width: min(960px, calc(100% - 24px));
    max-height: calc(100vh - 24px);
    overflow: auto;
    backdrop-filter: blur(75px);
    border-radius: 18px;
    margin: 100px auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
    animation: amfFadeUp .22s ease;
}

@keyframes amfFadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.amf-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #333333;
    color: #ffffff;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    z-index: 5;
}

.amf-modal-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
    align-items: center;
    padding: 15px;
}

.amf-modal-media {
    text-align: center;
}

.amf-modal-image {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

.amf-modal-body {
    width: 100%;
}

.amf-modal-top-title {
    font-size: 20px;
    font-weight: 700;
    color: #444;
    margin-bottom: 14px;
}

.amf-modal-title {
    margin: 0 0 14px;
    font-size: 38px;
    line-height: 1.15;
    color: #333;
    font-weight: 800;
}

.amf-modal-description {
    font-size: 18px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

.amf-modal-form-wrap {
    margin-top: 20px;
}

.amf-modal-warning {
    padding: 10px 15px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1;
    color: #000000;
    border-top: 1px solid #fff;
    text-align: center;
}

.amf-modal-warning-text {
    margin-bottom: 8px;
}

.amf-modal-warning-links a {
    color: #d71919;
    text-decoration: none;
    font-weight: 700;
}

.amf-modal-warning-links a:hover {
    text-decoration: underline;
}

.amf-modal-success {
    margin-top: 16px;
    padding: 20px;
    border-radius: 14px;
    background: #f5fbf5;
    border: 1px solid #d5ead5;
}

.amf-modal-success-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
    color: #2f6b2f;
}

.amf-modal-success-text {
    color: #3a5a3a;
    font-size: 16px;
}

.amf-trigger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 22px;
    border: 0;
    border-radius: 12px;
    background: #333;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: .2s ease;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .16);
}

.amf-trigger-btn:hover {
    transform: translateY(-1px);
    color: #fff;
    opacity: .95;
}

@media (max-width: 767px) {
    .amf-modal-dialog {
        width: calc(100% - 16px);
        max-height: calc(100vh - 16px);
        border-radius: 16px;
        margin: 8px auto;
    }

    .amf-modal-layout {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 22px 18px;
    }

    .amf-modal-title {
        font-size: 28px;
    }

    .amf-modal-description {
        font-size: 16px;
    }

    .amf-modal-top-title {
        font-size: 18px;
    }
}





.form-modern {
	max-width: 500px;
	margin: 0 auto;
}

.form-row {
	display: flex;
    flex-direction: column;
}

.form-group {
	width: 100%;
	margin-bottom: 15px;
}

.form-group label {
	display: block;
	font-size: 14px;
	margin-bottom: 5px;
	color: #555;
}

.form-input-modal {
	width: 100%;
    max-width: 300px;
	padding: 12px 14px;
	border: 1px solid #b1b1b1;
	border-radius: 15px;
	font-size: 14px;
	transition: 0.2s;
    backdrop-filter: blur(75px);
    background: transparent;
}

.form-input-modal:focus {
	border-color: #000;
	outline: none;
}

.form-button {
	width: 100%;
	padding: 14px;
	background: #000;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 15px;
	cursor: pointer;
	transition: 0.2s;
}

.form-button:hover {
	background: #333;
}

.form-agreement {
	font-size: 12px;
	color: #777;
	margin-top: 10px;
	text-align: center;
}

.form-agreement a {
	color: #000;
	text-decoration: underline;
}


.form-modern button {
    color: #fff;
    width: 100%;
    max-width: 300px;
    border: 1px solid var(--cg-pr-c2);
    font-weight: 700;
    border-radius: 8px;
    padding: 5px 15px;
    text-transform: capitalize;
    -webkit-transition: all 500ms ease-in-out;
    transition: all 500ms ease-in-out;
    background-color: var(--cg-pr-c2);
}
.form-modern button:hover {
    color: var(--cg-pr-c2);
    background-color: #fff;
    border: 1px solid #fff

}

.amf-modal .wpcf7-response-output {
    display: none !important;
}