/* ===== M4U Quote Form - compact grid, embedded in hero (no page-level header offset needed) ===== */

/* Without border-box, width:100% + padding + border made every input wider
   than its column and overflow past the card edge — the recurring "crushed
   field" bug across every previous layout attempt. */
.m4u-rqf, .m4u-rqf *{
  box-sizing: border-box;
}

/* calculator panel (front-end) */
.m4u-rqf{
  width: min(640px, 100%);
  background: #ffffff;
  border-radius: 18px;
  color: #111827;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
  border: 1px solid rgba(17,24,39,0.10);
  position: relative;
  z-index: 20;
}

/* Center form on tablet/mobile */
@media (max-width: 991px){
  .m4u-rqf{
    margin-left: auto;
    margin-right: auto;
  }
}

.m4u-rqf__header{
  padding: 14px 16px 10px;

  /* was dark overlay -> light header */
  background: rgba(17,24,39,0.04);

  text-align: center;
}

.m4u-rqf__title{
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 14px;

  /* ensure black on white */
  color: #111827;
}

.m4u-rqf__notice{
  padding: 10px 14px;
  font-size: 13px;

  /* was white border -> dark border */
  border-top: 1px solid rgba(17,24,39,0.10);

  color: #111827;
}

.m4u-rqf__notice--success{
  background: rgba(34,197,94,0.14);
}

.m4u-rqf__form{
  padding: 12px 16px 16px;
}

.m4u-rqf__row{
  margin-bottom: 8px;
}

.m4u-rqf__label{
  display:block;
  font-size: 11.5px;
  opacity: .9;
  margin-bottom: 3px;

  /* black-ish label */
  color: #374151;
}

.m4u-rqf__input{
  width:100%;
  border-radius: 999px;

  /* was white border on dark bg -> gray border */
  border: 1px solid rgba(17,24,39,0.18);

  /* was translucent white -> solid white */
  background: #ffffff;

  /* black text */
  color: #111827;

  padding: 8px 12px;
  outline: none;
  font-size: 13px;
}

.m4u-rqf__input::placeholder{
  /* was white-ish -> gray */
  color: rgba(107,114,128,0.85);
}

.m4u-rqf__textarea{
  width:100%;
  border-radius: 12px;

  border: 1px solid rgba(17,24,39,0.18);
  background: #ffffff;
  color: #111827;

  padding: 8px 12px;
  outline: none;
  font-size: 13px;
  min-height: 52px;
  resize: vertical;
}

.m4u-rqf__group-title{
  margin: 2px 0 0;
  font-size: 11.5px;
  font-weight: 700;
  opacity: .95;
  text-transform: uppercase;
  letter-spacing: .04em;

  color: #111827;
}

.m4u-rqf__radios{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.m4u-rqf__radio{
  display:inline-flex;
  align-items:center;
  gap: 6px;
  font-size: 13px;
  opacity: .95;

  color: #111827;
}

.m4u-rqf__row--grid2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.m4u-rqf__submit{
  width:100%;
  border: none;
  border-radius: 999px;
  padding: 12px 14px;
  font-weight: 800;
  letter-spacing: .04em;
  background: linear-gradient(180deg, #d82020, #b51212);
  color:#fff;
  cursor:pointer;
  font-size: 14px;
}

.m4u-rqf__submit:hover{
  filter: brightness(1.05);
}

/* ✅ nice focus (optional but полезно на white) */
.m4u-rqf__input:focus,
.m4u-rqf__textarea:focus{
  border-color: rgba(216,32,32,0.65);
  box-shadow: 0 0 0 3px rgba(216,32,32,0.12);
}

/* ✅ Mobile: full width, stacked fields, tighter spacing */
@media (max-width: 560px){
  .m4u-rqf{
    border-radius: 14px;
  }

  .m4u-rqf__form{
    padding: 10px 12px 12px;
  }

  .m4u-rqf__row--grid2{
    grid-template-columns: 1fr;
  }
}