/* =========================================================
   Investor-style book detail page
   Prefix: ivd-
   Width: 1000px desktop
   Accent: blue
========================================================= */

body {
  overflow-x: hidden;
}

.ivd-main {
  width: 100%;
  overflow-x: hidden;
  background: #ffffff;
  color: #203047;
  font-family: Arial, Helvetica, sans-serif;
}

.ivd-main *,
.ivd-main *::before,
.ivd-main *::after {
  box-sizing: border-box;
}

.ivd-wrap {
  width: min(1000px, calc(100% - 32px));
  margin: 0 auto;
}

/* Product top */

.ivd-product {
  padding: 34px 0 42px;
  background: #ffffff;
}

.ivd-product__header {
  text-align: center;
  margin-bottom: 56px;
}

.ivd-product__header h1 {
  margin: 0;
  color: #111827;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 52px;
  line-height: 1.12;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.ivd-product__header p {
  margin: 28px 0 0;
  color: #7b8493;
  font-size: 22px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.ivd-product__hero {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.ivd-product__image {
  display: flex;
  justify-content: center;
}

.ivd-product__image img {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
}

.ivd-product__intro {
  min-width: 0;
}

.ivd-product__intro p {
  margin: 0;
  color: #111827;
  font-size: 25px;
  line-height: 1.55;
  letter-spacing: 0.075em;
}

.ivd-product__intro p + p {
  margin-top: 18px;
}

/* Price box */

.ivd-price-box {
  margin-top: 32px;
  padding: 26px 28px 22px;
  background:
    radial-gradient(circle at 92% 12%, rgba(37, 99, 235, 0.12), transparent 30%),
    #f1f5fb;
  border-top-right-radius: 46px;
  border-bottom-left-radius: 46px;
}

.ivd-price-box__checks {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

.ivd-price-box__checks span {
  position: relative;
  display: block;
  padding-left: 30px;
  color: #111827;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: 0.08em;
}

.ivd-price-box__checks span::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #007d19;
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
}

.ivd-price-box__bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 28px;
  align-items: center;
}

.ivd-price {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: start;
  align-items: baseline;
  gap: 12px;
}

.ivd-price strong {
  color: #020617;
  font-size: 38px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.ivd-price span {
  color: #12820e;
  font-size: 18px;
  letter-spacing: 0.18em;
}

.ivd-price small {
  grid-column: 1 / -1;
  margin-top: 8px;
  color: #546947;
  font-size: 16px;
  letter-spacing: 0.16em;
}

.ivd-price-box__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 22px;
  border: 2px solid #0f172a;
  border-radius: 10px;
  background: #ffffff;
  color: #020617;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 17px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.16em;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ivd-price-box__button:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.ivd-price-box__note {
  margin: 20px 0 0 !important;
  color: #64748b !important;
  font-size: 12px !important;
  line-height: 1.55 !important;
  letter-spacing: 0.04em !important;
}

/* Article */

.ivd-article {
  width: 100%;
  margin-top: 56px;
  color: #203047;
}

.ivd-article h2 {
  margin: 42px 0 16px;
  color: #111827;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  line-height: 1.42;
  font-weight: 400;
  text-align: center;
  letter-spacing: 0.025em;
}

.ivd-article h2:first-child {
  margin-top: 0;
}

.ivd-article p {
  margin: 0;
  color: #203047;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.04em;
}

.ivd-article p + p {
  margin-top: 16px;
}

.ivd-article ul {
  margin: 18px 0 0;
  padding-left: 22px;
  color: #203047;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.035em;
}

.ivd-article li + li {
  margin-top: 6px;
}

.ivd-article strong {
  color: #111827;
}

.ivd-author {
  margin-top: 54px;
  padding: 42px;
  background:
    radial-gradient(circle at 90% 70%, rgba(37, 99, 235, 0.08), transparent 30%),
    #e5efff;
}

.ivd-author h2 {
  margin-top: 0;
}

.ivd-author__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 34px;
  align-items: center;
}

.ivd-author h3 {
  margin: 0 0 14px;
  color: #111827;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.ivd-author p {
  font-size: 15px;
  line-height: 1.85;
}

.ivd-author img {
  width: 164px;
  height: 164px;
  border-radius: 50%;
  object-fit: cover;
}

/* Request area */

.ivd-request {
  padding: 42px 0 88px;
  background: #ffffff;
}

.ivd-request__panel {
  width: 100%;
  padding: 64px 0 64px;
  background:
    radial-gradient(circle at 95% 6%, rgba(37, 99, 235, 0.11), transparent 28%),
    #f1f5fb;
  border-top-right-radius: 58px;
  border-bottom-left-radius: 58px;
}

.ivd-request__panel > h2 {
  margin: 0 0 68px;
  color: #111827;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 400;
  text-align: center;
  letter-spacing: 0.08em;
}

.ivd-request__notes,
.ivd-form,
.ivd-security,
.ivd-divider {
  width: min(700px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}

.ivd-request__notes ul,
.ivd-security ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ivd-request__notes li,
.ivd-security li {
  position: relative;
  padding-left: 54px;
  color: #203047;
  font-size: 18px;
  line-height: 1.62;
}

.ivd-request__notes li + li,
.ivd-security li + li {
  margin-top: 18px;
}

.ivd-request__notes li::before,
.ivd-security li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 7px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #2563eb;
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
}

.ivd-divider {
  margin-top: 58px;
  margin-bottom: 36px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  color: #203047;
  font-size: 21px;
}

.ivd-divider::before,
.ivd-divider::after {
  content: "";
  height: 1px;
  background: #c5d2e4;
}

/* Form */

.ivd-form {
  display: grid;
  gap: 22px;
}

.ivd-form__row {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.ivd-form__row--full {
  align-items: start;
}

.ivd-form__row label {
  color: #203047;
  font-size: 18px;
  line-height: 1.3;
  text-align: right;
}

.ivd-form__row input,
.ivd-form__row select,
.ivd-form__row textarea {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  border: 1px solid #c3cfdd;
  border-radius: 0;
  background: #ffffff;
  color: #203047;
  padding: 0 15px;
  font: inherit;
  font-size: 19px;
  outline: none;
}

.ivd-form__row textarea {
  min-height: 96px;
  padding-top: 12px;
  resize: vertical;
}

.ivd-form__row input:focus,
.ivd-form__row select:focus,
.ivd-form__row textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.ivd-radio-group {
  display: flex;
  align-items: center;
  gap: 20px;
}

.ivd-radio-group label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #203047;
  font-size: 18px;
  text-align: left;
}

.ivd-radio-group input {
  width: 22px;
  height: 22px;
  min-height: auto;
  padding: 0;
}

.ivd-form__legal {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #c5d2e4;
  display: grid;
  gap: 24px;
}

.ivd-form__legal label {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 16px;
  color: #203047;
  font-size: 16px;
  line-height: 1.65;
}

.ivd-form__legal input {
  width: 16px;
  height: 16px;
  margin-top: 7px;
}

.ivd-form__legal a {
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ivd-form__error {
  padding: 12px 14px;
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
  font-size: 14px;
  line-height: 1.5;
}

.ivd-form__submit {
  margin-top: 34px;
  display: grid;
  justify-items: center;
  gap: 28px;
}

.ivd-form__submit button {
  min-width: 440px;
  min-height: 60px;
  border: 0;
  background: #2563eb;
  color: #ffffff;
  cursor: pointer;
  padding: 0 30px;
  font-size: 19px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: background 0.2s ease;
}

.ivd-form__submit button:hover {
  background: #1d4ed8;
}

.ivd-form__submit button:disabled {
  opacity: 0.72;
  cursor: wait;
}

.ivd-form__submit p {
  margin: 0;
  color: #777;
  font-size: 16px;
}

.ivd-security {
  margin-top: 58px;
}

/* Modal from existing JS */

.ivd-modal-open {
  overflow: hidden;
}

.ivd-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.58);
}

.ivd-modal.is-visible {
  display: flex;
}

.ivd-modal__box {
  width: min(460px, 100%);
  padding: 34px;
  background: #ffffff;
  text-align: center;
}

.ivd-modal__loader {
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 5px solid #dbeafe;
  border-top-color: #2563eb;
  animation: ivdSpin 1s linear infinite;
}

.ivd-modal__icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #2563eb;
  color: #ffffff;
  font-size: 30px;
  font-weight: 700;
}

.ivd-modal__loader[hidden],
.ivd-modal__icon[hidden],
.ivd-modal__close[hidden] {
  display: none;
}

.ivd-modal h2 {
  margin: 0;
  color: #111827;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 400;
}

.ivd-modal p {
  margin: 14px 0 0;
  color: #203047;
  font-size: 16px;
  line-height: 1.65;
}

.ivd-modal__close {
  margin-top: 24px;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  background: #2563eb;
  color: #ffffff;
  cursor: pointer;
  font-size: 15px;
}

.ivd-modal__close:hover {
  background: #1d4ed8;
}

@keyframes ivdSpin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive */

@media (max-width: 900px) {
  .ivd-product__hero {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 34px;
  }

  .ivd-product__header h1 {
    font-size: 44px;
  }

  .ivd-product__intro p {
    font-size: 20px;
    letter-spacing: 0.055em;
  }

  .ivd-price-box__bottom {
    grid-template-columns: 1fr;
  }

  .ivd-price-box__button {
    width: 100%;
  }

  .ivd-request__notes li,
  .ivd-security li {
    font-size: 19px;
  }

  .ivd-form__legal label {
    font-size: 18px;
  }
}

@media (max-width: 680px) {
  .ivd-wrap {
    width: min(100% - 24px, 1000px);
  }

  .ivd-product {
    padding-top: 28px;
  }

  .ivd-product__header {
    margin-bottom: 36px;
  }

  .ivd-product__header h1 {
    font-size: 34px;
    letter-spacing: 0.05em;
  }

  .ivd-product__header p {
    margin-top: 18px;
    font-size: 15px;
    letter-spacing: 0.11em;
  }

  .ivd-product__hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .ivd-product__image img {
    max-width: 260px;
  }

  .ivd-product__intro p {
    font-size: 17px;
    line-height: 1.65;
    letter-spacing: 0.035em;
  }

  .ivd-price-box {
    padding: 22px 20px;
    border-top-right-radius: 34px;
    border-bottom-left-radius: 34px;
  }

  .ivd-price-box__checks span {
    font-size: 15px;
    letter-spacing: 0.045em;
  }

  .ivd-price strong {
    font-size: 32px;
  }

  .ivd-price span,
  .ivd-price small {
    font-size: 14px;
  }

  .ivd-price-box__button {
    font-size: 14px;
    letter-spacing: 0.11em;
  }

  .ivd-article {
    margin-top: 42px;
  }

  .ivd-article h2 {
    font-size: 21px;
  }

  .ivd-article p,
  .ivd-article ul {
    font-size: 14px;
    line-height: 1.8;
    letter-spacing: 0.02em;
  }

  .ivd-author {
    padding: 26px;
  }

  .ivd-author__inner {
    grid-template-columns: 1fr;
  }

  .ivd-request__panel {
    padding: 44px 0;
    border-top-right-radius: 38px;
    border-bottom-left-radius: 38px;
  }

  .ivd-request__panel > h2 {
    margin-bottom: 42px;
    font-size: 34px;
  }

  .ivd-request__notes,
  .ivd-form,
  .ivd-security,
  .ivd-divider {
    width: min(100% - 28px, 700px);
  }

  .ivd-request__notes li,
  .ivd-security li {
    padding-left: 38px;
    font-size: 16px;
    line-height: 1.55;
  }

  .ivd-request__notes li::before,
  .ivd-security li::before {
    top: 4px;
  }

  .ivd-form__row {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .ivd-form__row label {
    text-align: left;
    font-size: 15px;
  }

  .ivd-form__row input,
  .ivd-form__row select,
  .ivd-form__row textarea {
    font-size: 16px;
  }

  .ivd-form__legal label {
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 12px;
    font-size: 15px;
    line-height: 1.6;
  }

  .ivd-form__submit button {
    width: 100%;
    min-width: 0;
    font-size: 15px;
  }

  .ivd-divider {
    font-size: 18px;
  }
}