/* ==========================================================================
   AI2GO – gedeelde interesse-modal (per productpagina)
   Namespaced met .ig- zodat het niets op de bestaande pagina's raakt.
   Kleuren hardgecodeerd (huisstijl) zodat de modal er overal gelijk uitziet,
   onafhankelijk van de tokens van de pagina.
   ========================================================================== */

/* Knoppen die de modal openen: alleen font + cursor overnemen, verder NIETS
   forceren zodat de bestaande knopstijlen (.btn-primary/.btn-ghost/.cta) intact
   blijven. */
.ig-open { font-family: inherit; font-size: inherit; cursor: pointer; }
button.ig-open { -webkit-appearance: none; appearance: none; }
/* Een <button> met .btn-ghost heeft geen eigen achtergrond, waardoor de grijze
   UA-knopkleur zichtbaar wordt. Forceer transparant zodat de ghost-stijl klopt,
   net als bij de oorspronkelijke <a class="btn-ghost">. */
button.ig-open.btn-ghost { background: transparent; }

.ig-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: none; align-items: center; justify-content: center;
  background: rgba(20, 36, 48, .55);
  padding: 1.2rem;
}
.ig-overlay.open { display: flex; }

.ig-box {
  position: relative;
  background: #ffffff;
  width: 100%; max-width: 460px;
  max-height: 92vh; overflow-y: auto;
  border-radius: 18px;
  padding: 2rem 1.8rem 1.9rem;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .35);
  font-family: 'Outfit', sans-serif;
  color: #2c3e50;
}

.ig-close {
  position: absolute; top: .7rem; right: .9rem;
  background: none; border: none;
  font-size: 1.8rem; line-height: 1;
  color: #9aa8b4; cursor: pointer;
  transition: color .2s ease;
}
.ig-close:hover { color: #2c3e50; }

.ig-header { text-align: center; margin-bottom: 1.4rem; }
.ig-header h2 {
  font-family: 'Space Grotesk', sans-serif;
  color: #1e5a7d; font-size: 1.35rem; margin: 0 0 .35rem;
}
.ig-header p { color: #6b7a8c; font-size: .95rem; margin: 0; }

.ig-group { margin-bottom: 1rem; }
.ig-label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .35rem; color: #2c3e50; }
.ig-req { color: #d4574e; }

.ig-input {
  width: 100%; box-sizing: border-box;
  padding: .7rem .85rem;
  border: 1.5px solid #dbe4ec; border-radius: 10px;
  font-family: 'Outfit', sans-serif; font-size: 1rem; color: #2c3e50;
  background: #fff; transition: border-color .2s ease, box-shadow .2s ease;
}
.ig-input:focus {
  outline: none; border-color: #4fb06d;
  box-shadow: 0 0 0 3px rgba(79, 176, 109, .18);
}
select.ig-input { appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7a8c' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .85rem center; padding-right: 2.2rem; }
.ig-hint { display: block; font-size: .82rem; color: #90a0ad; margin-top: .3rem; }

.ig-error { color: #c0392b; font-size: .9rem; margin: .2rem 0 .8rem; min-height: 1em; }

.ig-submit {
  width: 100%; border: none; cursor: pointer;
  background: linear-gradient(135deg, #1e5a7d, #4fb06d);
  color: #fff; font-weight: 700; font-size: 1rem;
  font-family: 'Outfit', sans-serif;
  padding: .85rem 1rem; border-radius: 999px;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.ig-submit:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(30, 90, 125, .28); }
.ig-submit:disabled { opacity: .6; cursor: default; transform: none; box-shadow: none; }

/* Bedankscherm */
.ig-thanks { display: none; text-align: center; padding: .6rem .2rem; }
.ig-thanks-icon {
  width: 64px; height: 64px; margin: 0 auto 1rem;
  border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, #1e5a7d, #4fb06d); color: #fff;
  font-size: 2rem; line-height: 1;
}
.ig-thanks h2 { font-family: 'Space Grotesk', sans-serif; color: #1e5a7d; font-size: 1.4rem; margin: 0 0 .6rem; }
.ig-thanks p { color: #6b7a8c; font-size: 1rem; line-height: 1.6; margin: 0 0 1.2rem; }
.ig-close-thanks {
  border: none; cursor: pointer;
  background: #eef4f8; color: #1e5a7d; font-weight: 600;
  font-family: 'Outfit', sans-serif; font-size: .95rem;
  padding: .6rem 1.4rem; border-radius: 999px;
  transition: background .2s ease;
}
.ig-close-thanks:hover { background: #dfebf2; }
