.consult-popup {
position: fixed;
inset: 0;
z-index: 10000;
display: flex;
align-items: center;
justify-content: center;
padding: 24px;
opacity: 0;
visibility: hidden;
transition: opacity 0.25s ease, visibility 0.25s ease;
}
.consult-popup.is-open {
opacity: 1;
visibility: visible;
}
.consult-popup__backdrop {
position: absolute;
inset: 0;
background: rgba(10, 8, 6, 0.78);
backdrop-filter: blur(4px);
-webkit-backdrop-filter: blur(4px);
}
.consult-popup__dialog {
position: relative;
z-index: 1;
width: 100%;
max-width: 480px;
max-height: calc(100vh - 48px);
overflow-y: auto;
padding: 40px 36px 36px;
background: #f6f2ed;
border: 1px solid rgba(0, 0, 0, 0.08);
border-radius: var(--radius, 10px);
box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
transform: translateY(20px) scale(0.97);
transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
color: #171717;
}
.consult-popup.is-open .consult-popup__dialog {
transform: translateY(0) scale(1);
}
.consult-popup__close {
position: absolute;
top: 16px;
right: 16px;
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
background: transparent;
border: 0;
cursor: pointer;
padding: 0;
opacity: 0.6;
transition: opacity 0.2s ease, transform 0.2s ease;
}
.consult-popup__close:hover {
opacity: 1;
transform: rotate(90deg);
}
.consult-popup__close span,
.consult-popup__close span::before {
content: '';
position: absolute;
width: 18px;
height: 2px;
background: #171717;
}
.consult-popup__close span {
transform: rotate(45deg);
}
.consult-popup__close span::before {
transform: rotate(-90deg);
}
.consult-popup__eyebrow {
display: flex;
align-items: center;
gap: 12px;
margin: 0 0 14px;
font-size: 11px;
letter-spacing: 0.28em;
text-transform: uppercase;
color: var(--orange-soft, #ff7a26);
}
.consult-popup__eyebrow span {
width: 28px;
height: 1px;
background: currentColor;
}
.consult-popup__dialog h2 {
margin: 0 0 14px;
font-size: clamp(26px, 4vw, 32px);
font-weight: 700;
line-height: 1.1;
color: #171717;
letter-spacing: -0.02em;
}
.consult-popup__dialog h2 span {
color: var(--orange, #ff5a0a);
}
.consult-popup__lead {
margin: 0 0 24px;
font-size: 14px;
line-height: 1.55;
color: #5a5a5a;
}
.consult-popup__field {
margin-bottom: 16px;
}
.consult-popup__field label {
display: block;
margin-bottom: 6px;
font-size: 13px;
color: #3a3a3a;
}
.consult-popup__field input {
width: 100%;
padding: 14px 16px;
background: #fff;
border: 1px solid #d8d2cc;
border-radius: 8px;
color: #171717;
font-size: 15px;
font-family: inherit;
outline: none;
transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.consult-popup__field input::placeholder {
color: #a3a3a3;
}
.consult-popup__field input:focus {
border-color: var(--orange, #ff5a0a);
background: #fff;
box-shadow: 0 0 0 3px rgba(255, 122, 38, 0.12);
}
.consult-popup__field.has-error input,
.consult-popup__field input.has-error {
border-color: #d94a2f;
background: rgba(217, 74, 47, 0.04);
}
.consult-popup__error {
display: block;
margin-top: 6px;
font-size: 12px;
color: #f5483b;
}
.consult-popup__consent {
display: grid;
grid-template-columns: 22px minmax(0, 1fr);
gap: 10px;
align-items: flex-start;
margin: 18px 0 22px;
cursor: pointer;
user-select: none;
}
.consult-popup__consent input {
position: absolute;
opacity: 0;
pointer-events: none;
}
.consult-popup__consent-box {
display: grid;
place-items: center;
width: 20px;
height: 20px;
margin-top: 2px;
border: 1.5px solid #c4bdb4;
border-radius: 4px;
background: #fff;
color: #fff;
transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.consult-popup__consent-box svg {
opacity: 0;
transform: scale(0.7);
transition: opacity 0.15s ease, transform 0.15s ease;
}
.consult-popup__consent input:checked + .consult-popup__consent-box {
border-color: var(--orange, #ff5a0a);
background: var(--orange, #ff5a0a);
}
.consult-popup__consent input:checked + .consult-popup__consent-box svg {
opacity: 1;
transform: scale(1);
}
.consult-popup__consent input:focus-visible + .consult-popup__consent-box {
outline: 2px solid rgba(255, 122, 38, 0.4);
outline-offset: 2px;
}
.consult-popup__consent.has-error .consult-popup__consent-box {
border-color: #d94a2f;
}
.consult-popup__consent-text {
font-size: 12px;
line-height: 1.5;
color: #6a6a6a;
}
.consult-popup__consent-text a {
color: var(--orange, #ff5a0a);
text-decoration: underline;
text-underline-offset: 2px;
text-decoration-thickness: 1px;
}
.consult-popup__consent-text a:hover {
color: var(--orange-soft, #ff7a26);
}
.consult-popup__button {
position: relative;
display: flex;
align-items: center;
justify-content: center;
width: 100%;
min-height: 56px;
padding: 14px 28px;
background: var(--orange, #ff5a0a);
border: 0;
border-radius: 8px;
color: #fff;
font-family: inherit;
font-size: 15px;
font-weight: 600;
letter-spacing: 0.02em;
cursor: pointer;
transition: background 0.2s ease, transform 0.1s ease;
}
.consult-popup__button:hover:not(:disabled) {
background: var(--orange-soft, #ff7a26);
}
.consult-popup__button:active:not(:disabled) {
transform: scale(0.98);
}
.consult-popup__button:disabled {
opacity: 0.85;
cursor: progress;
}
.consult-popup__button--ghost {
background: transparent;
border: 1px solid rgba(0, 0, 0, 0.22);
color: #2a2a2a;
margin-top: 16px;
}
.consult-popup__button--ghost:hover:not(:disabled) {
background: rgba(0, 0, 0, 0.04);
border-color: rgba(0, 0, 0, 0.42);
color: #171717;
}
.consult-popup__loader {
display: none;
}
.consult-popup__loader svg {
animation: consult-spin 0.8s linear infinite;
}
@keyframes consult-spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
.consult-popup__success {
text-align: center;
padding: 16px 0;
}
.consult-popup__success-icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 80px;
height: 80px;
margin-bottom: 18px;
border-radius: 50%;
background: rgba(70, 180, 80, 0.12);
color: #46b450;
}
.consult-popup__success h2 {
margin: 0 0 12px;
font-size: 24px;
color: #171717;
}
.consult-popup__success p {
margin: 0 0 8px;
font-size: 14px;
line-height: 1.55;
color: #5a5a5a;
}
@media (max-width: 552px) {
.consult-popup {
padding: 0;
align-items: stretch;
}
.consult-popup__dialog {
max-width: 100%;
max-height: 100vh;
border-radius: 0;
border: 0;
padding: 56px 20px 28px;
}
.consult-popup__close {
top: 20px;
right: 20px;
}
.consult-popup__dialog h2 {
font-size: clamp(24px, 7vw, 28px);
}
.consult-popup__lead {
font-size: 13px;
}
.consult-popup__field input {
padding: 12px 14px;
font-size: 14px;
min-height: 50px;
}
.consult-popup__button {
min-height: 54px;
font-size: 14px;
}
}