/* ============================================================
   DanyCars — post-submit modal window + honeypot field.
   Include in <head> on the page that contains the form:
       <link rel="stylesheet" href="css/danycars-form.css">
   ============================================================ */

/* Honeypot field for bots — must be invisible, but NOT display:none
   (some bots skip fields hidden that way). */
.dc-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ---------- modal ---------- */
.dc-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.dc-modal.is-open {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

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

.dc-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.dc-modal__box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 16px;
  padding: 38px 34px 30px;
  text-align: center;
  box-shadow: 0 30px 70px -25px rgba(0, 0, 0, 0.45);
  -webkit-animation: dcModalIn 0.25s ease-out;
  animation: dcModalIn 0.25s ease-out;
}

@-webkit-keyframes dcModalIn {
  from { opacity: 0; -webkit-transform: translateY(14px) scale(0.97); }
  to   { opacity: 1; -webkit-transform: none; }
}
@keyframes dcModalIn {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

.dc-modal__icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #fff8e1;
  color: #ffc107;
  font-size: 32px;
  font-weight: 700;
  line-height: 62px;
}

.dc-modal--error .dc-modal__icon {
  background: #fdecea;
  color: #e04b3a;
}

.dc-modal__title {
  font-family: "Poppins", Arial, sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #212529;
  margin: 0 0 10px;
}

.dc-modal__text {
  font-size: 15px;
  line-height: 1.65;
  color: #666;
  margin: 0 0 26px;
}

.dc-modal__btn {
  display: inline-block;
  min-width: 150px;
  padding: 13px 28px;
  border: none;
  border-radius: 8px;
  background: #ffc107;
  color: #212529;
  font-family: "Poppins", Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.dc-modal__btn:hover,
.dc-modal__btn:focus {
  background: #e0a800;
  outline: none;
}

.dc-modal--error .dc-modal__btn {
  background: #212529;
  color: #ffffff;
}

.dc-modal--error .dc-modal__btn:hover,
.dc-modal--error .dc-modal__btn:focus {
  background: #000000;
}

/* Submit button appearance while the form is being sent */
form [type="submit"][disabled],
form button[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
}

@media (max-width: 575.98px) {
  .dc-modal__box {
    padding: 30px 22px 24px;
    border-radius: 14px;
  }
  .dc-modal__icon {
    width: 54px;
    height: 54px;
    line-height: 54px;
    font-size: 28px;
    margin-bottom: 16px;
  }
  .dc-modal__title { font-size: 20px; }
  .dc-modal__text  { font-size: 14.5px; margin-bottom: 22px; }
}