/*
Comment:	Separate CSS file
Date:		2025-10-24 20:30 EDT
For:			The Spirit of Thanks landing page / html
Author:		ChatGPT & Edward M. Dunlap, Jr.
Cautions:	ChatGPT CAN BE WRONG
*/

/* ==========================================================
   SECTION: HEADER + NAVIGATION
   ========================================================== */

  :root {
    --accent: #7b3f00;
    --bg: #faf7f3;
  }

  /* Reset */
  html, body {
    margin: 0;
    padding: 0;
    font-family: Inter, system-ui, sans-serif;
    background: var(--bg);
    color: #222;
    line-height: 1.6;
    box-sizing: border-box;
  }

  /* Header */
  header {
    background: #fff;
    text-align: center;
    padding: 16px 24px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.08);
  }

  header h1 {
    margin: 0;
    font-family: "Libre Baskerville", serif;
    color: var(--accent);
  }

  /* Main content */
  main {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px;
    text-align: center;
  }

  h2 {
    margin-top: 0;
    font-family: "Libre Baskerville", serif;
    color: var(--accent);
  }

  /* Books grid */
  .books {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    justify-items: center;
    align-items: end;
    margin-top: 20px;
  }

  .books img {
    width: 75%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  }

  @media (max-width: 767px) {
    .books {
      grid-template-columns: 1fr;
      row-gap: 10px;
    }
  }

  /* Footer */
  footer {
    background: #fff;
    text-align: center;
    padding: 16px 24px;
    box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.08);
  }

  /* Form container */
  .form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  .form-container * {
    max-width: 100%;
    box-sizing: border-box;
  }

/* RESTORE GDPR BLOCK */
#mergeRow-gdpr {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}
.content__gdpr,
.content__gdprLegal,
.gdpr-mergeRow {
    display: block !important;
}

/* RESTORE CHECKBOX VISIBILITY */
.gdpr-single-option input[type="checkbox"] {
    margin-left: 0 !important;
    position: relative !important;
    left: 0 !important;
    opacity: 1 !important;
}
/* ==========================================================
   FORCE GDPR SECTION TO DISPLAY (Mailchimp override patch)
   ========================================================== */

/* Mailchimp hides GDPR row unless ALL fields exist.
   We force it visible and restore its layout. */
#mergeRow-gdpr,
#mergeRow-gdpr * {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Reset fieldset that Mailchimp collapses */
#mergeRow-gdpr fieldset.mc_fieldset {
    border: none !important;
    padding: 10px 0 !important;
    margin: 0 auto !important;
    width: 100% !important;
}

/* Restore the GDPR text blocks */
.content__gdpr,
.content__gdprLegal {
    display: block !important;
    text-align: left !important;
    margin-top: 10px !important;
}

/* ------- Checkbox restoration ------- */

/* Mailchimp tries to hide checkboxes with negative left margins.
   We undo that and center the container. */
.gdpr-single-option {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: 12px !important;
}

/* Restore checkbox itself */
.gdpr-single-option input[type="checkbox"] {
    margin: 0 !important;
    position: static !important;
    left: auto !important;
    opacity: 1 !important;
    transform: scale(1.2) !important;
}

/* Restore label alignment */
.gdpr-single-option label {
    display: inline-block !important;
    font-size: 14px !important;
    font-weight: normal !important;
    text-align: left !important;
    color: #222 !important;
}
