/*
  signup.css
  Purpose: Styles for the onboarding partner signup multi-step page.
*/

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

    :root {
      --brand-lime: #BFFF00;
      --text-dark: #0f172a;
      --text-muted: #475569;
      --panel-dark: #0b4f56;
      --panel-dark-2: #083f45;
      --surface: #ffffff;
      --border: #e2e8f0;
    }

    body {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
      background: #f8fafc;
      min-height: 100vh;
      color: var(--text-dark);
    }

    .layout {
      min-height: 100vh;
      display: grid;
      grid-template-columns: 1fr 1fr;
    }

    /* ── Left panel ── */
    .left-panel {
      background: var(--surface);
      padding: 48px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      overflow-y: auto;
    }

    .brand {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-weight: 700;
      font-size: 20px;
      color: var(--text-dark);
      text-decoration: none;
    }

    .accent-dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: var(--brand-lime);
      display: inline-block;
    }

    .content {
      max-width: 460px;
      margin: 0 auto;
      width: 100%;
      padding: 32px 0;
    }

    .step-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 12px;
      font-weight: 600;
      color: var(--panel-dark);
      background: rgba(11, 79, 86, 0.08);
      border: 1px solid rgba(11, 79, 86, 0.18);
      border-radius: 20px;
      padding: 4px 12px;
      margin-bottom: 16px;
      letter-spacing: 0.5px;
      text-transform: uppercase;
    }

    /* Progress bar */
    .progress-dots {
      display: flex;
      gap: 6px;
      margin-bottom: 24px;
    }

    .dot {
      height: 4px;
      border-radius: 4px;
      background: var(--border);
      flex: 1;
      transition: background 0.3s ease;
    }

    .dot.active { background: var(--brand-lime); }

    .title {
      font-size: 36px;
      font-weight: 700;
      line-height: 1.15;
      margin-bottom: 8px;
      color: var(--text-dark);
    }

    .subtitle {
      font-size: 15px;
      color: var(--text-muted);
      margin-bottom: 28px;
    }

    /* ── Floating label (base) ── */
    .float-group {
      position: relative;
      margin-bottom: 18px;
    }

    .float-group input {
      width: 100%;
      border: 1.5px solid var(--border);
      border-radius: 10px;
      font-size: 15px;
      font-family: inherit;
      padding: 20px 14px 8px 14px;
      outline: none;
      background: #fff;
      color: var(--text-dark);
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .float-group label {
      position: absolute;
      left: 14px;
      top: 50%;
      transform: translateY(-50%);
      font-size: 15px;
      color: #94a3b8;
      font-weight: 400;
      pointer-events: none;
      transition: top 0.18s ease, font-size 0.18s ease, color 0.18s ease, transform 0.18s ease;
    }

    .float-group input:focus + label,
    .float-group input:not(:placeholder-shown) + label {
      top: 10px;
      transform: none;
      font-size: 11px;
      font-weight: 600;
      color: var(--panel-dark);
      letter-spacing: 0.3px;
    }

    .float-group input:focus {
      border-color: var(--brand-lime);
      box-shadow: 0 0 0 3px rgba(191, 255, 0, 0.25);
    }

    .float-group input.error {
      border-color: #fca5a5 !important;
      box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
    }

    /* Password toggle */
    .toggle-pw {
      position: absolute;
      right: 14px;
      top: 50%;
      transform: translateY(-50%);
      color: #94a3b8;
      cursor: pointer;
      font-size: 14px;
      padding: 4px;
      background: none;
      border: none;
      outline: none;
    }

    .float-group input[type="password"] { padding-right: 42px; }

    /* Two-column row */
    .name-row,
    .city-postal-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }

    /* ── Phone with dial selector ── */
    .phone-wrapper {
      margin-bottom: 18px;
    }

    .phone-inner {
      display: flex;
      border: 1.5px solid var(--border);
      border-radius: 10px;
      overflow: hidden;
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
      position: relative;
    }

    .phone-inner:focus-within {
      border-color: var(--brand-lime);
      box-shadow: 0 0 0 3px rgba(191, 255, 0, 0.25);
    }

    .phone-inner.error {
      border-color: #fca5a5 !important;
      box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
    }

    .dial-select {
      min-width: 88px;
      border: none;
      border-right: 1.5px solid var(--border);
      background: #f8fafc;
      color: var(--text-dark);
      font-size: 13px;
      font-weight: 600;
      padding: 0 10px;
      cursor: pointer;
      flex-shrink: 0;
      outline: none;
      -webkit-appearance: none;
      appearance: none;
      background-image: linear-gradient(45deg, transparent 50%, #94a3b8 50%), linear-gradient(135deg, #94a3b8 50%, transparent 50%);
      background-position: calc(100% - 14px) calc(50% - 1px), calc(100% - 9px) calc(50% - 1px);
      background-size: 5px 5px, 5px 5px;
      background-repeat: no-repeat;
    }

    .phone-field-area {
      position: relative;
      flex: 1;
    }

    .phone-field-area input[type="tel"] {
      width: 100%;
      border: none;
      outline: none;
      font-size: 15px;
      font-family: inherit;
      padding: 20px 14px 8px 14px;
      background: transparent;
      color: var(--text-dark);
    }

    .phone-field-area label {
      position: absolute;
      left: 14px;
      top: 50%;
      transform: translateY(-50%);
      font-size: 15px;
      color: #94a3b8;
      font-weight: 400;
      pointer-events: none;
      transition: top 0.18s ease, font-size 0.18s ease, color 0.18s ease, transform 0.18s ease;
    }

    .phone-field-area input[type="tel"]:focus + label,
    .phone-field-area input[type="tel"]:not(:placeholder-shown) + label {
      top: 10px;
      transform: none;
      font-size: 11px;
      font-weight: 600;
      color: var(--panel-dark);
      letter-spacing: 0.3px;
    }

    /* ── Image upload card ── */
    .image-upload-card {
      border: 2px dashed var(--border);
      border-radius: 12px;
      cursor: pointer;
      margin-bottom: 18px;
      overflow: hidden;
      position: relative;
      min-height: 140px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: #fafafa;
      transition: border-color 0.2s, background 0.2s;
    }

    .image-upload-card:hover {
      border-color: var(--brand-lime);
      background: rgba(191, 255, 0, 0.03);
    }

    .upload-placeholder {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 6px;
      padding: 28px 20px;
      text-align: center;
    }

    .upload-placeholder i {
      font-size: 30px;
      color: #cbd5e1;
    }

    .up-title {
      font-size: 14px;
      font-weight: 600;
      color: var(--text-muted);
      margin-top: 2px;
    }

    .up-hint {
      font-size: 12px;
      color: #94a3b8;
    }

    .upload-preview-img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: none;
    }

    .upload-preview-img.visible { display: block; }

    .upload-change-bar {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      background: rgba(0, 0, 0, 0.52);
      color: #fff;
      text-align: center;
      font-size: 12px;
      font-weight: 600;
      padding: 8px;
      letter-spacing: 0.3px;
      display: none;
      gap: 6px;
      align-items: center;
      justify-content: center;
    }

    .image-upload-card:hover .upload-change-bar.visible { display: flex; }

    /* ── Address with OSM suggestions ── */
    .address-wrapper {
      position: relative;
      margin-bottom: 18px;
    }

    .address-wrapper input[type="text"] {
      width: 100%;
      border: 1.5px solid var(--border);
      border-radius: 10px;
      font-size: 15px;
      font-family: inherit;
      padding: 20px 38px 8px 14px;
      outline: none;
      background: #fff;
      color: var(--text-dark);
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .address-wrapper label {
      position: absolute;
      left: 14px;
      top: 50%;
      transform: translateY(-50%);
      font-size: 15px;
      color: #94a3b8;
      font-weight: 400;
      pointer-events: none;
      transition: top 0.18s ease, font-size 0.18s ease, color 0.18s ease, transform 0.18s ease;
    }

    .address-wrapper input[type="text"]:focus + label,
    .address-wrapper input[type="text"]:not(:placeholder-shown) + label {
      top: 10px;
      transform: none;
      font-size: 11px;
      font-weight: 600;
      color: var(--panel-dark);
      letter-spacing: 0.3px;
    }

    .address-wrapper input[type="text"]:focus {
      border-color: var(--brand-lime);
      box-shadow: 0 0 0 3px rgba(191, 255, 0, 0.25);
    }

    .address-spinner {
      position: absolute;
      right: 14px;
      top: 50%;
      transform: translateY(-50%);
      color: #94a3b8;
      font-size: 13px;
      display: none;
    }

    .address-spinner.visible { display: block; }

    .address-suggestions {
      position: absolute;
      top: calc(100% + 4px);
      left: 0;
      right: 0;
      background: #fff;
      border: 1.5px solid var(--border);
      border-radius: 10px;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
      z-index: 100;
      overflow: hidden;
      display: none;
      max-height: 230px;
      overflow-y: auto;
    }

    .address-suggestions.open { display: block; }

    .address-option {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      padding: 11px 14px;
      cursor: pointer;
      font-size: 13px;
      color: var(--text-dark);
      line-height: 1.4;
      transition: background 0.15s;
      border-bottom: 1px solid var(--border);
    }

    .address-option:last-child { border-bottom: none; }
    .address-option:hover { background: rgba(191, 255, 0, 0.08); }

    .address-option i {
      color: var(--panel-dark);
      margin-top: 2px;
      flex-shrink: 0;
      font-size: 11px;
    }

    .no-results {
      padding: 14px;
      text-align: center;
      font-size: 13px;
      color: #94a3b8;
    }

    /* ── Step 3 radio cards ── */
    .radio-card-group {
      display: grid;
      gap: 10px;
      margin-bottom: 8px;
    }

    .radio-card {
      border: 1.5px solid var(--border);
      border-radius: 12px;
      padding: 14px;
      display: flex;
      align-items: center;
      gap: 12px;
      cursor: pointer;
      transition: border-color 0.15s ease, background 0.15s ease;
    }

    .radio-card input[type="radio"] {
      width: 18px;
      height: 18px;
      accent-color: #9acd00;
      margin: 0;
      flex-shrink: 0;
      cursor: pointer;
    }

    .radio-card .r-title {
      font-size: 14px;
      font-weight: 600;
      color: var(--text-dark);
      display: block;
      margin-bottom: 2px;
    }

    .radio-card .r-sub {
      font-size: 12px;
      color: var(--text-muted);
    }

    .radio-card.active {
      border-color: #9acd00;
      background: rgba(191, 255, 0, 0.08);
    }

    /* ── Buttons ── */
    .submit-btn {
      width: 100%;
      border: none;
      border-radius: 10px;
      background: var(--brand-lime);
      color: #111827;
      font-size: 15px;
      font-weight: 700;
      padding: 14px 16px;
      cursor: pointer;
      transition: transform 0.15s ease, box-shadow 0.2s ease;
      margin-top: 4px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }

    .submit-btn:hover {
      transform: translateY(-1px);
      box-shadow: 0 8px 20px rgba(191, 255, 0, 0.45);
    }

    .submit-btn:active { transform: translateY(0); box-shadow: none; }

    .back-btn {
      width: 100%;
      border: 1.5px solid var(--border);
      border-radius: 10px;
      background: transparent;
      color: var(--text-muted);
      font-size: 14px;
      font-weight: 600;
      padding: 11px 16px;
      cursor: pointer;
      transition: border-color 0.15s, color 0.15s;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      margin-top: 10px;
    }

    .back-btn:hover { border-color: var(--panel-dark); color: var(--panel-dark); }

    .divider {
      display: flex;
      align-items: center;
      gap: 10px;
      margin: 18px 0 14px;
      color: #94a3b8;
      font-size: 13px;
    }

    .divider::before,
    .divider::after {
      content: '';
      flex: 1;
      height: 1px;
      background: var(--border);
    }

    .login-link {
      text-align: center;
      font-size: 14px;
      color: var(--text-muted);
    }

    .login-link a {
      color: var(--panel-dark);
      font-weight: 600;
      text-decoration: none;
    }

    .login-link a:hover { text-decoration: underline; }

    .footer {
      display: flex;
      justify-content: space-between;
      font-size: 13px;
      color: #64748b;
    }

    /* ── Right panel ── */
    .right-panel {
      background: linear-gradient(155deg, var(--panel-dark), var(--panel-dark-2));
      color: #f8fafc;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 60px 48px;
      position: relative;
      overflow: hidden;
    }

    .right-panel::before {
      content: '';
      position: absolute;
      width: 420px;
      height: 420px;
      border-radius: 50%;
      background: rgba(191, 255, 0, 0.06);
      top: -80px;
      right: -100px;
    }

    .right-panel::after {
      content: '';
      position: absolute;
      width: 280px;
      height: 280px;
      border-radius: 50%;
      background: rgba(191, 255, 0, 0.05);
      bottom: -60px;
      left: -60px;
    }

    .right-content {
      max-width: 420px;
      position: relative;
      z-index: 1;
    }

    .right-content .tag-line {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 12px;
      font-weight: 600;
      background: rgba(191, 255, 0, 0.15);
      border: 1px solid rgba(191, 255, 0, 0.35);
      color: var(--brand-lime);
      border-radius: 20px;
      padding: 4px 12px;
      margin-bottom: 20px;
      letter-spacing: 0.5px;
      text-transform: uppercase;
    }

    .right-content h2 {
      font-size: 42px;
      font-weight: 700;
      line-height: 1.12;
      margin-bottom: 16px;
    }

    .right-content p {
      font-size: 16px;
      line-height: 1.6;
      color: rgba(248, 250, 252, 0.78);
      margin-bottom: 36px;
    }

    .feature-list {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 14px;
    }

    .feature-list li {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      font-size: 15px;
      color: rgba(248, 250, 252, 0.88);
    }

    .feature-list li .icon {
      width: 28px;
      height: 28px;
      border-radius: 8px;
      background: rgba(191, 255, 0, 0.15);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      color: var(--brand-lime);
      font-size: 13px;
    }

    /* ── Responsive ── */
    @media (max-width: 960px) {
      .layout { grid-template-columns: 1fr; }
      .right-panel { display: none; }
      .left-panel { padding: 28px 20px; }
      .title { font-size: 28px; }
      .footer { margin-top: 24px; }
    }
