*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Arial, sans-serif;
  background: #f2f2f2;
  color: #2e2e2e;
  font-size: 14px;
  line-height: 1.6;
}

.pageHeader {
  background: #ffffff;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid #DB4327;
}
.logo { height: 56px; width: auto; }
.companyBlock p { font-size: 11px; color: #777; margin-top: 6px; line-height: 1.5; }
.sep { display: block; }
.formTitle { text-align: right; }
.formTitle h2 { font-size: 20px; color: #1a1a2e; font-weight: bold; }
.formTitle p { font-size: 11px; color: #DB4327; margin-top: 4px; }

.wrapper { max-width: 860px; margin: 0 auto; padding: 32px 20px 60px; }

.msj-top {
  background: #DB4327;
  color: #ffffff;
  padding: 11px 16px;
  border-left: 4px solid #DB4327;
  font-size: 13px;
  margin-bottom: 32px;
}
.msj-top a { color: #DB4327; }

.section { margin-bottom: 36px; }

.sectionHeader {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  border-bottom: 1px solid #d8d8d8;
  padding-bottom: 8px;
}
.stepNum {
  background: #DB4327;
  color: #ffffff;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  flex-shrink: 0;
  border-radius: 2px;
}
.sectionHeader h3 { font-size: 15px; font-weight: bold; color: #1a1a2e; }
.sectionHeader .badge { font-size: 11px; color: #DB4327; }

.noticeBox {
  background: #eef3fb;
  border: 1px solid #c2d4ef;
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.65;
  margin-bottom: 8px;
}
.noticeBox ul { padding-left: 16px; margin-top: 4px; }
.noticeBox li { margin-bottom: 3px; }

.warrantyBox {
  background: #fff4ec;
  border: 1px solid #f5c89a;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.7;
}
.warrantyBox p { margin-bottom: 10px; }
.warrantyBox ul { padding-left: 16px; margin-top: 4px; }
.warrantyBox li { margin-bottom: 3px; }

.fieldGroup {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.fieldGroup.wide { grid-template-columns: 1fr; }
.camp { display: flex; flex-direction: column; gap: 5px; }
.field.wide { grid-column: span 2; }

label {
  font-size: 12px;
  font-weight: bold;
  color: #777;
}
label .mandatory { color: #DB4327; }

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  border: 1px solid #d8d8d8;
  padding: 8px 10px;
  font-family: Arial, sans-serif;
  font-size: 16px; 
  color: #2e2e2e;
  background: #ffffff;
  width: 100%;
  border-radius: 2px;
  -webkit-appearance: none; 
  appearance: none;
}
input:focus, textarea:focus {
  outline: none;
  border-color: #DB4327;
}
textarea { resize: vertical; min-height: 60px; }

.tableWrap { overflow-x: auto; }
.productTable { width: 100%; border-collapse: collapse; font-size: 12px; }
.productTable th {
  background: #DB4327;
  color: #ffffff;
  padding: 8px 10px;
  text-align: left;
  font-size: 11px;
  white-space: nowrap;
}
.productTable th .mandatory { color: #DB4327; }
.productTable td {
  padding: 4px;
  border-bottom: 1px solid #d8d8d8;
  background: #ffffff;
}
.productTable tr:nth-child(even) td { background: #fafafa; }
.productTable td:first-child {
  width: 30px;
  text-align: center;
  color: #777;
  font-size: 12px;
}
.productTable input[type="text"] {
  border: 1px solid transparent;
  background: transparent;
  padding: 5px 7px;
  font-size: 12px;
}
.productTable input[type="text"]:focus {
  background: #ffffff;
  border-color: #DB4327;
}

.uploadZone {
  border: 2px dashed #d8d8d8;
  background: #ffffff;
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: border-color 0.15s;
}
.uploadZone:hover { border-color: #DB4327; }
.uploadZone.has-uploads { border-color: #27ae60; background: #f4fdf7; }
.uploadZone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.uploadZone .uploadIcon { font-size: 32px; display: block; margin-bottom: 8px; }
.uploadZone .uploadLabel { font-size: 14px; color: #777; }
.uploadZone .uploadLabel strong { color: #DB4327; }
.uploadZone .uploadHint { font-size: 11px; color: #aaa; margin-top: 4px; }

.photo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 1px solid #d8d8d8;
  border-radius: 2px;
}
.photo-count {
  font-size: 12px;
  color: #27ae60;
  margin-top: 8px;
  font-weight: bold;
  display: none;
}

.statementBox {
  background: #ffffff;
  border: 1px solid #d8d8d8;
  padding: 14px 16px;
  font-size: 13px;
  color: #777;
  font-style: italic;
  margin-bottom: 8px;
}
.statementBox label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-style: italic;
  font-weight: normal;
  color: #555;
  cursor: pointer;
  margin-bottom: 6px;
}
.statementBox input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #DB4327;
  cursor: pointer;
}

.errField { font-size: 11px; color: #DB4327; display: none; margin-top: 2px; }

.formActions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #d8d8d8;
}
.btn-clear {
  background: transparent;
  border: 1px solid #d8d8d8;
  color: #777;
  padding: 12px 20px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  cursor: pointer;
  border-radius: 2px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
}
.btn-clear:hover { border-color: #1a1a2e; color: #1a1a2e; }

.btn-submit {
  background: #DB4327;
  border: none;
  color: #ffffff;
  padding: 12px 28px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.15s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
}
.btn-submit:hover { background: #c03a21; }

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1a1a2e;
  color: #ffffff;
  padding: 12px 20px;
  font-size: 13px;
  border-left: 4px solid #DB4327;
  transform: translateY(60px);
  opacity: 0;
  transition: all 0.25s;
  z-index: 999;
  max-width: 320px;
}
.toast.show { transform: translateY(0); opacity: 1; }

button[title="Adauga rand"],
button[title="Sterge rand"] {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  margin: 0 2px;
  touch-action: manipulation; 
  -webkit-tap-highlight-color: transparent;
}

button[title="Adauga rand"] {
  background: #781700;
  color: #fff;
}

button[title="Sterge rand"] {
  background: #DB4327;
  color: #fff;
}

button[title="Adauga rand"]:hover { background: #27ae60; }
button[title="Sterge rand"]:hover { background: #DB4327; }

.notice-lead { margin-bottom: 8px; }

.miniatura {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 1px solid #d8d8d8;
  border-radius: 2px;
}

.productTable .cant-input { width: 50px; }
