.dasmed-quote {
  max-width: 100%;
  margin: 0 auto;
  font-family: Montserrat;
}
.dq-form {
  display: block;
}
.dq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.dq-card {
  background: #f7fbff;
  border: 1px solid #e1efff;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.dq-card h3 {
  margin: 0 0 16px;
  color: #0b63a5;
  font-weight: 700;
}
.dq-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.dq-card label {
  display: block;
  font-weight: 600;
  color: #122;
  margin-bottom: 12px;
}
.dq-card label span {
  color: #000;
  margin-left: 4px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}
.dq-card input[type="text"],
.dq-card input[type="email"],
.dq-card input[type="tel"],
.dq-card input[type="number"],
.dq-card input[type="datetime-local"],
.dq-card textarea,
.dq-card select {
  width: 100%;
  margin-top: 10px;
  border: 1px solid #cfe0ff;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 15px;
  background: #fff;
}
.dq-card textarea {
  resize: vertical;
}
.dq-card input:focus,
.dq-card select:focus,
.dq-card textarea:focus {
  outline: 0;
  border-color: #0b63a5;
  box-shadow: 0 0 0 3px rgba(11, 99, 165, 0.15);
}
.dq-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0;
}
.dq-checkgroup {
  border: 1px dashed #cfe0ff;
  border-radius: 10px;
  padding: 12px;
  margin: 8px 0 12px;
  background: #f9fcff;
}
.dq-checkgroup legend {
  font-weight: 700;
  color: #073d68;
  padding: 0 6px;
}
.dq-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin: 18px 0;
}
.dq-btn {
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
}
.dq-btn-primary {
  background: #d44f3a;
  color: #fff;
}
.dq-btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}
.dq-result {
  margin-top: 8px;
  border-radius: 12px;
  padding: 14px 16px;
  background: #e8f4ff;
  border: 1px solid #cfe5ff;
  font-weight: 700;
  color: #073d68;
}
.dq-result:empty { display: none; }
.dasmed-quote .hidden { display: none; }
.dq-card-wide {
  grid-column: 1/-1;
}
.dq-card.dq-half {
  grid-column: span 1;
}

/* Modal */
.dq-modal.hidden {
  display: none;
}
.dq-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
}
.dq-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}
.dq-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(520px, 92vw);
  background: #fff;
  border: 1px solid #e1efff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.dq-modal__dialog h3 {
  margin: 0 0 10px;
  color: #0b63a5;
}
.dq-modal__dialog label {
  display: block;
  font-weight: 600;
  color: #122;
  margin: 12px 0;
}
.dq-modal__dialog input[type="text"] {
  width: 100%;
  margin-top: 8px;
  border: 1px solid #cfe0ff;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 16px;
}
.dq-modal__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 10px;
}
.dq-modal__msg {
  margin-top: 8px;
  color: #073d68;
  font-weight: 600;
}

/* Validation */
.dq-error {
  border-color: #e54646 !important;
  box-shadow: 0 0 0 3px rgba(229, 70, 70, 0.15) !important;
}

/* Mobile */
@media (max-width: 900px) {
  .dq-grid {
    grid-template-columns: 1fr;
  }
  .dq-card.dq-half {
    grid-column: 1/-1;
  }
}
@media (max-width: 640px) {
  .dq-row {
    grid-template-columns: 1fr;
  }
}

#czas_trwania_h {
  background-color: #dedede;
}

/* Podgląd wyceny */
.dq-preview-mass-event,
.dq-preview-standard {
  background: #f7fbff;
  border: 1px solid #e6eef8;
  border-radius: 12px;
  padding: 16px;
  margin: 12px 0;
}

.dq-preview-mass-event h4,
.dq-preview-standard h4 {
  margin: 0 0 12px 0;
  color: #0b63a5;
  font-size: 16px;
  font-weight: 700;
}

.dq-teams-preview p {
  margin: 6px 0;
  color: #333;
  font-size: 14px;
}

.dq-teams-preview p strong {
  color: #0b63a5;
}

.dq-mass-event-note {
  background: #fff;
  border: 1px solid #cfe3f4;
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 12px;
}

.dq-mass-event-note small {
  color: #666;
  font-size: 12px;
  line-height: 1.4;
}

/* Responsywność dla podglądu */
@media (max-width: 640px) {
  .dq-preview-mass-event,
  .dq-preview-standard {
    padding: 12px;
  }

  .dq-preview-mass-event h4,
  .dq-preview-standard h4 {
    font-size: 15px;
  }
}
