/* ============================================
   FONTS
   ============================================ */
@font-face {
  font-family: 'Futura PT';
  src: url('../fonts/FuturaPTLight.otf') format('opentype');
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: 'Futura PT';
  src: url('../fonts/FuturaPTMedium.otf') format('opentype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Futura PT';
  src: url('../fonts/FuturaPTDemi.otf') format('opentype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Futura PT';
  src: url('../fonts/FuturaPTBold.otf') format('opentype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Argentum Sans';
  src: url('../fonts/ArgentumSans-Bold.otf') format('opentype');
  font-weight: 700;
  font-display: swap;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Futura PT', 'Open Sans', Arial, Helvetica, sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   TITLE BAR
   ============================================ */
.title-bar {
  background: linear-gradient(180deg, #1e4263 0%, #1a3a5c 100%);
  border-bottom: 4px solid #c9a227;
  padding: 34px 5%;
}

.title-bar h1 {
  color: #fff;
  text-align: center;
  font-size: 52px;
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.title-bar h1 .u {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 3px;
  text-decoration-color: #c9a227;
}

/* ============================================
   SUBTITLE BAR
   ============================================ */
.subtitle-bar {
  padding: 36px 5% 32px;
  background: #fff;
}

.subtitle {
  text-align: center;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.6;
  color: #1a3a5c;
}

.subtitle strong {
  font-weight: 700;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  background: #fff;
  padding: 0 140px 40px 290px;
  overflow: hidden;
  margin-bottom: 20px;
}

.book-img {
  float: left;
  width: 520px;
  height: auto;
  margin: 0 36px 20px 0;
  border-radius: 4px;
  transition: transform 0.3s ease;
}

.book-img:hover {
  transform: scale(1.02);
}

.discover {
  font-size: 32px;
  margin-bottom: 28px;
  color: #1a3a5c;
  font-weight: 600;
}

/* Bullet list */
.bullets {
  list-style: none;
  margin-bottom: 28px;
}

.bullets li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 28px;
  font-size: 28px;
  line-height: 1.45;
  color: #333;
}

.bullets li:last-child {
  margin-bottom: 0;
}

.chk {
  flex-shrink: 0;
  color: #c9a227;
  font-size: 30px;
  line-height: 1.35;
  margin-top: 2px;
}

.chk::before {
  content: '\2714';
}

/* ============================================
   GREEN CTA BUTTON
   ============================================ */
.cta-green {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(180deg, #5ec431 0%, #4aad1d 50%, #3d9915 100%);
  border: none;
  border-radius: 12px;
  padding: 18px 44px 16px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(62, 153, 21, 0.35);
  transition: all 0.2s ease;
  text-align: center;
  margin-top: 28px;
}

.cta-green:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(62, 153, 21, 0.45);
}

.cta-green:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(62, 153, 21, 0.3);
}

.cta-top {
  font-size: 34px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.cta-arrows {
  font-size: 36px;
  font-weight: 700;
  margin-left: 8px;
}

.cta-bottom {
  font-size: 22px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.92);
  margin-top: 4px;
  font-weight: 400;
}

/* ============================================
   AUTHOR SECTION
   ============================================ */
.author-section {
  background: #fff;
  padding: 0 255px;
  overflow: hidden;
  margin-bottom: 30px;
}

.author-section .author-wrap {
  overflow: hidden;
}

.author-photo {
  float: left;
  width: 320px;
  height: auto;
  border-radius: 8px;
  margin: 0 32px 20px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.author-heading {
  font-size: 50px;
  font-weight: 700;
  color: #1a3a5c;
  margin-bottom: 20px;
  line-height: 1.2;
}

.author-section p {
  font-size: 28px;
  line-height: 1.75;
  margin-bottom: 20px;
  color: #444;
}

.author-section p:last-child {
  margin-bottom: 0;
}

.author-section em {
  font-style: italic;
}

/* ============================================
   BOTTOM CTA BAR
   ============================================ */
.bottom-cta {
  background: #fff;
  padding: 20px 5% 60px;
  text-align: center;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #1a3a5c;
  padding: 18px 5%;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  letter-spacing: 0.3px;
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: #fff;
  text-decoration: underline;
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 1000;
  justify-content: center;
  align-items: flex-start;
  padding: 30px 16px;
  overflow-y: auto;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 560px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  animation: modalIn 0.3s ease-out;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(-24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: -14px;
  right: -14px;
  background: #e53935;
  border: 3px solid #fff;
  color: #fff;
  font-size: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.15s ease;
}

.modal-close:hover {
  background: #c62828;
  transform: scale(1.1);
}

.modal-header {
  background: #fff;
  padding: 28px 32px 20px;
  border-radius: 16px 16px 0 0;
  border-bottom: 2px solid #f0f0f0;
}

.modal-header p {
  color: #1a3a5c;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
}

/* ============================================
   FORM
   ============================================ */
#leadForm {
  padding: 24px 32px 32px;
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-group {
  flex: 1;
  margin-bottom: 12px;
}

.form-group input,
.form-group select,
.form-group textarea {
  border: 2px solid #e8e8e8;
  border-radius: 10px;
  padding: 13px 18px;
  font-size: 15px;
  font-family: 'Futura PT', 'Open Sans', Arial, sans-serif;
  color: #333;
  transition: all 0.2s ease;
  width: 100%;
  background: #fafafa;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #aaa;
  font-weight: 400;
}

.form-group select {
  color: #aaa;
  appearance: auto;
}

/* Required selects show real text color once a non-empty value is chosen */
.form-group select:valid {
  color: #333;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1a3a5c;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26, 58, 92, 0.08);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error,
.phone-input.error {
  border-color: #e53935;
  background: #fff5f5;
}

.form-error {
  color: #e53935;
  font-size: 12px;
  margin-top: 4px;
  padding-left: 4px;
  display: none;
  font-weight: 500;
}

.form-error.visible {
  display: block;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
  border-radius: 10px;
}

/* Phone input */
.phone-input {
  display: flex;
  align-items: center;
  border: 2px solid #e8e8e8;
  border-radius: 10px;
  background: #fafafa;
  transition: all 0.2s ease;
}

.phone-input:focus-within {
  border-color: #1a3a5c;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26, 58, 92, 0.08);
}

.phone-input .phone-cc {
  width: 90px;
  min-width: 90px;
  flex: 0 0 90px;
  border: none;
  border-right: 2px solid #e8e8e8;
  border-radius: 0;
  padding: 13px 8px 13px 14px;
  font-size: 15px;
  background: transparent;
  box-shadow: none;
  outline: none;
  color: #555;
}

.phone-input input[type="tel"] {
  flex: 1 1 auto;
  width: 0;
  min-width: 0;
  border: none;
  border-radius: 0;
  padding: 13px 18px;
  box-shadow: none;
  background: transparent;
  font-size: 15px;
  font-family: inherit;
  color: #333;
  outline: none;
}

.phone-input input[type="tel"]::placeholder {
  color: #aaa;
}

.phone-input input[type="tel"]:focus {
  box-shadow: none;
  border: none;
}

/* Form note & submit */
.form-note {
  font-size: 15px;
  color: #1a3a5c;
  font-weight: 600;
  text-align: center;
  margin: 20px 0;
  line-height: 1.5;
}

.submit-btn {
  width: 100%;
  background: linear-gradient(180deg, #5ec431 0%, #4aad1d 50%, #3d9915 100%);
  border: none;
  border-radius: 12px;
  padding: 18px 24px;
  cursor: pointer;
  color: #fff;
  font-size: 15px;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 4px 16px rgba(62, 153, 21, 0.35);
  transition: all 0.2s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(62, 153, 21, 0.45);
}

.submit-btn:active {
  transform: translateY(0);
}

.submit-btn strong {
  font-size: 18px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.submit-btn span {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.9;
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ============================================
   RESPONSIVE -- TABLET
   ============================================ */
@media (max-width: 1200px) {
  .hero-section {
    padding: 0 8% 0 12%;
  }

  .author-section {
    padding: 0 10%;
  }

  .book-img {
    width: 400px;
  }
}

@media (max-width: 900px) {
  .title-bar h1 {
    font-size: 32px;
  }

  .subtitle {
    font-size: 20px;
  }

  .hero-section {
    padding: 0 5%;
    margin-bottom: 40px;
  }

  .book-img {
    width: 300px;
    margin-right: 24px;
  }

  .discover {
    font-size: 22px;
  }

  .bullets li {
    font-size: 18px;
    margin-bottom: 18px;
  }

  .chk {
    font-size: 22px;
  }

  .cta-green {
    padding: 14px 28px 12px;
  }

  .cta-top {
    font-size: 22px;
  }

  .cta-bottom {
    font-size: 15px;
  }

  .author-section {
    padding: 0 5%;
    margin-bottom: 20px;
  }

  .author-photo {
    width: 200px;
  }

  .author-heading {
    font-size: 34px;
  }

  .author-section p {
    font-size: 18px;
  }
}

/* ============================================
   RESPONSIVE -- MOBILE
   ============================================ */
@media (max-width: 640px) {
  .title-bar {
    padding: 20px 4%;
  }

  .title-bar h1 {
    font-size: 22px;
  }

  .subtitle-bar {
    padding: 20px 4% 16px;
  }

  .subtitle {
    font-size: 16px;
  }

  .hero-section {
    padding: 0 4%;
    margin-bottom: 30px;
  }

  .book-img {
    float: none;
    display: block;
    margin: 0 auto 20px;
    width: 70%;
    max-width: 280px;
  }

  .discover {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .bullets li {
    font-size: 15px;
    margin-bottom: 14px;
    gap: 10px;
  }

  .chk {
    font-size: 18px;
  }

  .cta-green {
    width: 100%;
    padding: 14px 16px 12px;
    border-radius: 10px;
  }

  .cta-top {
    font-size: 18px;
    white-space: normal;
  }

  .cta-arrows {
    font-size: 20px;
    margin-left: 4px;
  }

  .cta-bottom {
    font-size: 13px;
  }

  .author-section {
    padding: 0 4%;
    margin-bottom: 20px;
  }

  .author-photo {
    float: none;
    display: block;
    margin: 0 auto 16px;
    width: 160px;
  }

  .author-heading {
    text-align: center;
    font-size: 26px;
  }

  .author-section p {
    font-size: 15px;
  }

  .bottom-cta {
    padding: 16px 4%;
  }

  .footer {
    font-size: 12px;
    padding: 14px 4%;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .modal {
    max-width: 100%;
    border-radius: 12px;
  }

  #leadForm {
    padding: 20px 16px 24px;
  }

  .modal-header {
    padding: 20px 16px 14px;
    border-radius: 12px 12px 0 0;
  }
}

@media (max-width: 420px) {
  .title-bar h1 {
    font-size: 18px;
  }

  .subtitle {
    font-size: 14px;
  }

  .bullets li {
    font-size: 14px;
  }

  .cta-top {
    font-size: 16px;
  }

  .cta-bottom {
    font-size: 12px;
  }

  .author-heading {
    font-size: 22px;
  }

  .author-section p {
    font-size: 14px;
  }
}
