/* ═══════════════════════════════════════════════════════════
   register.css — Registration page styles
═══════════════════════════════════════════════════════════ */
.register-page {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 28px 20px;
}

.register-wrap {
  width: 100%; max-width: 560px;
  transition: max-width 0.4s ease;
  animation: fadeUp .5s ease both;
}

.register-card { padding: 44px 42px; }

/* ── Header ─────────────────────────────────────────────── */
.reg-header { text-align: center; margin-bottom: 24px; }

.reg-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 13px; margin-bottom: 14px;
  /*background: rgba(198,167,94,0.06);*/
    background: rgb(251, 249, 249);
  border: 1px solid rgba(198,167,94,0.14);
  border-radius: 20px;
  font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase;
  font-weight: 700; color: rgba(198,167,94,0.7);
}
.reg-badge svg {
  fill: none; stroke: rgba(198,167,94,0.75);
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.reg-title {
  font-family: var(--font-serif);
  font-size: 22px; font-weight: 600;
  color: var(--text-primary); margin-bottom: 5px;
}
.reg-sub { font-size: 12px; color: var(--text-muted); }

/* ── Step bar ───────────────────────────────────────────── */
.step-bar {
  display: flex; align-items: center;
  justify-content: center; gap: 0;
  margin-bottom: 22px;
}

.step-item { display: flex; flex-direction: column; align-items: center; gap: 5px; }

.step-circle {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(198,167,94,0.04);
  border: 1.5px solid rgba(198,167,94,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; font-family: var(--font-serif);
  color: rgba(198,167,94,0.3);
  transition: all .35s ease;
}
.step-circle.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-color: var(--gold); color: #0D0E1A;
  box-shadow: 0 0 0 3px rgba(198,167,94,0.18);
}
.step-circle.done {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-color: var(--gold); color: #0D0E1A;
}

.step-label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.05em;
  color: rgba(198,167,94,0.25); white-space: nowrap;
  transition: color .3s;
}
.step-label.active { color: rgba(198,167,94,0.85); }
.step-label.done   { color: rgba(198,167,94,0.5); }

.step-line {
  width: 80px; height: 1px; margin: 0 8px; margin-bottom: 18px;
  background: rgba(198,167,94,0.12);
  transition: background .4s;
}
.step-line.done {
  background: linear-gradient(90deg, rgba(198,167,94,0.5), rgba(198,167,94,0.2));
}

/* ── Step actions row ───────────────────────────────────── */
.step-actions { display: flex; margin-top: 10px; }
.step-actions--right   { justify-content: flex-end; }
.step-actions--between { justify-content: space-between; }

/* ── Agent cards ────────────────────────────────────────── */
.agents-label {
  display: block; margin-bottom: 10px;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(198,167,94,0.65);
}

.agents-grid {

  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}
.agent-card {
  flex: 0 1 150px;
  padding: 16px 10px;
    border-radius: 12px;
  cursor: pointer; text-align: center;
  background: rgba(10,12,28,0.6);
  border: 1.5px solid rgba(198,167,94,0.1);
  transition: all .25s ease;
}

.agent-card:hover {
  border-color: rgba(198,167,94,0.28);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.agent-card.selected {
  background: rgba(198,167,94,0.05);
  border-color: rgba(198,167,94,0.45);
  box-shadow: 0 0 0 2px rgba(198,167,94,0.1), inset 0 1px 0 rgba(198,167,94,0.07);
}

.agent-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  margin: 0 auto 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; font-family: var(--font-serif);
  border: 1.5px solid rgba(198,167,94,0.2);
  background: rgba(198,167,94,0.06);
  color: rgba(198,167,94,0.6);
  transition: all .25s;
}
.agent-card.selected .agent-avatar {
  border-color: rgba(198,167,94,0.55); color: var(--gold);
  box-shadow: 0 0 14px rgba(198,167,94,0.18);
}

.agent-name {
  font-size: 11px; font-weight: 600; color: rgba(200,190,170,0.7);
  margin-bottom: 3px; line-height: 1.25; transition: color .2s;
}
.agent-card.selected .agent-name { color: var(--text-primary); }

.agent-clearance {
  font-size: 9px; color: rgba(198,167,94,0.35);
  letter-spacing: 0.03em; line-height: 1.3; margin-bottom: 4px; transition: color .2s;
}
.agent-card.selected .agent-clearance { color: rgba(198,167,94,0.7); }

.agent-role {
  font-size: 9px; color: rgba(160,148,120,0.3);
  line-height: 1.3; margin-bottom: 10px;
}
.agent-card.selected .agent-role { color: rgba(160,148,120,0.45); }

.agent-select-btn {
  display: inline-block; padding: 4px 10px; border-radius: 5px;
  font-size: 9px; font-weight: 700; letter-spacing: 0.06em;
  background: rgba(198,167,94,0.04); border: 1px solid rgba(198,167,94,0.1);
  color: rgba(198,167,94,0.32); transition: all .2s;
}
.agent-card.selected .agent-select-btn {
  background: rgba(198,167,94,0.1); border-color: rgba(198,167,94,0.3);
  color: rgba(198,167,94,0.85);
}

/* ── Switch link ────────────────────────────────────────── */
.switch-link {
  text-align: center; font-size: 12px; color: var(--text-muted); margin-top: 16px; justify-content: center;
}
.switch-link a { color: var(--gold); font-weight: 600; }


.agent-card.agent-busy {
    opacity: 0.4;
    filter: grayscale(1);
    cursor: not-allowed;
    border: 1px dashed rgba(255, 255, 255, 0.2);
  }

  .agent-card.agent-busy .agent-select-btn {
    background: rgba(255, 77, 77, 0.2);
    color: #ff4d4d;
    border: none;
  }

  .agent-card.agent-busy .agent-avatar {
    background: #333;
    color: #666;
  }


  .agent-avatar-wrap {
  width: 100px;
  height: 100px;
  margin: 0 auto 15px;
  position: relative;
  border-radius: 50%;
  padding: 3px;
  border: 2px solid rgba(198, 167, 94, 0.3);
  transition: all 0.3s ease;
}

.agent-img-file {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}


.agent-card.selected .agent-avatar-wrap {
  border-color: var(--gold);
  box-shadow: 0 0 15px rgba(198, 167, 94, 0.5);
  transform: scale(1.05);
}

.agent-card.agent-busy {
  opacity: 0.5;
  filter: grayscale(1);
}

.busy-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  background: #ff4d4d;
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: bold;
}

.agent-status-label {
  font-size: 11px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    padding: 20px 0;
  }

  .agent-card {
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
  }


  .agent-img-file {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(198, 167, 94, 0.2);
    margin-bottom: 10px;
  }

  .agent-card.selected .agent-img-file {
    border-color: #c6a75e;
    box-shadow: 0 0 10px rgba(198, 167, 94, 0.5);
  }

  .agent-name {
    color: white;
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 500;
  }

  .agent-select-btn {
    font-size: 11px;
    color: #c6a75e;
    border: 1px solid #c6a75e;
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
  }

  .agent-busy {
    opacity: 0.4;
    filter: grayscale(1);
    pointer-events: none;
  }
/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 720px) {
  .agents-grid     { grid-template-columns: repeat(2, 1fr); }
  .register-card   { padding: 32px 20px; }
}



#qfs-alert-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
}
.qfs-alert-card {
    background: #1a1a1a;
    border: 1px solid #c6a75e;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 0 30px rgba(198, 167, 94, 0.2);
}
#qfs-alert-icon { font-size: 40px; margin-bottom: 15px; }
#qfs-alert-title { color: #c6a75e; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; }
#qfs-alert-message { color: #fff; margin-bottom: 25px; line-height: 1.5; font-size: 14px; }
.qfs-alert-actions { display: flex; gap: 10px; justify-content: center; }
.hidden { display: none !important; }


.btn-primary { background: #c6a75e; color: #000; border: none; padding: 10px 25px; cursor: pointer; font-weight: bold; border-radius: 5px; }
.btn-secondary { background: transparent; color: #c6a75e; border: 1px solid #c6a75e; padding: 10px 25px; cursor: pointer; border-radius: 5px; }



.error-msg {
    color: #ff4d4d;
    font-size: 11px;
    margin-top: 4px;
    display: block;
    font-weight: 500;
    min-height: 14px;
}

.input-error {
    border: 1px solid #ff4d4d !important;
    background: rgba(255, 77, 77, 0.05) !important;
}

.hidden {
    display: none !important;
}

.req-container {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.req-item {
    display: block;
    color: #ff4d4d;
    font-size: 11px;
    margin-top: 2px;
}
.req-item.hidden-req {
    display: none;
}


.req-item.valid {
    color: #00ff88;
    opacity: 0.6;
    text-decoration: line-through;
}



#pass-reqs {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease-in-out;
    margin-top: 0;
}


#reg-password:focus + #pass-reqs,
#pass-reqs.active {
    max-height: 200px;
    opacity: 1;
    margin-top: 10px;
}

.req-item {
    display: block;
    color: #ff4d4d;
    font-size: 11px;
    margin-bottom: 4px;
    transition: opacity 0.3s ease;
}

.req-item.hidden-req {
    opacity: 0;
    height: 0;
    margin: 0;
    overflow: hidden;
}