/* UbiqCure partner registration UI test — reference two-column layout, blue/red brand */
:root {
  --rt-blue: #1d6cb9;
  --rt-blue-deep: #0f4f8a;
  --rt-blue-soft: #eaf3fb;
  --rt-red: #d91c3d;
  --rt-ink: #0f2744;
  --rt-muted: #64748b;
  --rt-border: #d5dee9;
  --rt-font: "Poppins", system-ui, -apple-system, sans-serif;
  --rt-brand: "Montserrat", "Poppins", sans-serif;
  --rt-radius: 20px;
}

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

html { -webkit-text-size-adjust: 100%; }

.rt-page {
  margin: 0;
  min-height: 100vh;
  font-family: var(--rt-font);
  color: var(--rt-ink);
  background: #eef5fb;
  position: relative;
  overflow-x: hidden;
}

.rt-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 0% 0%, rgba(29, 108, 185, 0.14), transparent 58%),
    radial-gradient(760px 420px at 100% 100%, rgba(29, 108, 185, 0.10), transparent 55%),
    linear-gradient(160deg, #eaf4fb 0%, #f7fafc 45%, #e7f0f8 100%);
}

.rt-wave {
  position: absolute;
  left: 0;
  width: 100%;
  height: 42%;
  opacity: 1;
}

.rt-wave-a { top: 0; }
.rt-wave-b { bottom: 0; height: 36%; }

.rt-shell {
  position: relative;
  z-index: 1;
  width: min(1220px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 2rem 0 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  gap: 2.75rem;
  align-items: start;
}

/* —— Left branding (reference focus) —— */
.rt-brand {
  padding: 0;
  width: 100%;
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.rt-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  margin-bottom: 1.5rem;
}

.rt-logo-img {
  height: 64px;
  width: auto;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.rt-wordmark {
  font-family: var(--rt-brand);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1;
}

.rt-wordmark .ubiq { color: var(--rt-blue); }
.rt-wordmark .cure { color: var(--rt-red); }

.rt-brand h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 3.2vw, 2.65rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--rt-ink);
  max-width: 16ch;
  text-align: left;
}

.rt-accent { color: var(--rt-blue); }

/* Headline brand name — same blue/red scheme as logo wordmark */
.rt-brand-inline {
  display: inline;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.rt-brand-inline .ubiq { color: var(--rt-blue); }
.rt-brand-inline .cure { color: var(--rt-red); }

.rt-lead {
  margin: 0 0 1.5rem;
  max-width: 36rem;
  width: 100%;
  color: #4b5b6e;
  font-size: 1.02rem;
  line-height: 1.55;
  text-align: left;
}

.rt-media {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 1.15rem;
  align-items: center;
  width: 100%;
  max-width: 560px;
}

.rt-hero {
  position: relative;
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, #dbeafe 0%, #eff6ff 100%);
  box-shadow: 0 18px 40px rgba(15, 60, 110, 0.14);
  aspect-ratio: 3 / 4;
}

.rt-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.rt-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.85rem;
  width: 100%;
}

.rt-features li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 1rem;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--rt-ink);
  line-height: 1.3;
  min-height: 3.35rem;
}

.rt-feature-icon {
  flex: 0 0 auto;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(29, 108, 185, 0.12);
  color: var(--rt-blue);
  font-size: 1.1rem;
}

/* —— Right form card —— */
.rt-card {
  background: #fff;
  border-radius: var(--rt-radius);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.1);
  border: 1px solid rgba(226, 232, 240, 0.95);
  padding: 1.55rem 1.6rem 1.35rem;
  width: 100%;
  margin-top: 0.15rem;
}

@media (min-width: 992px) {
  .rt-shell {
    align-items: start;
    padding-top: 2.25rem;
  }

  .rt-brand,
  .rt-card {
    margin-top: 0;
  }

  .rt-logo-img {
    height: 72px;
  }

  .rt-wordmark {
    font-size: 2.1rem;
    letter-spacing: 0.08em;
  }

  .rt-brand h1 {
    font-size: 2.55rem;
  }

  .rt-lead {
    font-size: 1.05rem;
  }
}

.rt-card-head {
  margin-bottom: 1.05rem;
}

.rt-card-head h2 {
  margin: 0 0 0.3rem;
  font-size: clamp(1.28rem, 2.4vw, 1.55rem);
  font-weight: 700;
  color: var(--rt-ink);
  letter-spacing: -0.01em;
}

.rt-card-head p {
  margin: 0;
  color: var(--rt-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.rt-field-group { margin-bottom: 0.85rem; }

.rt-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.35rem;
}

.rt-req { color: var(--rt-red); font-weight: 700; }

.rt-type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.rt-type-option {
  margin: 0;
  cursor: pointer;
}

.rt-type-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rt-type-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  text-align: center;
  min-height: 4.5rem;
  padding: 0.75rem 0.35rem 0.55rem;
  border-radius: 12px;
  border: 1.5px solid var(--rt-border);
  background: #fff;
  color: #334155;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.rt-type-radio {
  position: absolute;
  top: 0.45rem;
  left: 0.45rem;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  border: 1.5px solid #94a3b8;
  background: #fff;
}

.rt-type-card i {
  font-size: 1.2rem;
  color: var(--rt-blue);
  margin-top: 0.15rem;
}

.rt-type-card strong {
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.25;
}

.rt-type-option input:checked + .rt-type-card {
  border-color: var(--rt-blue);
  background: var(--rt-blue-soft);
  box-shadow: 0 0 0 3px rgba(29, 108, 185, 0.12);
}

.rt-type-option input:checked + .rt-type-card .rt-type-radio {
  border-color: var(--rt-blue);
  box-shadow: inset 0 0 0 3px var(--rt-blue);
}

.rt-type-option input:focus-visible + .rt-type-card {
  outline: 2px solid var(--rt-blue);
  outline-offset: 2px;
}

.rt-input { position: relative; }

.rt-input > i {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 1rem;
  pointer-events: none;
  z-index: 1;
}

.rt-input input,
.rt-input select {
  width: 100%;
  min-height: 2.7rem;
  border: 1.5px solid var(--rt-border);
  border-radius: 10px;
  padding: 0.55rem 0.85rem 0.55rem 2.45rem;
  font: inherit;
  font-size: 0.92rem;
  color: var(--rt-ink);
  background: #fff;
  appearance: none;
}

.rt-input select {
  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='%2394a3b8' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 10px 7px;
  padding-right: 2rem;
}

.rt-input input:focus,
.rt-input select:focus {
  outline: none;
  border-color: #60a5fa;
  box-shadow: 0 0 0 0.18rem rgba(29, 108, 185, 0.14);
}

.rt-input input::placeholder { color: #94a3b8; }

.rt-input input.is-invalid,
.rt-input select.is-invalid {
  border-color: #f87171;
}

.rt-err {
  min-height: 0.9rem;
  font-size: 0.74rem;
  color: #b91c1c;
  margin-top: 0.18rem;
}

.rt-submit {
  width: 100%;
  margin-top: 0.3rem;
  border: 0;
  border-radius: 12px;
  min-height: 2.9rem;
  padding: 0.7rem 1rem;
  background: var(--rt-blue);
  color: #fff;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(29, 108, 185, 0.28);
  transition: background 0.15s ease;
}

.rt-submit:hover { background: var(--rt-blue-deep); }
.rt-submit:disabled { opacity: 0.7; cursor: not-allowed; }

.rt-trust {
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: 0.76rem;
  color: var(--rt-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  line-height: 1.4;
}

.rt-trust i { color: var(--rt-blue); }

.d-none { display: none !important; }

.ubiq-booking-help,
#navbar-root,
.uc-site-footer,
footer.site-footer {
  display: none !important;
}

@media (max-width: 991.98px) {
  .rt-shell {
    grid-template-columns: 1fr;
    gap: 1.35rem;
    padding-top: 1.15rem;
    align-items: stretch;
    min-height: 0;
  }

  .rt-brand {
    max-width: none;
  }

  .rt-logo-img {
    height: 52px;
  }

  .rt-wordmark {
    font-size: 1.55rem;
  }

  .rt-brand h1 {
    max-width: none;
    font-size: 1.7rem;
  }

  .rt-media {
    grid-template-columns: minmax(150px, 200px) minmax(0, 1fr);
    max-width: 520px;
  }
}

@media (max-width: 767.98px) {
  .rt-shell {
    width: min(100%, calc(100% - 1rem));
  }

  .rt-media {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .rt-hero {
    width: min(220px, 70%);
    aspect-ratio: 3 / 3.6;
  }

  .rt-card {
    padding: 1.15rem 1rem 1.05rem;
  }

  .rt-type-grid {
    grid-template-columns: 1fr;
  }

  .rt-type-card {
    flex-direction: row;
    justify-content: flex-start;
    min-height: 3rem;
    padding: 0.6rem 0.8rem 0.6rem 1.9rem;
    gap: 0.6rem;
  }

  .rt-type-radio {
    top: 50%;
    left: 0.7rem;
    transform: translateY(-50%);
  }

  .rt-type-card i { margin-top: 0; }
  .rt-type-card strong { font-size: 0.86rem; }

  .rt-input input,
  .rt-input select {
    font-size: 16px;
  }
}
