/* IA Group Newsletter — front-end form (mobile-first) */

.iag-nl {
    --iag-nl-accent: #111;
    --iag-nl-accent-text: #fff;
    --iag-nl-radius: 12px;
    box-sizing: border-box;
    width: 100%;
    margin: 0 auto;
}

.iag-nl *,
.iag-nl *::before,
.iag-nl *::after {
    box-sizing: border-box;
}

.iag-nl__overlay {
    width: 100%;
}

.iag-nl__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: 32px;
    background: #fff;
    color: #1a1a1a; /* expliciet: voorkomt onzichtbare (geërfde) tekstkleur in donkere hero-context */
    border-radius: var(--iag-nl-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
}

.iag-nl__intro {
    text-align: left;
}

.iag-nl__title {
    margin: 0 0 6px;
    font-family: Georgia, 'Times New Roman', 'Playfair Display', serif;
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1.15;
    color: #111;
}

.iag-nl__subtitle {
    margin: 0;
    color: #555;
    font-size: 0.95rem;
}

.iag-nl__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.iag-nl__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.iag-nl__label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
}

.iag-nl__form input[type="text"],
.iag-nl__form input[type="email"],
.iag-nl__form input[type="tel"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    font-size: 16px; /* 16px voorkomt zoom op iOS */
    line-height: 1.3;
    background: #fff;
    color: #111;
}

.iag-nl__form input:focus {
    outline: none;
    border-color: var(--iag-nl-accent);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.iag-nl__consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    line-height: 1.4;
    color: #444;
    cursor: pointer;
}

.iag-nl__consent input {
    margin-top: 3px;
    flex: 0 0 auto;
}

.iag-nl__submit {
    appearance: none;
    border: 0;
    width: 100%;
    padding: 14px 18px;
    border-radius: 999px;
    background: var(--iag-nl-accent);
    color: var(--iag-nl-accent-text);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform 0.08s ease, opacity 0.15s ease;
}

.iag-nl__submit:hover {
    opacity: 0.92;
}

.iag-nl__submit:active {
    transform: translateY(1px);
}

.iag-nl__submit:disabled {
    opacity: 0.6;
    cursor: progress;
}

.iag-nl__message {
    margin: 0;
    min-height: 1.2em;
    font-size: 0.9rem;
}

.iag-nl__message--error {
    color: #b00020;
}

.iag-nl__message--success {
    color: #0a7d34;
    font-weight: 600;
}

/* Honeypot — onzichtbaar maar bereikbaar voor bots */
.iag-nl__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.iag-nl-notice {
    padding: 12px 16px;
    border: 1px dashed #c98a00;
    border-radius: 8px;
    background: #fff8e6;
    color: #7a5600;
    font-size: 0.9rem;
}

/* Twee kolommen vanaf tablet */
@media (min-width: 560px) {
    .iag-nl__row {
        grid-template-columns: 1fr 1fr;
    }
    .iag-nl__title {
        font-size: 1.75rem;
    }
}

/* Hero-variant: achtergrondfoto met formulier eroverheen */
.iag-nl--hero {
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: var(--iag-nl-radius);
    overflow: hidden;
}

.iag-nl--hero .iag-nl__overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 420px;
    padding: 40px 16px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.55));
}

.iag-nl--hero .iag-nl__form {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(2px);
}

/* Compacte variant — voor (donkere) footers: alleen naam + e-mail, transparant */
.iag-nl--compact .iag-nl__form {
    background: transparent;
    color: #fff;
    box-shadow: none;
    padding: 0;
    max-width: 100%;
    gap: 12px;
}

.iag-nl--compact .iag-nl__title {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 2px;
}

.iag-nl--compact .iag-nl__label {
    color: rgba(255, 255, 255, 0.75);
}

.iag-nl--compact .iag-nl__form input[type="text"],
.iag-nl--compact .iag-nl__form input[type="email"] {
    background: #1e1e1e;
    border-color: #3a3a3a;
    color: #fff;
}

.iag-nl--compact .iag-nl__form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.iag-nl--compact .iag-nl__consent {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.78rem;
}

.iag-nl--compact .iag-nl__submit {
    background: #fff;
    color: #111;
}

.iag-nl--compact .iag-nl__message--success {
    color: #6ee7a0;
}

.iag-nl--compact .iag-nl__message--error {
    color: #ff9a9a;
}
