@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

.faa-form-wrap {
  font-family: 'Montserrat', sans-serif;
  width: 100%;
}

/* ── CARD STYLE (default) ── */
.faa-style-card .faa-form-inner {
  background: #fff;
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.06);
}

/* ── FLAT STYLE ── */
.faa-style-flat .faa-form-inner {
  background: transparent;
  padding: 0;
}

/* ── FILLED STYLE ── */
.faa-style-filled .faa-form-inner {
  background: var(--faa-color, #009688);
  border-radius: 18px;
  padding: 32px;
}
.faa-style-filled label { color: rgba(255,255,255,0.9) !important; }
.faa-style-filled input,
.faa-style-filled textarea,
.faa-style-filled select {
  background: rgba(255,255,255,0.15) !important;
  border-color: rgba(255,255,255,0.3) !important;
  color: #fff !important;
}
.faa-style-filled input::placeholder,
.faa-style-filled textarea::placeholder { color: rgba(255,255,255,0.5) !important; }
.faa-style-filled .faa-submit-btn {
  background: #fff !important;
  color: var(--faa-color, #009688) !important;
}

/* ── GRID ── */
.faa-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.faa-form-field.faa-w-full { grid-column: 1 / -1; }
.faa-form-field.faa-w-half { grid-column: span 1; }

/* ── LABELS ── */
.faa-form-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #666;
  margin-bottom: 6px;
}
.faa-req { color: var(--faa-color, #009688); margin-left: 2px; }

/* ── INPUTS ── */
.faa-form-field input[type="text"],
.faa-form-field input[type="email"],
.faa-form-field input[type="tel"],
.faa-form-field input[type="number"],
.faa-form-field input[type="date"],
.faa-form-field input[type="url"],
.faa-form-field textarea,
.faa-form-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: #1a1a1a;
  background: #fafafa;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  box-sizing: border-box;
  outline: none;
}
.faa-form-field input:focus,
.faa-form-field textarea:focus,
.faa-form-field select:focus {
  border-color: var(--faa-color, #009688);
  background: #fff;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--faa-color, #009688) 12%, transparent);
}
.faa-form-field input.faa-error,
.faa-form-field textarea.faa-error {
  border-color: #e53935;
  box-shadow: 0 0 0 3px rgba(229,57,53,0.1);
}
.faa-form-field textarea { resize: vertical; min-height: 100px; }

/* ── CHECKBOX ── */
.faa-checkbox-label {
  display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
}
.faa-checkbox-label input[type="checkbox"] {
  width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px;
  accent-color: var(--faa-color, #009688); cursor: pointer;
}
.faa-checkbox-label span { font-size: 13px; color: #555; line-height: 1.5; }

/* ── RADIO ── */
.faa-radio-group { display: flex; flex-direction: column; gap: 8px; }
.faa-radio-label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.faa-radio-label input[type="radio"] {
  width: 16px; height: 16px; accent-color: var(--faa-color, #009688); cursor: pointer;
}
.faa-radio-label span { font-size: 13px; color: #555; }

/* ── SUBMIT BUTTON ── */
.faa-form-footer { display: flex; flex-direction: column; gap: 12px; }
.faa-submit-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%;
  padding: 15px 28px;
  background: var(--faa-color, #009688);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s;
  letter-spacing: 0.02em;
}
.faa-submit-btn:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
.faa-submit-btn:disabled { opacity: 0.7; cursor: wait; transform: none; }

/* ── MESSAGES ── */
.faa-form-msg {
  font-size: 13px; font-weight: 600; padding: 10px 14px;
  border-radius: 8px; display: none;
}
.faa-form-msg.error   { background: #fff0f0; color: #c00; border: 1px solid #fcc; }
.faa-form-msg.success { background: #f0fff8; color: #1a7a4a; border: 1px solid #b7ebd4; }

/* ── SUCCESS BOX ── */
.faa-success-box {
  text-align: center; padding: 40px 20px;
}
.faa-success-icon { font-size: 52px; margin-bottom: 16px; }
.faa-success-text { font-size: 16px; color: #333; line-height: 1.6; font-weight: 500; }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .faa-form-grid { grid-template-columns: 1fr; }
  .faa-form-field.faa-w-half { grid-column: 1 / -1; }
  .faa-style-card .faa-form-inner,
  .faa-style-filled .faa-form-inner { padding: 20px; }
}
