/* quotes.css - стили для модального окна опросника "Get Free Quote" */

.quote-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.quote-modal.active {
  display: flex;
}

.quote-modal-content {
  background: #fff;
  border-radius: 12px;
  max-width: 410px;
  width: 92vw;
  padding: 28px 22px 22px 22px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  position: relative;
  animation: quoteFadeIn 0.25s;
}

@keyframes quoteFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.quote-modal-close {
  position: absolute;
  top: 12px; right: 18px;
  font-size: 24px;
  color: #888;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  padding: 2px 10px;
  transition: background 0.18s;
  z-index: 2;
}
.quote-modal-close:hover {
  background: #ededed;
}

.quote-modal-step {
  display: none;
}
.quote-modal-step.active {
  display: block;
}

.quote-modal h2 {
  font-size: 1.25em;
  margin-bottom: 18px;
  text-align: center;
}

.quote-form-group {
  margin-bottom: 18px;
}
.quote-form-label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}
.quote-delivery-error, .quote-accessories-error, .quote-client-error {
  text-align: center;
  margin: 14px 0 6px 0;
  font-size: 0.9em;
  display: block;
}

.quote-form-radio, .quote-form-checkbox {
  margin-right: 7px;
}

.quote-form-row {
  display: flex;
  gap: 30px;
  align-items: center;
}
.quote-form-accessories {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 8px;
  background: #f7fafd;
  border-radius: 10px;
  padding: 10px 14px;
  box-shadow: 0 1px 6px #0078d70c;
}
.quote-form-accessories label {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 7px;
  padding: 6px 12px;
  font-size: 1em;
  font-weight: 500;
  transition: background 0.18s, box-shadow 0.18s;
  cursor: pointer;
  box-shadow: 0 1px 4px #0001;
}

.quote-form-checkbox {
  accent-color: #0078d7;
  margin-right: 8px;
  width: 1.1em;
  height: 1.1em;
}
.quote-form-label[for="accessories"], .quote-form-group .quote-form-label:has(+ .quote-form-accessories) {
  font-size: 1.08em;
  font-weight: 600;
  margin-bottom: 7px;
  color: #1d2a38;
}
.quote-form-input, .quote-form-select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 7px 10px;
  border: 1px solid #c7c7c7;
  border-radius: 6px;
  font-size: 1em;
  margin-bottom: 2px;
}
.quote-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}
.quote-form-btn {
  background: #0078d7;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 20px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.18s;
}
.quote-form-btn:hover {
  background: #005fa3;
}

@media (max-width: 600px) {
  input[type="date"].quote-form-input {
    width: 50% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .quote-modal-content {
    max-width: 100vw;
    width: 99vw;
    padding: 12px 2vw 10px 2vw;
    border-radius: 10px;
  }
  .quote-modal-close {
    top: 6px; right: 8px;
    font-size: 22px;
    padding: 2px 8px;
  }
  .quote-form-btn {
    width: 100%;
    padding: 14px 0;
    font-size: 1.15em;
    border-radius: 9px;
  }
  .quote-form-group {
    margin-bottom: 10px;
  }
  .quote-form-label {
    font-size: 1em;
    margin-bottom: 4px;
  }
  .quote-form-input, .quote-form-select {
    font-size: 1.08em;
    padding: 11px 12px;
    border-radius: 8px;
  }
  .quote-form-row {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  .quote-form-accessories {
    flex-direction: column;
    gap: 8px;
    padding: 7px 7px;
  }
  .quote-form-accessories label {
    font-size: 1em;
    padding: 6px 8px;
    border-radius: 7px;
  }
}
