:root {
  --primary: #0f766e;
  --bg: #f1f5f9;
  --card: #ffffff;
  --border: #cbd5e1;
  --text: #0f172a;
  --text-muted: #64748b;
  --danger: #b91c1c;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 14px;
  display: flex;
  justify-content: center;
}

.app-card {
  width: 100%;
  max-width: 440px;
  background: var(--card);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 10px;
  margin-bottom: 16px;
}

.app-header h1 {
  font-size: 18px;
  margin: 0;
  color: var(--primary);
}

.badge {
  font-size: 11px;
  background: #ccfbf1;
  color: var(--primary);
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: 600;
}

.field {
  margin-bottom: 12px;
}

label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
}

input, select, textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  background-color: #ffffff;
  color: var(--text);
}

textarea {
  min-height: 60px;
  resize: vertical;
  font-family: inherit;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.2);
}

.discount-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fef2f2;
  border: 1px dashed #fca5a5;
  padding: 10px;
  border-radius: 8px;
  margin: 14px 0 10px 0;
  cursor: pointer;
}

.discount-toggle input {
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 0;
}

.discount-toggle span {
  font-size: 13px;
  font-weight: 700;
  color: var(--danger);
}

.summary-card {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  padding: 12px;
  margin: 14px 0;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 5px;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 8px;
  margin-top: 6px;
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
}

.btn-submit {
  width: 100%;
  min-height: 50px;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-submit:disabled {
  background-color: #94a3b8;
  cursor: not-allowed;
}

#customPriceContainer {
  display: none;
  margin-top: 8px;
}

.notification {
  margin-top: 12px;
  font-size: 13px;
  text-align: center;
  font-weight: 600;
  display: none;
  padding: 10px;
  border-radius: 6px;
}

.notif-success {
  background: #dcfce7;
  color: #166534;
}

.notif-error {
  background: #fee2e2;
  color: #991b1b;
}