.details-modal-overlay {
    display: none;
    /* ховаємо весь оверлей на старті */
    position: fixed;
    inset: 0;
    background: rgba(63, 52, 42, 0.3);
    align-items: center;
    justify-content: center;
    z-index: 99999;
    backdrop-filter: blur(4px);
}

.details-modal-overlay .dialog {
    position: relative;
    width: 90%;
    max-width: 520px;
    background: white;
    border-radius: 12px;
    padding: 40px 32px 40px 32px;
    box-shadow: 0px 4px 40px 0px #00000029;
    height: auto;
    max-height: 90vh;
}

.details-modal-overlay .close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 50%;
}

.details-modal-overlay .dialog .details-wrapper {
    overflow: auto;
    height: calc(90vh - 60px);
    padding-right: 12px;
    margin-right: -12px;
}

.details-modal-overlay .close-btn:hover {
    background: rgba(215, 180, 106, 0.15);
}

.details-modal-overlay .title {
    font-family: e-Ukraine;
    font-weight: 500;
    font-size: 24px;
    line-height: 144%;
    letter-spacing: 1%;
    text-align: left;
    text-transform: uppercase;
    color: #3F342A;
    margin: 0 0 15px 0;
}

.details-modal-overlay .subtitle {
    font-family: e-Ukraine;
    font-weight: 500;
    font-size: 18px;
    line-height: 148%;
    letter-spacing: 0%;
    text-align: left;
    color: #3F342A;
    margin: 0 0 20px 0;
}

.details-modal-overlay .subtitle-text {
    font-family: Montserrat;
    font-weight: 500;
    font-size: 16px;
    line-height: 148%;
    letter-spacing: 0%;
    text-align: left;
    color: #3F342A;
    margin: 0 0 16px 0;
}

.details-modal-overlay .form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.details-modal-overlay .form-group {
    position: relative;
}

.details-modal-overlay .input {
    width: 100%;
    height: 60px;
    padding: 4px 20px 4px 20px;
    border: 1px solid #5D554D1F;
    border-radius: 12px;
    font-size: 16px;
    color: #3F342A;
    font-family: Montserrat;
    font-weight: 500;
    font-size: 16px;
    line-height: 148%;
    letter-spacing: 0%;
}

.details-modal-overlay .input:focus {
    outline: none;
}

.details-modal-overlay .form-group label {
    position: absolute;
    left: 16px;
    top: 18px;
    font-size: 16px;
    color: #98928D;
    pointer-events: none;
    transition: all 0.2s ease;
}

.details-modal-overlay .form-group label span {
    color: #ED7A54;
}

.details-modal-overlay .form-group.filled label,
.details-modal-overlay .input:focus+label {
    top: -8px;
    left: 10px;
    font-size: 12px;
    background-color: #fff;
    padding: 0 10px;
    font-family: Montserrat;
    font-weight: 500;
    font-size: 12px;
    line-height: 148%;
    letter-spacing: 0%;
}

.details-modal-overlay .submit-btn {
    height: 60px;
    background: #D7B46A;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    margin-top: 0px;
    font-family: Montserrat;
    font-weight: 600;
    font-size: 18px;
    line-height: 148%;
    letter-spacing: 0%;
    color: #fff;
}

.details-modal-overlay .submit-btn:hover {
    background: #C9A55C;
}

.details-modal-overlay .submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.details-modal-overlay .agreement {
    font-family: Montserrat;
    font-weight: 500;
    font-size: 14px;
    line-height: 148%;
    letter-spacing: 0%;
    text-align: center;
    color: #98928D;
    text-align: center;
}

.details-modal-overlay .agreement a {
    color: #3480B4;
    text-decoration: none;
}

.details-modal-overlay .article-list {
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
}

.details-modal-overlay .article-list li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.55;
    color: #5D554D;
    font-family: Montserrat;
    font-weight: 500;
    font-size: 18px;
    line-height: 148%;
    letter-spacing: 0%;
}

@media (max-width: 600px) {
    .details-modal-overlay .article-list li {
        font-size: 16px;
        padding-left: 36px;
    }
}

.details-modal-overlay .article-list .number {
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    background: #ED7A54;
    color: #FFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Montserrat;
    font-weight: 600;
    font-size: 16px;
    line-height: 148%;
    letter-spacing: 0%;
}

@media (max-width: 600px) {
    .details-modal-overlay .article-list .number {
        font-size: 14px;
        width: 24px;
        height: 24px;
    }
}

.details-modal-overlay .article-list .badge {
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    color: #FFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Montserrat;
    font-weight: 600;
    font-size: 16px;
    line-height: 148%;
    letter-spacing: 0%;
}

.details-modal-overlay .article-list .badge img {
    width: 28px;
    height: 28px;
}

@media (max-width: 600px) {
    .details-modal-overlay .article-list .badge {
        width: 24px;
        height: 24px;
    }

    .details-modal-overlay .article-list .badge img {
        width: 24px;
        height: 24px;
    }
}

.details-modal-overlay .article-list .dot {
    position: absolute;
    left: 12px;
    top: 12px;
    width: 4px;
    height: 4px;
    color: #FFF;
    border-radius: 50%;
    background: #3F342A;
}