/* Match the quiet cream surfaces and light controls of the native Joomla forms. */
@media screen {
  .auth-body { background: #f7f5ef; color: #111820; }
  .auth-body h1, .auth-body .auth-card h1 { color: #111820; }
  .auth-title { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; }
  .auth-shell { max-width: 44rem; }
  .auth-shell.entry-shell { max-width: 980px; }
  .auth-card, .member-panel, .membership-print-card {
    background: transparent; border: 0; border-radius: 0; box-shadow: none !important;
  }
  .auth-card > .card-body, .member-panel > .card-body, .membership-print-card > .card-body { padding: 0 !important; }
  .auth-form, .membership-form, #competition-entry-form { border: 0 !important; padding: 0; }
  form .form-control, form .form-select, form .form-check-input,
  .auth-form .form-control, .membership-form input.form-control,
  .membership-form select.form-select, .membership-form textarea.form-control,
  .membership-form input.form-check-input {
    border: 1px solid #b7bdc3 !important; box-shadow: none; background-color: #fff; color: #111820;
  }
  form .form-control, form .form-select { min-height: 3rem; border-radius: .375rem; }
  .auth-form .form-label { font-size: 1rem; font-weight: 500; }
  form .form-control:focus, form .form-select:focus, form .form-check-input:focus,
  .membership-form input.form-control:focus, .membership-form select.form-select:focus,
  .membership-form textarea.form-control:focus, .membership-form input.form-check-input:focus {
    border-color: #997221 !important; box-shadow: 0 0 0 .2rem #efac1633; outline: 0;
  }
  form .form-check-input:checked { background-color: #8a6411; border-color: #8a6411 !important; }
  form .form-control[readonly] { background: #eeece7; }
  .auth-footer { background: transparent; color: #50565d; }
  .auth-footer a { color: #5e4a20; }
  .auth-body .text-white-50 { color: #50565d !important; }
  .membership-application-wrap .print-heading, .membership-application-wrap .club-use { display: none; }
  .membership-options .form-check { border: 1px solid #b7bdc3 !important; }
  .membership-record-summary { margin-bottom: 0; color: #50565d; }
  .dues-policy { background: transparent; border: 0; border-block: 1px solid #d6d2c8; padding: 1rem 0; }
  .dues-policy h2 { margin-bottom: 1rem; }
  .dues-schedule { margin: 0; }
  .dues-schedule > div { display: grid; grid-template-columns: 10rem minmax(0,1fr); gap: .5rem 1rem; margin-bottom: .85rem; }
  .dues-schedule dt { font-weight: 600; }
  .dues-schedule dd { margin: 0; }
  .dues-schedule dd span { display: block; color: #50565d; }
  .membership-intro { color: #111820; }
  .drop-zone { border: 2px dashed #898f94; background: #fff; }
  .drop-zone:hover, .drop-zone:focus, .drop-zone.is-dragging { border-color: #997221; }
  @media (max-width: 575.98px) {
    .auth-main > .container { padding-block: 2rem !important; }
    .dues-schedule > div { grid-template-columns: minmax(0,1fr); gap: .2rem; }
  }
}
/* A list prints without relying on horizontal scrolling. */
@media print {
  .dues-schedule > div { margin-bottom: .35rem; }
  .dues-schedule dt { font-weight: bold; }
  .dues-schedule dd { margin-left: 0; }
  .dues-schedule dd span { display: block; }
}

@media screen {
  form.was-validated .form-control:invalid, form.was-validated .form-select:invalid,
  form .form-control[aria-invalid="true"], form .form-select[aria-invalid="true"] { border-color: #b02a37 !important; }
}

@media screen and (max-width: 575.98px) {
  .membership-actions { display: grid !important; grid-template-columns: minmax(0, 1fr); width: 100%; }
  .membership-actions > .btn { width: 100%; white-space: normal; }
}
