/* ===================================================
   Programmatura Contact Form — pcf-form.css v1.0.0
   =================================================== */

:root {
  --pcf-accent:      #7FAEC2;
  --pcf-accent-dark: #5a97b3;
  --pcf-navy:        #0f2744;
  --pcf-border:      #d1dce8;
  --pcf-radius:      0.5rem;
  --pcf-font:        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.pcf-wrap {
  font-family: var(--pcf-font);
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.pcf-wrap *, .pcf-wrap *::before, .pcf-wrap *::after {
  box-sizing: inherit;
}

/* Grid */
.pcf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 600px) {
  .pcf-grid { grid-template-columns: 1fr; }
}

.pcf-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.pcf-full {
  margin-bottom: 1.25rem;
}

/* Labels */
.pcf-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a202c;
  display: block;
}

.pcf-req {
  color: var(--pcf-accent);
  margin-left: 2px;
}

/* Inputs */
.pcf-input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--pcf-border);
  border-radius: var(--pcf-radius);
  font-family: var(--pcf-font);
  font-size: 0.9375rem;
  color: #1a202c;
  background: #ffffff;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  appearance: none;
  -webkit-appearance: none;
}

.pcf-input:focus {
  border-color: var(--pcf-accent);
  box-shadow: 0 0 0 3px rgba(127, 174, 194, 0.18);
}

.pcf-input.pcf-input-error {
  border-color: #e53e3e;
}

/* Select arrow */
.pcf-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='none' stroke='%237FAEC2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.25rem;
  cursor: pointer;
}

/* Textarea */
.pcf-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Inline error text */
.pcf-error {
  font-size: 0.78rem;
  color: #e53e3e;
  min-height: 1em;
}

/* Submit button */
.pcf-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: var(--pcf-accent);
  color: #ffffff;
  border: 2px solid var(--pcf-accent-dark);
  border-radius: var(--pcf-radius);
  font-family: var(--pcf-font);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, transform 0.12s, opacity 0.18s;
  text-decoration: none;
}

.pcf-submit:hover {
  background: var(--pcf-accent-dark);
  border-color: var(--pcf-accent-dark);
}

.pcf-submit:active {
  transform: scale(0.98);
}

.pcf-submit:disabled,
.pcf-submit.pcf-loading {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Success state */
.pcf-success {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border: 1px solid #c6f6d5;
  background: #f0fff4;
  border-radius: var(--pcf-radius);
}

.pcf-success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  background: #c6f6d5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #276749;
}

.pcf-success-icon svg {
  width: 28px;
  height: 28px;
}

.pcf-success h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #276749;
  margin: 0 0 0.5rem;
}

.pcf-success p {
  font-size: 0.9rem;
  color: #2f855a;
  margin: 0;
  line-height: 1.6;
}
