/* CornLeaf Forms — Front-End CSS */

/* ── Wrapper ── */
.clf-wrap {
  background: #fff;
  border: 1px solid #e2e2e2;
  border-top: 4px solid #ccc;
  border-radius: 4px;
  padding: 36px 40px;
  max-width: 620px;
  margin: 0 auto;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  box-sizing: border-box;
}

/* Mr Corn — warm BBQ orange/charcoal */
.clf-mrcorn  { border-top-color: #e05c00; }
/* Maple Life — red */
.clf-maplelife { border-top-color: #cc1122; }

/* ── Header ── */
.clf-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  margin: 0 0 6px;
  color: #999;
}
.clf-mrcorn   .clf-eyebrow { color: #e05c00; }
.clf-maplelife .clf-eyebrow { color: #cc1122; }

.clf-title {
  font-size: 22px;
  font-weight: 700;
  color: #111;
  margin: 0 0 6px;
  line-height: 1.25;
}
.clf-subtitle {
  font-size: 14px;
  color: #666;
  margin: 0 0 24px;
  line-height: 1.6;
}

/* ── Layout ── */
.clf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.clf-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}
.clf-full { grid-column: 1 / -1; }

/* ── Labels ── */
.clf-field label {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}
.clf-req { color: #c00; margin-left: 2px; }

/* ── Inputs ── */
.clf-field input,
.clf-field select,
.clf-field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid #ddd;
  border-radius: 3px;
  font-family: inherit;
  font-size: 15px;
  color: #111;
  background: #fff;
  box-sizing: border-box;
  transition: border-color .15s, box-shadow .15s;
  appearance: none;
  -webkit-appearance: none;
}

.clf-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}

.clf-field textarea { resize: vertical; min-height: 100px; }

/* Focus */
.clf-mrcorn .clf-field input:focus,
.clf-mrcorn .clf-field select:focus,
.clf-mrcorn .clf-field textarea:focus {
  outline: none;
  border-color: #e05c00;
  box-shadow: 0 0 0 3px rgba(224,92,0,.10);
}
.clf-maplelife .clf-field input:focus,
.clf-maplelife .clf-field select:focus,
.clf-maplelife .clf-field textarea:focus {
  outline: none;
  border-color: #cc1122;
  box-shadow: 0 0 0 3px rgba(204,17,34,.10);
}

/* Error */
.clf-field input.clf-err,
.clf-field select.clf-err,
.clf-field textarea.clf-err { border-color: #cc1122; }

/* Honeypot */
.clf-hp { display: none !important; }

/* ── Message banner ── */
.clf-msg {
  margin-bottom: 14px;
  padding: 13px 16px;
  border-radius: 3px;
  font-size: 14px;
  line-height: 1.5;
  display: none;
}
.clf-msg.ok  { display: block; background: #f0faf4; border: 1.5px solid #2da05a; color: #1a6636; }
.clf-msg.err { display: block; background: #fff4f5; border: 1.5px solid #cc1122; color: #900; }

/* ── Button ── */
.clf-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 24px;
  border: none;
  border-radius: 3px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .03em;
  cursor: pointer;
  transition: background .15s, transform .1s;
  color: #fff;
}
.clf-btn:active  { transform: scale(.99); }
.clf-btn:disabled { opacity: .6; cursor: not-allowed; }

.clf-btn-mrcorn   { background: #e05c00; }
.clf-btn-mrcorn:hover   { background: #c04e00; }
.clf-btn-maplelife { background: #cc1122; }
.clf-btn-maplelife:hover { background: #aa0011; }

/* Spinner */
.clf-spinner {
  width: 15px; height: 15px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  display: none;
  animation: clf-spin .6s linear infinite;
  flex-shrink: 0;
}
.clf-btn.loading .clf-spinner { display: inline-block; }
.clf-btn.loading .clf-btn-text { opacity: .7; }
@keyframes clf-spin { to { transform: rotate(360deg); } }

.clf-privacy {
  font-size: 12px;
  color: #aaa;
  text-align: center;
  margin: 10px 0 0;
}
.clf-privacy a { color: inherit; }

/* ── Success screen ── */
.clf-success {
  text-align: center;
  padding: 32px 16px;
}
.clf-success-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
  color: #fff;
}
.clf-mrcorn   .clf-success-icon { background: #e05c00; }
.clf-maplelife .clf-success-icon { background: #cc1122; }
.clf-success h3 { font-size: 20px; color: #111; margin: 0 0 8px; }
.clf-success p  { font-size: 14px; color: #555; margin: 0; }

/* ── Responsive ── */
@media (max-width: 560px) {
  .clf-wrap { padding: 24px 18px; }
  .clf-row  { grid-template-columns: 1fr; gap: 0; }
  .clf-title { font-size: 19px; }
}
