/*
 * Styles for the Calculate My Future Height plugin.
 *
 * A warm purple palette differentiates this tool from other height and love
 * calculators while maintaining a clean, accessible layout.  Forms stack
 * vertically on narrow screens and align horizontally on wider ones.  A
 * subtle gradient background adds depth without compromising performance.
 */

:root {
  --cfh-primary: #9c27b0;          /* medium purple */
  --cfh-primary-dark: #7b1fa2;      /* darker purple */
  --cfh-bg: #faf5fc;                /* very light purple background */
  --cfh-text: #333;                 /* dark text for contrast */
  --cfh-border-radius: 6px;
  --cfh-max-width: 540px;
  --cfh-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

* {
  box-sizing: border-box;
}

.cfh-wrapper {
  margin: 0 auto;
  max-width: var(--cfh-max-width);
  padding: 20px;
  background-color: #fff;
  border-radius: var(--cfh-border-radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-family: var(--cfh-font);
  color: var(--cfh-text);
  /* gradient from top‑left purple to white */
  background-image: radial-gradient(circle at top left, #f2e5f7, var(--cfh-bg) 70%);
}

.cfh-heading {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.8rem;
  color: var(--cfh-primary-dark);
}

.cfh-subheading {
  margin-top: 20px;
  margin-bottom: 12px;
  font-size: 1.4rem;
  color: var(--cfh-primary);
}

.cfh-instructions {
  font-size: 0.9rem;
  margin-bottom: 12px;
  color: #555;
}

.cfh-section {
  margin-bottom: 20px;
}

.cfh-field-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 540px) {
  .cfh-field-group {
    flex-direction: row;
    gap: 16px;
  }
}

.cfh-field {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cfh-field label {
  font-weight: 600;
  margin-bottom: 4px;
}

.cfh-field input[type="number"] {
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: var(--cfh-border-radius);
  background-color: #fff;
}

.cfh-field-radio {
  display: flex;
  flex-direction: column;
}

.cfh-field-radio > div {
  display: flex;
  gap: 16px;
  margin-top: 4px;
}

.cfh-field-radio label {
  font-weight: normal;
}

.cfh-button {
  display: inline-block;
  width: 100%;
  margin-top: 16px;
  padding: 12px;
  font-size: 1rem;
  color: #fff;
  background-color: var(--cfh-primary);
  border: none;
  border-radius: var(--cfh-border-radius);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.cfh-button:hover,
.cfh-button:focus {
  background-color: var(--cfh-primary-dark);
}

.cfh-result {
  margin-top: 16px;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  min-height: 1.5em;
}

.cfh-disclaimer {
  font-size: 0.8rem;
  color: #666;
  text-align: center;
  margin-top: 20px;
  line-height: 1.4;
}