/* Rhodes Wellness College: CampusLogin lead form theme
   Paste into the form's Custom CSS setting in CampusLogin.
   Matches the PCD landing page (Open Sans, warm grey ink, green CTA). */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

html, body {
  background: #FFFFFF !important;
  font-family: 'Open Sans', sans-serif !important;
  color: #4C4D49 !important;
  font-size: 15px !important;
  -webkit-font-smoothing: antialiased;
}

body, form, table, td, div, span, p, label {
  font-family: 'Open Sans', sans-serif !important;
}

label {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #343836 !important;
  letter-spacing: 0.01em;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  height: 46px;
  padding: 10px 14px !important;
  font-family: 'Open Sans', sans-serif !important;
  font-size: 15px !important;
  color: #343836 !important;
  background: #F7F6F1 !important;
  border: 1px solid rgba(52, 56, 54, 0.18) !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
  -webkit-appearance: none;
  appearance: none;
}

textarea { height: auto; min-height: 110px; }

select {
  padding-right: 40px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%234C4D49' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 12px 8px !important;
  cursor: pointer;
}

input:hover, select:hover, textarea:hover {
  border-color: rgba(52, 56, 54, 0.35) !important;
}

input:focus, select:focus, textarea:focus {
  outline: none !important;
  background-color: #FFFFFF !important;
  border-color: #51C5D0 !important;
  box-shadow: 0 0 0 3px rgba(81, 197, 208, 0.22) !important;
}

input[type="checkbox"] {
  width: 18px; height: 18px;
  margin: 2px 8px 0 0;
  accent-color: #8BC642;
  vertical-align: top;
  cursor: pointer;
}

/* Consent text next to the checkbox */
input[type="checkbox"] + label,
input[type="checkbox"] ~ span {
  font-weight: 400 !important;
  font-size: 12.5px !important;
  line-height: 1.5;
  color: #50514D !important;
}

/* Submit button: matches the green "Request Info" CTA */
input[type="submit"],
button,
.button, .btn {
  display: inline-block;
  width: auto !important;
  min-width: 140px;
  margin-top: 8px;
  padding: 14px 36px !important;
  font-family: 'Open Sans', sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
  text-transform: none !important;
  color: #343836 !important;
  background: #8BC642 !important;
  border: none !important;
  border-radius: 3px !important;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

input[type="submit"]:hover,
button:hover {
  background: #7DB637 !important;
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -20px rgba(52, 56, 54, 0.30);
}

/* Field wording: the form's own placeholders say "E-Mail:*" and
   "Mobile/SMS:*". Hide those and show "Email:*" / "Phone:*" in their
   place while the field is empty. */
#EmailDiv, #alternatephoneDiv { position: relative; }
#Email::placeholder, #alternatephone::placeholder { color: transparent !important; }
#EmailDiv:has(#Email:placeholder-shown)::after,
#alternatephoneDiv:has(#alternatephone:placeholder-shown)::after {
  position: absolute;
  left: 15px;
  top: 23px;
  transform: translateY(-50%);
  pointer-events: none;
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  line-height: 1;
  color: #757575;
}
#EmailDiv:has(#Email:placeholder-shown)::after { content: "Email:*"; }
#alternatephoneDiv:has(#alternatephone:placeholder-shown)::after { content: "Phone:*"; }

/* Required asterisks and error messages */
.required, .req, .error, .validation-error, [class*="error"] {
  color: #C0533A !important;
  font-size: 12.5px !important;
}

/* Tidy table-based layouts, if the form uses them */
table { width: 100% !important; border-collapse: collapse; }
td { padding: 0 0 14px 0 !important; vertical-align: top; }
