/*
 * Styles for the Love Calculator by Name and Date of Birth plugin.
 *
 * A fresh green colour palette distinguishes this calculator from the
 * other variants.  The form groups name and date inputs into rows on
 * larger screens but stacks them on smaller devices.  The layout is
 * designed to be responsive and accessible, with clear labels and
 * adequate spacing.  A soft radial gradient adds visual interest
 * without increasing download size.
 */

:root {
  --lcnd-primary: #388e3c; /* green */
  --lcnd-primary-dark: #2e7d32;
  --lcnd-bg: #f3f9f4;
  --lcnd-text: #333;
  --lcnd-border-radius: 6px;
  --lcnd-max-width: 480px;
  --lcnd-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

.lc-name-dob {
  margin: 0 auto;
  max-width: var(--lcnd-max-width);
  padding: 20px;
  background-color: #fff;
  border-radius: var(--lcnd-border-radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-family: var(--lcnd-font);
  color: var(--lcnd-text);
  background-image: radial-gradient(circle at top left, #d7eedd, var(--lcnd-bg) 70%);
}

.lc-heading {
  text-align: center;
  margin-bottom: 16px;
  font-size: 1.6rem;
  color: var(--lcnd-primary-dark);
}

.lc-instructions {
  text-align: center;
  margin-bottom: 16px;
  font-size: 0.95rem;
  color: #555;
}

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

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

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

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

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

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

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

.lc-result {
  margin-top: 20px;
  font-size: 1.3rem;
  font-weight: 600;
  text-align: center;
  min-height: 1.5em;
}

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