/* ── Page wrapper ────────────────────────────────────────────────────────── */
.free-tool-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 32px 120px; /* bottom clears sticky bar */
}

.free-tool-header {
  max-width: 680px;
  margin-bottom: 32px;
}

/* ── Upsell banner (shown after first download) ──────────────────────────── */
.free-tool-upsell-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--yak-charcoal, #323A3D);
  border-radius: var(--yak-radius, 6px);
  padding: 12px 18px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.free-tool-upsell-banner .upsell-price {
  flex-shrink: 0;
  background: var(--yak-yellow, #FFD448);
  color: #1A1A1A;
  font-size: .72rem;
  font-weight: 700;
  padding: .18rem .65rem;
  border-radius: 99px;
  white-space: nowrap;
}

.free-tool-upsell-banner .upsell-text {
  flex: 1;
  min-width: 180px;
}

.free-tool-upsell-banner .upsell-text strong {
  display: block;
  color: #fff;
  font-size: .88rem;
  line-height: 1.3;
}

.free-tool-upsell-banner .upsell-text span {
  color: rgba(255,255,255,.55);
  font-size: .78rem;
}

.free-tool-upsell-banner .upsell-cta {
  flex-shrink: 0;
  background: var(--yak-yellow, #FFD448) !important;
  color: #1A1A1A !important;
  font-weight: 700;
  font-size: .85rem;
  white-space: nowrap;
  padding: .45rem 1.1rem;
}

/* ── Sticky action bar ───────────────────────────────────────────────────── */
.free-tool-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--yak-border, #E0DFDB);
  box-shadow: 0 -2px 16px rgba(0,0,0,.07);
  z-index: 200;
  padding: 12px 20px;
}

.free-tool-sticky-inner {
  max-width: min(1280px, 90%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
}

.free-tool-sticky-msg {
  flex: 1;
  min-width: 0;
  font-size: .85rem;
  color: var(--yak-muted, #6B7577);
  line-height: 1.4;
}

.free-tool-sticky-btns {
  display: flex;
  gap: .6rem;
  flex-shrink: 0;
  align-items: center;
}

@media (max-width: 640px) {
  .free-tool-sticky-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .free-tool-sticky-btns {
    flex-direction: column;
  }
}

/* ── Two-column layout ───────────────────────────────────────────────────── */
.free-tool-columns {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.free-tool-form-col {
  width: 380px;
  flex-shrink: 0;
}

.free-tool-preview-col {
  flex: 1;
  min-width: 480px;
  position: sticky;
  top: 24px;
  align-self: flex-start;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}

@media (max-width: 920px) {
  .free-tool-columns {
    flex-direction: column;
  }
  .free-tool-form-col {
    width: 100%;
  }
  .free-tool-preview-col {
    position: static;
    min-width: 0;
    width: 100%;
    max-height: none;
    overflow-y: visible;
  }
}

/* ── Form field elements ─────────────────────────────────────────────────── */
.yak-text-field {
  display: block;
  width: 100%;
  padding: .6rem .75rem;
  border: 1.5px solid #D8D8D8;
  border-radius: var(--yak-radius, 6px);
  background: #fff;
  color: var(--yak-charcoal, #1A1A1A);
  font-size: .92rem;
  line-height: 1.4;
  transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
  margin-bottom: .25rem;
}

.yak-text-field:focus {
  outline: none;
  border-color: var(--yak-teal, #28BDB9);
  box-shadow: 0 0 0 3px rgba(40, 189, 185, .15);
}

.yak-text-field::placeholder {
  color: #BDBDBD;
}

input[type="date"].yak-text-field {
  font-size: 1rem;
  padding: .65rem .75rem;
  cursor: pointer;
  min-height: 42px;
}

select.yak-text-field {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  padding-right: 2rem;
  cursor: pointer;
}

textarea.yak-text-field {
  resize: vertical;
  height: auto;
}

/* ── Form field rows ─────────────────────────────────────────────────────── */
.yak-field-row {
  margin-bottom: 24px;
}

.yak-field-row label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: .3rem;
  color: var(--yak-charcoal, #1A1A1A);
}

.yak-field-row .hint {
  font-size: .78rem;
  color: #888;
  margin-top: .25rem;
}

/* ── Form column heading ─────────────────────────────────────────────────── */
.form-col-heading {
  font-family: var(--yak-font-heading, sans-serif);
  font-weight: 700;
  font-size: 16px;
  color: var(--yak-charcoal, #1A1A1A);
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-col-heading svg {
  color: var(--yak-teal, #28BDB9);
  flex-shrink: 0;
}

/* ── Form section dividers ───────────────────────────────────────────────── */
.form-section-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 20px;
}

.form-section-divider::before,
.form-section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--yak-border, #E0DFDB);
}

.form-section-label {
  font-size: 11px;
  font-family: var(--yak-font-heading, sans-serif);
  font-weight: 500;
  color: var(--yak-muted, #6B7577);
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
}

/* ── Invitation letter context box ──────────────────────────────────────── */
.invite-context-box {
  background: var(--yak-teal-tint, #E8F9F9);
  border-left: 3px solid var(--yak-teal, #28BDB9);
  border-radius: 0 var(--yak-radius, 6px) var(--yak-radius, 6px) 0;
  padding: 12px 14px;
  margin-bottom: 20px;
}

.invite-context-box p {
  font-size: 13px;
  color: var(--yak-charcoal, #1A1A1A);
  margin: 0;
  line-height: 1.5;
}

.invite-context-box strong {
  color: var(--yak-teal-dark, #1A9490);
  font-weight: 600;
}

/* ── Preview column header ───────────────────────────────────────────────── */
.preview-col-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}

.preview-col-title {
  font-family: var(--yak-font-heading, sans-serif);
  font-weight: 500;
  font-size: 15px;
  color: var(--yak-charcoal, #1A1A1A);
  display: flex;
  align-items: center;
  gap: 6px;
}

.preview-col-hint {
  font-size: 12px;
  color: var(--yak-muted, #6B7577);
}

.preview-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

.legend-dot.teal { background: var(--yak-teal, #28BDB9); }

.legend-text {
  font-size: 12px;
  color: var(--yak-muted, #6B7577);
}

/* ── Document preview card ───────────────────────────────────────────────── */
.free-doc-preview {
  background: #FFFFFF;
  border: 1px solid var(--yak-border, #E0DFDB);
  border-radius: var(--yak-radius, 6px);
  padding: 48px 52px;
  min-height: 500px;
  width: 100%;
  box-sizing: border-box;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 13.5px;
  line-height: 1.85;
  color: #1A1A1A;
}

.free-doc-preview p {
  margin: 0 0 16px;
}

.preview-dateline {
  margin: 0 0 24px !important;
  font-size: 13.5px;
  color: #666;
  white-space: nowrap;
}

.preview-recipient {
  margin: 0 0 20px !important;
  font-size: 13.5px;
}

@media (max-width: 640px) {
  .free-doc-preview { padding: 24px 20px; }
}

/* ── Unfilled placeholder spans ─────────────────────────────────────────── */
.yak-unfilled {
  display: inline;
  background: rgba(40, 189, 185, .12);
  border-bottom: 2px solid var(--yak-teal, #28BDB9);
  padding: 0 3px;
  border-radius: 2px;
  font-style: italic;
  color: var(--yak-teal-dark, #1A9490);
  white-space: nowrap;
}

/* ── Action buttons ─────────────────────────────────────────────────────── */
.free-tool-actions {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-bottom: 1.5rem;
}

.free-tool-instruction {
  background: var(--yak-teal-tint, rgba(40,189,185,.08));
  border-left: 3px solid var(--yak-teal, #28BDB9);
  border-radius: 0 4px 4px 0;
  padding: .65rem .85rem;
  font-size: .85rem;
  color: var(--yak-charcoal, #1A1A1A);
  margin-bottom: .75rem;
}

/* ── Copy button ────────────────────────────────────────────────────────── */
.btn-copy {
  display: block;
  width: 100%;
  background: transparent;
  border: 1.5px solid var(--yak-teal, #28BDB9);
  color: var(--yak-teal, #28BDB9);
  border-radius: var(--yak-radius, 6px);
  padding: .55rem 1rem;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s;
  text-align: center;
}

.btn-copy:hover {
  background: var(--yak-teal, #28BDB9);
  color: #fff;
}

/* ── Itinerary ──────────────────────────────────────────────────────────── */
.itin-doc-wrap {
  background: #fff;
  border: 1px solid var(--yak-border, #E0DFDB);
  border-radius: var(--yak-radius, 6px);
  padding: 24px;
  overflow-x: auto;
  width: 100%;
  box-sizing: border-box;
}

.itin-cost-note {
  font-size: 11px;
  color: var(--yak-muted, #6B7577);
  margin: 8px 0 12px;
  font-style: italic;
}

.itin-edit-hint {
  font-size: .78rem;
  color: #888;
  margin-bottom: .5rem;
  display: flex;
  align-items: center;
  gap: .35rem;
}

.itinerary-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--yak-font-body, sans-serif);
  font-size: 12.5px;
  color: var(--yak-text, #1A1A1A);
  table-layout: fixed;
}

.itinerary-table th {
  background: var(--yak-charcoal, #323A3D);
  color: #FFFFFF;
  font-family: var(--yak-font-heading, sans-serif);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 8px 10px;
  text-align: left;
  white-space: nowrap;
}

.itinerary-table td {
  padding: 8px 10px;
  border-bottom: .5px solid var(--yak-border, #E0DFDB);
  vertical-align: top;
  line-height: 1.45;
  word-break: break-word;
}

.itinerary-table td[contenteditable="true"] {
  cursor: text;
  outline: none;
  transition: background .15s;
}

.itinerary-table td[contenteditable="true"]:hover {
  background: var(--yak-teal-tint, #E8F9F9);
  outline: 1px dashed var(--yak-teal, #28BDB9);
}

.itinerary-table td[contenteditable="true"]:focus {
  background: var(--yak-teal-tint, #E8F9F9);
  outline: 2px solid var(--yak-teal, #28BDB9);
}

.itinerary-table tbody tr:nth-child(even) td {
  background: var(--yak-light, #F5F4F0);
}

.itinerary-table tbody tr:nth-child(even) td[contenteditable="true"]:hover {
  background: var(--yak-teal-tint, #E8F9F9);
}

.itinerary-table tfoot td {
  background: rgba(40, 189, 185, .08);
  font-weight: 500;
}

.itin-col-day   { width: 48px; text-align: center; }
.itin-col-date  { width: 90px; white-space: nowrap; }
.itin-col-accom { width: 140px; }
.itin-col-cost  { width: 80px; text-align: right; }
