@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

/* =============================
   Design tokens
   ============================= */
:root {
  --font-family: "Montserrat", sans-serif;
  --text: #04135e;
  --bg: #e6e6e6;
  --primary: #16475a;
  --primary-hover: #0c2731;
  --border: #ccc;
  --shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  --radius: 15px;
  --radius-sm: 6px;
  --space-xs: 6px;
  --space-sm: 10px;
  --space-md: 16px;
  --space-lg: 24px;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  font-family: var(--font-family) !important;
  font-style: normal;
}

/* =============================
   Form container
   ============================= */
#crmWebToEntityForm {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 40px;
  background: var(--bg);
  color: var(--text);
  border-radius: var(--radius);
  font-size: 15px;
  box-shadow: var(--shadow);
  text-align: left;
}
#crmWebToEntityForm * {
  direction: ltr;
}
#crmWebToEntityForm .zcwf_title {
  margin: 0 0 var(--space-md);
  padding: 0;
  word-wrap: break-word;
}

/* =============================
   Rows & columns (flex)
   ============================= */
#crmWebToEntityForm .zcwf_row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin: var(--space-md) 0;
}
#crmWebToEntityForm .zcwf_col_lab {
  flex: 0 0 35%;
  font-weight: normal;
}
#crmWebToEntityForm .zcwf_col_lab label span {
  color: red;
  margin-left: 4px;
}
#crmWebToEntityForm .zcwf_col_fld {
  flex: 1 1 auto;
  position: relative;
}
#crmWebToEntityForm .zcwf_col_help {
  margin-left: var(--space-xs);
  font-size: 14px;
  max-width: 35%;
  word-break: break-word;
}

/* =============================
   Inputs
   ============================= */
#crmWebToEntityForm .zcwf_col_fld input[type="text"],
#crmWebToEntityForm .zcwf_col_fld input[type="email"],
#crmWebToEntityForm .zcwf_col_fld input[type="tel"],
#crmWebToEntityForm .zcwf_col_fld select,
#crmWebToEntityForm .zcwf_col_fld textarea {
  width: 100%;
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 15px;
  line-height: 1.4;
}
#crmWebToEntityForm .zcwf_col_fld textarea {
  resize: vertical;
  min-height: 88px;
}

/* =============================
   Force-hide Zoho hidden & token fields (robusto)
   ============================= */
#crmWebToEntityForm input[type="hidden"],
#crmWebToEntityForm input[name="xnQsjsdp"],
#crmWebToEntityForm input[name="xmIwtLD"],
#crmWebToEntityForm input[name="actionType"],
#crmWebToEntityForm input[name="zc_gad"],
#crmWebToEntityForm input[name="returnURL"],
#crmWebToEntityForm input[name="aG9uZXlwb3Q"] {
  display: none !important;
}
#crmWebToEntityForm .wfrm_fld_dpNn {
  display: none !important;
}

/* =============================
   Recaptcha
   ============================= */
#crmWebToEntityForm .g-recaptcha {
  max-width: 100%;
  overflow-x: auto;
  transform: scale(0.9);
  transform-origin: 0 0;
  margin-top: var(--space-sm);
}

/* =============================
   Buttons
   ============================= */
#crmWebToEntityForm input.zcwf_button {
  font-size: 14px;
  padding: 6px 14px;
  margin-right: 10px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  min-width: 90px;
}
#crmWebToEntityForm input[type="submit"].formsubmit {
  background-color: #04135e;
  color: #fff;
  padding: 6px 14px;
  min-width: 90px;
}
#crmWebToEntityForm input[type="submit"].formsubmit:hover {
  background-color: #020c3e;
}
#crmWebToEntityForm input[type="reset"].zcwf_button {
  background-color: #cfeaad;
  color: #313949;
}
#crmWebToEntityForm input[type="reset"].zcwf_button:hover {
  background-color: #9ad154;
}

/* =============================
   Utilities & legacy hooks kept
   ============================= */
#crmWebToEntityForm .cBoth:after {
  content: "";
  display: block;
  clear: both;
}
#crmWebToEntityForm .dIB {
  display: inline-block;
}
#crmWebToEntityForm.zcwf_lblLeft {
  padding: 25px;
}

/* =============================
   Responsive
   ============================= */
@media (max-width: 600px) {
  #crmWebToEntityForm {
    padding: var(--space-lg);
  }
  #crmWebToEntityForm .zcwf_row {
    flex-direction: column;
    align-items: stretch;
  }
  #crmWebToEntityForm .zcwf_col_lab,
  #crmWebToEntityForm .zcwf_col_fld,
  #crmWebToEntityForm .zcwf_col_help {
    flex: 1 1 auto;
    max-width: 100%;
  }
}
