/* Diaper Test CSS – Final Design Update */
/* Integrated with Chiquitín Express branding */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --primary-color: #e30613; /* Chiquitín Red */
  --primary-hover: #c40510;
  --secondary-color: #ffffff;
  --option-border: #e2e8f0;
  --selected-bg: #fff1f2; /* Soft pinkish */
  --bg-color: #f5f5f5;
  --card-bg: #ffffff;
  --text-color: #1f2937;
  --border-radius: 12px;
  --transition: all 0.2s ease-in-out;
  --accent-color: #25D366; /* WhatsApp Green */
  --accent-hover: #1eb956;
  --info-bg: #f8fafc;
}

.diaper-test {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  max-width: 600px;
  margin: 2rem auto;
  padding: 1rem;
  background: transparent; /* Let the container handle background if needed */
  color: var(--text-color);
  line-height: 1.5;
}

.diaper-test .card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  border: 1px solid var(--option-border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  padding: 2.5rem 2rem;
  margin-bottom: 1rem;
  transition: var(--transition);
}

.diaper-test h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  text-align: center;
  letter-spacing: -0.02em;
}

.diaper-test h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}

.diaper-test .subtext {
  font-size: 1.05rem;
  color: #64748b;
  text-align: center;
  margin-top: -1rem;
  margin-bottom: 2rem;
}

.diaper-test .options {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.diaper-test .option {
  background: var(--secondary-color);
  border: 1px solid var(--option-border);
  border-radius: var(--border-radius);
  padding: 1.25rem;
  cursor: pointer;
  text-align: left;
  font-weight: 500;
  font-size: 1.05rem;
  transition: var(--transition);
  color: var(--text-color);
}

.diaper-test .option:hover {
  background: #fdf2f2;
  border-color: var(--primary-color);
}

.diaper-test .option.selected {
  border-color: var(--primary-color);
  background: var(--selected-bg);
  color: var(--primary-color);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(227, 6, 19, 0.1);
}

.diaper-test .navigation {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.diaper-test button {
  flex: 1;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 50px; /* Fully rounded buttons as seen in modern web */
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(227, 6, 19, 0.2);
}

.diaper-test button#prevBtn {
  background: #f1f5f9;
  color: #64748b;
  box-shadow: none;
}

.diaper-test button:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(227, 6, 19, 0.25);
}

.diaper-test button#prevBtn:hover {
  background: #e2e8f0;
  color: #1e293b;
  box-shadow: none;
}

.diaper-test button:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Result Screen */
.diaper-test .result {
  text-align: left;
}

.diaper-test .result h2 {
  color: var(--primary-color);
  margin-bottom: 2.5rem;
}

.diaper-test .primary-card {
  background: #ffffff;
  border: 2px solid #fee2e2; /* Soft red border */
  border-radius: var(--border-radius);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(227, 6, 19, 0.05);
  position: relative;
  overflow: hidden;
}

.diaper-test .primary-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: var(--primary-color);
}

.diaper-test .primary-card h3 {
  margin: 0 0 0.75rem 0;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-color);
  font-weight: 700;
}

.diaper-test .result-primary {
  font-size: 1.85rem;
  font-weight: 800;
  margin: 0.5rem 0;
  display: block;
  color: #111827;
}

.diaper-test .reason {
  font-size: 1rem;
  font-style: italic;
  color: #64748b;
  margin: 1rem 0 0 0;
}

.diaper-test .alternative-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--border-radius);
  padding: 1.25rem 2rem;
  margin-bottom: 2rem;
}

.diaper-test .alternative-card h3 {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0 0 0.5rem 0;
  font-weight: 600;
}

.diaper-test .result-alternative {
  font-weight: 700;
  font-size: 1.25rem;
  color: #334155;
}

.diaper-test .info-block {
  background: #ffffff;
  border-radius: var(--border-radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid #f1f5f9;
  border-left: 4px solid var(--primary-color);
}

.diaper-test .info-block h4 {
  margin: 0 0 0.5rem 0;
  font-size: 0.95rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
}

.diaper-test .info-block p {
  margin: 0;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-color);
}

.diaper-test .pack-primary {
  color: var(--accent-color) !important;
  font-size: 1.3rem !important;
}

/* WhatsApp Buttons Styling */
.diaper-test .store-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.diaper-test .store-card {
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  display: block;
}

.diaper-test .store-card span {
  display: none; /* Already included in the button text */
}

.diaper-test .whatsapp-btn {
  background: var(--accent-color);
  color: #ffffff !important;
  text-decoration: none;
  padding: 1.25rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
  transition: var(--transition);
}

.diaper-test .whatsapp-btn::before {
  content: '▶'; /* Simple arrow icon */
  margin-right: 10px;
  font-size: 0.8rem;
}

.diaper-test .whatsapp-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.diaper-test .store-selection {
  margin-top: 3rem;
  border-top: 1px solid var(--option-border);
  padding-top: 2rem;
  text-align: center;
}

.diaper-test .store-selection h3 {
  margin-top: 0;
}

/* Mobile Adjustments */
@media (max-width: 480px) {
  .diaper-test { margin: 1rem 0.5rem; padding: 0.5rem; }
  .diaper-test .card { padding: 2rem 1.5rem; }
  .diaper-test h2 { font-size: 1.5rem; }
  .diaper-test .navigation { flex-direction: column; }
  .diaper-test button { width: 100%; order: 1; }
  .diaper-test button#prevBtn { order: 2; margin-top: 0.5rem; }
  .diaper-test .result-primary { font-size: 1.5rem; }
}
