:root{
  --zf-card: #ffffff;
  --zf-text: #252c3e;
  --zf-muted: rgba(37,44,62,.75);
  --zf-border: rgba(184,187,211,.9);
  --zf-shadow: 0 18px 40px rgba(13,20,33,.10);
  --zf-radius: 16px;
  --zf-focus: rgba(46,183,159,1);
  --zf-error: #f41033;
  --zf-btn: #CFAB5D; /* overridden via plugin settings */
}

/* Ensure all Zoho exports get the modern scope class (JS adds zf-modern) */
.zf-templateWidth.zf-modern{
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  padding: 22px 14px;
  box-sizing: border-box;
}

/* Card wrapper */
.zf-templateWidth.zf-modern .zf-templateWrapper{
  background: var(--zf-card);
  border-radius: var(--zf-radius);
  box-shadow: var(--zf-shadow);
  border: 1px solid rgba(184,187,211,.35);
  overflow: hidden;
}

/* Hide Zoho header block if present in export */
.zf-templateWidth.zf-modern .zf-tempHeadBdr{
  display: none !important;
}

/* Form row spacing */
.zf-templateWidth.zf-modern .zf-tempFrmWrapper{
  padding: 14px 18px;
  box-sizing: border-box;
  border-top: 1px solid rgba(184,187,211,.18);
}
.zf-templateWidth.zf-modern .zf-tempFrmWrapper:first-of-type{
  border-top: 0;
}
@media (min-width: 820px){
  .zf-templateWidth.zf-modern .zf-tempFrmWrapper{
    padding: 16px 34px;
  }
}

/* Labels */
.zf-templateWidth.zf-modern .zf-labelName{
  display:block;
  font-weight: 700;
  font-size: 15px;
  color: var(--zf-text);
  padding-bottom: 10px;
}

/* Mandatory star */
.zf-templateWidth.zf-modern .zf-important{
  color:#ff0000 !important;
  font-size:16px !important;
  font-weight:800;
  margin-left:4px;
}

/* Inputs & selects (16px prevents iOS zoom) */
.zf-templateWidth.zf-modern .zf-tempContDiv input[type="text"],
.zf-templateWidth.zf-modern .zf-tempContDiv textarea,
.zf-templateWidth.zf-modern .zf-form-sBox{
  width: 100% !important;
  background: #fff !important;
  border: 1px solid var(--zf-border) !important;
  border-radius: 14px !important;
  padding: 12px 14px !important;
  font-size: 16px !important;
  color: var(--zf-text) !important;
  height: 46px !important;
  box-sizing: border-box;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.zf-templateWidth.zf-modern .zf-tempContDiv input[type="text"]:focus,
.zf-templateWidth.zf-modern .zf-form-sBox:focus{
  outline: none !important;
  border-color: var(--zf-focus) !important;
  box-shadow: 0 0 0 4px rgba(46,183,159,.18) !important;
}

/* Sub-labels under inputs (First name, etc.) */
.zf-templateWidth.zf-modern .zf-name .zf-tempContDiv span label,
.zf-templateWidth.zf-modern .zf-phonefld span label,
.zf-templateWidth.zf-modern .zf-date .zf-tempContDiv span label,
.zf-templateWidth.zf-modern .zf-time .zf-tempContDiv span label{
  display:block;
  font-size: 13px;
  color: var(--zf-muted);
  padding-top: 8px;
}

/* Clean up floats from Zoho for mobile reliability */
.zf-templateWidth.zf-modern .zf-name .zf-tempContDiv span,
.zf-templateWidth.zf-modern .zf-phone .zf-tempContDiv span,
.zf-templateWidth.zf-modern .zf-time .zf-tempContDiv span{
  float:none !important;
  width:100% !important;
  margin-left:0 !important;
}

/* Error messages */
.zf-templateWidth.zf-modern .zf-errorMessage{
  color: var(--zf-error);
  font-size: 13px;
  padding-top: 10px;
}

/* Footer */
.zf-templateWidth.zf-modern .zf-fmFooter{
  text-align:center;
  padding: 14px 18px 28px;
}
@media (min-width: 820px){
  .zf-templateWidth.zf-modern .zf-fmFooter{
    padding: 14px 34px 34px;
  }
}

/* Submit button colour */
.zf-templateWidth.zf-modern .zf-submitColor,
.zf-templateWidth.zf-modern button.zf-submitColor{
  background: var(--zf-btn) !important;
  color: #111111 !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  min-width: 240px;
  padding: 13px 38px !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
}

.zf-templateWidth.zf-modern .zf-submitColor:hover{
  opacity: .92;
  transform: scale(1.02);
}

.zf-templateWidth.zf-modern .zf-submitColor:disabled{
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

/* Flatpickr input should match */
.zf-templateWidth.zf-modern .flatpickr-input{
  background:#fff !important;
}

/* Minor: remove visual clutter around time symbols if present */
.zf-templateWidth.zf-modern .zf-symbols{
  display:none !important;
}