/* ============================================================
   auth.truthly.ai — V2 Liquid Glass: Misc Screens
   Screens: #9, #10, #17, #18, #19, #20, #21
   ============================================================ */

/* --- Shared Heading --- */
.v2-misc-heading {
  font-family: var(--v2-font-family);
  /* 24px / 1.2 / 600 — uniform Step-2 heading sizing per Figma. Was
     22px / 1.3; bumped to match .v2-screen-heading__title. */
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--v2-text-bold);
  text-align: center;
  margin: 0;
}

/* ============================================================
   SCREEN #9 — Federated Redirect
   ============================================================ */
.v2-federated-redirect-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--v2-space-l);
  width: 100%;
}

.v2-federated-redirect-message {
  font-family: var(--v2-font-family);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--v2-text-subtle);
  text-align: center;
  margin: 0;
}

.v2-federated-slow-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--v2-space-xs);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.v2-federated-slow-fallback.visible {
  opacity: 1;
  pointer-events: auto;
}

.v2-federated-slow-text {
  font-family: var(--v2-font-family);
  font-size: 14px;
  font-weight: 400;
  color: var(--v2-text-subtle);
  text-align: center;
  margin: 0;
}

/* ============================================================
   SCREEN #10 — Federated Processing
   ============================================================ */
.v2-federated-processing-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--v2-space-l);
  width: 100%;
}

.v2-federated-processing-message {
  font-family: var(--v2-font-family);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--v2-text-subtle);
  text-align: center;
  margin: 0;
}

.v2-federated-processing-error {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: var(--v2-space-m);
  width: 100%;
}

.v2-federated-processing-error.visible {
  display: flex;
}

.v2-federated-error-text {
  font-family: var(--v2-font-family);
  font-size: 16px;
  font-weight: 500;
  color: #ff6b6b;
  text-align: center;
  margin: 0;
}

/* ============================================================
   SCREEN #18 — Support Entry Button
   ============================================================ */
.v2-support-entry-btn {
  position: fixed;
  /* Figma pins "Need help?" at 40px / 40px from the bottom-right corner
     on every audited frame. Was previously 24px / 24px. Mobile breakpoint
     below keeps the tighter 16px / 16px inset. */
  bottom: 40px;
  right: 40px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  font-family: var(--v2-font-family);
  font-size: 14px;
  font-weight: 600;
  color: var(--v2-text-bold);
  background: var(--v2-glass-pill-bg);
  border: 0.5px solid var(--v2-glass-pill-border);
  border-radius: var(--v2-corner-round);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.v2-support-entry-btn:hover {
  background: var(--v2-glass-pill-bg-hover);
}

.v2-support-entry-btn:active {
  transform: scale(0.96);
}

/* ============================================================
   SCREEN #19 — Support Form
   ============================================================ */

/* Select / Dropdown */
.v2-select-field {
  width: 100%;
}

.v2-select {
  width: 100%;
  padding: var(--v2-space-m);
  font-family: var(--v2-font-family);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--v2-text-bold);
  background: var(--v2-bg-sunken);
  border: 1px solid var(--v2-border-subtle);
  border-radius: var(--v2-corner-m);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23d0d0d0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.v2-select:focus {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.04);
}

.v2-select option {
  background: #1a1a1a;
  color: var(--v2-text-bold);
}

.v2-select option:disabled {
  color: var(--v2-text-subtle);
}

/* Textarea */
.v2-textarea-field {
  width: 100%;
}

.v2-textarea {
  width: 100%;
  padding: var(--v2-space-m);
  font-family: var(--v2-font-family);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--v2-text-bold);
  background: var(--v2-bg-sunken);
  border: 1px solid var(--v2-border-subtle);
  border-radius: var(--v2-corner-m);
  outline: none;
  resize: vertical;
  min-height: 100px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

.v2-textarea::placeholder {
  color: var(--v2-text-subtle);
}

.v2-textarea:focus {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.04);
}

/* File Input */
.v2-file-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.v2-file-label {
  font-family: var(--v2-font-family);
  font-size: 14px;
  font-weight: 400;
  color: var(--v2-text-subtle);
}

.v2-file-input {
  font-family: var(--v2-font-family);
  font-size: 14px;
  color: var(--v2-text-subtle);
}

.v2-file-input::file-selector-button {
  font-family: var(--v2-font-family);
  font-size: 13px;
  font-weight: 600;
  color: var(--v2-text-bold);
  background: var(--v2-glass-pill-bg);
  border: 0.5px solid var(--v2-glass-pill-border);
  border-radius: var(--v2-corner-round);
  padding: 6px 14px;
  cursor: pointer;
  margin-right: 10px;
  transition: background 0.15s ease;
}

.v2-file-input::file-selector-button:hover {
  background: var(--v2-glass-pill-bg-hover);
}

/* ============================================================
   SCREEN #21 — Full-Screen Error
   ============================================================ */
.v2-error-heading {
  color: #ff6b6b;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 480px) {
  .v2-support-entry-btn {
    bottom: 16px;
    right: 16px;
    padding: 8px 14px;
    font-size: 13px;
  }
}

/* ============================================================
   Reduced Motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .v2-federated-slow-fallback {
    transition: none;
  }
}
