/* ─────────────────────────────────────────────────────────────────────────────
   Lalamove Delivery Form — Frontend Styles
   ───────────────────────────────────────────────────────────────────────────── */

.lalamove-form-wrap {
  max-width: 720px;
  margin: 0 auto;
  font-family: inherit;
}

/* ── Messages ──────────────────────────────────────────────────────────────── */
.lalamove-msg {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.5;
}

.lalamove-msg--success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.lalamove-msg--error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.lalamove-msg--info {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

/* ── Fieldsets ──────────────────────────────────────────────────────────────── */
.lalamove-fieldset {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  background: #fafafa;
}

.lalamove-fieldset legend {
  font-weight: 600;
  font-size: 15px;
  padding: 0 8px;
  color: #333;
}

/* ── Fields ─────────────────────────────────────────────────────────────────── */
.lalamove-field {
  margin-bottom: 14px;
  position: relative;
}

.lalamove-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #444;
  margin-bottom: 5px;
}

.lalamove-field .required {
  color: #e53935;
  margin-left: 2px;
}

.lalamove-field input[type="text"],
.lalamove-field input[type="tel"],
.lalamove-field select,
.lalamove-field textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
  box-sizing: border-box;
  transition: border-color 0.2s;
  background: #fff;
}

.lalamove-field input:focus,
.lalamove-field select:focus,
.lalamove-field textarea:focus {
  border-color: #f97316;
  outline: none;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.lalamove-field textarea {
  resize: vertical;
  min-height: 70px;
}

.lalamove-field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

/* ── Autocomplete suggestions ──────────────────────────────────────────────── */
.lalamove-suggestions {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #ccc;
  border-top: none;
  border-radius: 0 0 5px 5px;
  background: #fff;
  position: absolute;
  width: 100%;
  z-index: 9999;
  max-height: 220px;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

.lalamove-suggestions li {
  padding: 10px 12px;
  font-size: 13px;
  cursor: pointer;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
}

.lalamove-suggestions li:last-child {
  border-bottom: none;
}

.lalamove-suggestions li:hover {
  background: #fff7f0;
  color: #f97316;
}

/* ── Buttons ─────────────────────────────────────────────────────────────────── */
.lalamove-actions {
  margin-bottom: 16px;
}

.lalamove-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 24px;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, opacity 0.2s;
  text-decoration: none;
}

.lalamove-btn:active {
  transform: scale(0.97);
}

.lalamove-btn--primary {
  background: #f97316;
  color: #fff;
}

.lalamove-btn--primary:hover:not(:disabled) {
  background: #ea6c0c;
}

.lalamove-btn--success {
  background: #16a34a;
  color: #fff;
  margin-top: 12px;
}

.lalamove-btn--success:hover:not(:disabled) {
  background: #15803d;
}

.lalamove-btn--track {
  background: #2563eb;
  color: #fff !important;
  text-decoration: none !important;
}

.lalamove-btn--track:hover {
  background: #1d4ed8;
}

.lalamove-btn:disabled,
.lalamove-btn.is-loading {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── Quote result panel ──────────────────────────────────────────────────────── */
.lalamove-quote-result {
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 16px 20px;
  background: #fff7ed;
  margin-bottom: 16px;
}

.lalamove-quote-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.lalamove-quote-label {
  font-weight: 600;
  color: #7c3a00;
  font-size: 14px;
}

.lalamove-quote-fee {
  font-size: 22px;
  font-weight: 700;
  color: #f97316;
}

.lalamove-quote-service {
  font-size: 13px;
  color: #999;
  text-transform: capitalize;
}

/* ── Success panel ──────────────────────────────────────────────────────────── */
.lalamove-success-panel {
  text-align: center;
  padding: 32px 20px;
  border: 2px solid #bbf7d0;
  border-radius: 10px;
  background: #f0fdf4;
}

.lalamove-success-icon {
  font-size: 48px;
  margin-bottom: 8px;
}

.lalamove-success-panel h3 {
  font-size: 22px;
  color: #15803d;
  margin: 0 0 12px;
}

.lalamove-success-panel p {
  font-size: 14px;
  color: #444;
  margin: 4px 0;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 560px) {
  .lalamove-field-row {
    grid-template-columns: 1fr;
  }

  .lalamove-btn {
    width: 100%;
  }
}
