/* ── Reset ── */
.recf-window *, .recf-window *::before, .recf-window *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Wrapper ── */
.recf-window {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(30,80,30,.15), 0 4px 16px rgba(30,80,30,.08);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Title Bar ── */
.recf-title-bar {
  background: #1c1c1e;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.recf-traffic-lights {
  display: flex;
  align-items: center;
  gap: 7px;
}

.recf-dot {
  display: inline-block;
  width: 13px;
  height: 13px;
  border-radius: 50%;
}
.recf-red    { background: #ff5f57; border: 1px solid #e0443e; }
.recf-yellow { background: #febc2e; border: 1px solid #d4a017; }
.recf-green  { background: #28c840; border: 1px solid #1aab2e; }

.recf-title-bar-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: #e5e5e5;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.recf-title-bar-dots {
  display: flex;
  gap: 4px;
}
.recf-title-bar-dots span {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #666;
}

/* ── Card ── */
.recf-card {
  background: #fff;
  padding: 30px 32px 26px;
}

/* ── Messages ── */
.recf-success-msg {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 18px;
  font-size: 0.9rem;
  font-weight: 500;
}
.recf-error-msg {
  background: #fdecea;
  color: #c62828;
  border: 1px solid #ef9a9a;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 18px;
  font-size: 0.9rem;
}

/* ── Section Label ── */
.recf-section-label {
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  color: #7a9a7a;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* ── Tabs ── */
.recf-tabs {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.recf-tab {
  padding: 6px 16px;
  border-radius: 999px;
  border: 1.5px solid #ccdacc;
  background: transparent;
  color: #3a5c3a;
  font-family: inherit;
  font-size: 0.83rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
}
.recf-tab:hover  { border-color: #2e7d32; color: #2e7d32; }
.recf-tab.active {
  background: #2e7d32;
  border-color: #2e7d32;
  color: #fff;
  box-shadow: 0 2px 10px rgba(46,125,50,.25);
}

/* ── Grid ── */
.recf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  margin-bottom: 13px;
}

/* ── Fields ── */
.recf-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.recf-field label {
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  color: #3a5c3a !important;
  margin-bottom: 0 !important;
  line-height: 1.4 !important;
}
.recf-req { color: #e53935; margin-left: 2px; }

.recf-field input {
  padding: 14px 16px !important;
  border: 1.5px solid #dde8dd !important;
  border-radius: 9px !important;
  font-family: inherit !important;
  font-size: 0.95rem !important;
  color: #1a2e1a !important;
  background: #f8fbf8 !important;
  outline: none !important;
  transition: border-color 0.18s, box-shadow 0.18s !important;
  width: 100% !important;
  height: auto !important;
  line-height: 1.4 !important;
  box-shadow: none !important;
  margin: 0 !important;
}
.recf-field input::placeholder { color: #aabcaa !important; }
.recf-field input:focus {
  border-color: #2e7d32 !important;
  box-shadow: 0 0 0 3px rgba(46,125,50,.10) !important;
  background: #fff !important;
}
.recf-field input.recf-input-error {
  border-color: #e53935 !important;
  box-shadow: 0 0 0 3px rgba(229,57,53,.12) !important;
}

/* ── Full-width field ── */
.recf-field-full {
  margin-bottom: 13px;
}

/* ── Select / Dropdown ── */
.recf-select {
  padding: 14px 40px 14px 16px !important;
  border: 1.5px solid #dde8dd !important;
  border-radius: 9px !important;
  font-family: inherit !important;
  font-size: 0.95rem !important;
  color: #1a2e1a !important;
  background: #f8fbf8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%232e7d32' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center !important;
  background-size: 11px !important;
  outline: none !important;
  width: 100% !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  cursor: pointer !important;
  height: auto !important;
  line-height: 1.4 !important;
  margin: 0 !important;
  box-shadow: none !important;
  transition: border-color 0.18s, box-shadow 0.18s !important;
}
.recf-select:focus {
  border-color: #2e7d32 !important;
  box-shadow: 0 0 0 3px rgba(46,125,50,.10) !important;
  background-color: #fff !important;
}
.recf-select.recf-input-error {
  border-color: #e53935 !important;
  box-shadow: 0 0 0 3px rgba(229,57,53,.12) !important;
}
.recf-select option[value=""] { color: #aabcaa; }

/* ── Checkbox ── */
.recf-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 14px 0 18px;
}
.recf-checkbox-row input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  accent-color: #2e7d32;
  cursor: pointer;
  flex-shrink: 0;
}
.recf-checkbox-row label {
  font-size: 0.79rem;
  color: #4a6a4a;
  line-height: 1.5;
  cursor: pointer;
}
.recf-checkbox-row a { color: #2e7d32; text-decoration: underline; text-underline-offset: 2px; }

/* ── Submit Button ── */
.recf-btn-submit {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.97rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0.02em;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  box-shadow: 0 3px 14px rgba(46,125,50,.28);
  margin-bottom: 11px;
}
.recf-btn-submit:hover    { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(46,125,50,.32); }
.recf-btn-submit:active   { transform: translateY(0); }
.recf-btn-submit:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

/* ── WhatsApp Button ── */
.recf-btn-whatsapp {
  width: 100%;
  padding: 12px;
  background: transparent;
  color: #2e7d32;
  border: 1.5px solid #b2d8b4;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.18s, border-color 0.18s;
  margin-bottom: 14px;
}
.recf-btn-whatsapp:hover { background: #f0f8f0; border-color: #2e7d32; }

/* ── Badge & Footer ── */
.recf-faster-badge {
  text-align: center;
  font-size: 0.72rem;
  color: #7a9a7a;
  margin-bottom: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.recf-footer-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.69rem;
  color: #9ab29a;
}
.recf-footer-tags span::before { content: '• '; }

/* ── Responsive ── */
@media (max-width: 480px) {
  .recf-grid { grid-template-columns: 1fr; }
  .recf-card { padding: 24px 16px 20px; }
}
