.pdfdownload.agdg-download-card {
    display: flex;
    align-items: stretch;
    gap: 1rem;
    max-width: 760px;
    margin-bottom: 1rem;
}

.pdfdownload.agdg-download-card > a:first-child {
    flex: 0 0 180px;
    display: block;
    border: 1px solid #e5e5e5;
    background: #f7f7f7;
    text-decoration: none;
    overflow: hidden;
}

.pdfdownload.agdg-download-card img {
    display: block;
    width: 100%;
    height: auto;
}

.agdg-preview-placeholder {
    min-height: 230px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: #777;
    font-weight: 700;
    letter-spacing: .08em;
}

.pdfdownload.agdg-download-card .downloadblock {
    flex: 1;
    display: flex;
    align-items: center;
    gap: .85rem;
    min-width: 0;
}

.pdfdownload.agdg-download-card .icon-dot {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #111;
    color: #fff;
    line-height: 1;
}

.agdg-download-icon {
    font-size: 1.5rem;
    transform: translateY(-1px);
}

.pdfdownload.agdg-download-card p {
    margin: 0;
}

.pdfdownload.agdg-download-card .subline {
    margin-top: .2rem;
    font-size: .92rem;
    color: #666;
    text-transform: uppercase;
}

.pdfdownload.agdg-download-card a {
    color: inherit;
}

.agdg-modal-open {
    overflow: hidden;
}

.agdg-modal[hidden] {
    display: none;
}

.agdg-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.agdg-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .58);
}

.agdg-modal__panel {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
    max-height: calc(100vh - 2rem);
    overflow: auto;
    border-radius: 14px;
    background: #fff;
    padding: clamp(1.25rem, 4vw, 2rem);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .25);
}

.agdg-modal__close {
    position: absolute;
    top: .85rem;
    right: .85rem;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #f1f1f1;
    color: #222;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.agdg-modal h2 {
    margin: 0 2.5rem .35rem 0;
}

.agdg-modal__intro {
    margin-top: 0;
    color: #555;
}

.agdg-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.agdg-grid--phone {
    grid-template-columns: minmax(170px, .65fr) minmax(0, 1.35fr);
}

.agdg-field {
    margin-bottom: 1rem;
}

.agdg-field label {
    display: block;
    margin-bottom: .35rem;
    font-weight: 600;
}

.agdg-field input[type="text"],
.agdg-field input[type="email"],
.agdg-field input[type="tel"],
.agdg-field select {
    width: 100%;
    min-height: 44px;
    border: 1px solid #cfcfcf;
    border-radius: 8px;
    padding: .6rem .75rem;
    font: inherit;
    background: #fff;
}

.agdg-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    font-weight: 400;
}

.agdg-checkbox input {
    margin-top: .25rem;
}

.agdg-message {
    min-height: 1.4em;
    margin: .5rem 0 1rem;
    font-weight: 600;
}

.agdg-message--error {
    color: #b00020;
}

.agdg-message--success {
    color: #147a3c;
}

.agdg-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 0;
    border-radius: 999px;
    padding: .75rem 1.3rem;
    background: #111;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.agdg-submit:disabled {
    cursor: wait;
    opacity: .7;
}

.agdg-error {
    padding: .75rem 1rem;
    border: 1px solid #b00020;
    background: #fff0f2;
    color: #b00020;
}

@media (max-width: 640px) {
    .pdfdownload.agdg-download-card {
        display: block;
    }

    .pdfdownload.agdg-download-card > a:first-child {
        max-width: 240px;
        margin-bottom: 1rem;
    }

    .agdg-grid,
    .agdg-grid--phone {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
