.ebd-grid-wrap {
  --ebd-bg: #f8fafc;
  --ebd-card: #ffffff;
  --ebd-border: #e2e8f0;
  --ebd-text: #0f172a;
  --ebd-muted: #475569;
  --ebd-accent: #196ee8;
  --ebd-accent-2: #0f62dc;
  max-width: 1200px;
  margin: 32px auto;
  padding: 8px;
  background: var(--ebd-bg);
}

.ebd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 22px;
}

.ebd-card {
  background: var(--ebd-card);
  border: 1px solid var(--ebd-border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  color: var(--ebd-text);
}

.ebd-card-media img,
.ebd-placeholder {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
}

.ebd-card-body {
  padding: 18px;
}

.ebd-card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem !important;
  color: var(--ebd-text);
}

.ebd-card p {
  margin: 0 0 14px;
  color: var(--ebd-muted);
  line-height: 1.6;
}

.ebd-btn {
  appearance: none;
  border: 1px solid #222;
  border-radius: 8px;
	font-size: 18px;
  font-weight: inherit;
	font-family: 'Figtree';
  letter-spacing: 0.2px;
  cursor: pointer;
  padding: 15px 20px;
  width: 100%;
  color: #fff;
  background: #222;
  transition: transform .18s ease,  opacity .18s ease;
}

.ebd-btn:hover {
	  color: #222 !important;
background: transparent ;
  transform: translateY(-1px);
/*   box-shadow: 0 8px 16px rgba(25, 110, 232, 0.3); */
}

.ebd-btn-disabled,
.ebd-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.ebd-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 99999;
}

.ebd-modal.is-open {
  display: block;
}

.ebd-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}

.ebd-modal-dialog {
  width: min(95vw, 540px);
  margin: clamp(20px, 5vh, 64px) auto;
  border-radius: 10px;
  position: relative;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 88% -8%, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0) 48%),
    radial-gradient(75% 90% at 110% 100%, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 62%),
    linear-gradient(135deg, #f7ea72 0%, #efe367 42%, #e7dc57 100%);
}

.ebd-modal-close {
  position: absolute;
  right: 12px;
  top: 10px;
  border: 1px solid #2563eb !important;
  background: #ffffff !important;
  width: 30px;
  height: 30px;
  border-radius: 6px !important;
  color: #2563eb !important;
  font-size: 16px;
  line-height: 1;
  font-weight: 600;
  cursor: pointer !important;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none !important;
  text-shadow: none !important;
      display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 8px !important;
    border-radius: 99999px !important;
    color: #000 !important;
    border-color: #000 !important;
}

.ebd-modal-close:hover {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  border-color: #1d4ed8 !important;
}

.ebd-modal-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(14px, 2.4vw, 18px);
}

.ebd-modal-copy {
  color: #1f2937;
}

.ebd-kicker {
  margin: 0 0 16px;
  font-size: clamp(16px, 1.9vw, 39px);
  line-height: 1.08;
  font-weight: 500;
}

.ebd-modal-title-lines {
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ebd-modal-title-lines span {
  width: fit-content;
  max-width: 100%;
  display: inline-block;
  background: #2d2b2b;
  color: #fff;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: clamp(24px, 3.45vw, 50px);
  line-height: 1.07;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.ebd-copy-line {
  margin: 0 0 14px;
  font-size: clamp(20px, 2.35vw, 41px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 13.5ch;
  color: #1f2937;
}

.ebd-modal-form-panel {
  background: rgba(255, 255, 255, 0.83);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 10px;
  backdrop-filter: blur(2px);
  padding: 14px;
}

.ebd-modal-form-only {
  width: min(100%, 470px);
}

.ebd-modal-heading {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.1;
  color: #1f2937;
}

.ebd-modal-book-preview {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
  margin-bottom: 12px;
}

.ebd-modal-book-preview img {
  width: 100%;
  display: block;
  object-fit: cover;
  max-height: 160px;
}

#ebd-email-form {
  margin: 0;
}

.ebd-form-row {
  margin-bottom: 10px;
}

.ebd-form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ebd-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

.ebd-field input[type="text"],
.ebd-field input[type="tel"],
.ebd-field input[type="email"] {
  width: 100%;
  border: 1px solid #222;
  border-radius: 4px;
  padding: 10px 12px;
  min-height: 42px;
  background: #fff;
  color: #0f172a;
}

.ebd-field input:focus {
  outline: none;
  border-color: #222;
/*   box-shadow: 0 0 0 3px rgba(25, 110, 232, 0.16); */
}

#ebd-email-form .ebd-btn {
  margin-top: 4px;
  min-height: 44px;
  border-radius: 4px !important;
  font-size: 17px;
  line-height: 1.15;
  width: auto;
  min-width: 180px;
  padding: 12px 20px;
  border: 1px solid #222 !important;
  color: #ffffff !important;
  background: #222 !important;
  cursor: pointer !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-family: inherit !important;
}

#ebd-email-form .ebd-btn:hover,
#ebd-email-form .ebd-btn:focus {
  background: transparent !important;
	color: #222 !important;

}

.ebd-form-msg {
  margin: 10px 0 0;
  font-size: 0.92rem;
  color: #0f766e;
  min-height: 20px;
}
button.ebd-modal-close:hover {
    background: #222 !important;
    color: #fff !important;
    border-color: #fff !important;
    border-radius: 999 !i;
}

button.ebd-modal-close {
    width: 25px;
    height: 25px;
}

@media (max-width: 900px) {
  .ebd-modal-dialog {
    width: min(94vw, 520px);
  }

  .ebd-modal-inner {
    padding: 20px;
  }

  .ebd-copy-line {
    max-width: 100%;
  }

  .ebd-modal-book-preview img {
    max-height: 210px;
  }
	.ebd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

}

@media (max-width: 767px) {
  .ebd-modal-dialog {
    width: min(96vw, 500px);
    margin: 14px auto;
    border-radius: 10px;
  }

  .ebd-modal-inner {
    padding: 16px;
    gap: 12px;
  }

  .ebd-modal-title-lines span {
    border-radius: 6px;
    padding: 6px 10px;
  }

  .ebd-copy-line {
    margin-bottom: 10px;
  }

  .ebd-modal-form-panel {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
  }

  .ebd-form-row-split {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  #ebd-email-form .ebd-btn {
    font-size: 16px;
    min-height: 42px;
    min-width: 170px;
    width: auto;
  }
	.ebd-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
	.ebd-btn {
    padding: 10px 20px !important;
    font-size: 16px !important;
    font-family: 'Figtree';
}
}

