/* Mobile-first contact form styles */
.rbcf-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.rbcf-wrap .contact-form {
  width: 100%;
  max-width: 100%;
}

.rbcf-wrap .contact-form__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  width: 100%;
}

.rbcf-wrap .contact-form__col,
.rbcf-wrap .contact-form__btn {
  width: 100%;
  flex: 0 0 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.rbcf-wrap .contact-form input,
.rbcf-wrap .contact-form select,
.rbcf-wrap .contact-form textarea {
  display: block;
  width: 100% !important;
  max-width: 100%;
  background: #f3f3f3;
  border-radius: 0;
  border: 1px solid transparent;
  box-sizing: border-box;
  padding: 14px 16px;
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.4;
  color: #111111;
  min-height: 48px;
  -webkit-appearance: none;
  appearance: none;
}

.rbcf-wrap .contact-form input[type="tel"],
.rbcf-wrap .contact-form input[type="email"] {
  font-size: 16px;
}

.rbcf-wrap .contact-form select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23333333' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
  padding-right: 44px;
}

.rbcf-wrap .contact-form textarea {
  min-height: 120px;
  resize: vertical;
  padding-top: 14px;
  padding-bottom: 14px;
}

.rbcf-wrap .contact-form .btn,
.rbcf-wrap .contact-form button {
  display: block;
  width: 100% !important;
  max-width: 100%;
  min-height: 48px;
  background: #cf415b;
  border-radius: 32px;
  padding: 14px 24px;
  border: none;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.3s ease-out;
  margin-top: 4px;
  margin-bottom: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.rbcf-wrap .contact-form .btn:hover,
.rbcf-wrap .contact-form .btn:focus,
.rbcf-wrap .contact-form button:hover,
.rbcf-wrap .contact-form button:focus {
  background: #b8364d;
  color: #ffffff;
}

.rbcf-wrap .rbcf-select-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
  color: #111111;
}

.rbcf-wrap .rbcf-hp {
  position: absolute !important;
  left: -9999px !important;
  height: 0 !important;
  width: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.rbcf-wrap .rbcf-field-error {
  color: #d63638;
  font-size: 0.95rem;
  line-height: 1.4;
  margin: -8px 0 12px;
}

.rbcf-wrap .rbcf-input-error {
  border: 1px solid #d63638 !important;
}

.rbcf-wrap .rbcf-response {
  margin-top: 16px;
  font-size: 1rem;
  line-height: 1.5;
  word-break: break-word;
}

.rbcf-wrap .rbcf-response.is-success {
  color: #1d7a46;
}

.rbcf-wrap .rbcf-response.is-error {
  color: #d63638;
}

.rbcf-wrap .rbcf-form.is-submitting {
  opacity: 0.7;
  pointer-events: none;
}

.rbcf-wrap .rbcf-form.is-submitting .contact-form button {
  cursor: wait;
}

/* Tablet and desktop: two-column rows */
@media (min-width: 769px) {
  .rbcf-wrap .contact-form__row {
    gap: 0 15px;
  }

  .rbcf-wrap .contact-form__row .contact-form__col {
    flex: 0 0 calc(50% - 7.5px);
    max-width: calc(50% - 7.5px);
    width: calc(50% - 7.5px);
  }

  .rbcf-wrap .contact-form__row .contact-form__col:only-child {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
  }

  .rbcf-wrap .contact-form .btn,
  .rbcf-wrap .contact-form button {
    width: auto !important;
    min-width: 180px;
  }

  .rbcf-wrap .contact-form input,
  .rbcf-wrap .contact-form select,
  .rbcf-wrap .contact-form textarea {
    margin-bottom: 20px;
  }
}

/* Small phones: tighter spacing */
@media (max-width: 480px) {
  .rbcf-wrap .contact-form input,
  .rbcf-wrap .contact-form select,
  .rbcf-wrap .contact-form textarea {
    padding: 13px 14px;
    margin-bottom: 14px;
  }

  .rbcf-wrap .contact-form .btn,
  .rbcf-wrap .contact-form button {
    padding: 14px 20px;
  }
}
