/* ===========================================
   Letter to Santa and Letter from Santa Styles
   =========================================== */

.santa-tool-page {
  --tool-cream: #FFFBF7;
  --tool-warm-gray: #F5F0EB;
  --tool-peach: #FFF5EB;
  --font-display: 'Lora', Georgia, serif;
  background: linear-gradient(160deg, #FFFCFA 0%, #FFF8F2 100%);
}

/* ===========================================
   Hero Section
   =========================================== */
.santa-tool-page .tool-hero {
  padding: 80px 24px 60px;
  text-align: center;
}

.santa-tool-page .tool-hero-inner {
  max-width: 700px;
  margin: 0 auto;
}

.santa-tool-page .tool-hero-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.santa-tool-page .tool-hero-title {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 20px;
}

.santa-tool-page .tool-hero-subtitle {
  font-size: 19px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

/* ===========================================
   Main Tool Section: form beside the preview
   =========================================== */
.santa-tool-page .tool-main {
  background: var(--tool-warm-gray);
  padding: 60px 24px 80px;
}

.santa-tool-page .tool-main-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.santa-tool-page .tool-card {
  background: white;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.santa-tool-page .tool-card-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.santa-tool-page .tool-card-description {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.santa-tool-page .santa-field-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

/* Version choice */
.santa-tool-page .santa-designs {
  border: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.santa-tool-page .santa-designs legend {
  grid-column: 1 / -1;
  padding: 0;
}

.santa-tool-page .santa-design-option {
  cursor: pointer;
}

.santa-tool-page .santa-design-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.santa-tool-page .santa-design-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  padding: 18px 12px;
  background: var(--tool-cream);
  border: 2px solid transparent;
  border-radius: 16px;
  transition: all 0.2s ease;
}

.santa-tool-page .santa-design-option input:checked + .santa-design-box {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.santa-tool-page .santa-design-option input:focus-visible + .santa-design-box {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.santa-tool-page .santa-design-icon {
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 8px;
}

.santa-tool-page .santa-design-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.santa-tool-page .santa-design-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Name and year */
.santa-tool-page .santa-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  gap: 12px;
  margin-bottom: 24px;
}

.santa-tool-page .santa-field {
  display: block;
}

.santa-tool-page .santa-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  font-size: 16px;
  color: var(--text);
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.santa-tool-page .santa-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

/* families.css gives .btn-primary width: 100% site-wide */
.santa-tool-page .btn-print {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 30px;
}

.santa-tool-page .btn-print .mdi {
  font-size: 20px;
}

.santa-tool-page .santa-print-hint {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Preview */
.santa-tool-page .santa-preview-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 12px;
  text-align: center;
}

.santa-tool-page .santa-sheet {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

/* After the letter is written */
.santa-tool-page .santa-keep {
  grid-column: 1 / -1;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: linear-gradient(135deg, var(--primary-soft) 0%, var(--tool-peach) 100%);
  border-radius: 20px;
  padding: 32px;
}

.santa-tool-page .santa-keep-icon {
  font-size: 44px;
  color: var(--primary);
  line-height: 1;
}

.santa-tool-page .santa-keep-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.santa-tool-page .santa-keep-text {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.santa-tool-page .santa-keep-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  padding: 14px 28px;
  font-size: 16px;
  border-radius: 30px;
  text-decoration: none;
}

.santa-tool-page .santa-keep-note {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--text-secondary);
}

/* Letter from Santa: one field per line, with a hint */
.santa-tool-page .santa-field--stacked {
  margin-bottom: 18px;
}

.santa-tool-page .santa-field-hint {
  display: block;
  margin: -4px 0 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.santa-tool-page .santa-inline-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.santa-tool-page .santa-inline-link:hover {
  text-decoration: underline;
}

/* Mail it to Santa */
.santa-tool-page .santa-mail {
  grid-column: 1 / -1;
  background: white;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.santa-tool-page .santa-mail-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.santa-tool-page .santa-mail-intro {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.santa-tool-page .santa-mail-programs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.santa-tool-page .santa-mail-program {
  display: flex;
  flex-direction: column;
  background: var(--tool-cream);
  border-radius: 16px;
  padding: 24px;
}

.santa-tool-page .santa-mail-program-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.santa-tool-page .santa-mail-address {
  font-style: normal;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
  background: white;
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 14px;
}

.santa-tool-page .santa-mail-notes {
  margin: 0 0 12px;
  padding-left: 18px;
  list-style: disc;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.santa-tool-page .santa-mail-about {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.santa-tool-page .santa-mail-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.santa-tool-page .santa-mail-link:hover {
  text-decoration: underline;
}

/* Link to the other Santa page */
.santa-tool-page .santa-crosslink {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 20px;
  background: white;
  border: 2px solid var(--primary-soft);
  border-radius: 20px;
  padding: 24px 28px;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.santa-tool-page .santa-crosslink:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.santa-tool-page .santa-crosslink-icon {
  font-size: 36px;
  color: var(--primary);
}

.santa-tool-page .santa-crosslink-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.santa-tool-page .santa-crosslink-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}

.santa-tool-page .santa-crosslink-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.santa-tool-page .santa-crosslink-arrow {
  font-size: 24px;
  color: var(--primary);
}

/* ===========================================
   The Letter (screen preview and print)
   Sized in container units so the preview and
   the printed page are the same design.
   =========================================== */
.santa-sheet-frame {
  container-type: inline-size;
  width: 100%;
}

.santa-sheet {
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  /* 7.1 x 9.75 inches fits US Letter and A4 inside the browser's print margins */
  aspect-ratio: 7.1 / 9.75;
  padding: 7cqw 8cqw 4cqw;
  overflow: hidden;
  background: white;
  color: #2B2B2B;
  line-height: 1.2;
  border: 0.6cqw solid #B33A3A;
  border-radius: 2cqw;
  outline: 0.3cqw solid #2E6B3F;
  outline-offset: -2.2cqw;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.santa-sheet p {
  margin: 0;
}

/* Korean breaks lines between syllables by default, splitting words */
html:lang(ko) .santa-sheet {
  word-break: keep-all;
}

.santa-corner {
  position: absolute;
  font-size: 4.5cqw;
  line-height: 1;
  color: #2E6B3F;
}

.santa-corner--top-left { top: 3cqw; left: 3cqw; }
.santa-corner--top-right { top: 3cqw; right: 3cqw; color: #C9A227; }
.santa-corner--bottom-left { bottom: 3cqw; left: 3cqw; color: #B33A3A; }
.santa-corner--bottom-right { bottom: 3cqw; right: 3cqw; }

.santa-sheet-header {
  text-align: center;
  margin-bottom: 3cqw;
}

.santa-sheet .santa-sheet-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 6.4cqw;
  font-weight: 700;
  line-height: 1.15;
  color: #B33A3A;
  overflow-wrap: anywhere;
}

.santa-sheet--long-title .santa-sheet-title {
  font-size: 5cqw;
}

.santa-sheet .santa-sheet-year {
  margin-top: 1cqw;
  min-height: 3.6cqw;
  font-size: 3cqw;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #2E6B3F;
}

.santa-sheet .santa-sheet-greeting {
  font-family: 'Lora', Georgia, serif;
  font-size: 5cqw;
  font-style: italic;
  margin-bottom: 3cqw;
}

.santa-sheet-body {
  flex: 1;
  min-height: 0;
  display: none;
  flex-direction: column;
}

.santa-sheet--little .santa-sheet-body--little,
.santa-sheet--big .santa-sheet-body--big {
  display: flex;
}

.santa-sheet .santa-row {
  display: flex;
  align-items: flex-end;
  gap: 1.5cqw;
  font-size: 3.3cqw;
  line-height: 1.2;
  margin-bottom: 3cqw;
}

.santa-line {
  flex: 1;
  min-width: 8cqw;
  height: 4cqw;
  border-bottom: 0.3cqw solid #8A8A8A;
}

.santa-line--short {
  flex: 0 0 12cqw;
}

/* Little kids: bigger writing lines and a picture box */
.santa-sheet-body--little .santa-row {
  font-size: 4cqw;
  margin-bottom: 4.6cqw;
}

.santa-sheet-body--little .santa-line {
  height: 5cqw;
}

.santa-picture {
  flex: 1;
  min-height: 20cqw;
  margin-bottom: 3cqw;
  border: 0.4cqw dashed #B33A3A;
  border-radius: 2cqw;
}

.santa-sheet .santa-picture-label {
  display: block;
  padding: 2cqw 2.5cqw;
  font-size: 3cqw;
  color: #8A8A8A;
}

/* Big kids: about me, proud, wish list, wish for others */
.santa-sheet .santa-section-title {
  font-size: 3.4cqw;
  font-weight: 700;
  color: #2E6B3F;
  margin: 0.8cqw 0 1.6cqw;
}

.santa-sheet-body--big .santa-row {
  margin-bottom: 2.6cqw;
  white-space: nowrap;
}

.santa-about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 5cqw;
}

.santa-sheet .santa-signoff {
  font-family: 'Lora', Georgia, serif;
  font-size: 4.4cqw;
  margin: 2cqw 0 2.5cqw;
}

.santa-line--signature {
  flex: 0 0 35cqw;
}

.santa-sheet .santa-sheet-footer {
  text-align: center;
  font-size: 2.4cqw;
  letter-spacing: 0.03em;
  color: #8A8A8A;
}

/* Letter from Santa: letterhead, typed paragraphs, signature and seal */
.santa-sheet .santa-letterhead-from {
  font-size: 2.8cqw;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #2E6B3F;
  margin-bottom: 0.8cqw;
}

.santa-sheet--reply .santa-sheet-header {
  margin-bottom: 4cqw;
}

.santa-reply-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.santa-sheet .santa-reply-paragraph {
  font-family: 'Lora', Georgia, serif;
  font-size: 3.5cqw;
  line-height: 1.5;
  margin-bottom: 2.4cqw;
  overflow-wrap: anywhere;
}

/* Typed answers read as part of the letter when printed; the preview
   colors them so parents can see what they filled in */
.santa-preview .santa-fill {
  color: #9C2F2F;
}

/* An empty spot prints as a line to write on by hand */
.santa-fill--blank {
  display: inline-block;
  width: 30cqw;
  height: 1em;
  vertical-align: baseline;
  border-bottom: 0.3cqw solid #8A8A8A;
}

.santa-sheet-greeting .santa-fill--blank {
  width: 24cqw;
}

.santa-reply-closing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4cqw;
  margin: 1cqw 0 2.4cqw;
}

.santa-sheet .santa-reply-signoff {
  font-family: 'Lora', Georgia, serif;
  font-size: 3.8cqw;
}

.santa-sheet .santa-reply-signature {
  font-family: 'Dancing Script', 'Lora', cursive;
  font-size: 9cqw;
  font-weight: 600;
  line-height: 1.1;
  color: #B33A3A;
}

/* The script font has no Japanese or Korean characters */
html:lang(ja) .santa-sheet .santa-reply-signature,
html:lang(ko) .santa-sheet .santa-reply-signature {
  font-family: 'Lora', Georgia, serif;
  font-size: 5.5cqw;
  font-weight: 700;
  margin-top: 1cqw;
}

.santa-sheet .santa-reply-ps {
  font-style: italic;
}

/* Long answers: smaller text so the letter still fits on one page */
.santa-sheet--compact .santa-reply-paragraph {
  font-size: 3.1cqw;
  line-height: 1.45;
  margin-bottom: 1.8cqw;
}

.santa-sheet--compact .santa-reply-signature {
  font-size: 7.5cqw;
}

.santa-sheet--compact .santa-seal {
  flex-basis: 15cqw;
  height: 15cqw;
}

.santa-seal {
  flex: 0 0 18cqw;
  height: 18cqw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 0.9cqw double #B33A3A;
  border-radius: 50%;
  color: #B33A3A;
  text-align: center;
  transform: rotate(-10deg);
}

.santa-seal-star {
  font-size: 4.5cqw;
  line-height: 1;
  color: #C9A227;
}

.santa-seal-text {
  font-size: 2.2cqw;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* The copy under <body> that gets printed; never shown on screen */
.santa-print-root {
  display: none;
}

@media print {
  html.santa-print-ready body > :not(.santa-print-root) {
    display: none !important;
  }

  html.santa-print-ready body {
    margin: 0;
    padding: 0;
    background: white;
  }

  html.santa-print-ready .santa-print-root {
    display: block;
  }

  .santa-print-root .santa-sheet-frame {
    width: 7.1in;
    margin: 0 auto;
  }

  .santa-print-root .santa-sheet {
    box-shadow: none;
    break-inside: avoid;
  }
}

/* ===========================================
   How It Works Section
   =========================================== */
.santa-tool-page .tool-how-it-works {
  background: white;
  padding: 80px 24px;
}

.santa-tool-page .tool-how-it-works-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.santa-tool-page .tool-section-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  margin-bottom: 48px;
}

.santa-tool-page .how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.santa-tool-page .how-step {
  text-align: center;
}

.santa-tool-page .how-step-number {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  margin: 0 auto 16px;
}

.santa-tool-page .how-step-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.santa-tool-page .how-step-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===========================================
   FAQ Section
   =========================================== */
.santa-tool-page .tool-faq {
  background: var(--tool-cream);
  padding: 80px 24px;
}

.santa-tool-page .tool-faq-inner {
  max-width: 800px;
  margin: 0 auto;
}

.santa-tool-page .faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.santa-tool-page .faq-item {
  background: white;
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.santa-tool-page .faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  transition: background 0.2s ease;
}

.santa-tool-page .faq-question:hover {
  background: rgba(0, 0, 0, 0.02);
}

.santa-tool-page .faq-question .mdi {
  font-size: 24px;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.santa-tool-page .faq-item.active .faq-question .mdi {
  transform: rotate(180deg);
}

.santa-tool-page .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.santa-tool-page .faq-item.active .faq-answer {
  max-height: 300px;
}

.santa-tool-page .faq-answer-content {
  padding: 0 24px 24px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===========================================
   Final CTA Section
   =========================================== */
.santa-tool-page .tool-cta {
  background: linear-gradient(135deg, var(--primary-soft) 0%, var(--tool-peach) 50%, var(--tool-cream) 100%);
  padding: 80px 24px;
  text-align: center;
}

.santa-tool-page .tool-cta-inner {
  max-width: 600px;
  margin: 0 auto;
}

.santa-tool-page .tool-cta-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.2;
}

.santa-tool-page .tool-cta-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}

.santa-tool-page .btn-large {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: auto;
  padding: 18px 40px;
  font-size: 17px;
  border-radius: 30px;
}

.santa-tool-page .tool-cta-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-secondary);
}

/* ===========================================
   Responsive Design
   =========================================== */
@media (max-width: 1024px) {
  .santa-tool-page .how-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .santa-tool-page .tool-main-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .santa-tool-page .santa-preview {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .santa-tool-page .tool-hero {
    padding: 60px 20px 40px;
  }

  .santa-tool-page .tool-hero-title {
    font-size: 32px;
  }

  .santa-tool-page .tool-hero-subtitle {
    font-size: 17px;
  }

  .santa-tool-page .tool-main {
    padding: 40px 20px 60px;
  }

  .santa-tool-page .tool-card,
  .santa-tool-page .santa-keep {
    padding: 24px;
  }

  .santa-tool-page .btn-print,
  .santa-tool-page .santa-keep-button {
    width: 100%;
  }

  .santa-tool-page .santa-keep {
    flex-direction: column;
    gap: 12px;
  }

  .santa-tool-page .santa-mail {
    padding: 24px;
  }

  .santa-tool-page .santa-mail-programs {
    grid-template-columns: minmax(0, 1fr);
  }

  .santa-tool-page .santa-crosslink {
    padding: 20px;
    gap: 14px;
  }

  .santa-tool-page .tool-how-it-works,
  .santa-tool-page .tool-faq {
    padding: 60px 20px;
  }

  .santa-tool-page .tool-section-title {
    font-size: 26px;
    margin-bottom: 32px;
  }

  .santa-tool-page .how-steps {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 320px;
    margin: 0 auto;
  }

  .santa-tool-page .tool-cta {
    padding: 60px 20px;
  }

  .santa-tool-page .tool-cta-title {
    font-size: 28px;
  }
}
