.vpm-form-wrapper {
  max-width: 780px;
  margin: 0 auto;
}

.vpm-form-header {
  text-align: center;
  margin-bottom: 2rem;
}
.vpm-form-header h2 {
  font-size: 1.8rem;
  color: #1a5653;
  margin-bottom: 0.3em;
}
.vpm-form-subtitle {
  font-size: 1rem;
  color: #555;
}
.vpm-form-info {
  font-size: 0.85rem;
  color: #888;
  margin-top: 0.3em;
}

fieldset {
  border: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
legend {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a5653;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #1a5653;
  margin-bottom: 1rem;
  width: 100%;
  display: block;
}

.vpm-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1.25rem;
  margin-bottom: 0.5rem;
}
.vpm-col { display: flex; flex-direction: column; }
.vpm-col--small { max-width: 140px; }

.vpm-row label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.25rem;
}

.vpm-form-wrapper input[type="text"],
.vpm-form-wrapper input[type="email"],
.vpm-form-wrapper input[type="tel"],
.vpm-form-wrapper input[type="date"],
.vpm-form-wrapper select,
.vpm-form-wrapper textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
}
.vpm-form-wrapper input:focus,
.vpm-form-wrapper select:focus,
.vpm-form-wrapper textarea:focus {
  outline: none;
  border-color: #1a5653;
  box-shadow: 0 0 0 3px rgba(26, 86, 83, 0.1);
}
.vpm-form-wrapper input.vpm-error,
.vpm-form-wrapper select.vpm-error {
  border-color: #d63638;
  box-shadow: 0 0 0 3px rgba(214, 54, 56, 0.1);
}

/* Radio cards */
.vpm-radio-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.vpm-radio-card {
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  position: relative;
}
.vpm-radio-card:hover {
  border-color: #1a5653;
  background: rgba(26, 86, 83, 0.02);
}
.vpm-radio-card.selected,
.vpm-radio-card:has(input:checked) {
  border-color: #1a5653;
  background: rgba(26, 86, 83, 0.04);
  box-shadow: 0 0 0 1px #1a5653;
}
.vpm-radio-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.vpm-radio-content strong {
  display: block;
  font-size: 1rem;
  color: #1a5653;
  margin-bottom: 0.3em;
}
.vpm-price {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: #d4a853;
  margin-bottom: 0.4em;
}
.vpm-radio-content small {
  font-size: 0.8rem;
  color: #777;
  line-height: 1.3;
}

.vpm-radio-card--featured {
  border-color: #d4a853;
}

/* Legal text */
.vpm-legal-text {
  font-size: 0.82rem;
  color: #555;
  line-height: 1.6;
  padding: 1rem;
  background: #faf8f4;
  border: 1px solid #e8e0d0;
  border-radius: 8px;
  margin-bottom: 1rem;
}

/* Checkboxes */
.vpm-checkbox-group { margin-top: 0.5rem; }
.vpm-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.5rem 0;
  cursor: pointer;
  font-size: 0.9rem;
}
.vpm-checkbox input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  accent-color: #1a5653;
}

/* Signature */
.vpm-sig-hint {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 0.5rem;
}
.vpm-signature-wrapper {
  border: 2px solid #ddd;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  cursor: crosshair;
}
.vpm-signature-wrapper canvas {
  display: block;
  width: 100%;
  touch-action: none;
}

.vpm-btn-link {
  background: none;
  border: none;
  color: #1a5653;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0.3rem 0;
  font-family: inherit;
}

/* Notes */
.vpm-note {
  font-size: 0.8rem;
  color: #888;
  margin-top: 0.5rem;
  line-height: 1.4;
}

/* Messages */
.vpm-message {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-weight: 500;
}
.vpm-message--error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.vpm-message--success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

/* Submit */
.vpm-submit-area {
  margin-top: 1.5rem;
}
.vpm-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.9rem 2rem;
  background: #1a5653;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}
.vpm-btn-primary:hover {
  background: #0f3836;
}
.vpm-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Success */
.vpm-success {
  text-align: center;
  padding: 3rem 2rem;
  background: #f0fdf4;
  border: 2px solid #bbf7d0;
  border-radius: 16px;
}
.vpm-success-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.vpm-success h3 {
  color: #166534;
  margin-bottom: 0.5rem;
}
.vpm-success p {
  color: #555;
  max-width: 500px;
  margin: 0 auto;
}

/* Responsive */
@media (max-width: 700px) {
  .vpm-row { grid-template-columns: 1fr; }
  .vpm-radio-group { grid-template-columns: 1fr; }
  .vpm-col--small { max-width: none; }
}
