/* assets/css/style-age.css */

    * {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
  color: #2c3e50;
  direction: rtl;
  line-height: 1.6;
}

main {
  max-width: 800px;
    margin: 2rem auto 3rem;
    padding: 0 1rem;
    background: #ffffff;
    border: 2px solid #3a997a;
    border-radius: 8px;
}

h1 {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 2rem;
    border-bottom: 3px solid #3a997a;
    padding-bottom: 0.3rem;
    color: #000000;
    font-weight: 700;
    margin-top: unset;
}

form {
  background: white;
  border-radius: 8px;
  padding: 1rem 1.5rem 2rem 1.5rem;
  box-shadow: 0 2px 8px rgba(58, 153, 122, 0.15);
}

fieldset {
  border: 1px solid #3a997a;
  padding: 12px 14px;
  border-radius: 6px;
  margin-bottom: 1rem;
  display: none;
}

legend {
  color: #3a997a;
  font-weight: 600;
  padding: 0 4px;
}

label {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  cursor: pointer;
}

input[type="radio"] {
  margin-left: 6px;
  cursor: pointer;
  vertical-align: middle;
}

select {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border-radius: 8px;
    border: 2px solid #3a997a;
    outline-offset: -2px;
    outline-color: transparent;
    transition: outline-color 0.35s ease-in-out, border-color 0.35s ease-in-out;
    box-sizing: border-box;
    direction: rtl;
    width: 100%;
}

section#hijriInput {
  margin-bottom: 1rem;
}

.form-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

button {
  cursor: pointer;
  background-color: #3a997a;
  border: none;
  padding: 0.6rem 1.6rem;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  transition: background-color 0.25s ease;
}

button:hover:not(:disabled) {
  background-color: #2a735b;
}

button:disabled {
  background-color: #9bcfbd;
  cursor: not-allowed;
}

/* Results styling */
#results {
  margin-top: 2rem;
  background: white;
  padding: 1rem 1.4rem;
  border-radius: 8px;
  box-shadow: 0 4px 9px rgba(58, 153, 122, 0.1);
  min-height: 120px;
}

.results-placeholder p {
  font-style: italic;
  color: #666;
  text-align: center;
}

.result-section {
  margin-bottom: 12px;
}

.result-label {
  font-weight: 700;
  color: #3a997a;
}

.result-text {
  margin-right: 0.5rem;
  font-size: 1.1rem;
  color: #34495e;
}

/* Headings for additional info */
h3 {
  border-bottom: 2px solid #3a997a;
  color: #3a997a;
  margin-top: 1.2rem;
  margin-bottom: 0.7rem;
  padding-bottom: 0.3rem;
}

/* Info sections (Usage instructions and FAQ) */
.info-section {
  max-width: 800px;
  margin: 2rem auto;
  background: #ffffff;
  border-radius: 8px;
  padding: 1rem 1.2rem;
  color: #000000;
}

.info-section h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.8rem;
  border-bottom: 2px solid #3a997a;
  padding-bottom: 0.2rem;
}

.info-section ul {
  margin-top: 0.6rem;
  list-style: inside disc;
  padding-right: 1.3rem;
}

.info-section dl dt {
  font-weight: 700;
  margin-top: 1rem;
}

.info-section dl dd {
  margin-right: 1rem;
  margin-left: 0;
  font-style: normal;
}

/* Responsive */
@media (max-width: 480px) {
  select {
    width: 100%;
    margin-bottom: 0.8rem;
  }
  .form-buttons {
    flex-direction: column;
  }
}