/* ─── Modal overlay ──────────────────────────────────────────── */
#modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10,10,10,.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}
#modal-overlay.open { display: flex; }

/* ─── Modal box ──────────────────────────────────────────────── */
#modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
  animation: modal-in .22s cubic-bezier(.25,.46,.45,.94) both;
  position: relative;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

.modal-header {
  padding: 1.75rem 1.75rem 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0a0a0a;
  line-height: 1.2;
  flex: 1;
}
.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f2f2f2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: .75rem;
  cursor: pointer;
  border: none;
  color: #666;
  font-size: 1.1rem;
  line-height: 1;
  transition: background .15s;
}
.modal-close:hover { background: #e4e4e4; }

.modal-subtitle {
  padding: .5rem 1.75rem 0;
  font-size: .9rem;
  color: #888;
}

/* ─── Form ───────────────────────────────────────────────────── */
#interest-form {
  padding: 1.5rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label {
  font-size: .85rem;
  font-weight: 600;
  color: #333;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  padding: .75rem 1rem;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-size: .95rem;
  font-family: inherit;
  color: #0a0a0a;
  transition: border-color .15s;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #e85d26;
}
.form-group textarea {
  resize: vertical;
  min-height: 72px;
}
.form-group input.error { border-color: #d93025; }
.form-error {
  font-size: .78rem;
  color: #d93025;
  display: none;
}
.form-error.visible { display: block; }

.products-count {
  margin-top: .5rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--orange, #e85d26);
  min-height: 1.2em;
}

/* ─── Products checklist ─────────────────────────────────────── */
.products-list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  max-height: 210px;
  overflow-y: auto;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  padding: .5rem;
}
.products-list label {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .5rem .6rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: .88rem;
  font-weight: 400;
  color: #333;
  transition: background .12s;
}
.products-list label:hover { background: #f5f5f5; }
.products-list input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #e85d26;
  flex-shrink: 0;
}
.products-list .product-badge {
  font-size: .7rem;
  font-weight: 700;
  padding: .15rem .5rem;
  border-radius: 10px;
  margin-left: auto;
}

/* ─── GDPR ───────────────────────────────────────────────────── */
.gdpr-wrap {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  background: #f9f9f9;
  border-radius: 8px;
  padding: .9rem;
}
.gdpr-wrap input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: .15rem;
  flex-shrink: 0;
  accent-color: #e85d26;
}
.gdpr-text {
  font-size: .8rem !important;
  color: #666 !important;
  line-height: 1.55;
}

/* ─── Submit btn ─────────────────────────────────────────────── */
.modal-submit {
  background: #e85d26;
  color: #fff;
  border-radius: 50px;
  padding: .9rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  width: 100%;
  transition: background .15s, transform .15s;
  border: none;
  cursor: pointer;
}
.modal-submit:hover  { background: #c94e1e; }
.modal-submit:active { transform: scale(.98); }
.modal-submit:disabled { opacity: .6; cursor: default; }

/* ─── Success state ──────────────────────────────────────────── */
#modal-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem;
  gap: 1rem;
}
#modal-success.visible { display: flex; }
.success-icon {
  width: 64px;
  height: 64px;
  background: #e8f4ea;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}
#modal-success h3 { font-size: 1.4rem; }
#modal-success p  { color: #888; font-size: .95rem; }
