/* Documents landing — stacked layout aligned with Magwerks info pages */

.docs-landing-card {
  max-width: 960px;
}

.docs-back-link {
  display: inline-block;
  margin-bottom: 0.85rem;
  color: #ffeb3b;
  font-weight: 600;
  text-decoration: none;
}

.docs-back-link:hover {
  text-decoration: underline;
}

.docs-page-title {
  text-align: center;
  margin: 0 0 0.85rem;
  color: rgb(244, 67, 67);
  font-size: clamp(1.75rem, 3vw, 2.15rem);
  font-weight: 700;
  line-height: 1.2;
}

.docs-page-intro {
  margin: 0 auto 1.75rem;
  max-width: 40rem;
  text-align: center;
  font-size: 1.08rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}

.docs-banner {
  margin: 0 0 2.25rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.25);
}

.docs-banner img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.docs-tip {
  margin: 0 0 2.25rem;
  padding: 0.95rem 1.15rem;
  text-align: center;
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
}

.docs-section {
  margin: 0 0 2.25rem;
  padding-top: 0.25rem;
}

.docs-section-title {
  margin: 0 0 0.55rem;
  text-align: center;
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: 700;
  color: rgb(244, 67, 67);
  line-height: 1.25;
}

.docs-section-intro {
  margin: 0 auto 1.25rem;
  max-width: 38rem;
  text-align: center;
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
}

.docs-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.docs-step {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.15rem 1.2rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.docs-step-num {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  background: rgb(244, 67, 67);
  color: #fff;
  line-height: 1;
}

.docs-step-title {
  margin: 0.15rem 0 0.4rem;
  font-size: 1.12rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}

.docs-step-text {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 400;
}

.docs-cta {
  text-align: center;
  padding-top: 0.5rem;
}

.docs-cta-text {
  margin-bottom: 0.5rem;
}

.docs-cta .btn-primary,
.docs-cta .btn-secondary {
  border: none;
  cursor: pointer;
  font: inherit;
}

.docs-account-panel {
  margin-top: 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.docs-panel {
  margin-top: 1.35rem;
  padding: 1.35rem 1.25rem 1.45rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.docs-panel-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.85rem;
}

.docs-panel-header .docs-section-title,
.docs-panel-header .docs-page-title {
  margin: 0;
  text-align: left;
}

.docs-header-btn,
a.docs-header-btn,
a.docs-header-btn:link,
a.docs-header-btn:visited,
a.docs-header-btn:hover,
a.docs-header-btn:active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 9.5rem;
  padding: 0.75rem 1.15rem;
  text-decoration: none !important;
  text-align: center;
  white-space: nowrap;
  flex-shrink: 0;
  color: #ffffff !important;
  background: linear-gradient(135deg, #f43f43 0%, #d32f2f 100%);
  border: none;
  border-radius: 10px;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(244, 63, 67, 0.3);
  cursor: pointer;
}

a.docs-header-btn:hover {
  opacity: 0.94;
  color: #ffffff !important;
}

.docs-form-actions .account-btn {
  min-width: 10rem;
}

.docs-panel .docs-section-title {
  text-align: left;
  margin-bottom: 0.45rem;
}

.docs-panel-header + .docs-request-form,
.docs-panel-header + .docs-page-intro {
  margin-top: 0;
}

.docs-panel-lead {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.98rem;
  line-height: 1.45;
}

.docs-chat-panel {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.docs-chat-log {
  max-height: 360px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 0.35rem 0.15rem;
}

.docs-chat-row {
  display: flex;
}

.docs-chat-row--bot {
  justify-content: flex-start;
}

.docs-chat-row--user {
  justify-content: flex-end;
}

.docs-chat-bubble {
  max-width: min(85%, 34rem);
  padding: 0.8rem 1rem;
  border-radius: 14px;
  font-size: 0.98rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.docs-chat-bubble--bot {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.95);
  border-bottom-left-radius: 4px;
}

.docs-chat-bubble--user {
  background: rgba(244, 67, 54, 0.88);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.docs-chat-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.docs-chat-choice {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

.docs-chat-choice:hover {
  background: rgba(244, 67, 54, 0.45);
  border-color: rgba(244, 67, 54, 0.7);
}

.docs-chat-form {
  display: grid;
  gap: 0.65rem;
}

.docs-chat-input {
  width: 100%;
}

.docs-chat-form-actions,
.docs-chat-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.docs-chat-footer {
  margin-top: 0.15rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.docs-table-wrap {
  margin-top: 0.65rem;
}

.docs-request-form {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.docs-request-form .account-form-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  gap: 0;
}

.docs-request-form .account-label {
  display: block;
  margin: 0 0 0.45rem;
  line-height: 1.3;
}

.docs-request-form .account-input {
  width: 100%;
  margin: 0;
}

.docs-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.docs-fieldset > legend.account-label {
  float: left;
  width: 100%;
  padding: 0;
  margin: 0 0 0.35rem;
}

.docs-fieldset::after {
  content: "";
  display: table;
  clear: both;
}

.docs-field-hint {
  margin: 0 0 0.7rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  line-height: 1.35;
}

.docs-checkbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.25rem;
}

.docs-check {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.98rem;
  line-height: 1.3;
  cursor: pointer;
}

.docs-check input {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  flex-shrink: 0;
  accent-color: #e53935;
}

.docs-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.35rem 1.25rem;
  align-items: start;
}

.docs-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.15rem;
}

.docs-back-link {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-weight: 600;
}

.docs-back-link:hover {
  color: #fff;
  text-decoration: underline;
}

.docs-landing .docs-status-success,
.docs-landing .account-status-text-success {
  color: #ffffff;
}

.docs-landing .docs-inline-link,
.docs-landing .docs-inline-link:visited {
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
}

.docs-landing .docs-inline-link:hover {
  color: #ffffff;
  opacity: 0.9;
}

@media (max-width: 600px) {
  .docs-landing-card.info-card {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .docs-step {
    grid-template-columns: 2.25rem 1fr;
    gap: 0.75rem;
    padding: 1rem;
  }

  .docs-banner {
    border-radius: 10px;
  }

  .docs-form-grid {
    grid-template-columns: 1fr;
  }

  .docs-chat-log {
    max-height: 300px;
  }
}
