.numerology-page {
  padding: 1.45rem 2rem;
  min-height: 80vh;
  background: #e3e3e3;
}


.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  width: min(100%, 1240px);
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}

.breadcrumb-link {
  color: var(--text-2);
  text-decoration: none;
  transition: all 0.2s ease;
}

.breadcrumb-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.breadcrumb-separator {
  color: var(--text-3);
  font-size: 0.8rem;
}

.breadcrumb-current {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.breadcrumb-current:hover {
  text-decoration: underline;
}

.numerology-content {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  padding: 0 1rem;
}

.numerology-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  justify-content: center;
}

.numerology-form {
  background: var(--card);
  padding: 1rem;
  border: 1px solid #eee;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  flex: 1;
  max-width: 450px;
  transition: 0.2s ease;
}

.numerology-form:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.calculate-btn {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 80px;
  padding: 0.7rem 1.2rem;
  font-size: 1.2rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer; 
}
.calculate-btn:hover {
  background: var(--accent-hover);
}
.numerology-results {
  flex: 1;
  max-width: 450px;
}

.mobile-results-title {
  display: none;
}

.numerology-title {
  font-family: 'Nunito', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 0rem;
  color: #2d3748;
  margin-top: 0.5rem;
}

.numerology-subtitle {
  font-size: 1.15rem;
  color: #4a5568;
  margin-bottom: 2rem;
  margin-top: 0.5rem;
}



.form-group {
  margin-bottom: 1rem;
  text-align: left;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #2d3748;
  font-size: 1.25rem;
}

.form-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
  position: relative;
}

.form-label-row .form-label {
  margin-bottom: 0;
}

.date-picker-calendar-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.date-picker-calendar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.35rem;
  background: transparent;
  color: var(--accent);
  border:none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
  position: relative;
  z-index: 1;
}

.date-picker-btn-text {
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.date-picker-calendar-btn:hover {
  color: var(--accent);
  background: var(--accent-bg);
}

.date-picker-calendar-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.date-picker-native-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  color: transparent;
  z-index: 2;
  pointer-events: none;
}

/* On touch devices let the real tap hit the native input directly,
   so iOS/Android open their native picker (synthetic .click() does
   not open the picker on iOS). */
@media (pointer: coarse) {
  .date-picker-native-input {
    pointer-events: auto;
  }
}

.date-selectors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.date-select {
  width: 100%;
  padding: 1rem;
  padding-right: 3.5rem;
  font-size: 1.25rem;
  border: 2px solid #e2e8f0;
  border-radius: 0.75rem;
  background: white;
  cursor: pointer;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
}

.date-select:focus {
  outline: none;
  border-color: var(--accent);
}

.numerology-result {
  padding: 1rem 0rem 2rem 0rem;
  color: white;
}

.result-label {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #2d3748;
  font-weight: 600;
}

.number-pill-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.number-pill {
  background: #f2f2f2;
  border-radius: 5rem;
  box-shadow: 
    inset -2px 5px 10px rgba(0, 0, 0, 0.4);
  border-top: 3px solid rgba(0, 0, 0, 0.38);
  height: 8rem;
  width: 11rem;
  overflow: hidden;
  position: relative;
}

.number-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.number-track.rolling {
  transform: translateY(-100%);
}

.number-digit {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 5rem;
  font-weight: 500;
  line-height: 9rem;
  color: #333333;
  height: 7.3rem;
  width: 13rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pinwheel-column {
  height: 15rem;
  width: 8rem;
  overflow: hidden;
  position: relative;
  touch-action: none;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}

.pinwheel-column:active {
  cursor: grabbing;
}

.pinwheel-column::before,
.pinwheel-column::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 6rem;
  pointer-events: none;
  z-index: 10;
}

.pinwheel-column::before {
  top: 0;
  background: linear-gradient(to bottom, white 0%, rgba(255,255,255,0) 100%);
}

.pinwheel-column::after {
  bottom: 0;
  background: linear-gradient(to top, white 0%, rgba(255,255,255,0) 100%);
}

.pinwheel-track {
  position: relative;
  transition: transform 0.15s ease-out;
  display: flex;
  flex-direction: column;
}

.pinwheel-item {
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 500;
  color: #d1d5db;
  user-select: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pinwheel-item.active {
  font-size: 1.425rem;
  font-weight: 700;
  color: #1f2937;
  background: #f3f4f6;
  border-radius: 2rem;
  margin: 0 0.18rem;
}

.pinwheel-month.pinwheel-column {
  width: 10rem;
}

.pinwheel-day.pinwheel-column {
  width: 6rem;
}

.pinwheel-month .pinwheel-item.active {
  margin: 0 0.1rem;
}

.pinwheel-day .pinwheel-item.active {
  margin: 0 0.6rem;
}

@media (max-width: 768px) {
  .numerology-page {
    padding: 1.3rem 0px 1rem;
  }
  .numerology-layout {
    flex-direction: column;
    align-items: center;
  }
  
  .numerology-form,
  .numerology-results {
    width: 100%;
    max-width: 450px;
    margin-top: 1rem;
    margin-bottom: 2.5rem;
  }

  .mobile-results-title {
    display: block;
    font-family: 'Nunito', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    text-align: center;
    margin: 3.5rem 0 0;
  }
  
  .pinwheel-column {
    width: 7rem;
  }

  .pinwheel-month.pinwheel-column {
    width: 9rem;
  }

  .pinwheel-day.pinwheel-column {
    width: 5.25rem;
  }

  .pinwheel-month .pinwheel-item.active {
    margin: 0 0.08rem;
  }

  .pinwheel-day .pinwheel-item.active {
    margin: 0 0.55rem;
  }
  
  .numerology-title {
    font-size: 2rem;
    margin-top: 2.5rem;
  }
}
