/* ── Brevo Download Form — Styles ── */

.bdf-wrapper {
    max-width: 520px;
    margin: 0 auto;
    font-family: inherit;
}

.bdf-title {
    margin-bottom: 1.2em;
    font-size: 1.25rem;
}

/* ── Form ── */
.bdf-form {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 32px 36px;
    box-shadow: 0 4px 24px rgba(0,0,0,.06);
}

/* ── Fields ── */
.bdf-field {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bdf-field label {
    font-size: .9rem;
    font-weight: 600;
    color: #374151;
}

.bdf-req {
    color: #ef4444;
    margin-left: 2px;
}

.bdf-field input[type="text"],
.bdf-field input[type="email"] {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: .95rem;
    color: #111827;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
    background: #f9fafb;
}

.bdf-field input[type="text"]:focus,
.bdf-field input[type="email"]:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.15);
    background: #fff;
}

.bdf-field input.bdf-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239,68,68,.12);
}

/* ── Checkbox ── */
.bdf-field--check {
    flex-direction: column;
}

.bdf-check-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: .88rem;
    font-weight: 400 !important;
    color: #4b5563;
    line-height: 1.5;
}

.bdf-check-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 1px;
    accent-color: #2563eb;
    cursor: pointer;
    border-radius: 4px;
}

.bdf-check-label a {
    color: #2563eb;
    text-decoration: underline;
}

/* ── Errors ── */
.bdf-error {
    font-size: .8rem;
    color: #ef4444;
    min-height: 1em;
    display: block;
}

/* ── Button ── */
.bdf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px 24px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .1s;
    margin-top: 8px;
    position: relative;
}

.bdf-btn:hover  { background: #1d4ed8; }
.bdf-btn:active { transform: scale(.98); }
.bdf-btn:disabled {
    background: #93c5fd;
    cursor: not-allowed;
    pointer-events: none;
}

/* Spinner */
.bdf-btn-loader {
    display: none;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: bdf-spin .7s linear infinite;
}

.bdf-btn.bdf-loading .bdf-btn-loader { display: block; }
.bdf-btn.bdf-loading .bdf-btn-text   { opacity: .7;    }

@keyframes bdf-spin {
    to { transform: rotate(360deg); }
}

/* ── Success Panel ── */
.bdf-success {
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    border-radius: 12px;
    padding: 32px 36px;
    text-align: center;
    animation: bdf-fadein .4s ease;
}

.bdf-success__icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.bdf-success h3 {
    margin: 0 0 10px;
    color: #15803d;
    font-size: 1.2rem;
}

.bdf-success p {
    margin: 0;
    color: #166534;
    font-size: .95rem;
    line-height: 1.6;
}

@keyframes bdf-fadein {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0);   }
}

/* ── Responsive ── */
@media (max-width: 520px) {
    .bdf-form,
    .bdf-success {
        padding: 24px 20px;
    }
}
