.quarry-form-wrapper {
  max-width: none;
  margin: 0;
  color: #111111;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.quarry-form-title {
  margin: 0 0 18px;
  font-size: 28px;
  font-weight: 700;
}

.quarry-material-list {
  display: grid;
  gap: 12px;
}

.quarry-material-card {
  background: #dfe2ec;
  border-radius: 6px;
  padding: 14px 14px 12px;
}

.quarry-material-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) minmax(180px, 0.9fr) minmax(180px, 0.9fr);
  gap: 14px 18px;
  align-items: center;
}

.quarry-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.quarry-field label {
  font-size: 14px;
}

.quarry-field-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quarry-form input,
.quarry-form select,
.quarry-form textarea,
.quarry-form button {
  font: inherit;
}

.quarry-form input,
.quarry-form select,
.quarry-form textarea {
  width: 100%;
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 3px;
  background: #ffffff;
  color: #111111;
}

.quarry-unit {
  min-width: 26px;
  font-size: 14px;
}

.quarry-card-actions {
  display: flex;
  align-items: end;
  justify-content: center;
}

.quarry-btn {
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.quarry-btn:hover {
  transform: translateY(-1px);
}

.quarry-btn:active {
  transform: translateY(0);
}

.quarry-btn-remove {
  width: 140px;
  height: 32px;
  background: #000000;
  color: #ffffff;
  font-weight: 600;
}

.quarry-add-wrap {
  display: flex;
  justify-content: center;
  padding: 16px 0 8px;
}

.quarry-btn-add {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f0a000;
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
}

.quarry-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
  margin-top: 22px;
}

.quarry-field-full {
  grid-column: 1 / -1;
}

.quarry-form textarea {
  min-height: 60px;
  resize: vertical;
}

.quarry-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 10px;
}

.quarry-btn-clear {
  min-height: 32px;
  background: #aeb3b8;
  color: #ffffff;
  font-weight: 600;
}

.quarry-btn-submit {
  min-height: 32px;
  background: #000000;
  color: #ffffff;
  font-weight: 600;
}

.quarry-feedback {
  min-height: 24px;
  margin-top: 12px;
  font-size: 14px;
}

.quarry-feedback.is-error {
  color: #b42318;
}

.quarry-feedback.is-success {
  color: #027a48;
}

.quarry-feedback.is-loading {
  color: #475467;
}

body.quarry-modal-open {
  overflow: hidden;
}

.quarry-summary {
  margin-top: 18px;
  background: #dfe2ec;
  border-radius: 4px;
  padding: 14px;
}

.quarry-summary h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.quarry-summary p {
  margin: 4px 0;
  font-size: 16px;
}

.quarry-empty-state {
  padding: 24px 14px;
  border: 2px dashed #c8ccd8;
  border-radius: 6px;
  color: #6d6d6d;
  text-align: center;
  background: rgba(255, 255, 255, 0.45);
}

.quarry-modal[hidden] {
  display: none;
}

.quarry-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.quarry-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.48);
}

.quarry-modal-dialog {
  position: relative;
  width: min(520px, calc(100vw - 32px));
  margin: 0;
  padding: 22px 20px 18px;
  border-radius: 6px;
  background: #dfe2ec;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
}

.quarry-modal-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
}

.quarry-modal-actions {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.quarry-modal-actions .quarry-btn-submit {
  min-width: 180px;
  padding: 10px 18px;
}

@media (max-width: 760px) {
  .quarry-material-grid,
  .quarry-contact-grid,
  .quarry-action-row {
    grid-template-columns: 1fr;
  }

  .quarry-card-actions {
    justify-content: flex-start;
  }

  .quarry-btn-remove {
    width: 100%;
  }
}
