/* ============================================
   ZOHO MA FORMS — GENERIC EV CAMPER STYLING
   Wrap elk form in: <div class="ma-form"> ... </div>
   ============================================ */

.ma-form {
  font-family: 'Poppins', sans-serif;
  color: #454545;
}

/* ============================================
   CARD / CONTAINER (alleen #customForm is de card)
   ============================================ */

.ma-form #customForm {
  background: #ffffff;
  border: 1px solid #E5E5E5;
  border-radius: 20px;
  padding: 22px;
  max-width: 640px;
  margin: 0 auto;
  box-shadow: none;
}

/* Inner Zoho template wrapper: géén extra kader/schaduw */
.ma-form [class*="large_form_"][class$="_css"] {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ============================================
   HEADING & DESCRIPTION
   ============================================ */

.ma-form [changetype="SIGNUP_HEADER"],
.ma-form [changetype="SIGNUP_HEADER"] * {
  font-weight: 500;
  line-height: 1.2em;
  margin: 0 0 8px 0;
}

.ma-form #SIGNUP_DESCRIPTION {
  font-weight: 300;
  line-height: 1.8em;
  margin: 0 0 16px 0;
}

/* ============================================
   FIELDS LAYOUT
   ============================================ */

.ma-form .zcsffieldsdiv {
  display: grid;
  gap: 14px;
}

.ma-form .zcsffield > div {
  position: relative;
}

/* ============================================
   INPUTS & TEXTAREA
   ============================================ */

.ma-form input[type="text"],
.ma-form input[type="email"],
.ma-form input[type="tel"],
.ma-form input[type="number"],
.ma-form select,
.ma-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #E5E5E5;
  border-radius: 999px;
  padding: 12px 16px;
  font-size: 1rem;
  line-height: 1.4em;
  color: #454545;
  background-color: #f9f9f9;
}

/* Textarea iets minder rond */
.ma-form textarea {
  border-radius: 16px;
  min-height: 110px;
  resize: vertical;
}

/* Focus state */
.ma-form input:focus,
.ma-form select:focus,
.ma-form textarea:focus {
  outline: none;
  border-color: #457A72;
  box-shadow: 0 0 0 2px rgba(69, 122, 114, 0.18);
  background-color: #ffffff;
}

/* ============================================
   REQUIRED FOOTER TEXT (Zoho default)
   ============================================ */

.ma-form #REQUIRED_FIELD_TEXT {
  font-size: 0.9rem;
  color: #66615C;
  margin: 6px 0 0 0;
  text-align: right;
}

/* ============================================
   SUBMIT BUTTON — UNIVERSELE EV CAMPER STYLING
   ============================================ */

.ma-form #zcWebOptin,
.ma-form input[name="SIGNUP_SUBMIT_BUTTON"],
.ma-form input[type="submit"],
.ma-form button[type="submit"] {
  display: inline-block;
  width: auto;               /* niet meer full-width */
  border: 0;
  border-radius: 999px;
  padding: 1.1em 2em;        /* royale, maar niet te grote knop */
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.2em;
  cursor: pointer;
  background: #457A72;
  color: #ffffff;

  /* voorkomt dat Zoho hem weer 100% breed maakt */
  align-self: flex-start;
}

/* Hover consistent */
.ma-form #zcWebOptin:hover,
.ma-form input[name="SIGNUP_SUBMIT_BUTTON"]:hover,
.ma-form input[type="submit"]:hover,
.ma-form button[type="submit"]:hover {
  filter: brightness(0.95);
}

/* Alleen de banner-variant gebruikt flex layout */
.ma-form.ma-form-banner form {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

/* Compact form spacing herstellen */
.ma-form.ma-form--compact form > div {
  margin-bottom: 14px;
}

/* Compact form titel herstellen */
.ma-form.ma-form--compact #SIGNUP_HEADING {
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 10px;
}

/* Zorg dat alle veld-wrappers 100% breed blijven */
.ma-form form > div {
  width: 100%;
}

/* ============================================
   SUCCESS MESSAGE
   ============================================ */

.ma-form #Zc_SignupSuccess {
  border-radius: 16px;
  border-color: rgba(69, 122, 114, 0.35) !important;
}

/* ============================================
   EXTRA RUIMTE NA PRIVACY POLICY
   ============================================ */

.ma-form [name="privacyPolicy"] {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 20px;
}

.ma-form [name="privacyPolicy"] input[type="checkbox"] {
  margin-top: 4px;
}

/* ============================================
   MOBILE
   ============================================ */

@media (max-width: 640px) {
  .ma-form #customForm,
  .ma-form [class*="large_form_"][class$="_css"] {
    padding: 16px;
    border-radius: 18px;
  }
}

/* ============================================
   VERWIJDER EXTRA ZOHO OUTER FRAMES
   ============================================ */

/* Buitenste Zoho wrappers */
.ma-form [name="signupFormContainer"],
.ma-form [data-type="signupform"],
.ma-form #signupMainDiv,
.ma-form #SIGNUP_PAGE {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Alleen de échte card mag spacing hebben */
.ma-form #customForm {
  margin-top: 0;
}

/* ============================================
   REQUIRED ASTERISK – GECENTREERD T.O.V. INPUT
   ============================================ */

/* Directe wrapper rond input + asterisk is referentiepunt */
.ma-form .zcsffield > div {
  position: relative;
}

/* Asterisk in het midden rechts binnen het veld */
.ma-form .zcsffield > div span[name="SIGNUP_REQUIRED"] {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  line-height: 1;
  pointer-events: none;

  font-weight: 500;
  font-size: 0.95rem;
  color: #66615C;
}

/* Extra ruimte rechts in input zodat de asterisk niet overlapt */
.ma-form input[type="text"],
.ma-form input[type="email"],
.ma-form input[type="tel"],
.ma-form input[type="number"],
.ma-form select {
  padding-right: 40px;
}

/* ============================================
   COMPACT FORM – EXTRA SPACING & GROTERE TITEL
   ============================================ */

/* Titel gelijk trekken met grote formulier */
.ma-form.ma-form-compact #SIGNUP_HEADING {
  font-size: 1.4rem;      /* was ~1.1rem */
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 10px;
}

/* Meer ruimte tussen velden (ongeveer 50% van grote form) */
.ma-form.ma-form-compact form > div {
  margin-bottom: 14px;    /* was 10px */
}

/* Laatste veld geen extra marge */
.ma-form.ma-form-compact form > div:last-of-type {
  margin-bottom: 0;
}

/* Inputs in compact variant iets luchtiger */
.ma-form.ma-form-compact input[type="text"],
.ma-form.ma-form-compact input[type="email"] {
  padding: 12px 16px;     /* iets hoger dan eerder */
}

/* ============================================
   BANNER FORM – EMAIL + BUTTON OP ÉÉN REGEL
   ============================================ */

.ma-form.ma-form-banner form {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px; /* ruimte tussen input en button */
}

/* Zorg dat de wrapper-divs niet breken */
.ma-form.ma-form-banner form .SIGNUP_FLD {
  margin: 0;
  padding: 0;
  width: auto;
}

/* Emailveld vult de beschikbare ruimte */
.ma-form.ma-form-banner form .SIGNUP_FLD:first-child {
  flex: 1;
}

/* Button blijft compact */
.ma-form.ma-form-banner #zcWebOptin,
.ma-form.ma-form-banner input[name="SIGNUP_SUBMIT_BUTTON"] {
  width: auto;
  white-space: nowrap;
}

/* ============================================
   BANNER FORM – TITEL GELIJK AAN COMPACT
   ============================================ */

.ma-form.ma-form-banner #SIGNUP_HEADING {
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 10px;
}

/* Verberg Zoho's standaard close-icon in ALLE varianten */
#closeSuccess,
#closeSuccess img,
#zcOptinSuccessPopup span[onclick],
#zcOptinSuccessPopup img {
  display: none !important;
}

/* Verberg ook eventuele overlay-close elementen */
#zcOptinOverLay img,
#zcOptinOverLay span {
  display: none !important;
}

/* ============================================
   FIX: SELECT / PICKLIST WORDT AFGEKAPT
   (Zoho MA – native select dropdown)
   ============================================ */

/* Alles wat boven het select zit moet overflow: visible */
.ma-form,
.ma-form #customForm,
.ma-form #SIGNUP_PAGE,
.ma-form #signupMainDiv,
.ma-form #SIGNUP_BODY_ALL,
.ma-form #SIGNUP_BODY,
.ma-form .zcsffieldsdiv {
  overflow: visible !important;
}

/* Input wrapper mag nooit clippen */
.ma-form .zcinputbox {
  overflow: visible !important;
  position: relative;
}

/* Select zelf boven andere lagen */
.ma-form select {
  position: relative;
  z-index: 10;
}

/* ============================================
   FIX: SELECT VALUE WORDT NIET GOED GETOOND
   (tekst lijkt afgeknipt/te laag)
   ============================================ */

.ma-form .zcinputbox select,
.ma-form select {
  height: 48px;              /* 1 vaste hoogte */
  padding-top: 0;            /* voorkomt vertical clipping */
  padding-bottom: 0;         /* voorkomt vertical clipping */
  line-height: 48px;         /* centreert tekst in veel browsers */
}

/* als je de asterisk-padding-right gebruikt, behoud die */
.ma-form .zcinputbox select {
  padding-left: 16px;
  padding-right: 40px;
}

