/* RonRov Quick Contact v1.2.4 */

.rrqc-scope{
  direction: rtl;
  unicode-bidi: plaintext;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden; /* contain any accidental overflow */
  font-family: inherit;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.rrqc-scope *,
.rrqc-scope *::before,
.rrqc-scope *::after{
  box-sizing: border-box;
}

/* Force theme font on form controls (browsers often don't inherit for inputs/buttons) */
.rrqc-scope input,
.rrqc-scope textarea,
.rrqc-scope select,
.rrqc-scope button{
  font-family: inherit !important;
}

.rrqc-card{
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 22px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  overflow: hidden; /* stop inner overflow from creating sideways scroll */
}

.rrqc-alert{
  padding: 12px 14px;
  border-radius: 12px;
  margin: 0 0 14px;
  font-weight: 700;
}
.rrqc-alert--success{background: rgba(22,163,74,0.10); border: 1px solid rgba(22,163,74,0.25);}
.rrqc-alert--error{background: rgba(220,38,38,0.10); border: 1px solid rgba(220,38,38,0.25);}

.rrqc-form{
  width: 100%;
  max-width: 100%;
}

.rrqc-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 14px;
}

@media (max-width: 720px){
  .rrqc-grid{grid-template-columns: 1fr;}
}

.rrqc-field{min-width: 0;}
.rrqc-field--full{margin-top: 14px;}

.rrqc-label{
  display: block;
  font-weight: 700;
  margin: 0 0 8px;
  color: #111;
}

.rrqc-req{color: #c02626;}

.rrqc-input,
.rrqc-textarea{
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid rgba(0,0,0,0.18);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  color: #111;
  outline: none;
  box-shadow: none;
  font-size: 16px;
}

.rrqc-textarea{resize: vertical;}

.rrqc-input:focus,
.rrqc-textarea:focus{
  border-color: rgba(0,0,0,0.45);
}

.rrqc-hint{
  margin-top: 8px;
  color: rgba(0,0,0,0.55);
  font-size: 13px;
}

/* Honeypot hidden */
.rrqc-hp{position:absolute !important; left:-9999px !important; width:1px !important; height:1px !important; opacity:0 !important;}

/* Privacy block - defensive resets against theme CSS */
.rrqc-privacy{
  margin: 14px 0 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.rrqc-check{
  display: flex !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.4 !important;

  /* hard reset against vertical text / transforms / floats */
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  transform: none !important;
  float: none !important;
  position: relative !important;
}

.rrqc-check input[type="checkbox"]{
  flex: 0 0 auto !important;
  width: 16px !important;
  height: 16px !important;
  margin: 3px 0 0 !important;
}

.rrqc-checktext{
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  display: block !important;

  /* stop letter-by-letter breaking */
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;

  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  transform: none !important;
}

.rrqc-link{
  color: #111;
  text-decoration: underline;
  font-weight: 700;
}

/* Captcha */
.rrqc-captcha{
  margin-top: 14px;
  width: 100%;
  max-width: 100%;
}

.rrqc-cap-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.rrqc-cap-refresh{
  border: 1px solid rgba(0,0,0,0.18);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 700;
}

.rrqc-cap-row{
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  flex-wrap: wrap;
}

.rrqc-cap-img{
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.18);
  background: #fff;
}

.rrqc-cap-input{
  flex: 1 1 260px;
}

/* Actions */
.rrqc-actions{
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

.rrqc-submit{
  border: 0;
  background: #111;
  color: #fff;
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.rrqc-arrow{opacity:0.85;}

/* Ensure no image inside scope can cause overflow */
.rrqc-scope img,
.rrqc-scope svg,
.rrqc-scope canvas{max-width:100%;}
