.hfi-popup-open-btn {
    background: #d8a428;
    color: #ffffff;
    border: 0;
    padding: 14px 28px;
    font-size: 15px;
    border-radius: 3px;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.hfi-popup-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.42);
    z-index: 999999;
    overflow-y: auto;
    padding: 18px;
}

.hfi-popup-modal {
    width: 100%;
    max-width: 760px;
    background: #ffffff;
    margin: 10px auto 30px;
    position: relative;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
    border-radius: 4px;
    overflow: hidden;
}

.hfi-popup-close {
    position: absolute;
    right: 14px;
    top: 14px;
    width: 36px;
    height: 36px;
    line-height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    color: #9b9b9b;
    font-size: 28px;
    cursor: pointer;
    z-index: 20;
}

.hfi-popup-top {
    background: linear-gradient(135deg, #f6f0e5 0%, #fbf8f2 100%);
    border-bottom: 1px solid #ece6da;
    padding: 28px 28px 20px;
}

.hfi-popup-brand-panel {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 18px;
    align-items: center;
}

.hfi-popup-logo-wrap {
    text-align: center;
}

.hfi-popup-logo {
    max-width: 180px;
    width: 100%;
    height: auto;
    display: inline-block;
}

.hfi-popup-brand-text {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
}

.hfi-popup-site {
    color: #1f3f6d;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    letter-spacing: 0.5px;
    word-break: break-word;
}

.hfi-popup-body {
    padding: 32px 48px 42px;
    background: #ffffff;
}

.hfi-popup-heading {
    font-size: 20px;
    line-height: 1.45;
    text-align: center;
    color: #1f3f6d;
    margin: 0 0 8px;
    font-weight: 700;
}

.hfi-popup-subheading {
    text-align: center;
    color: #1f3f6d;
    font-size: 17px;
    line-height: 1.45;
    margin: 0 0 28px;
    font-weight: 600;
}

.hfi-popup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 34px;
    margin-bottom: 18px;
}

.hfi-popup-field label,
.hfi-popup-radio-title,
.hfi-popup-download-title {
    display: block;
    font-size: 14px;
    color: #4f5560;
    margin-bottom: 8px;
    font-weight: 500;
}

.hfi-popup-field label span,
.hfi-popup-radio-title span {
    color: #dc5d5d;
    margin-left: 2px;
}

.hfi-popup-field input[type="text"],
.hfi-popup-field input[type="email"] {
    width: 100%;
    height: 44px;
    border: 1px solid #dcdcdc;
    background: #ffffff;
    padding: 10px 12px;
    font-size: 14px;
    box-sizing: border-box;
    border-radius: 2px;
    color: #333333;
}

.hfi-popup-options-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 34px;
    align-items: start;
    margin: 4px 0 18px;
}

.hfi-popup-radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #666666;
    cursor: pointer;
}

.hfi-popup-radio-option input[type="radio"] {
    margin: 0;
}

.hfi-popup-download-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #666666;
    line-height: 1.45;
    cursor: pointer;
}

.hfi-popup-download-checkbox input[type="checkbox"] {
    margin-top: 3px;
    flex: 0 0 auto;
}

.hfi-popup-recaptcha {
    margin-top: 10px;
    margin-bottom: 24px;
    min-height: 78px;
    overflow: visible;
}

.hfi-popup-submit-wrap {
    text-align: center;
    margin-top: 8px;
}

.hfi-popup-submit-btn {
    background: #d8a428;
    color: #ffffff;
    border: 0;
    padding: 12px 30px;
    min-width: 110px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 3px;
    letter-spacing: 0.2px;
}

#hfi-popup-form-response {
    margin-top: 16px;
    text-align: center;
    font-size: 14px;
}

#hfi-popup-form-response.success {
    color: #1f7a1f;
}

#hfi-popup-form-response.error {
    color: #c62828;
}

#hfi-popup-download-wrap {
    margin-top: 14px;
    text-align: center;
}

.hfi-popup-download-link {
    display: inline-block;
    background: #1f3f6d;
    color: #ffffff;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 3px;
    font-weight: 600;
}

@media (max-width: 767px) {
    .hfi-popup-modal {
        max-width: 100%;
    }

    .hfi-popup-top {
        padding: 22px 18px 18px;
    }

    .hfi-popup-brand-panel,
    .hfi-popup-grid,
    .hfi-popup-options-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .hfi-popup-logo {
        max-width: 150px;
    }

    .hfi-popup-site {
        font-size: 22px;
    }

    .hfi-popup-body {
        padding: 22px 20px 28px;
    }

    .hfi-popup-heading {
        font-size: 17px;
    }

    .hfi-popup-subheading {
        font-size: 15px;
    }
}