.codam-download-wrapper {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.codam-download-wrapper img {
    max-width: 320px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.codam-download-wrapper img:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
}

.codam-download-button {
    background: #111827;
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.2s ease;
}

.codam-download-button:hover {
    background: #0f172a;
    transform: translateY(-2px);
}

.codam-download-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 9999;
}

.codam-download-modal.is-active {
    opacity: 1;
    pointer-events: auto;
}

.codam-download-modal__dialog {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    max-width: 420px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.codam-download-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
}

.codam-download-modal__title {
    margin: 0 0 4px;
    font-size: 22px;
    color: #0f172a;
    line-height: 20px;
}

.codam-download-modal__subtitle {
    margin: 0 0 16px;
    color: #4b5563;
    font-size: 14px;
}

.codam-download-form__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
    text-align: left;
    color: #111827;
    font-weight: 600;
}

.codam-download-form__field input[type="email"] {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    font-size: 15px;
    width: 100%;
}

.codam-download-form__submit {
    width: 100%;
    padding: 12px 14px;
    border: none;
    border-radius: 8px;
    background: #B73188;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.codam-download-form__submit:hover {
    background: #9e2473;
    transform: translateY(-1px);
}

.codam-download-form__submit.is-loading {
    opacity: 0.7;
    cursor: wait;
}

.codam-download-form__message {
    margin-top: 10px;
    font-size: 14px;
    color: #b91c1c;
}

.codam-download-form__message.is-success {
    color: #15803d;
}

.codam-download--lock {
    overflow: hidden;
}
