/* ══ Поп-ап ══ */
#dsf-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

#dsf-box {
    position: relative;
    background: #fff;
    border-radius: 22px;
    width: 460px;
    max-width: 94vw;
    max-height: 92vh;
    overflow-y: auto;
    padding: 40px 34px 34px;
    box-sizing: border-box;
    box-shadow: 0 16px 54px rgba(0, 0, 0, 0.3);
}

.dsf-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e6f2f7;
    border: none;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    color: #1a6f8c;
    cursor: pointer;
    transition: background 0.2s;
}

.dsf-close:hover {
    background: #cfe6ef;
}

.dsf-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #16324a;
    line-height: 1.3;
    margin: 0 0 22px;
    padding-right: 24px;
}

.dsf-input {
    width: 100%;
    padding: 15px 18px;
    border: 1.5px solid #bcd9e6;
    border-radius: 30px;
    font-size: 0.98rem;
    color: #333;
    margin-bottom: 12px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
}

.dsf-input:focus {
    border-color: #1a8ca0;
}

.dsf-error {
    color: #c0392b;
    font-size: 0.85rem;
    margin-bottom: 10px;
    padding: 7px 12px;
    background: #fdf0ef;
    border-radius: 8px;
    border-left: 3px solid #c0392b;
}

.dsf-checkbox-wrap {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin: 6px 0 18px;
}

.dsf-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.8rem;
    color: #555;
    line-height: 1.4;
    cursor: pointer;
    text-align: left;
}

.dsf-checkbox-label span {
    flex: 1;
    min-width: 0;
    overflow-wrap: break-word;
}

.dsf-checkbox-label input[type="checkbox"] {
    margin: 2px 0 0;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #1a8ca0;
}

.dsf-privacy-link {
    color: #1a8ca0;
    text-decoration: underline;
}

.dsf-submit {
    display: block;
    width: 70%;
    margin: 0 auto;
    padding: 15px;
    border: none;
    border-radius: 30px;
    background: #003257;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.dsf-submit:hover:not(:disabled) {
    background: #00243f;
    color: #fff;
    text-decoration: none;
}

.dsf-submit:active:not(:disabled) {
    transform: scale(0.98);
}

.dsf-submit:disabled {
    background: #d7d7d7;
    color: #f4f4f4;
    cursor: not-allowed;
}

/* ══ Шаг 2: результат ══ */
.dsf-result {
    text-align: center;
    padding: 8px 0 4px;
}

.dsf-result-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #16324a;
    line-height: 1.3;
    margin: 0 0 14px;
    padding: 0 24px;
}

.dsf-result-text {
    font-size: 1rem;
    color: #333;
    line-height: 1.5;
    margin: 0;
}

/* ══ Mobile ══ */
@media (max-width: 600px) {
    #dsf-overlay {
        align-items: flex-end;
    }

    #dsf-box {
        width: 100%;
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        padding: 34px 22px 28px;
    }
}
