/* DXEL Network – Digital Client Agreement Page Styles */
.agreement-shell {
  padding: var(--space-2xl) 0 var(--space-3xl);
}

.agreement-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  margin-bottom: 2rem;
}

.agreement-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(20, 191, 152, 0.12);
  border: 1px solid rgba(20, 191, 152, 0.35);
  color: var(--dxel-accent);
  font-size: 0.85rem;
  font-weight: 600;
}

.agreement-card {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 2rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(18px);
}

.agreement-card h2.section-heading {
  font-size: 1.45rem;
  color: var(--dxel-white);
  margin: 0 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.agreement-card h2.section-heading i {
  color: var(--dxel-accent);
}

.provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.provider-item {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 0.9rem 1rem;
}

.provider-item .label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dxel-muted);
  margin-bottom: 0.3rem;
}

.provider-item .value {
  color: var(--dxel-white);
  font-weight: 600;
  font-size: 0.93rem;
  line-height: 1.45;
}

.legal-notice-box {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.22);
  color: var(--dxel-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.legal-doc-scroll {
  max-height: 520px;
  overflow-y: auto;
  padding-right: 0.75rem;
}

.legal-doc-section {
  margin-bottom: 1.5rem;
}

.legal-doc-section h3 {
  font-size: 1.12rem;
  color: var(--dxel-white);
  margin-bottom: 0.5rem;
}

.legal-doc-section h4 {
  font-size: 0.98rem;
  color: var(--dxel-accent);
  margin: 0.85rem 0 0.35rem;
}

.legal-doc-section p,
.legal-doc-section li {
  color: var(--dxel-muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

.legal-doc-section ul {
  padding-left: 1.35rem;
  margin: 0.35rem 0 0.75rem;
}

/* Form Grids */
.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field.full-span {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dxel-white);
}

.form-field label .req {
  color: #ff5c77;
  margin-left: 2px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--dxel-white);
  font-family: inherit;
  font-size: 0.94rem;
  transition: border-color 0.2s ease, background 0.2s ease;
  box-sizing: border-box;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--dxel-accent);
  background: rgba(255, 255, 255, 0.07);
}

.form-field textarea {
  min-height: 95px;
  resize: vertical;
}

/* Service Selection Cards */
.service-category-block {
  margin-bottom: 1.5rem;
}

.service-category-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dxel-accent);
  margin: 0 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0.65rem;
}

.service-option-card {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem 0.9rem;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.service-option-card:hover {
  border-color: rgba(20, 191, 152, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

.service-option-card.selected {
  border-color: var(--dxel-accent);
  background: rgba(20, 191, 152, 0.12);
}

.service-option-card input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--dxel-accent);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.service-option-card span {
  font-size: 0.88rem;
  color: var(--dxel-white);
  line-height: 1.35;
}

/* Consent Checkboxes */
.consent-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.consent-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
}

.consent-item input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--dxel-accent);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.consent-item .consent-text {
  font-size: 0.92rem;
  color: var(--dxel-white);
  line-height: 1.5;
}

.consent-tag {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 0.45rem;
  font-weight: 700;
}

.consent-tag.required {
  background: rgba(255, 92, 119, 0.16);
  color: #ff7b91;
}

.consent-tag.optional {
  background: rgba(0, 212, 255, 0.14);
  color: #38bdf8;
}

/* Digital Signature Pad */
.sig-tabs {
  display: inline-flex;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.35rem;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.sig-tab-btn {
  border: none;
  background: transparent;
  color: var(--dxel-muted);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sig-tab-btn.active {
  background: var(--dxel-accent);
  color: #05101c;
}

.sig-canvas-wrap {
  position: relative;
  border: 1.5px dashed rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
  touch-action: none;
}

#signatureCanvas {
  display: block;
  width: 100%;
  height: 190px;
  cursor: crosshair;
  touch-action: none;
}

.sig-canvas-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.6rem;
}

.typed-sig-preview {
  padding: 1.5rem;
  border-radius: 12px;
  background: #ffffff;
  color: #0b192c;
  font-family: 'Georgia', 'Times New Roman', serif;
  font-style: italic;
  font-size: 2rem;
  text-align: center;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Review & Confirmation */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.review-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1rem;
}

.review-box h4 {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  color: var(--dxel-accent);
}

.review-box p {
  margin: 0.25rem 0;
  font-size: 0.88rem;
  color: var(--dxel-muted);
  word-break: break-word;
}

.review-box p strong {
  color: var(--dxel-white);
}

.sig-preview-img {
  max-width: 240px;
  max-height: 90px;
  background: #ffffff;
  padding: 6px;
  border-radius: 8px;
}

.form-actions-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1.5rem;
}

.alert-banner {
  padding: 0.9rem 1.15rem;
  border-radius: 10px;
  margin-bottom: 1.25rem;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.alert-banner.error {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.alert-banner.success {
  background: rgba(20, 191, 152, 0.14);
  border: 1px solid rgba(20, 191, 152, 0.4);
  color: #6ee7b7;
}

.hidden {
  display: none !important;
}

@media (max-width: 768px) {
  .agreement-card {
    padding: 1.25rem;
  }
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}
