/* ==============================================
   RoofandFloor — Owner Onboarding
   Prefix: op-
   Accent: Brand Blue (unified with global design system)
   Depends on: css/style.css (design tokens)
   ============================================== */

/* ---- Page shell ---- */
.op-body   { margin: 0; padding: 0; min-height: 100vh; background: var(--rf-bg-light); }
.op-layout { display: flex; min-height: 100vh; }

/* ================================================
   LEFT PANEL
   ================================================ */
.op-left {
  width: 42%;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 32px 36px;
  background: var(--rf-navy);
}

.op-left-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 1;
}

.op-left-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.48) 0%,
    rgba(0,0,0,0.08) 28%,
    rgba(0,0,0,0.08) 65%,
    rgba(0,0,0,0.58) 100%
  );
}

.op-left-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.op-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) invert(1);
  margin-bottom: 20px;
}

.op-hi-there {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  margin: 0 0 8px;
  letter-spacing: 0.2px;
}

.op-left-headline {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 10px;
  text-shadow: 0 2px 14px rgba(0,0,0,0.55);
}

.op-left-sub {
  font-size: 13.5px;
  color: rgba(255,255,255,0.90);
  line-height: 1.65;
  margin: 0 0 28px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.45);
}

.op-features { list-style: none; padding: 0; margin: 0 0 auto; }

.op-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.op-feature-ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.op-feature-ico i { font-size: 16px; color: rgba(255,255,255,0.95); }
.op-feature-title { font-size: 13.5px; font-weight: 700; color: #fff; margin-bottom: 2px; text-shadow: 0 1px 6px rgba(0,0,0,0.45); }
.op-feature-desc  { font-size: 12px; color: rgba(255,255,255,0.85); line-height: 1.55; text-shadow: 0 1px 4px rgba(0,0,0,0.35); }

.op-roofy {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0,0,0,0.30);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 14px;
  padding: 14px 16px;
  margin-top: 28px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.op-roofy-img   { width: 56px; height: 56px; object-fit: contain; flex-shrink: 0; }
.op-roofy-name  { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 3px; }
.op-roofy-badge {
  display: inline-flex; align-items: center; gap: 2px;
  font-size: 9px; font-weight: 700; color: #93C5FD;
  background: rgba(147,197,253,0.18); border-radius: 4px;
  padding: 2px 5px; margin-left: 4px; vertical-align: middle;
}
.op-roofy-desc  { font-size: 12px; color: rgba(255,255,255,0.65); line-height: 1.5; }

/* ================================================
   RIGHT PANEL
   ================================================ */
.op-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 40px 52px;
  overflow-y: auto;
  background: #fff;
}

/* ---- Stepper ---- */
.op-stepper { display: flex; align-items: flex-start; gap: 0; margin-bottom: 40px; }

.op-step {
  display: flex; flex-direction: column; align-items: center;
  flex: 1; position: relative;
}

.op-step:not(:last-child)::after {
  content: ''; position: absolute; top: 16px;
  left: calc(50% + 16px); right: calc(-50% + 16px);
  height: 2px; background: var(--rf-border); z-index: 0;
}

.op-step.active:not(:last-child)::after,
.op-step.done:not(:last-child)::after { background: var(--rf-blue); }

.op-step-circle {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--rf-bg-light); border: 2px solid var(--rf-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--rf-text-light);
  position: relative; z-index: 1; transition: background 0.18s, border-color 0.18s, color 0.18s;
  flex-shrink: 0;
}

.op-step.active .op-step-circle { background: var(--rf-blue); border-color: var(--rf-blue); color: #fff; }
.op-step.done   .op-step-circle { background: var(--rf-blue); border-color: var(--rf-blue); color: #fff; }

.op-step-label {
  font-size: 11px; font-weight: 600; color: var(--rf-text-light);
  margin-top: 6px; text-align: center; line-height: 1.3; white-space: nowrap;
}

.op-step.active .op-step-label { color: var(--rf-blue); }
.op-step.done   .op-step-label { color: var(--rf-blue); }

/* ---- Form ---- */
.op-form-heading { font-size: 24px; font-weight: 800; color: var(--rf-navy); margin: 0 0 6px; }
.op-form-sub     { font-size: 13px; color: var(--rf-text-muted); margin: 0 0 28px; }

.op-field { margin-bottom: 20px; }

.op-label {
  font-size: 13px; font-weight: 600; color: var(--rf-text);
  display: block; margin-bottom: 8px;
}

.op-label .op-optional { font-weight: 400; color: var(--rf-text-muted); font-size: 12px; }

.op-input-wrap { position: relative; }

.op-input-ico {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-size: 15px; color: var(--rf-text-light); pointer-events: none; z-index: 1;
}

.op-input {
  width: 100%; height: 50px; border: 1.5px solid var(--rf-border); border-radius: 10px;
  padding: 0 14px 0 40px; font-size: 16px; font-family: var(--rf-font);
  color: var(--rf-text); background: #fff; outline: none;
  transition: border-color 0.18s, box-shadow 0.18s; -webkit-appearance: none;
}

.op-input::placeholder { color: var(--rf-text-light); }
.op-input:focus { border-color: var(--rf-blue); box-shadow: 0 0 0 3px rgba(20,85,204,0.10); }
.op-input.op-invalid { border-color: #dc3545; }

.op-field-err { font-size: 11.5px; color: #dc3545; margin-top: 5px; display: none; }
.op-field-err.show { display: block; }

/* Phone row */
.op-phone-row { display: flex; gap: 8px; }

.op-country-btn {
  display: flex; align-items: center; gap: 6px; padding: 0 12px;
  height: 50px; border: 1.5px solid var(--rf-border); border-radius: 10px;
  background: #fff; cursor: default; font-size: 13px; font-family: var(--rf-font);
  color: var(--rf-text); flex-shrink: 0; white-space: nowrap;
}

.op-country-flag { font-size: 18px; line-height: 1; }
.op-country-code { font-weight: 600; font-size: 13px; }
.op-country-btn .bi-chevron-down { font-size: 10px; }

.op-phone-input {
  flex: 1; height: 50px; border: 1.5px solid var(--rf-border); border-radius: 10px;
  padding: 0 14px; font-size: 16px; font-family: var(--rf-font); color: var(--rf-text);
  outline: none; transition: border-color 0.18s, box-shadow 0.18s; -webkit-appearance: none;
}

.op-phone-input::placeholder { color: var(--rf-text-light); }
.op-phone-input:focus { border-color: var(--rf-blue); box-shadow: 0 0 0 3px rgba(20,85,204,0.10); }

/* Select */
.op-select-wrap { position: relative; }

.op-select {
  width: 100%; height: 50px; border: 1.5px solid var(--rf-border); border-radius: 10px;
  padding: 0 40px 0 40px; font-size: 16px; font-family: var(--rf-font);
  color: var(--rf-text); background: #fff; outline: none; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.op-select:focus { border-color: var(--rf-blue); box-shadow: 0 0 0 3px rgba(20,85,204,0.10); }

.op-select-ico      { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 15px; color: var(--rf-text-light); pointer-events: none; }
.op-select-chevron  { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--rf-text-light); pointer-events: none; }

/* Info box */
.op-info-box {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--rf-blue-soft); border: 1px solid rgba(20,85,204,0.22);
  border-radius: 12px; padding: 14px 16px; margin-bottom: 24px;
}

.op-info-box i     { font-size: 20px; color: var(--rf-blue); flex-shrink: 0; margin-top: 1px; }
.op-info-title     { font-size: 13px; font-weight: 700; color: var(--rf-blue-dark); margin-bottom: 3px; }
.op-info-desc      { font-size: 12px; color: #1E4FCC; opacity: 0.85; line-height: 1.55; }

/* Actions */
.op-actions { margin-top: 8px; }

.op-btn-primary {
  width: 100%; height: 52px; background: var(--rf-blue); color: #fff;
  border: none; border-radius: 12px; font-size: 15px; font-weight: 700;
  font-family: var(--rf-font); cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background 0.18s, box-shadow 0.18s, transform 0.14s;
  letter-spacing: 0.1px; text-decoration: none; -webkit-appearance: none;
}
.op-placeholder-wrap .op-btn-primary { max-width: 280px; margin: 0 auto; }

.op-btn-primary:hover {
  background: var(--rf-blue-dark);
  box-shadow: 0 4px 14px rgba(20,85,204,0.28);
  transform: translateY(-1px);
  color: #fff;
}

.op-btn-primary:active { transform: translateY(0); }

.op-security-note {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 12px; color: var(--rf-text-muted); margin-top: 12px;
}

.op-security-note i { font-size: 13px; color: var(--rf-text-light); }

/* Step panels */
.op-step-panel        { display: none; flex: 1; flex-direction: column; }
.op-step-panel.active { display: flex; }

/* Placeholder */
.op-placeholder-wrap {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; padding: 40px 0;
}

.op-placeholder-ico {
  width: 72px; height: 72px; background: var(--rf-blue-soft); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
}

.op-placeholder-ico i  { font-size: 28px; color: var(--rf-blue); }
.op-placeholder-title  { font-size: 18px; font-weight: 700; color: var(--rf-navy); margin-bottom: 8px; }
.op-placeholder-desc   { font-size: 13px; color: var(--rf-text-muted); max-width: 320px; line-height: 1.6; margin: 0 auto 24px; }

.op-success-icon {
  width: 80px; height: 80px; background: var(--rf-blue-soft); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
}

.op-success-icon i { font-size: 32px; color: var(--rf-blue); }

/* Responsive */
@media (max-width: 1023px) {
  .op-left  { width: 38%; padding: 24px; }
  .op-right { padding: 32px 32px; }
}

@media (max-width: 767px) {
  .op-layout { flex-direction: column; }
  .op-left   { width: 100%; padding: 24px 20px; min-height: auto; }
  .op-roofy  { display: none; }
  .op-right  { padding: 24px 16px; }
  .op-stepper { margin-bottom: 28px; }
  .op-step-label { font-size: 10px; }
}
