.popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.popup-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}
.popup-overlay.visible {
    opacity: 1;
}
.popup-box {
    background: #fff;
    border-radius: 12px;
    padding: 36px 32px;
    width: 100%;
    max-width: 420px;
    position: relative;
    transform: translateY(30px);
    transition: transform 0.3s ease;
    box-sizing: border-box;
}
.popup-overlay.visible .popup-box {
    transform: translateY(0);
}
.popup-box h3 {
    margin: 0 0 20px;
    font-size: 20px;
}
.popup-box input,
.popup-box select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    margin-bottom: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.popup-box input:focus,
.popup-box select:focus {
    border-color: #888;
    outline: none;
}
.popup-btn-submit {
    width: 100%;
    padding: 12px;
    background: #222;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}
.popup-btn-submit:hover {
    background: #444;
}
.popup-btn-submit:active {
    transform: scale(0.98);
}
.popup-close {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 22px;
    cursor: pointer;
    color: #aaa;
    transition: color 0.2s;
    line-height: 1;
    background: none;
    border: none;
}
.popup-close:hover {
    color: #333;
}
.popup-message {
    margin-top: 12px;
    font-size: 14px;
    text-align: center;
    min-height: 20px;
}
.popup-message.success { color: #2e7d32; }
.popup-message.error   { color: #c62828; }

/* FAB контейнер */
.fab-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

/* Главная кнопка */
.fab-main {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #222;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    position: relative;
    z-index: 2;
}
.fab-main:hover {
    background: #444;
    box-shadow: 0 6px 24px rgba(0,0,0,0.3);
}
.fab-main.open {
    transform: rotate(45deg);
}

/* Иконка плюса */
.fab-main svg {
    transition: transform 0.3s ease;
    pointer-events: none;
}

/* Группа дочерних кнопок */
.fab-items {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    pointer-events: none;
}

/* Дочерняя кнопка */
.fab-item {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
}
.fab-item:nth-child(2) {
    transition-delay: 0.05s;
}

.fab-widget.open .fab-items {
    pointer-events: all;
}
.fab-widget.open .fab-item {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

/* Лейбл */
.fab-item-label {
    background: #fff;
    color: #222;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    transition: box-shadow 0.2s;
}
.fab-item:hover .fab-item-label {
    box-shadow: 0 4px 16px rgba(0,0,0,0.22);
}

/* Иконка дочерней кнопки */
.fab-item-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    color: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    font-size: 20px;
    flex-shrink: 0;
    transition: box-shadow 0.2s, background 0.2s;
}
.fab-item:hover .fab-item-icon {
    background: #f5f5f5;
}

/* Мобилка */
@media (max-width: 480px) {
    .fab-widget {
        bottom: 20px;
        right: 20px;
    }
}

.fab-main-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

/* Лейбл главной кнопки — скрываем при открытии */
.fab-main-wrap .fab-item-label {
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.fab-widget.open .fab-main-wrap .fab-item-label {
    opacity: 0;
    transform: translateX(8px);
    pointer-events: none;
}

/* Крутим иконку при открытии */
.fab-widget.open .fab-main {
    transform: rotate(45deg);
}

.privacy-checkbox {
    margin-bottom: 14px;
}

.privacy-checkbox label {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.privacy-checkbox label input {
    width: 20px;
    height: 20px;
}

.privacy-checkbox label a {
    font-weight: 600;
}

.privacy-checkbox label a:hover {
    color: #FF5C6C;
}