* {
  box-sizing: border-box;
}

.fortune-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  background-position: center;
  background-size: cover;
}

.fortune-card {
  width: 100%;
  max-width: 48rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  padding: 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.15), 0 8px 10px -6px rgba(15, 23, 42, 0.1);
}

.page-title {
  margin: 0 0 1.5rem;
  text-align: center;
  color: #111827;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
}

.title-text {
  font-size: 2.25rem;
  font-weight: 700;
}

.title-accent {
  color: #ef4444;
}

.fortune-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-label {
  font-weight: 600;
  color: #374151;
}

.date-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.select-span-2 {
  grid-column: span 2;
}

.input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  background: #fff;
}

.input:focus {
  outline: none;
  border-color: #60a5fa;
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.35);
}

.gender-group {
  display: flex;
  gap: 0.5rem;
  background: #f3f4f6;
  padding: 0.25rem;
  border-radius: 0.75rem;
}

.gender-option {
  position: relative;
  flex: 1;
  cursor: pointer;
}

.gender-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.gender-pill {
  display: block;
  text-align: center;
  padding: 0.5rem 0;
  border-radius: 0.5rem;
  color: #6b7280;
  transition: all 0.2s ease;
}

.gender-option input:checked + .gender-pill {
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.1);
  font-weight: 600;
}

.gender-option--male input:checked + .gender-pill {
  color: #2563eb;
}

.gender-option--female input:checked + .gender-pill {
  color: #ec4899;
}

.action-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}

.submit-button {
  width: 100%;
  border: none;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, #22c55e, #10b981);
  box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.35);
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.submit-button:hover {
  filter: brightness(0.95);
  transform: translateY(-1px);
}

.submit-button:active {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .fortune-card {
    padding: 1.5rem;
  }

  .page-title,
  .title-text {
    font-size: 1.75rem;
  }

  .date-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
