/* Download Popup — matches Figma node 82:1358 */

.download-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-popup {
    background: var(--colors-grayscale-white, #FFF);
    border-radius: 8px;
    padding: 24px;
    width: 584px;
    max-width: 90vw;
    position: relative;
    box-shadow: 0 16px 32px rgba(51, 51, 51, 0.1);
    font-family: Calibri, sans-serif;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Header row: icon + title on left, close button on right */
.download-popup__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 32px;
}

.download-popup__title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 2px;
}

.download-popup__icon {
    width: 16px;
    height: 16px;
    display: block;
}

.download-popup__title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    line-height: 24px;
    margin: 0;
}

.download-popup__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #fff;
    border: 1px solid #D9D9D9;
    border-radius: 4px;
    cursor: pointer;
    padding: 4px;
    color: #333;
    font-size: 16px;
    line-height: 1;
}

.download-popup__close:hover {
    background: #F0F0F0;
}

/* Description text */
.download-popup__description {
    font-size: 16px;
    font-weight: 400;
    color: #4C4C4C;
    line-height: 20px;
    margin: 0;
}

/* Input fields — compact, no labels */
.download-popup__field {
    display: flex;
    flex-direction: column;
}

.download-popup__input {
    width: 100%;
    height: 32px;
    padding: 7px;
    font-size: 14px;
    font-family: Calibri, sans-serif;
    font-weight: 400;
    line-height: 16px;
    border: 1px solid #D9D9D9;
    border-radius: 4px;
    color: #333;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.download-popup__input::placeholder {
    color: #999;
}

.download-popup__input:focus {
    outline: none;
    border-color: #0057B8;
}

.download-popup__error {
    display: block;
    font-size: 12px;
    color: #D50404;
    margin-top: 2px;
    min-height: 14px;
}

/* Footer: button aligned right */
.download-popup__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.download-popup__submit {
    min-width: 64px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 700;
    font-family: Calibri, sans-serif;
    letter-spacing: 0.12px;
    line-height: 16px;
    color: var(--colors-grayscale-white, #FFF);
    background: var(--colors-primary-braskem-blue-500, #0057B8);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.download-popup__submit:hover {
    background: #004a9e;
}

/* Responsive */
@media (max-width: 768px) {
    .download-popup {
        width: calc(100% - 32px);
    }
}

@media (max-width: 480px) {
    .download-popup {
        padding: 16px;
    }

    .download-popup__submit {
        width: 100%;
        padding: 8px;
        font-size: 14px;
    }
}
