
/* =========================================================
   RBAI52 — CONTACT US v1.7.0
   RemoteBridge AI | Premium responsive contact experience

   Design improvements:
   - Smaller, balanced typography
   - Tighter hero spacing and alignment
   - Refined blue / purple / cyan color system
   - Individual colorful support cards
   - Premium card borders, shadows and hover states
   - Improved form fields and status messages
   - Responsive desktop, tablet and mobile layouts
   - Scoped selectors to protect other WordPress components
========================================================= */

#rbai52-contact {
  --rb52-ink: #1b2540;
  --rb52-muted: #63718d;
  --rb52-line: #e1e7f5;
  --rb52-blue: #3167f5;
  --rb52-purple: #7444e8;
  --rb52-pink: #d33ea6;
  --rb52-cyan: #23bfe1;
  --rb52-green: #139b78;
  --rb52-surface: #ffffff;
  --rb52-soft: #f6f8ff;
  --rb52-radius: 22px;

  width: 100%;
  color: var(--rb52-ink);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.65;
  isolation: isolate;
}

#rbai52-contact *,
#rbai52-contact *::before,
#rbai52-contact *::after {
  box-sizing: border-box;
}

#rbai52-contact a {
  color: inherit;
}

#rbai52-contact button,
#rbai52-contact input,
#rbai52-contact select,
#rbai52-contact textarea {
  font-family: inherit;
}

#rbai52-contact h1,
#rbai52-contact h2,
#rbai52-contact h3,
#rbai52-contact p {
  margin-top: 0;
}

#rbai52-contact .rb52-wrap {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

/* =========================================================
   HERO — COMPACT, BALANCED AND COLORFUL
========================================================= */

#rbai52-contact .rb52-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(30px, 4vw, 52px);
  border: 1px solid #e1e7fb;
  border-radius: 28px;
  background:
    radial-gradient(
      circle at 4% 100%,
      rgba(35, 191, 225, 0.16),
      transparent 31%
    ),
    radial-gradient(
      circle at 95% 5%,
      rgba(146, 93, 248, 0.16),
      transparent 32%
    ),
    radial-gradient(
      circle at 50% 110%,
      rgba(255, 205, 237, 0.23),
      transparent 40%
    ),
    linear-gradient(125deg, #fbfdff 0%, #f2f5ff 54%, #fcf7ff 100%);
  box-shadow: 0 16px 42px rgba(39, 57, 119, 0.075);
}

#rbai52-contact .rb52-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -115px;
  left: 44%;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(113, 91, 235, 0.09);
  border-radius: 50%;
  pointer-events: none;
}

#rbai52-contact .rb52-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -65px;
  bottom: -100px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(116, 68, 232, 0.07),
    transparent 72%
  );
  pointer-events: none;
}

#rbai52-contact .rb52-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: center;
  gap: clamp(28px, 4vw, 48px);
}

#rbai52-contact .rb52-hero-grid > div,
#rbai52-contact .rb52-hero-grid > aside {
  min-width: 0;
}

/* Small, elegant eyebrow */

#rbai52-contact .rb52-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  padding: 8px 13px;
  border: 1px solid #dfe5ff;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #5946dc;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.085em;
  line-height: 1.5;
  text-transform: uppercase;
  box-shadow: 0 5px 16px rgba(56, 69, 153, 0.055);
}

#rbai52-contact .rb52-eyebrow::before {
  content: "";
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--rb52-cyan),
    var(--rb52-purple)
  );
  box-shadow: 0 0 0 3px rgba(98, 104, 239, 0.09);
}

/* Hero heading: intentionally smaller than the previous version */

#rbai52-contact .rb52-hero h1 {
  max-width: 570px;
  margin: 22px 0 17px;
  color: #1d2941;
  font-size: clamp(34px, 3.6vw, 49px);
  font-weight: 850;
  line-height: 1.12;
  letter-spacing: -0.042em;
  overflow-wrap: anywhere;
}

#rbai52-contact .rb52-gradient-text {
  color: #6545ed;
  background: linear-gradient(
    100deg,
    #2869f5 0%,
    #7041ec 53%,
    #d136a5 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

#rbai52-contact .rb52-lead {
  max-width: 520px;
  margin-bottom: 20px;
  color: #5b6b89;
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.8;
}

/* Hero action */

#rbai52-contact .rb52-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}

#rbai52-contact .rb52-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    filter 0.2s ease;
}

#rbai52-contact .rb52-btn-primary {
  color: #ffffff;
  background: linear-gradient(
    110deg,
    #2d66f5 0%,
    #6049ed 58%,
    #803ce5 100%
  );
  box-shadow: 0 9px 20px rgba(83, 70, 222, 0.19);
}

#rbai52-contact .rb52-btn-primary:hover {
  color: #ffffff;
  filter: saturate(1.08);
  transform: translateY(-2px);
  box-shadow: 0 13px 25px rgba(83, 70, 222, 0.25);
}

#rbai52-contact .rb52-btn-primary:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

#rbai52-contact .rb52-btn-secondary {
  color: #5140ce;
  border-color: #e1e4fa;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(35, 56, 110, 0.055);
}

#rbai52-contact .rb52-btn-secondary:hover {
  color: #4433bf;
  border-color: #c8c8fa;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(35, 56, 110, 0.09);
}

#rbai52-contact .rb52-btn:focus-visible {
  outline: 3px solid rgba(35, 191, 225, 0.8);
  outline-offset: 4px;
}

#rbai52-contact .rb52-button-mail {
  font-size: 17px;
  line-height: 1;
}

/* Trust pills */

#rbai52-contact .rb52-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
}

#rbai52-contact .rb52-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border: 1px solid rgba(218, 226, 246, 0.95);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: #52617e;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
}

/* =========================================================
   HERO SUPPORT PANEL
========================================================= */

#rbai52-contact .rb52-hero-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-width: 0;
  padding: clamp(20px, 2.5vw, 29px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 25px;
  color: #ffffff;
  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(171, 111, 255, 0.4),
      transparent 38%
    ),
    radial-gradient(
      circle at 0% 100%,
      rgba(30, 194, 235, 0.17),
      transparent 35%
    ),
    linear-gradient(145deg, #253c94 0%, #4930a9 55%, #6636b9 100%);
  box-shadow: 0 18px 38px rgba(51, 43, 143, 0.19);
}

#rbai52-contact .rb52-hero-card::before,
#rbai52-contact .rb52-hero-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 205px;
  height: 205px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

#rbai52-contact .rb52-hero-card::before {
  top: -130px;
  right: -100px;
}

#rbai52-contact .rb52-hero-card::after {
  bottom: -150px;
  left: -130px;
}

#rbai52-contact .rb52-card-label {
  position: relative;
  z-index: 1;
  margin-bottom: 15px;
  color: #c9f6ff;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
  line-height: 1.6;
  text-transform: uppercase;
}

#rbai52-contact .rb52-topic-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

/* Topic cards retain their existing button functionality */

#rbai52-contact .rb52-topic {
  appearance: none;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 16px;
  color: var(--rb52-ink);
  background: rgba(255, 255, 255, 0.97);
  text-align: left;
  box-shadow: 0 5px 14px rgba(15, 22, 77, 0.085);
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

#rbai52-contact .rb52-topic:hover {
  transform: translateY(-2px);
  border-color: #d4d4ff;
  box-shadow: 0 10px 20px rgba(15, 22, 77, 0.13);
}

#rbai52-contact .rb52-topic:focus-visible {
  outline: 3px solid #6ce7f3;
  outline-offset: 3px;
}

#rbai52-contact .rb52-topic-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-size: 21px;
  font-weight: 850;
}

#rbai52-contact .rb52-topic:nth-child(1) .rb52-topic-icon {
  color: #2861e8;
  background: linear-gradient(145deg, #e6efff, #d9e6ff);
}

#rbai52-contact .rb52-topic:nth-child(2) .rb52-topic-icon {
  color: #087d61;
  background: linear-gradient(145deg, #dffbed, #c8f6e3);
}

#rbai52-contact .rb52-topic:nth-child(3) .rb52-topic-icon {
  color: #b52381;
  background: linear-gradient(145deg, #ffebf5, #ffdaed);
}

#rbai52-contact .rb52-topic strong {
  display: block;
  color: #1d2944;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

#rbai52-contact .rb52-topic small {
  display: block;
  margin-top: 3px;
  color: #6a7894;
  font-size: 12px;
  line-height: 1.5;
}

#rbai52-contact .rb52-topic-num {
  color: #8a91f6;
  font-size: 15px;
  font-weight: 900;
  text-align: right;
}

/* =========================================================
   SECTION SPACING AND HEADINGS
========================================================= */

#rbai52-contact .rb52-section {
  padding-top: clamp(46px, 5.5vw, 66px);
}

#rbai52-contact .rb52-section-heading {
  max-width: 740px;
  margin: 0 auto 27px;
  text-align: center;
}

#rbai52-contact .rb52-kicker {
  margin-bottom: 8px;
  color: #6446dc;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.13em;
  line-height: 1.6;
  text-transform: uppercase;
}

#rbai52-contact .rb52-section h2 {
  margin-bottom: 11px;
  color: #202b46;
  font-size: clamp(25px, 2.6vw, 34px);
  font-weight: 850;
  line-height: 1.22;
  letter-spacing: -0.03em;
}

#rbai52-contact .rb52-section-heading p {
  margin-bottom: 0;
  color: var(--rb52-muted);
  font-size: 15px;
  line-height: 1.75;
}

/* =========================================================
   INFORMATION CARDS
========================================================= */

#rbai52-contact .rb52-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

#rbai52-contact .rb52-info-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: 23px;
  border: 1px solid var(--rb52-line);
  border-radius: 20px;
  background: linear-gradient(145deg, #ffffff, #f8faff);
  box-shadow: 0 8px 23px rgba(31, 57, 115, 0.045);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

#rbai52-contact .rb52-info-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(
    90deg,
    #3672f5,
    #8a48eb,
    #df55b1
  );
  opacity: 0.85;
}

#rbai52-contact .rb52-info-card:hover {
  transform: translateY(-3px);
  border-color: #d4dcf7;
  box-shadow: 0 14px 29px rgba(31, 57, 115, 0.08);
}

#rbai52-contact .rb52-info-card .rb52-iconbox {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 15px;
  border: 1px solid #dce6ff;
  border-radius: 15px;
  color: #3e54e8;
  background: linear-gradient(145deg, #edf2ff, #e1e8ff);
  font-size: 22px;
}

#rbai52-contact .rb52-info-card:nth-child(2) .rb52-iconbox {
  border-color: #c8f2e2;
  color: #087b61;
  background: linear-gradient(145deg, #e7fff3, #d5f8e8);
}

#rbai52-contact .rb52-info-card:nth-child(3) .rb52-iconbox {
  border-color: #f8d8eb;
  color: #b92b87;
  background: linear-gradient(145deg, #fff0f8, #ffe3f2);
}

#rbai52-contact .rb52-info-card h3 {
  margin-bottom: 8px;
  color: #24304c;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

#rbai52-contact .rb52-info-card p {
  margin-bottom: 0;
  color: var(--rb52-muted);
  font-size: 14px;
  line-height: 1.8;
}

/* =========================================================
   CONTACT FORM LAYOUT
========================================================= */

#rbai52-contact .rb52-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.85fr);
  align-items: start;
  gap: 20px;
}

#rbai52-contact .rb52-form-card,
#rbai52-contact .rb52-aside-card {
  min-width: 0;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--rb52-line);
  border-radius: 23px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(31, 57, 115, 0.06);
}

#rbai52-contact .rb52-form-card {
  position: relative;
  overflow: hidden;
}

#rbai52-contact .rb52-form-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    90deg,
    #2e6bf5,
    #7544e8,
    #d13da4
  );
}

#rbai52-contact .rb52-form-card h2 {
  margin-bottom: 8px;
  color: #222d49;
  font-size: clamp(23px, 2.3vw, 29px);
  font-weight: 850;
  line-height: 1.25;
}

#rbai52-contact .rb52-form-card > p,
#rbai52-contact .rb52-aside-card > p {
  color: var(--rb52-muted);
  font-size: 14px;
  line-height: 1.8;
}

/* Form fields */

#rbai52-contact .rb52-field {
  min-width: 0;
  margin-top: 17px;
}

#rbai52-contact .rb52-field label {
  display: block;
  margin-bottom: 7px;
  color: #2b3855;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

#rbai52-contact .rb52-field input,
#rbai52-contact .rb52-field select,
#rbai52-contact .rb52-field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #dbe3f3;
  border-radius: 12px;
  color: #202c47;
  background: #f8faff;
  font-size: 14px;
  line-height: 1.6;
  box-shadow: inset 0 1px 2px rgba(35, 55, 100, 0.02);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

#rbai52-contact .rb52-field input::placeholder,
#rbai52-contact .rb52-field textarea::placeholder {
  color: #8a96ad;
  opacity: 1;
}

#rbai52-contact .rb52-field select {
  cursor: pointer;
}

#rbai52-contact .rb52-field textarea {
  min-height: 145px;
  resize: vertical;
}

#rbai52-contact .rb52-field input:focus,
#rbai52-contact .rb52-field select:focus,
#rbai52-contact .rb52-field textarea:focus {
  outline: none;
  border-color: #8270f2;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(113, 87, 238, 0.13);
}

#rbai52-contact .rb52-help {
  margin-top: 7px;
  color: #6b7993;
  font-size: 12px;
  line-height: 1.7;
}

/* Submit area */

#rbai52-contact .rb52-form-card .rb52-actions {
  margin-top: 19px;
}

#rbai52-contact .rb52-form-card button[type="submit"] {
  min-width: 155px;
}

#rbai52-contact .rb52-form-card button[type="submit"]:disabled {
  opacity: 0.72;
  cursor: wait;
}

/* =========================================================
   FORM STATUS MESSAGES
========================================================= */

#rbai52-contact .rb52-status {
  display: none;
  margin-top: 16px;
  padding: 13px 15px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: 13px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

#rbai52-contact .rb52-status.is-visible {
  display: block;
  animation: rbai52-status-in 0.22s ease-out;
}

#rbai52-contact .rb52-status.is-success {
  border-color: #c7efdc;
  color: #116b50;
  background: linear-gradient(135deg, #e9fbf2, #f0fcf6);
}

#rbai52-contact .rb52-status.is-error {
  border-color: #f5cccc;
  color: #9c2e37;
  background: linear-gradient(135deg, #fff0f0, #fff7f7);
}

@keyframes rbai52-status-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   HELPFUL DETAILS PANEL
========================================================= */

#rbai52-contact .rb52-aside-card {
  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(157, 115, 249, 0.1),
      transparent 35%
    ),
    linear-gradient(145deg, #f4f8ff, #faf6ff);
}

#rbai52-contact .rb52-aside-card h3 {
  margin-bottom: 12px;
  color: #283451;
  font-size: clamp(21px, 2vw, 26px);
  font-weight: 850;
  line-height: 1.35;
}

#rbai52-contact .rb52-checklist {
  display: grid;
  gap: 13px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

#rbai52-contact .rb52-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #485875;
  font-size: 14px;
  line-height: 1.7;
}

#rbai52-contact .rb52-check {
  display: grid;
  flex: 0 0 25px;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid #c5f0dd;
  border-radius: 8px;
  color: #08785a;
  background: linear-gradient(145deg, #e3fff2, #d4f7e6);
  font-size: 12px;
  font-weight: 900;
}

#rbai52-contact .rb52-note {
  margin-top: 18px;
  padding: 14px 15px;
  border: 1px solid #e5dcff;
  border-left: 4px solid #7950e8;
  border-radius: 0 12px 12px 0;
  color: #566582;
  background: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  line-height: 1.8;
}

#rbai52-contact .rb52-note strong {
  color: #4536ba;
}

/* =========================================================
   RESOURCE LINKS
========================================================= */

#rbai52-contact .rb52-resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

#rbai52-contact .rb52-resource {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  min-width: 0;
  padding: 16px 17px;
  border: 1px solid var(--rb52-line);
  border-radius: 16px;
  background: linear-gradient(145deg, #ffffff, #f9faff);
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(31, 57, 115, 0.025);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

#rbai52-contact .rb52-resource:hover {
  transform: translateY(-2px);
  border-color: #d2d8fa;
  box-shadow: 0 9px 21px rgba(31, 57, 115, 0.07);
}

#rbai52-contact .rb52-resource > span:first-child {
  min-width: 0;
}

#rbai52-contact .rb52-resource strong {
  display: block;
  color: #283451;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}

#rbai52-contact .rb52-resource small {
  display: block;
  margin-top: 3px;
  color: var(--rb52-muted);
  font-size: 12px;
  line-height: 1.6;
}

#rbai52-contact .rb52-resource > span:last-child {
  flex: 0 0 auto;
  color: #7444e8;
  font-size: 19px;
  font-weight: 900;
}

/* =========================================================
   FAQ ACCORDION
========================================================= */

#rbai52-contact .rb52-faqs {
  display: grid;
  gap: 10px;
  max-width: 900px;
  margin-inline: auto;
}

#rbai52-contact .rb52-faqs details {
  overflow: hidden;
  padding: 16px 19px;
  border: 1px solid var(--rb52-line);
  border-radius: 15px;
  background: #ffffff;
  box-shadow: 0 4px 13px rgba(31, 57, 115, 0.025);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

#rbai52-contact .rb52-faqs details[open] {
  border-color: #d6d8fa;
  box-shadow: 0 7px 18px rgba(65, 59, 160, 0.055);
}

#rbai52-contact .rb52-faqs summary {
  position: relative;
  padding-right: 25px;
  color: #283451;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.65;
  cursor: pointer;
}

#rbai52-contact .rb52-faqs summary::marker {
  color: #7550e8;
}

#rbai52-contact .rb52-faqs details p {
  margin: 11px 0 0;
  color: var(--rb52-muted);
  font-size: 13px;
  line-height: 1.8;
}

/* =========================================================
   BOTTOM CALL TO ACTION
========================================================= */

#rbai52-contact .rb52-bottom-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin: 52px 0 23px;
  padding: clamp(24px, 3.5vw, 36px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 23px;
  color: #ffffff;
  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(209, 90, 240, 0.42),
      transparent 36%
    ),
    radial-gradient(
      circle at 0% 100%,
      rgba(33, 198, 233, 0.2),
      transparent 35%
    ),
    linear-gradient(110deg, #2e59e8, #5d3ddd 65%, #823acb);
  box-shadow: 0 13px 30px rgba(69, 60, 185, 0.15);
}

#rbai52-contact .rb52-bottom-cta h2 {
  margin-bottom: 7px;
  color: #ffffff;
  font-size: clamp(21px, 2.5vw, 29px);
  font-weight: 850;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

#rbai52-contact .rb52-bottom-cta p {
  max-width: 600px;
  margin-bottom: 0;
  color: #edf0ff;
  font-size: 14px;
  line-height: 1.75;
}

#rbai52-contact .rb52-bottom-cta .rb52-btn-secondary {
  flex-shrink: 0;
  border-color: rgba(255, 255, 255, 0.6);
  color: #4934bf;
  background: #ffffff;
}

/* Disclaimer */

#rbai52-contact .rb52-disclaimer {
  max-width: 850px;
  margin: 0 auto;
  padding: 0 0 22px;
  color: #77839b;
  font-size: 11px;
  line-height: 1.8;
  text-align: center;
}

/* =========================================================
   HERO CONTACT BUTTON
   Preserves the existing contact-scroll behavior.
========================================================= */

#rbai52-contact .rb52-actions-single {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}

#rbai52-contact #rbai52-contact-us {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  min-height: 49px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(
    110deg,
    #2d66f5,
    #6049ed 58%,
    #803ce5
  );
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0;
  box-shadow: 0 9px 20px rgba(83, 70, 222, 0.19);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

#rbai52-contact #rbai52-contact-us:hover {
  transform: translateY(-2px);
  box-shadow: 0 13px 25px rgba(83, 70, 222, 0.25);
}

#rbai52-contact #rbai52-contact-us:focus-visible {
  outline: 3px solid #23bfe1;
  outline-offset: 4px;
}

#rbai52-contact #rbai52-contact-us .rb52-button-mail {
  font-size: 17px;
  line-height: 1;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 960px) {
  #rbai52-contact .rb52-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
    gap: 25px;
  }

  #rbai52-contact .rb52-hero {
    padding: 30px;
  }

  #rbai52-contact .rb52-hero h1 {
    font-size: clamp(32px, 4vw, 40px);
  }

  #rbai52-contact .rb52-hero-card {
    padding: 20px;
  }

  #rbai52-contact .rb52-topic {
    grid-template-columns: 40px minmax(0, 1fr) 25px;
    gap: 10px;
    padding: 11px;
  }

  #rbai52-contact .rb52-topic-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 19px;
  }

  #rbai52-contact .rb52-topic strong {
    font-size: 14px;
  }

  #rbai52-contact .rb52-topic small {
    font-size: 11px;
  }

  #rbai52-contact .rb52-info-card {
    padding: 19px;
  }

  #rbai52-contact .rb52-contact-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
    gap: 16px;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {
  #rbai52-contact {
    font-size: 15px;
  }

  #rbai52-contact .rb52-wrap {
    width: calc(100% - 26px);
  }

  #rbai52-contact .rb52-hero {
    padding: 25px 20px;
    border-radius: 22px;
  }

  #rbai52-contact .rb52-hero-grid,
  #rbai52-contact .rb52-contact-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 25px;
  }

  #rbai52-contact .rb52-eyebrow {
    gap: 7px;
    padding: 7px 10px;
    font-size: 9px;
    letter-spacing: 0.07em;
  }

  #rbai52-contact .rb52-hero h1 {
    max-width: 100%;
    margin: 19px 0 14px;
    font-size: clamp(31px, 7.6vw, 42px);
    line-height: 1.13;
  }

  #rbai52-contact .rb52-lead {
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.8;
  }

  #rbai52-contact .rb52-actions,
  #rbai52-contact .rb52-actions-single {
    margin-top: 17px;
  }

  #rbai52-contact .rb52-pills {
    gap: 7px;
    margin-top: 16px;
  }

  #rbai52-contact .rb52-pill {
    padding: 5px 8px;
    font-size: 10px;
  }

  #rbai52-contact .rb52-hero-card {
    padding: 19px;
    border-radius: 20px;
  }

  #rbai52-contact .rb52-card-label {
    margin-bottom: 12px;
    font-size: 10px;
  }

  #rbai52-contact .rb52-topic-list {
    gap: 9px;
  }

  #rbai52-contact .rb52-topic {
    grid-template-columns: 40px minmax(0, 1fr) 25px;
    gap: 10px;
    padding: 10px;
    border-radius: 14px;
  }

  #rbai52-contact .rb52-topic-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 18px;
  }

  #rbai52-contact .rb52-topic strong {
    font-size: 13px;
  }

  #rbai52-contact .rb52-topic small {
    font-size: 11px;
  }

  #rbai52-contact .rb52-topic-num {
    font-size: 13px;
  }

  #rbai52-contact .rb52-section {
    padding-top: 42px;
  }

  #rbai52-contact .rb52-section-heading {
    margin-bottom: 21px;
  }

  #rbai52-contact .rb52-kicker {
    font-size: 10px;
  }

  #rbai52-contact .rb52-section h2 {
    font-size: clamp(23px, 6vw, 30px);
  }

  #rbai52-contact .rb52-section-heading p {
    font-size: 13px;
  }

  #rbai52-contact .rb52-info-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  #rbai52-contact .rb52-info-card {
    padding: 19px;
    border-radius: 17px;
  }

  #rbai52-contact .rb52-info-card .rb52-iconbox {
    width: 43px;
    height: 43px;
    margin-bottom: 12px;
    border-radius: 13px;
    font-size: 20px;
  }

  #rbai52-contact .rb52-info-card h3 {
    font-size: 16px;
  }

  #rbai52-contact .rb52-info-card p {
    font-size: 13px;
  }

  #rbai52-contact .rb52-form-card,
  #rbai52-contact .rb52-aside-card {
    padding: 20px 17px;
    border-radius: 19px;
  }

  #rbai52-contact .rb52-form-card h2 {
    font-size: 24px;
  }

  #rbai52-contact .rb52-form-card > p,
  #rbai52-contact .rb52-aside-card > p {
    font-size: 13px;
  }

  #rbai52-contact .rb52-field {
    margin-top: 15px;
  }

  #rbai52-contact .rb52-field label {
    font-size: 12px;
  }

  #rbai52-contact .rb52-field input,
  #rbai52-contact .rb52-field select,
  #rbai52-contact .rb52-field textarea {
    min-height: 46px;
    padding: 11px 12px;
    font-size: 14px;
  }

  #rbai52-contact .rb52-field textarea {
    min-height: 130px;
  }

  #rbai52-contact .rb52-help {
    font-size: 11px;
  }

  #rbai52-contact .rb52-form-card .rb52-actions {
    flex-direction: column;
    align-items: stretch;
  }

  #rbai52-contact .rb52-form-card button[type="submit"] {
    width: 100%;
  }

  #rbai52-contact .rb52-status {
    padding: 11px 12px;
    font-size: 12px;
  }

  #rbai52-contact .rb52-aside-card h3 {
    font-size: 21px;
  }

  #rbai52-contact .rb52-checklist li {
    font-size: 13px;
  }

  #rbai52-contact .rb52-note {
    font-size: 11px;
  }

  #rbai52-contact .rb52-resource-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  #rbai52-contact .rb52-resource {
    padding: 14px;
  }

  #rbai52-contact .rb52-resource strong {
    font-size: 13px;
  }

  #rbai52-contact .rb52-resource small {
    font-size: 11px;
  }

  #rbai52-contact .rb52-faqs details {
    padding: 14px;
    border-radius: 13px;
  }

  #rbai52-contact .rb52-faqs summary {
    font-size: 13px;
  }

  #rbai52-contact .rb52-faqs details p {
    font-size: 12px;
  }

  #rbai52-contact .rb52-bottom-cta {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
    margin: 39px 0 20px;
    padding: 23px 19px;
    border-radius: 19px;
  }

  #rbai52-contact .rb52-bottom-cta h2 {
    font-size: 22px;
  }

  #rbai52-contact .rb52-bottom-cta p {
    font-size: 13px;
  }

  #rbai52-contact .rb52-bottom-cta .rb52-btn-secondary {
    width: 100%;
  }

  #rbai52-contact .rb52-disclaimer {
    font-size: 10px;
  }
}

/* =========================================================
   SMALL MOBILE SCREENS
========================================================= */

@media (max-width: 380px) {
  #rbai52-contact .rb52-wrap {
    width: calc(100% - 20px);
  }

  #rbai52-contact .rb52-hero {
    padding: 20px 15px;
  }

  #rbai52-contact .rb52-hero h1 {
    font-size: 30px;
  }

  #rbai52-contact .rb52-hero-card {
    padding: 14px;
  }

  #rbai52-contact .rb52-topic {
    grid-template-columns: 35px minmax(0, 1fr) 22px;
    gap: 8px;
    padding: 9px;
  }

  #rbai52-contact .rb52-topic-icon {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }

  #rbai52-contact .rb52-topic strong {
    font-size: 12px;
  }

  #rbai52-contact .rb52-topic small {
    font-size: 10px;
  }

  #rbai52-contact .rb52-topic-num {
    font-size: 12px;
  }
}

/* =========================================================
   REDUCED MOTION ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {
  #rbai52-contact *,
  #rbai52-contact *::before,
  #rbai52-contact *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* =========================================================
   RBAI52 — SECTION SPACING + FULL-WIDTH FAQ
   CSS refinement v1.7.1
   Append AFTER all existing RBAI52 CSS.
========================================================= */

/* 1. Reduce excessive gaps between all major sections */
#rbai52-contact .rb52-section {
  padding-top: clamp(30px, 3.5vw, 42px);
}

/* Prevent extra spacing before the first section after the hero */
#rbai52-contact .rb52-hero + .rb52-section {
  padding-top: 28px;
}

/* Compact, consistent section headings */
#rbai52-contact .rb52-section-heading {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 22px;
}

#rbai52-contact .rb52-section-heading .rb52-kicker {
  margin-bottom: 6px;
}

#rbai52-contact .rb52-section-heading h2 {
  margin-bottom: 8px;
}

#rbai52-contact .rb52-section-heading p {
  margin-bottom: 0;
}

/* 2. Make content cards more compact and consistent */
#rbai52-contact .rb52-info-grid {
  gap: 15px;
}

#rbai52-contact .rb52-info-card {
  padding: 21px;
}

#rbai52-contact .rb52-contact-grid {
  gap: 18px;
}

#rbai52-contact .rb52-form-card,
#rbai52-contact .rb52-aside-card {
  padding: clamp(20px, 2.5vw, 29px);
}

/* 3. FAQ — use the full available content width */
#rbai52-contact .rb52-faqs {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-width: none;
  margin: 0;
  gap: 10px;
}

#rbai52-contact .rb52-faqs details {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 15px 19px;
  border-radius: 15px;
  background: linear-gradient(110deg, #ffffff 0%, #fbfcff 100%);
  box-shadow: 0 4px 14px rgba(45, 60, 120, 0.035);
}

#rbai52-contact .rb52-faqs details[open] {
  border-color: #d4d7fb;
  background: linear-gradient(110deg, #ffffff 0%, #f8f7ff 100%);
  box-shadow: 0 7px 20px rgba(75, 60, 170, 0.065);
}

#rbai52-contact .rb52-faqs summary {
  padding: 1px 24px 1px 0;
  font-size: 14px;
  line-height: 1.65;
}

#rbai52-contact .rb52-faqs details p {
  margin-top: 9px;
  font-size: 13px;
  line-height: 1.8;
}

/* 4. Tighten the area following the FAQ section */
#rbai52-contact .rb52-faqs + * {
  margin-top: 0;
}

/* Keep the bottom call-to-action from feeling detached */
#rbai52-contact .rb52-bottom-cta {
  margin-top: 38px;
}

/* 5. Tablet layout */
@media (max-width: 900px) {
  #rbai52-contact .rb52-section {
    padding-top: 34px;
  }

  #rbai52-contact .rb52-hero + .rb52-section {
    padding-top: 24px;
  }

  #rbai52-contact .rb52-section-heading {
    margin-bottom: 19px;
  }

  #rbai52-contact .rb52-faqs {
    gap: 9px;
  }
}

/* 6. Mobile layout */
@media (max-width: 600px) {
  #rbai52-contact .rb52-section {
    padding-top: 28px;
  }

  #rbai52-contact .rb52-hero + .rb52-section {
    padding-top: 22px;
  }

  #rbai52-contact .rb52-section-heading {
    margin-bottom: 16px;
  }

  #rbai52-contact .rb52-info-grid {
    gap: 11px;
  }

  #rbai52-contact .rb52-info-card {
    padding: 17px;
  }

  #rbai52-contact .rb52-faqs {
    width: 100%;
    gap: 8px;
  }

  #rbai52-contact .rb52-faqs details {
    padding: 13px 14px;
    border-radius: 13px;
  }

  #rbai52-contact .rb52-faqs summary {
    font-size: 13px;
  }

  #rbai52-contact .rb52-bottom-cta {
    margin-top: 28px;
  }
}



/* =========================================================
   RBAI52 — FAQ DESIGN MATCH v1.7.3
   Softer pink-lavender background
   Target: Contact page FAQ only
========================================================= */

#rbai52-contact #rbai52-faqs {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: clamp(24px, 3vw, 38px);
  box-sizing: border-box;
  border: 1px solid #ece4f8;
  border-radius: 22px;
  background: linear-gradient(
    135deg,
    #fdfbff 0%,
    #faf8ff 55%,
    #fefbfe 100%
  );
}

/* Left-aligned FAQ heading */
#rbai52-contact #rbai52-faqs .rb52-section-heading,
#rbai52-contact #rbai52-faqs .rb52-faq-heading {
  width: 100%;
  max-width: none;
  margin: 0 0 20px;
  text-align: left;
}

#rbai52-contact #rbai52-faqs h2 {
  margin: 0 0 20px;
  color: #29174f;
  font-size: clamp(24px, 2.7vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

/* Compact, full-width accordion rows */
#rbai52-contact #rbai52-faqs details {
  width: 100%;
  max-width: none;
  margin: 0 0 10px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e9e0f8;
  border-radius: 16px;
  background: #fff;
  box-sizing: border-box;
  box-shadow: 0 3px 10px rgba(87, 52, 150, 0.025);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

#rbai52-contact #rbai52-faqs details:last-child {
  margin-bottom: 0;
}

#rbai52-contact #rbai52-faqs details:hover {
  border-color: #d4c2f3;
  box-shadow: 0 5px 16px rgba(87, 52, 150, 0.06);
}

/* Question text and right-side plus icon */
#rbai52-contact #rbai52-faqs summary {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 62px;
  padding: 15px 58px 15px 20px;
  box-sizing: border-box;
  list-style: none;
  cursor: pointer;
  color: #28184c;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.5;
}

#rbai52-contact #rbai52-faqs summary::-webkit-details-marker {
  display: none;
}

#rbai52-contact #rbai52-faqs summary::marker {
  content: "";
}

/* Soft lavender plus button */
#rbai52-contact #rbai52-faqs summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  transform: translateY(-50%);
  border-radius: 10px;
  background: #f1eaff;
  color: #6636e8;
  font-size: 25px;
  font-weight: 700;
  line-height: 1;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

#rbai52-contact #rbai52-faqs details[open] summary::after {
  content: "−";
  background: linear-gradient(135deg, #6962ee, #9655e8);
  color: #fff;
}

#rbai52-contact #rbai52-faqs summary:hover::after {
  background: #eae0ff;
}

#rbai52-contact #rbai52-faqs details[open] summary:hover::after {
  background: linear-gradient(135deg, #6962ee, #9655e8);
}

/* Answer */
#rbai52-contact #rbai52-faqs details > p,
#rbai52-contact #rbai52-faqs details > div {
  margin: 0;
  padding: 0 20px 18px;
  color: #5d6680;
  font-size: 14px;
  line-height: 1.8;
}

/* Remove unwanted theme-generated markers */
#rbai52-contact #rbai52-faqs summary::before {
  content: none !important;
}

/* Responsive layout */
@media (max-width: 600px) {
  #rbai52-contact #rbai52-faqs {
    padding: 19px 13px;
    border-radius: 17px;
  }

  #rbai52-contact #rbai52-faqs h2 {
    font-size: 25px;
    margin-bottom: 16px;
  }

  #rbai52-contact #rbai52-faqs details {
    margin-bottom: 8px;
    border-radius: 13px;
  }

  #rbai52-contact #rbai52-faqs summary {
    min-height: 56px;
    padding: 13px 49px 13px 14px;
    font-size: 13px;
  }

  #rbai52-contact #rbai52-faqs summary::after {
    right: 11px;
    width: 29px;
    height: 29px;
    border-radius: 9px;
    font-size: 23px;
  }

  #rbai52-contact #rbai52-faqs details > p,
  #rbai52-contact #rbai52-faqs details > div {
    padding: 0 14px 15px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #rbai52-contact #rbai52-faqs details,
  #rbai52-contact #rbai52-faqs summary::after {
    transition: none;
  }
}


/* RBAI52 — GAP BETWEEN RESOURCES AND FAQ v1.7.3 */

#rbai52-contact #rbai52-faqs {
  margin-top: 30px !important;
}

/* Tablet */
@media (max-width: 900px) {
  #rbai52-contact #rbai52-faqs {
    margin-top: 24px !important;
  }
}

/* Mobile */
@media (max-width: 600px) {
  #rbai52-contact #rbai52-faqs {
    margin-top: 18px !important;
  }
}


/* =========================================================
   RBAI52 — HELPFUL RESOURCES PINK-LAVENDER BACKGROUND
   v1.7.4 — Visual styling only
========================================================= */

/* Resources section — soft pink and lavender glow */
#rbai52-contact #rbai52-resources {
  background:
    radial-gradient(
      ellipse at 8% 12%,
      rgba(255, 190, 220, 0.23) 0%,
      transparent 43%
    ),
    radial-gradient(
      ellipse at 94% 88%,
      rgba(195, 175, 255, 0.22) 0%,
      transparent 45%
    ),
    linear-gradient(
      135deg,
      #fff8fc 0%,
      #fbf7ff 52%,
      #fff9fd 100%
    ) !important;
  border: 1px solid #f0dff5;
  border-radius: 24px;
  padding: clamp(24px, 3vw, 38px);
  box-sizing: border-box;
}

/* Keep resource cards crisp and readable */
#rbai52-contact #rbai52-resources a {
  background: rgba(255, 255, 255, 0.88);
  border-color: #e9defa;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

#rbai52-contact #rbai52-resources a:hover {
  transform: translateY(-2px);
  border-color: #d8baf7;
  box-shadow: 0 8px 22px rgba(131, 70, 180, 0.09);
}

/* Mobile spacing */
@media (max-width: 600px) {
  #rbai52-contact #rbai52-resources {
    padding: 20px 14px;
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #rbai52-contact #rbai52-resources a {
    transition: none;
  }
}
