/* ── PET AGE CALCULATOR ── */
.calculator-wrapper {
  max-width: 640px;
  margin: 60px auto 100px;
  padding: 0 1.5rem;
}

.calculator-header {
  text-align: center;
  margin-bottom: 36px;
}

.calculator-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.calculator-header p {
  font-size: 15px;
  color: var(--ink-light);
  font-weight: 300;
  max-width: 420px;
  margin: 0 auto;
  line-height: 1.7;
}

.calculator-card {
  background: var(--warm-white);
  border: 1px solid var(--stone);
  border-radius: 16px;
  padding: 36px;
}

@media (max-width: 480px) {
  .calculator-card {
    padding: 24px 16px;
  }

  .calculator-card .field-row {
    grid-template-columns: 1fr;
  }
}

/* ── RESULT BOX ── */
#result-box {
  background: rgba(201, 169, 142, 0.08);
  border: 1px solid var(--blush-light);
  border-radius: 14px;
  padding: 32px 24px;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

#result-box.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.result-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

#human-age {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(52px, 12vw, 80px);
  font-weight: 300;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 4px;
}

.result-unit {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  color: var(--blush);
  font-weight: 300;
  margin-bottom: 20px;
}

#age-note {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 300;
  font-style: italic;
  color: var(--ink-light);
  line-height: 1.75;
  border-top: 1px solid var(--blush-light);
  padding-top: 18px;
  margin-top: 0;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

/* ── LOSS ANNIVERSARY REMINDER ── */
/* Reuses .calculator-wrapper, .calculator-card, .calculator-header, .field-row, .field-group from Pet Age Calculator */

/* Fix the --calculator-muted / --calculator-text vars used inline in the PHP */
.calculator-card {
  --calculator-text: var(--ink);
  --calculator-muted: var(--muted);
}

/* ── REMINDER RESULT BOX ── */
#result-box {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 24px;
  background: rgba(201, 169, 142, 0.08);
  border: 1px solid var(--blush-light);
  border-radius: 14px;
  margin-top: 8px;
  animation: fadeIn 0.5s ease;
}

#result-box.visible {
  display: flex;
}

.prompt-icon {
  font-size: 40px;
  margin-bottom: 16px;
  display: block;
  animation: float 3s ease-in-out infinite;
}

#success-msg {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(20px, 4vw, 26px);
  font-weight: 300;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 0;
}

/* ── DATE INPUT ── */
input[type="date"] {
  width: 100%;
  background: var(--cream);
  border: 1px solid var(--stone);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="date"]:focus {
  border-color: var(--blush);
  box-shadow: 0 0 0 3px rgba(201, 169, 142, 0.15);
}

input[type="email"] {
  transition: border-color 0.2s, box-shadow 0.2s;
}

/* ── HINT TEXT under date field ── */
.field-group .field-hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.5;
}






/* ── GRIEF JOURNAL TOOL ── */
.journal-wrapper {
  max-width: 680px;
  margin: 60px auto 100px;
  padding: 0 1.5rem;
}

.journal-controls {
  margin-bottom: 32px;
  text-align: center;
}

.mood-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.mood-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.mood-tab {
  background: var(--warm-white);
  border: 1px solid var(--stone);
  border-radius: 20px;
  padding: 7px 18px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--ink-light);
  cursor: pointer;
  transition: all 0.2s;
}

.mood-tab:hover {
  border-color: var(--blush);
  color: var(--ink);
}

.mood-tab.active {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}

/* ── PROMPT CARD ── */
.journal-main {
  margin-bottom: 48px;
}

.prompt-card-journal {
  background: var(--warm-white);
  border: 1px solid var(--stone);
  border-radius: 20px;
  padding: 48px 40px 36px;
  text-align: center;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.prompt-card-journal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 480px) {
  .prompt-card-journal {
    padding: 36px 24px 28px;
  }
}

.prompt-category-badge {
  display: inline-block;
  background: rgba(201, 169, 142, 0.15);
  border: 1px solid var(--blush-light);
  color: var(--blush);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
}

.prompt-icon-large {
  font-size: 32px;
  opacity: 0.6;
}

.prompt-text-large {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(20px, 3.5vw, 26px);
  font-weight: 300;
  font-style: italic;
  color: var(--ink);
  line-height: 1.65;
  max-width: 520px;
  margin: 0;
}

.prompt-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.prompt-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--cream);
  border: 1px solid var(--stone);
  border-radius: 8px;
  padding: 8px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--ink-light);
  cursor: pointer;
  transition: all 0.2s;
}

.prompt-action-btn:hover {
  border-color: var(--blush);
  color: var(--blush);
}

.prompt-action-btn.confirmed {
  border-color: var(--sage);
  color: var(--sage);
}

.prompt-footer-text {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.03em;
  font-style: italic;
}

/* ── GENERATE ROW ── */
.journal-generate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.prompt-counter {
  font-size: 13px;
  color: var(--muted);
}

.prompt-counter span {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--blush);
}

.btn-generate-prompt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--blush) 0%, var(--gold) 100%);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 13px 28px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(201, 169, 142, 0.35);
  transition: all 0.2s;
  letter-spacing: 0.01em;
}

.btn-generate-prompt:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(201, 169, 142, 0.45);
}

/* ── SAVED PROMPTS ── */
.saved-prompts-section {
  border-top: 1px solid var(--stone);
  padding-top: 40px;
  margin-top: 20px;
}

.saved-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.saved-section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--ink);
}

.clear-saved-btn {
  background: none;
  border: none;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
  font-family: 'DM Sans', sans-serif;
  transition: color 0.2s;
}

.clear-saved-btn:hover {
  color: #c0392b;
}

.saved-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.saved-prompt-item {
  background: var(--warm-white);
  border: 1px solid var(--stone);
  border-radius: 12px;
  padding: 20px 24px;
  position: relative;
  animation: slideIn 0.25s ease;
}

.saved-prompt-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  color: var(--blush);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.saved-prompt-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 300;
  font-style: italic;
  color: var(--ink);
  line-height: 1.7;
  margin: 0 0 12px;
}

.saved-remove-btn {
  background: none;
  border: none;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  text-decoration: underline;
  transition: color 0.2s;
  padding: 0;
}

.saved-remove-btn:hover {
  color: #c0392b;
}











/* ============================================
   VIRTUAL CANDLE STYLES
   ============================================ */

.vc-wrap {
  max-width: 620px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  font-family: var(--font-sans);
}

.vc-header {
  text-align: center;
  margin-bottom: 2rem;
}

.vc-header h1 {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.vc-header p {
  font-size: 15px;
  color: var(--ink-light);
  font-weight: 300;
  line-height: 1.7;
  max-width: 400px;
  margin: 0 auto;
}

.vc-card {
  background: var(--warm-white);
  border: 0.5px solid var(--stone);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

/* CANDLE ANATOMY */
.candle-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
  position: relative;
}

.flame-wrap {
  width: 32px;
  height: 56px;
  position: relative;
  margin-bottom: -2px;
}

.flame {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 30px;
  border-radius: 50% 50% 30% 30% / 60% 60% 40% 40%;
  background: #ddd;
  opacity: 0.2;
  transition: all 0.5s ease;
}

.flame.lit {
  background: radial-gradient(ellipse at 50% 80%, #fff700 0%, #ffaa00 40%, #ff6600 75%, transparent 100%);
  opacity: 1;
  animation: flicker 1.8s ease-in-out infinite alternate;
  box-shadow: 0 0 12px 4px rgba(255,180,0,0.35), 0 0 30px 8px rgba(255,120,0,0.15);
}

.wick {
  width: 2px;
  height: 10px;
  background: #555;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  border-radius: 1px;
}

.wick.lit {
  background: #f90;
  box-shadow: 0 -2px 4px rgba(255,160,0,0.5);
}

.candle-body {
  width: 36px;
  height: 80px;
  background: linear-gradient(to right, #f0ebe5 0%, #faf8f6 45%, #e8e0d8 100%);
  border-radius: 4px 4px 2px 2px;
  position: relative;
  border: 0.5px solid rgba(0,0,0,0.06);
}

.candle-drip {
  position: absolute;
  top: -4px;
  left: 8px;
  width: 6px;
  height: 10px;
  background: #f5f0ea;
  border-radius: 0 0 50% 50%;
  opacity: 0.6;
}

.candle-holder {
  width: 52px;
  height: 10px;
  background: linear-gradient(to bottom, #c8b89a, #a89070);
  border-radius: 6px 6px 4px 4px;
  border: 0.5px solid rgba(0,0,0,0.1);
  margin-top: -1px;
}

.candle-base-plate {
  width: 64px;
  height: 7px;
  background: linear-gradient(to bottom, #a89070, #8a7260);
  border-radius: 4px;
  border: 0.5px solid rgba(0,0,0,0.12);
  margin-top: -1px;
}

@keyframes flicker {
  0% { transform: translateX(-50%) scaleX(1) scaleY(1) rotate(-1deg); opacity: 0.92; }
  25% { transform: translateX(-50%) scaleX(0.94) scaleY(1.04) rotate(1.5deg); opacity: 1; }
  50% { transform: translateX(-50%) scaleX(1.05) scaleY(0.97) rotate(-0.5deg); opacity: 0.95; }
  75% { transform: translateX(-50%) scaleX(0.97) scaleY(1.03) rotate(1deg); opacity: 1; }
  100% { transform: translateX(-50%) scaleX(1) scaleY(1) rotate(-1.5deg); opacity: 0.92; }
}

/* BUTTON STYLES */
.btn-light {
  background: linear-gradient(135deg, #C9A98E 0%, #b8926f 100%);
  border: none;
  border-radius: 40px;
  padding: 12px 32px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: white;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(201,169,142,0.25);
  margin-top: 8px;
}

.btn-light:hover:not(:disabled) { 
  transform: translateY(-2px); 
  box-shadow: 0 6px 24px rgba(201,169,142,0.4); 
}

.btn-light:disabled { 
  opacity: 0.65; 
  cursor: not-allowed; 
  transform: none; 
}

/* SUCCESS STATE */
.success-zone { 
  display: none; 
  animation: fadeUp 0.6s ease; 
}

.success-zone.visible { 
  display: block; 
}

.tribute-box {
  background: rgba(201,169,142,0.07);
  border: 0.5px solid rgba(201,169,142,0.35);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem 1.25rem;
  margin: 1.25rem 0 0;
}

.tribute-quote {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 300;
  font-style: italic;
  color: var(--ink);
  line-height: 1.75;
}

.success-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 300;
  color: #C9A98E;
  margin-bottom: 6px;
}

.success-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 0;
}

.btn-relight {
  background: none;
  border: 0.5px solid var(--stone);
  border-radius: var(--border-radius-md);
  padding: 9px 22px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--ink-light);
  cursor: pointer;
  margin-top: 1.25rem;
  transition: all 0.2s;
}

.btn-relight:hover { 
  border-color: var(--blush); 
  color: var(--blush); 
}

/* LOADING DOTS */
.loading-dots span {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #C9A98E;
  margin: 0 2px;
  animation: dot-bounce 1.2s infinite ease-in-out;
}

.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dot-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-5px); opacity: 1; }
}

/* WALL OF LIGHT */
.wall-section {
  margin-top: 0;
}

.wall-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
  text-align: center;
  margin-bottom: 1.5rem;
}

.candle-entry {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  background: var(--warm-white);
  border: 0.5px solid var(--stone);
  border-radius: var(--border-radius-md);
  margin-bottom: 10px;
  animation: slideIn 0.3s ease;
}

.entry-flame {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  filter: saturate(1.1);
}

.entry-name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.3;
}

.entry-msg {
  font-size: 13px;
  color: var(--ink-light);
  line-height: 1.6;
  margin-top: 4px;
}

.entry-tribute {
  font-family: var(--font-serif);
  font-size: 14px;
  font-style: italic;
  color: #C9A98E;
  margin-top: 6px;
  line-height: 1.65;
  border-top: 0.5px solid rgba(201,169,142,0.2);
  padding-top: 6px;
}

.entry-time {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

.empty-wall {
  text-align: center;
  padding: 2rem 0;
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
}

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* FORM ELEMENTS within virtual candle */
.vc-card .field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}

.vc-card .field-group {
  text-align: left;
}

.vc-card .field-group label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.vc-card .field-group input,
.vc-card .field-group select,
.vc-card .field-group textarea {
  width: 100%;
  background: var(--cream);
  border: 1px solid var(--stone);
  border-radius: var(--border-radius-sm);
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink);
  transition: all 0.2s;
}

.vc-card .field-group input:focus,
.vc-card .field-group select:focus,
.vc-card .field-group textarea:focus {
  outline: none;
  border-color: var(--blush);
  box-shadow: 0 0 0 2px rgba(201,169,142,0.15);
}

.vc-card .field-group textarea {
  resize: vertical;
  min-height: 70px;
}

/* responsive */
@media (max-width: 520px) {
  .vc-card {
    padding: 1.75rem 1.25rem;
  }
  .vc-card .field-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .vc-header h1 {
    font-size: 28px;
  }
  .tribute-quote {
    font-size: 16px;
  }
}





/* ── Pregnancy Calculator — add to your existing style.css ── */

/* Progress bar */
.progress-section {
    margin: 1.25rem 0;
}
.progress-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--muted, #888);
    margin-bottom: 6px;
}
.progress-bar-bg {
    height: 6px;
    background: #eee;
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 4px;
}
.progress-bar-fill {
    height: 100%;
    background: #4caf8a;
    border-radius: 99px;
    transition: width 0.4s ease;
}
.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #aaa;
}

/* Due date row */
.result-due-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}
#due-date-display {
    font-size: 22px;
    font-weight: 600;
}
#days-left-badge {
    font-size: 12px;
    background: #f0f4f2;
    color: #4caf8a;
    padding: 3px 10px;
    border-radius: 99px;
    font-weight: 500;
}

/* Milestones */
.milestones-section {
    border-top: 1px solid #f0f0f0;
    padding-top: 1rem;
    margin-top: 0.5rem;
}
.milestones-title {
    font-size: 13px;
    font-weight: 600;
    color: #888;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.milestone-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 10px;
    opacity: 0.5;
    transition: opacity 0.2s;
}
.milestone-item.milestone-past {
    opacity: 1;
}
.milestone-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-top: 4px;
    flex-shrink: 0;
}
.dot-done    { background: #4caf8a; }
.dot-pending { background: #ddd; }
.milestone-day  { font-size: 12px; color: #aaa; }
.milestone-desc { font-size: 13px; color: inherit; }