/* Cash.Land — Unified Land Offer Form Styles
   File: cl-offer-form.css
*/

/* Base wrapper */
.clof-wrap {
  max-width: 680px;
  margin: 2.5rem auto;
  padding: 1.75rem 1.5rem 2rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(15, 118, 110, 0.18); /* subtle teal border */
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  background: radial-gradient(circle at top left, rgba(16, 185, 129, 0.12), transparent 50%), #ffffff;
}

/* Heading + intro */
.clof-heading {
  font-size: 1.5rem;
  line-height: 1.25;
  margin: 0 0 0.5rem;
  font-weight: 650;
  color: #022c22; /* deep teal */
}

.clof-intro {
  margin: 0 0 1.5rem;
  color: #4b5563;
  font-size: 0.95rem;
}

/* Form layout */
.clof {
  margin: 0;
}

.clof fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

.clof legend {
  font-size: 1.05rem;
  font-weight: 600;
  color: #065f46;
  margin-bottom: 0.75rem;
}

/* Rows & grid */
.clof-row {
  margin-bottom: 0.9rem;
}

.clof-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem 1rem;
}

@media (min-width: 640px) {
  .clof-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Labels & helpers */
.clof-row > label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #111827;
  margin-bottom: 0.25rem;
}

.clof-help {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 0.15rem;
}

/* Inputs */
.clof-row input[type="text"],
.clof-row input[type="email"],
.clof-row input[type="tel"],
.clof-row input[type="number"],
.clof-row input:not([type]),
.clof-row select,
.clof-row textarea {
  display: block;
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid #d1d5db;
  padding: 0.55rem 0.7rem;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #111827;
  background-color: #ffffff;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
  box-sizing: border-box;
}

.clof-row textarea {
  min-height: 3.5rem;
  resize: vertical;
}

.clof-row input:focus,
.clof-row select:focus,
.clof-row textarea:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  border-color: #059669;
  box-shadow: 0 0 0 1px #05966930, 0 0 0 4px #a7f3d050;
}

/* Error states */
.clof-row input.is-error,
.clof-row select.is-error,
.clof-row textarea.is-error {
  border-color: #dc2626;
  background-color: #fef2f2;
}

.clof-error {
  margin-top: 0.2rem;
  font-size: 0.8rem;
  color: #b91c1c;
}

/* Radios and checkboxes */
.clof-radios {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.clof-radios label,
.clof-row label input[type="checkbox"],
.clof-row label input[type="radio"] {
  cursor: pointer;
}

.clof-row label input[type="checkbox"],
.clof-row label input[type="radio"] {
  margin-right: 0.4rem;
}

/* Multi-step actions */
.clof-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* Buttons */
.clof-actions button {
  border-radius: 9999px;
  padding: 0.55rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  line-height: 1.3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.clof-next,
.clof-submit {
  background: linear-gradient(135deg, #059669, #16a34a);
  color: #f9fafb;
  box-shadow: 0 12px 20px rgba(5, 150, 105, 0.25);
}

.clof-next:hover,
.clof-submit:hover {
  background: linear-gradient(135deg, #047857, #15803d);
}

.clof-next:disabled,
.clof-submit:disabled,
.clof-submit[aria-disabled="true"] {
  opacity: 0.7;
  cursor: not-allowed;
  box-shadow: none;
}

.clof-prev {
  background-color: #e5e7eb;
  color: #111827;
}

.clof-prev:hover {
  background-color: #d1d5db;
}

/* Message / announcement area */
.clof-msg {
  margin-top: 1rem;
  font-size: 0.9rem;
  min-height: 1rem;
  color: #065f46;
}

/* Review box */
.clof-review {
  border-radius: 0.75rem;
  border: 1px dashed #d1d5db;
  padding: 0.75rem 0.8rem;
  background-color: #f9fafb;
  font-size: 0.85rem;
  max-height: 220px;
  overflow-y: auto;
  margin-bottom: 0.75rem;
}

.clof-review .clof-row {
  margin-bottom: 0.45rem;
}

.clof-review strong {
  font-weight: 600;
  color: #111827;
}

/* Honeypot */
.clof-hp {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Turnstile */
.cf-turnstile {
  margin-top: 1rem;
}

/* Small screens */
@media (max-width: 480px) {
  .clof-wrap {
    margin: 1.5rem 1rem;
    padding: 1.4rem 1.1rem 1.6rem;
  }

  .clof-heading {
    font-size: 1.35rem;
  }

  .clof-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .clof-actions button {
    width: 100%;
  }
}
