/* =====================================================
   HIDE UNWANTED BLOGSPOT ELEMENTS
===================================================== */
#comments,
#respond,
.comment-form,
.title-wrap,
.comments-title,
.no-message {
  display: none !important;
}

/* =====================================================
   AGE CALCULATOR CONTAINER
===================================================== */
.age-calculator {
  font-family: Arial, Helvetica, sans-serif;
  padding: 24px 20px;
  background-color: #ffffff;
  border-radius: 10px;
  max-width: 600px;
  margin: 30px auto;
  border: 1px solid #e0e0e0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* =====================================================
   TITLE
===================================================== */
.age-calculator h2 {
  text-align: center;
  color: #333333;
  margin-bottom: 28px;
  font-size: 26px;
  font-weight: 700;
}

/* =====================================================
   LABELS
===================================================== */
.age-calculator label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #444444;
  font-size: 15px;
}

/* =====================================================
   INPUT FIELDS
===================================================== */
.age-calculator input[type="date"],
.age-calculator input[type="submit"] {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 18px;
  border: 2px solid #dddddd;
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color 0.3s, box-shadow 0.3s;
}

/* Focus state */
.age-calculator input[type="date"]:focus {
  outline: none;
  border-color: #4caf50;
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

/* =====================================================
   CALENDAR ICON COLOR (WebKit browsers)
===================================================== */
.age-calculator input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(40%) sepia(15%) saturate(3000%) hue-rotate(190deg);
  opacity: 0.9;
  cursor: pointer;
}

/* =====================================================
   SUBMIT BUTTON
===================================================== */
.age-calculator input[type="submit"] {
  background-color: #4caf50;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  border: none;
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.age-calculator input[type="submit"]:hover {
  background-color: #43a047;
}

/* =====================================================
   RESULT TEXT
===================================================== */
#ageResultText {
  margin-top: 30px;
  font-size: 18px;
  color: #333333;
  text-align: center;
  line-height: 1.6;
  font-weight: 500;
}

/* =====================================================
   TABLET RESPONSIVE (≤ 768px)
===================================================== */
@media (max-width: 768px) {
  .age-calculator {
    max-width: 90%;
    padding: 20px 18px;
  }

  .age-calculator h2 {
    font-size: 22px;
  }

  #ageResultText {
    font-size: 17px;
  }
}

/* =====================================================
   MOBILE RESPONSIVE (≤ 480px)
===================================================== */
@media (max-width: 480px) {
  .age-calculator {
    padding: 18px 16px;
    margin: 20px auto;
  }

  .age-calculator h2 {
    font-size: 20px;
    margin-bottom: 22px;
  }

  .age-calculator label {
    font-size: 14px;
  }

  .age-calculator input[type="date"],
  .age-calculator input[type="submit"] {
    font-size: 15px;
    padding: 11px 12px;
  }

  #ageResultText {
    font-size: 16px;
  }
}
