.freight-form {
  max-width: 720px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: #1f2937;
}

.freight-form .fpf-hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

.freight-form .fpf-notice {
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.freight-form .fpf-notice-success {
  background: #ecfdf5;
  border: 1px solid #10b981;
  color: #065f46;
}

.freight-form .fpf-notice-error {
  background: #fef2f2;
  border: 1px solid #ef4444;
  color: #991b1b;
}

.freight-form .fpf-notice-error ul {
  margin: 8px 0 0 18px;
}

.freight-form .form-section {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 24px 28px;
  margin-bottom: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.freight-form h3 {
  margin: 0 0 18px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #111827;
  border-bottom: 2px solid #2563eb;
  padding-bottom: 8px;
}

.freight-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.92rem;
  font-weight: 500;
  color: #374151;
}

.freight-form .sub-group {
  margin-bottom: 16px;
}

.freight-form .fpf-fields-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
}

.freight-form .fpf-fields-flex > .sub-group {
  flex: 1 0 100%;
}

.freight-form .fpf-fields-flex > .sub-group.fpf-w-half {
  flex: 1 0 calc(50% - 10px);
}

.freight-form .fpf-fields-flex > .sub-group.fpf-w-third {
  flex: 1 0 calc(33.333% - 14px);
}

.freight-form .fpf-field-description {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: #6b7280;
}

.freight-form .fpf-field-image {
  text-align: left;
}

.freight-form .fpf-field-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.freight-form .fpf-stepper {
  display: flex;
  align-items: stretch;
}

.freight-form .fpf-stepper input[type="number"] {
  border-radius: 0;
  text-align: center;
  -moz-appearance: textfield;
}

.freight-form .fpf-stepper input[type="number"]::-webkit-outer-spin-button,
.freight-form .fpf-stepper input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.freight-form .fpf-step-minus,
.freight-form .fpf-step-plus {
  width: 42px;
  flex: 0 0 auto;
  border: 1px solid #d1d5db;
  background: #f3f4f6;
  font-size: 1.1rem;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
}

.freight-form .fpf-step-minus {
  border-radius: 6px 0 0 6px;
  border-right: none;
}

.freight-form .fpf-step-plus {
  border-radius: 0 6px 6px 0;
  border-left: none;
}

.freight-form .fpf-step-minus:hover,
.freight-form .fpf-step-plus:hover {
  background: #e5e7eb;
}

@media (max-width: 700px) {
  .freight-form .fpf-fields-flex > .sub-group.fpf-w-half,
  .freight-form .fpf-fields-flex > .sub-group.fpf-w-third {
    flex: 1 0 100%;
  }
}

.freight-form input[type="text"],
.freight-form input[type="email"],
.freight-form input[type="tel"],
.freight-form input[type="number"],
.freight-form input[type="date"],
.freight-form input[type="file"],
.freight-form select,
.freight-form textarea {
  display: block;
  width: 100%;
  padding: 10px 12px;
  font-size: 0.95rem;
  font-weight: 400;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #f9fafb;
  transition: border-color 0.15s ease, background 0.15s ease;
  box-sizing: border-box;
}

.freight-form input:focus,
.freight-form select:focus,
.freight-form textarea:focus {
  outline: none;
  border-color: #2563eb;
  background: #ffffff;
}

.freight-form input:disabled,
.freight-form select:disabled,
.freight-form textarea:disabled {
  background: #f3f4f6;
  color: #9ca3af;
}

.freight-form textarea {
  min-height: 80px;
  resize: vertical;
}

.freight-form input[type="submit"] {
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.freight-form input[type="submit"]:hover {
  background: #1d4ed8;
}

@media (max-width: 600px) {
  .freight-form .form-section {
    padding: 18px 16px;
  }
}
