/* ═══════════════════════════════════════════════════════════════════════════
   pluginContact — Frontend Styles
   Prefixat cu .cf- pentru a nu intra în conflict cu tema
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Wrapper ─────────────────────────────────────────────────────────────── */
.contact-form-wrapper {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 16px;
  font-family: inherit;
}

/* ── Error banner ────────────────────────────────────────────────────────── */
.cf-error {
  background: #fff5f5;
  border-left: 4px solid #e53e3e;
  color: #c53030;
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.6;
}

/* ── Success state ───────────────────────────────────────────────────────── */
.cf-success {
  text-align: center;
  padding: 48px 24px;
}

.cf-success__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #48bb78;
  color: #fff;
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 20px;
}

.cf-success__title {
  font-size: 22px;
  font-weight: 700;
  color: #2d3748;
  margin: 0 0 10px;
}

.cf-success__text {
  color: #718096;
  font-size: 16px;
  margin: 0 0 12px;
}

.cf-success__ref {
  color: #4a5568;
  font-size: 14px;
}

.cf-success__ref strong {
  font-family: monospace;
  background: #edf2f7;
  padding: 2px 6px;
  border-radius: 3px;
}

/* ── Form layout ─────────────────────────────────────────────────────────── */
.cf-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cf-row {
  margin-bottom: 20px;
}

.cf-row--half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.cf-row--submit {
  margin-top: 8px;
}

@media (max-width: 520px) {
  .cf-row--half {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ── Fields ──────────────────────────────────────────────────────────────── */
.cf-field {
  display: flex;
  flex-direction: column;
}

.cf-label {
  font-size: 14px;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 6px;
}

.cf-req {
  color: #e53e3e;
  font-weight: 700;
}

.cf-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  font-size: 15px;
  color: #2d3748;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
}

.cf-input:focus {
  outline: none;
  border-color: #4299e1;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
}

.cf-input::placeholder {
  color: #a0aec0;
}

.cf-select {
  background-image: 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='%23718096' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.cf-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

/* ── Submit button ───────────────────────────────────────────────────────── */
.cf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 32px;
  background: #2b6cb0;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  width: 100%;
}

.cf-btn:hover {
  background: #2c5282;
}

.cf-btn:active {
  transform: scale(0.99);
}

/* ── Pricing fields injected by pluginPricing ───────────────────────────── */
.cf-pricing-fields {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  background: #f7fafc;
}

.cf-pricing-fields .cf-pricing-title {
  font-size: 15px;
  font-weight: 700;
  color: #2d3748;
  margin: 0 0 16px;
}

/* ── Price display (pluginPricing) ───────────────────────────────────────── */
.cf-price-total {
  background: #ebf8ff;
  border: 1px solid #bee3f8;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cf-price-total__label {
  font-size: 14px;
  color: #2b6cb0;
  font-weight: 600;
}

.cf-price-total__amount {
  font-size: 24px;
  font-weight: 800;
  color: #2b6cb0;
}

.cf-price-total__note {
  font-size: 12px;
  color: #718096;
  margin-top: 2px;
}

.cf-price-total--hidden {
  display: none;
}
