.birthday-page {
  color: #263238;
  background: #fff;
}

.birthday-container {
  max-width: 1080px;
}

.birthday-hero {
  padding: 28px 0 22px;
  background: #fff4f7;
  color: #263238;
}

.birthday-breadcrumb {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 18px;
  color: #59666d;
  font-size: 14px;
}

.birthday-breadcrumb a,
.birthday-related a {
  color: #a51f60;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.birthday-hero h1 {
  max-width: 820px;
  margin: 0 0 10px;
  color: #263238;
  font-size: 32px;
  line-height: 1.35;
  font-weight: 700;
}

.birthday-hero p {
  max-width: 740px;
  margin: 0;
  color: #44545c;
  font-size: 17px;
  line-height: 1.7;
}

.birthday-tool-section {
  padding: 18px 0 34px;
  background: #fff;
}

.birthday-tool-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #dbe3e7;
  border-radius: 6px;
  background: #fff;
}

.birthday-input-panel,
.birthday-result-panel {
  min-width: 0;
  padding: 24px;
}

.birthday-input-panel h2 {
  margin: 0 0 8px;
  color: #263238;
  font-size: 21px;
  line-height: 1.4;
}

.birthday-tool-intro,
.birthday-privacy-note {
  color: #52616a;
  font-size: 15px;
  line-height: 1.65;
}

.birthday-field {
  margin: 18px 0 12px;
}

.birthday-field label {
  display: block;
  margin-bottom: 7px;
  color: #263238;
  font-weight: 700;
}

.birthday-field input {
  width: 100%;
  min-height: 48px;
  padding: 9px 12px;
  border: 1px solid #9eabb2;
  border-radius: 5px;
  background: #fff;
  color: #263238;
  font: inherit;
}

.birthday-field input:focus-visible,
.birthday-primary-button:focus-visible,
.birthday-reset-button:focus-visible,
.birthday-faq-item summary:focus-visible {
  outline: 3px solid #26788a;
  outline-offset: 2px;
}

.birthday-field input[aria-invalid="true"] {
  border-color: #b42318;
}

.birthday-field-error,
.birthday-form-error {
  min-height: 0;
  margin: 5px 0 0;
  color: #a21b16;
  font-size: 14px;
  line-height: 1.5;
}

.birthday-form-error:not([hidden]) {
  margin: 10px 0;
  padding: 9px 11px;
  border-left: 3px solid #b42318;
  background: #fff2f0;
}

.birthday-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.birthday-primary-button,
.birthday-reset-button {
  min-height: 48px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 5px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
}

.birthday-primary-button {
  background: #c52f72;
  color: #fff;
}

.birthday-primary-button:hover {
  background: #a51f60;
}

.birthday-reset-button {
  border-color: #87969d;
  background: #fff;
  color: #263238;
}

.birthday-reset-button:hover {
  background: #f1f6f7;
}

.birthday-privacy-note {
  margin: 16px 0 0;
  font-size: 14px;
}

.birthday-result-panel {
  border-left: 1px solid #dbe3e7;
  background: #f2f8f8;
  color: #263238;
}

.birthday-result-state {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 9px;
  border-radius: 4px;
  background: #d8eeeb;
  color: #14594f;
  font-size: 13px;
  font-weight: 700;
}

.birthday-score-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.birthday-score-label {
  color: #263238;
  font-size: 18px;
  font-weight: 700;
}

.birthday-score-caption {
  margin: 4px 0 0;
  color: #52616a;
  font-size: 13px;
  line-height: 1.5;
}

.birthday-score-value {
  color: #14594f;
  font-size: 38px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.birthday-score-value small {
  margin-left: 3px;
  font-size: 15px;
}

.birthday-score-track {
  height: 10px;
  overflow: hidden;
  margin: 14px 0 18px;
  border-radius: 5px;
  background: #dce5e7;
}

.birthday-score-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #1d8278;
  transition: width 180ms ease-out;
}

.birthday-zodiac-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 14px 0;
  border-top: 1px solid #cbd9dc;
  border-bottom: 1px solid #cbd9dc;
}

.birthday-zodiac-person {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.birthday-person-label,
.birthday-zodiac-person small {
  color: #52616a;
  font-size: 13px;
}

.birthday-zodiac-person strong {
  color: #263238;
  font-size: 20px;
  overflow-wrap: anywhere;
}

.birthday-pair-symbol {
  color: #a51f60;
  text-align: center;
  font-weight: 700;
}

.birthday-result-panel h3 {
  margin: 18px 0 7px;
  color: #263238;
  font-size: 18px;
}

.birthday-result-panel > p:not(.birthday-result-state):not(.birthday-score-caption) {
  color: #44545c;
  font-size: 15px;
  line-height: 1.7;
}

.birthday-result-caution {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid #cbd9dc;
  font-size: 13px !important;
}

.birthday-content {
  padding-bottom: 42px;
}

.birthday-content-section,
.birthday-faq {
  padding: 25px 0;
  border-top: 1px solid #e2e8eb;
}

.birthday-content h2,
.birthday-faq h2,
.birthday-related h2 {
  margin: 0 0 14px;
  color: #263238;
  font-size: 24px;
  line-height: 1.45;
}

.birthday-content h3 {
  margin: 20px 0 8px;
  color: #34464e;
  font-size: 18px;
  line-height: 1.5;
}

.birthday-content p,
.birthday-content li,
.birthday-faq-item p {
  color: #44545c;
  font-size: 16px;
  line-height: 1.85;
}

.birthday-steps {
  display: grid;
  gap: 12px;
  padding-left: 22px;
}

.birthday-steps li strong,
.birthday-steps li span {
  display: block;
}

.birthday-table-wrap {
  overflow-x: auto;
  margin: 14px 0;
}

.birthday-table {
  width: 100%;
  border-collapse: collapse;
  color: #34464e;
}

.birthday-table th,
.birthday-table td {
  padding: 11px 12px;
  border: 1px solid #dbe3e7;
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
}

.birthday-table th {
  background: #edf4f5;
  color: #263238;
}

.birthday-faq-item {
  padding: 14px 0;
  border-top: 1px solid #dbe3e7;
}

.birthday-faq-item summary {
  min-height: 44px;
  color: #263238;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}

.birthday-faq-item p {
  margin: 8px 0 0;
}

.birthday-related {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  padding: 22px 0;
  border-top: 1px solid #e2e8eb;
}

.birthday-related h2 {
  flex-basis: 100%;
}

.birthdate-related-section {
  padding: 22px 0;
  background: #f2f8f8;
  color: #263238;
}

.birthdate-related-section .container {
  max-width: 1080px;
}

.birthdate-related-section h2 {
  color: #263238;
  font-size: 20px;
}

.birthdate-related-section p {
  color: #44545c;
  line-height: 1.7;
}

.birthdate-related-section a {
  color: #a51f60;
  font-weight: 700;
  text-underline-offset: 3px;
}

@media (max-width: 767px) {
  .birthday-hero {
    padding: 22px 0 17px;
  }

  .birthday-hero h1 {
    font-size: 26px;
  }

  .birthday-hero p {
    font-size: 16px;
  }

  .birthday-tool-section {
    padding: 14px 0 24px;
  }

  .birthday-tool-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .birthday-input-panel,
  .birthday-result-panel {
    padding: 18px;
  }

  .birthday-result-panel {
    border-top: 1px solid #dbe3e7;
    border-left: 0;
  }

  .birthday-content h2,
  .birthday-faq h2,
  .birthday-related h2 {
    font-size: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .birthday-score-track span {
    transition: none;
  }
}
