/* Relationship Republic Next.js overrides loaded after Webflow CSS. */

:root {
  --rr-navy: #062c3d;
  --rr-navy-deep: #052637;
  --rr-yellow: #ffd800;
  --rr-white: #ffffff;
}

.rr-contact-form {
  position: relative;
  width: 100%;
  color: var(--rr-white);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-family: Poppins, sans-serif;
}

.rr-contact-title {
  color: var(--rr-white);
  margin: 0 0 14px;
  font-family: Poppins, sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.12;
}

.rr-contact-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}

.rr-field {
  display: block;
  min-width: 0;
}

.rr-field input,
.rr-field textarea {
  width: 100%;
  box-sizing: border-box;
  color: var(--rr-white);
  background: transparent;
  border: 1px solid rgb(255, 255, 255);
  border-radius: 4px;
  outline: none;
  padding: 16px;
  font-family: Poppins, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3125;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.rr-field textarea {
  min-height: 112px;
  resize: vertical;
}

.rr-field input::placeholder,
.rr-field textarea::placeholder {
  color: var(--rr-white);
  opacity: 1;
}

.rr-field input:focus,
.rr-field textarea:focus {
  border-color: rgb(255, 255, 255);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.rr-field input[aria-invalid="true"],
.rr-field textarea[aria-invalid="true"] {
  border-color: var(--rr-yellow);
}

.rr-contact-submit {
  width: auto;
  max-width: 100%;
  color: #111111;
  background: var(--rr-white);
  border: 0;
  border-radius: 80px;
  padding: 13px 65px;
  font-family: Poppins, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.33;
  cursor: pointer;
  transition: transform 160ms ease, opacity 160ms ease;
}

.rr-contact-submit:hover {
  transform: translateY(-1px);
}

.rr-contact-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

/* Submit button + status share a wrapper. The status is absolutely positioned
   just under the button, so the post-submit message is always visible right
   where the user clicked, but never adds a row or shifts the form / presenter. */
.rr-contact-submit-wrap {
  position: relative;
  align-self: flex-start;
}

.rr-contact-status {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  margin: 0;
  width: max-content;
  max-width: 80vw;
  white-space: nowrap;
  color: var(--rr-white);
  font-family: Poppins, sans-serif;
  font-size: 14px;
  line-height: 1.35;
}

.rr-contact-status:empty {
  display: none;
}

.rr-contact-status[data-state="success"] {
  color: #bbf3d1;
}

.rr-contact-status[data-state="error"] {
  color: var(--rr-yellow);
}

/* The contact form is dropped into the ORIGINAL Webflow layout cells:
   - .div-block-14 grid cell on home/about/services/clients
   - .div-block-77 on /contact-us
   Webflow's own CSS drives the card + responsive grid (grid-3 / grid-26),
   so we only pad the form so it breathes inside the navy card. */

.section-6-contact .rr-contact-form {
  padding: 40px 10px;
}

.div-block-77 {
  display: flex;
}

.div-block-77 .rr-contact-form {
  width: 100%;
  padding: 24px;
  justify-content: center;
}

/* Keep name/phone side by side at every width and the title at 32px, matching
   the original Elfsight form (it never stacks the fields or shrinks the title). */

/* /contact-us card: keep the original Webflow two-column card (image left,
   form right) on desktop, and let it stack (image top, form bottom) on mobile
   exactly like the original (≤767px). */
@media screen and (min-width: 768px) {
  .container-37 .grid-26 {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }

  .container-37 .image-37 {
    height: 550px;
  }
}

.container-37 .div-block-77 {
  display: flex;
  padding: 0;
}

.container-37 .div-block-77 .w-embed {
  display: flex;
  align-items: center;
  width: 100%;
}

.container-37 .div-block-77 .rr-contact-form {
  width: 100%;
  box-sizing: border-box;
  padding: 40px 48px;
}

@media screen and (max-width: 767px) {
  .container-37 .image-37 {
    height: 300px;
    border-radius: 24px 24px 0 0;
  }
  .container-37 .div-block-77 .rr-contact-form {
    padding: 32px 24px 40px;
  }
}
