/* =============================================================
   FORMS — shared form-card styles for mywindowwashing.com
   Applied to all pages except /feedback.html
   ============================================================= */

/* ── Card wrapper ─────────────────────────────── */
.form-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,.06), 0 12px 40px rgba(19,48,71,.10);
  overflow: hidden;
  width: 100%;
  max-width: 640px;
  margin: 25px auto;
  display: block;
}

/* ── Card header ──────────────────────────────── */
.form-header {
  background: #133047;
  padding: 28px 32px 24px;
  position: relative;
  overflow: hidden;
}
.form-header::before {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: rgba(76,175,80,.18);
  border-radius: 50%;
}
.form-header::after {
  content: "";
  position: absolute;
  bottom: -30px; left: 60px;
  width: 90px; height: 90px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
}
.form-header h2 {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}
.form-header p {
  color: rgba(255,255,255,.75);
  font-size: 13.5px;
  margin-top: 6px;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}
.form-header .accent-bar {
  width: 36px;
  height: 3px;
  background: #4caf50;
  border-radius: 2px;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

/* ── Form body ────────────────────────────────── */
.form-body {
  padding: 28px 32px 32px;
}

/* ── Floating label field ─────────────────────── */
.cf-field {
  position: relative;
  margin-bottom: 20px;
}
.cf-field input,
.cf-field textarea {
  width: 100%;
  padding: 14px 38px 6px 14px;
  border: 1.5px solid #d0d8df;
  border-radius: 8px;
  font-size: 15px;
  font-family: "Open Sans", sans-serif;
  color: #222;
  background: #fff;
  outline: none;
  transition: border-color .22s, box-shadow .22s;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}
.cf-field textarea {
  resize: vertical;
  min-height: 100px;
  padding-top: 22px;
  line-height: 1.5;
}
.cf-field input:focus,
.cf-field textarea:focus {
  border-color: #133047;
  box-shadow: 0 0 0 3px rgba(19,48,71,.10);
}
.cf-field label {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #7a8fa0;
  pointer-events: none;
  transition: top .18s ease, font-size .18s ease, color .18s ease, transform .18s ease;
  padding: 0 2px;
  line-height: 1;
}
.cf-field--textarea label {
  top: 18px;
  transform: none;
}
.cf-field input:focus ~ label,
.cf-field input:not(:placeholder-shown) ~ label {
  top: 8px;
  transform: none;
  font-size: 10.5px;
  color: #133047;
  font-weight: 600;
  letter-spacing: .4px;
  text-transform: uppercase;
}
.cf-field textarea:focus ~ label,
.cf-field textarea:not(:placeholder-shown) ~ label {
  top: 5px;
  font-size: 10.5px;
  color: #133047;
  font-weight: 600;
  letter-spacing: .4px;
  text-transform: uppercase;
}

/* ── Required marker ──────────────────────────── */
.cf-req {
  color: #e53935;
  margin-left: 2px;
  font-weight: 700;
}

/* ── Field icon ───────────────────────────────── */
.cf-icon {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #b0bec5;
  pointer-events: none;
  transition: color .2s;
  display: flex;
  align-items: center;
}
.cf-field--textarea .cf-icon {
  top: 18px;
  transform: none;
}
.cf-field input:focus ~ .cf-icon,
.cf-field textarea:focus ~ .cf-icon {
  color: #133047;
}
.cf-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

/* ── Two-column row ───────────────────────────── */
.cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* ── Consent checkbox ─────────────────────────── */
.cf-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 13px;
  color: #555;
  line-height: 1.5;
}
.cf-consent input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin-top: 2px;
  accent-color: #133047;
  cursor: pointer;
}
.cf-consent a {
  color: #133047;
  text-decoration: underline;
}
.cf-consent a:hover {
  color: #4caf50;
}

/* ── Submit button ────────────────────────────── */
.btn-cf-submit {
  width: 100%;
  padding: 14px;
  background: #4caf50;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  font-family: "Open Sans", sans-serif;
  letter-spacing: .4px;
  cursor: pointer;
  transition: background .22s, transform .15s, box-shadow .22s;
  box-shadow: 0 4px 14px rgba(76,175,80,.35);
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-cf-submit:hover {
  background: #388e3c;
  box-shadow: 0 6px 20px rgba(76,175,80,.45);
  transform: translateY(-1px);
}
.btn-cf-submit:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(76,175,80,.3);
}
.btn-cf-submit svg {
  width: 18px;
  height: 18px;
}

/* ── Trust line ───────────────────────────────── */
.cf-trust {
  text-align: center;
  margin-top: 14px;
  font-size: 12px;
  color: #9eaab5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.cf-trust svg {
  color: #4caf50;
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

/* ── Responsive ───────────────────────────────── */
@media (max-width: 520px) {
  .form-header,
  .form-body {
    padding-left: 16px;
    padding-right: 16px;
  }
  .cf-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
