.age-calc-box {
  max-width: 650px;
  margin: 2.5rem auto;
  padding: 2.5rem 2rem;
  background: #f0f8ff;
  border-radius: 20px;
  box-shadow: 0 6px 32px rgba(33,147,176,0.16);
}

.age-calc-box h1 {
  color: #2193b0;
  text-align: center;
  margin-bottom: 2.2rem;
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: 2px;
}

.input-row {
  display: flex;
  justify-content: space-between;
  gap: 2.2rem;
  margin-bottom: 2.2rem;
  flex-wrap: wrap;
}

.input-col {
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.input-col label {
  font-weight: 700;
  color: #111;
  margin-bottom: 0.7rem;
  font-size: 1.5rem;
  letter-spacing: 1px;
}

.select-group {
  display: flex;
  gap: 0.7rem;
  width: 100%;
}

select {
  padding: 1.3rem 1rem;
  border: 2.5px solid #2193b0;
  border-radius: 12px;
  font-size: 1.6rem;
  background: #fff;
  color: #111;
  width: 33.33%;
  box-sizing: border-box;
  font-family: inherit;
  font-weight: 700;
  transition: border-color 0.2s;
  cursor: pointer;
}
select:focus {
  border-color: #1a7a9c;
  outline: none;
}

button[type="submit"] {
  background: #2193b0;
  color: #fff;
  border: none;
  padding: 1.2rem 0;
  border-radius: 12px;
  font-size: 1.7rem;
  cursor: pointer;
  width: 100%;
  font-weight: 800;
  margin-top: 0.7rem;
  letter-spacing: 2px;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(33,147,176,0.09);
}
button[type="submit"]:hover {
  background: #1a7a9c;
}

#age-result {
  background: #fff;
  padding: 2rem 1.2rem;
  border-radius: 14px;
  margin-top: 2.5rem;
  text-align: left;
  box-shadow: 0 2px 12px rgba(33,147,176,0.10);
}

.result-line {
  margin: 1.1rem 0;
  font-size: 2.1rem;
  font-weight: 900;
  color: #2193b0;
  letter-spacing: 2px;
  line-height: 1.3;
}

#thought-box {
  margin-top: 2.2rem;
  padding: 1.3rem 1rem;
  background: #e6f7ff;
  border-radius: 12px;
  color: #111;
  font-size: 1.4rem;
  font-style: italic;
  font-weight: 700;
  text-align: center;
  min-height: 54px;
  box-shadow: 0 1px 6px rgba(33,147,176,0.08);
}

@media (max-width: 800px) {
  .age-calc-box {
    padding: 1.2rem 0.5rem;
  }
  .age-calc-box h1 {
    font-size: 2rem;
  }
  .input-row {
    flex-direction: column;
    gap: 1.2rem;
  }
  .input-col {
    width: 100%;
  }
  select {
    font-size: 1.2rem;
    padding: 1rem 0.5rem;
  }
  button[type="submit"] {
    font-size: 1.2rem;
    padding: 1rem 0;
  }
  .result-line {
    font-size: 1.3rem;
  }
  #thought-box {
    font-size: 1.1rem;
  }
}
