/* CPFBA shared online forms styling */

.form-container {
  max-width: 850px;
  margin: 30px auto;
}

.form-section {
  background: #fff;
  border: 1px solid #dce3e7;
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(16,24,32,.05);
}

.form-section h2 {
  margin: 0 0 22px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e8edef;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 14px;
  border: 1px solid #bcc8d0;
  border-radius: 10px;
  font: inherit;
  background: #fff;
  color: #102030;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid #dba52d;
  outline-offset: 1px;
}

.form-field textarea {
  min-height: 110px;
  resize: vertical;
}

.form-full {
  grid-column: 1 / -1;
}

.form-required {
  color: #c62828;
}

.form-submit {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

.form-submit button {
  cursor: pointer;
  font-size: 16px;
}

.signature-pad {
  width: 100%;
  height: 200px;
  border: 2px dashed #bcc8d0;
  border-radius: 10px;
  background: #fff;
  touch-action: none;
}

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

  .form-section {
    padding: 20px;
  }

  .form-submit button {
    width: 100%;
  }
}
