:root {
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

body,
.container,
.registration-card,
.registration-grid > div,
.registration-actions,
.action-form,
input,
textarea,
select,
button {
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}

.fixnow-brand-title,
.fixnow-form-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
}

.fixnow-brand-title {
  min-width: 0;
}

.fixnow-brand-title h1 {
  margin: 0;
}

.fixnow-brand-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  text-decoration: none;
}

.fixnow-brand-logo {
  display: block;
  width: clamp(76px, 7vw, 108px);
  height: auto;
}

.fixnow-brand-logo--white {
  display: none;
}

.page-header-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.fixnow-form-topbar {
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e0c000;
}

.theme-toggle {
  display: inline-flex;
  width: auto;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0;
  padding: 7px 12px;
  border: 1px solid #c6a900;
  border-radius: 999px;
  background: #ffffff;
  color: #1a1a1a;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.theme-toggle:hover {
  background: #fff9d9;
}

.theme-toggle-icon {
  font-size: 1.05rem;
  line-height: 1;
}

html[data-theme="dark"] body {
  background: #0d0f12 !important;
  color: #f1f3f5 !important;
}

html[data-theme="dark"] .container {
  border-color: #d0ad00 !important;
  background: #181b1f !important;
  color: #f1f3f5 !important;
  box-shadow: 0 5px 24px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] label,
html[data-theme="dark"] legend,
html[data-theme="dark"] p,
html[data-theme="dark"] dd {
  color: #f1f3f5;
}

html[data-theme="dark"] a {
  color: #ffd84a;
}

html[data-theme="dark"] .fixnow-brand-logo--black {
  display: none;
}

html[data-theme="dark"] .fixnow-brand-logo--white {
  display: block;
}

html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .language-switch a {
  border-color: #d0ad00 !important;
  background: #25282d !important;
  color: #f7f7f7 !important;
}

html[data-theme="dark"] .theme-toggle:hover,
html[data-theme="dark"] .language-switch a:hover {
  background: #34383e !important;
}

html[data-theme="dark"] .language-switch a.is-current {
  background: #f7c700 !important;
  color: #111111 !important;
}

html[data-theme="dark"] .fixnow-form-topbar {
  border-bottom-color: #5b510e;
}

html[data-theme="dark"] .registration-card {
  border-color: #555a61;
  background: #1d2024 !important;
  color: #f1f3f5;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.42);
}

html[data-theme="dark"] .registration-grid {
  background: #3a3d42 !important;
}

html[data-theme="dark"] .registration-grid > div,
html[data-theme="dark"] .registration-actions,
html[data-theme="dark"] .action-form {
  border-color: #4b5057 !important;
  background: #22262b !important;
  color: #f1f3f5 !important;
}

html[data-theme="dark"] .registration-grid dt,
html[data-theme="dark"] .registration-meta,
html[data-theme="dark"] .delete-help {
  color: #b9bec6 !important;
}

html[data-theme="dark"] .status-pill {
  border-color: #b99e19 !important;
  background: #22262b !important;
  color: #f1f3f5 !important;
}

html[data-theme="dark"]
.registration-card--pending
.registration-card__header {
  background: #35300f !important;
}

html[data-theme="dark"]
.registration-card--verified
.registration-card__header {
  background: #173621 !important;
}

html[data-theme="dark"]
.registration-card--rejected
.registration-card__header {
  background: #3d171d !important;
}

html[data-theme="dark"]
.registration-card--suspended
.registration-card__header {
  background: #3b2915 !important;
}

html[data-theme="dark"]
.registration-card--banned
.registration-card__header {
  background: #341414 !important;
}

html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
  border-color: #626870 !important;
  background: #101317 !important;
  color: #ffffff !important;
}

html[data-theme="dark"] input[readonly],
html[data-theme="dark"] textarea[readonly] {
  background: #292d32 !important;
  color: #d9dde2 !important;
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
  color: #9299a2;
}

html[data-theme="dark"] .message,
html[data-theme="dark"] .info,
html[data-theme="dark"] .notice,
html[data-theme="dark"] fieldset {
  border-color: #565b62 !important;
  background: #22262b !important;
  color: #f1f3f5 !important;
}

@media (max-width: 700px) {
  .fixnow-admin-header {
    align-items: flex-start !important;
  }

  .fixnow-brand-title {
    align-items: center;
  }

  .fixnow-brand-logo {
    width: 72px;
  }

  .page-header-controls {
    width: 100%;
    justify-content: space-between;
  }

  .fixnow-form-topbar {
    gap: 10px;
  }

  .theme-toggle-label {
    display: none;
  }
}


/* FixNow legal cards */

.legal-section {
  margin-top: 28px;
}

.legal-intro {
  margin: 0 0 18px;
  color: #4f4f4f;
  line-height: 1.55;
}

.legal-card-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(270px, 1fr)
  );
  gap: 16px;
  margin: 16px 0;
}

.legal-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 15px;
  padding: 18px;
  border: 1px solid #dfc33a;
  border-radius: 13px;
  background:
    linear-gradient(
      145deg,
      #fffdf0 0%,
      #ffffff 72%
    );
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.07);
}

.legal-card--privacy {
  border-color: #80b99a;
  background:
    linear-gradient(
      145deg,
      #f1fbf5 0%,
      #ffffff 72%
    );
}

.legal-card__icon {
  display: flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #f7c700;
  color: #181818;
}

.legal-card--privacy .legal-card__icon {
  background: #d8f0e1;
  color: #176637;
}

.legal-card__icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.legal-card__content {
  min-width: 0;
}

.legal-card h3 {
  margin: 1px 0 8px;
  color: #1a1a1a;
  font-size: 1.04rem;
  line-height: 1.3;
}

.legal-card p {
  margin: 0;
  color: #454545;
  font-size: 0.92rem;
  line-height: 1.55;
}

.legal-card details {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.legal-card summary {
  color: #423800;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.legal-card--privacy summary {
  color: #176637;
}

.legal-card ul {
  margin: 11px 0 0;
  padding-left: 20px;
}

.legal-card li {
  margin: 7px 0;
  color: #444444;
  font-size: 0.88rem;
  line-height: 1.5;
}

.legal-note {
  margin: 14px 0 18px;
  padding: 10px 12px;
  border-left: 4px solid #c6a900;
  background: #fff9d9;
  color: #514700;
  font-size: 0.84rem;
  line-height: 1.5;
}

.confirmation-list {
  display: grid;
  gap: 10px;
  margin-top: 17px;
}

.confirmation-item {
  display: grid !important;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  margin: 0 !important;
  padding: 12px 14px;
  border: 1px solid #dedede;
  border-radius: 9px;
  background: #ffffff;
  cursor: pointer;
}

.confirmation-item:hover {
  border-color: #c6a900;
  background: #fffdf3;
}

.confirmation-item input[type="checkbox"] {
  width: 18px !important;
  min-width: 18px;
  height: 18px;
  margin: 2px 0 0 !important;
  padding: 0 !important;
  accent-color: #d0ad00;
}

.confirmation-item > span {
  min-width: 0;
  line-height: 1.45;
}

.legal-badge {
  display: inline-flex;
  margin-left: 7px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.67rem;
  font-weight: 800;
  line-height: 1.4;
  vertical-align: 1px;
}

.legal-badge--required {
  background: #fff0f2;
  color: #9b001d;
}

.legal-badge--optional {
  background: #eef4f8;
  color: #3d596a;
}

html[data-theme="dark"] .legal-intro {
  color: #c7cbd0;
}

html[data-theme="dark"] .legal-card {
  border-color: #806e16;
  background:
    linear-gradient(
      145deg,
      #302b10 0%,
      #22262b 72%
    );
}

html[data-theme="dark"] .legal-card--privacy {
  border-color: #397653;
  background:
    linear-gradient(
      145deg,
      #173322 0%,
      #22262b 72%
    );
}

html[data-theme="dark"] .legal-card h3,
html[data-theme="dark"] .legal-card p,
html[data-theme="dark"] .legal-card li {
  color: #f0f2f4;
}

html[data-theme="dark"] .legal-card details {
  border-top-color: rgba(255, 255, 255, 0.14);
}

html[data-theme="dark"] .legal-card summary {
  color: #ffe06a;
}

html[data-theme="dark"]
.legal-card--privacy summary {
  color: #8cddb0;
}

html[data-theme="dark"] .legal-note {
  border-left-color: #f7c700;
  background: #35300f;
  color: #f3e8a0;
}

html[data-theme="dark"] .confirmation-item {
  border-color: #4c5158;
  background: #22262b;
  color: #f1f3f5;
}

html[data-theme="dark"] .confirmation-item:hover {
  border-color: #d0ad00;
  background: #2b2e20;
}

html[data-theme="dark"] .legal-badge--required {
  background: #4a1822;
  color: #ffb6c3;
}

html[data-theme="dark"] .legal-badge--optional {
  background: #263640;
  color: #c6dce9;
}

@media (max-width: 600px) {
  .legal-card {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .legal-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
  }

  .legal-card__icon svg {
    width: 26px;
    height: 26px;
  }
}

/* FixNow legal registration cards */

.legal-intro {
  margin: 0 0 18px;
  color: #505050;
  line-height: 1.55;
}

.legal-card-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(270px, 1fr)
  );
  gap: 16px;
  margin: 16px 0 20px;
}

.legal-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 15px;
  padding: 18px;
  border: 1px solid #dfc33a;
  border-radius: 13px;
  background: linear-gradient(
    145deg,
    #fffdf0 0%,
    #ffffff 72%
  );
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.07);
}

.legal-card--privacy {
  border-color: #80b99a;
  background: linear-gradient(
    145deg,
    #f1fbf5 0%,
    #ffffff 72%
  );
}

.legal-card__icon {
  display: flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #f7c700;
  color: #181818;
}

.legal-card--privacy .legal-card__icon {
  background: #d8f0e1;
  color: #176637;
}

.legal-card__icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.legal-card h3 {
  margin: 1px 0 8px;
  font-size: 1.04rem;
  line-height: 1.3;
}

.legal-card p {
  margin: 0;
  color: #454545;
  font-size: 0.92rem;
  line-height: 1.55;
}

.legal-document-link {
  display: inline-flex;
  margin-top: 12px;
  font-weight: 700;
}

.confirmation-list {
  display: grid;
  gap: 10px;
}

.confirmation-item {
  display: grid !important;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  margin: 0 !important;
  padding: 12px 14px;
  border: 1px solid #dedede;
  border-radius: 9px;
  background: #ffffff;
  cursor: pointer;
}

.confirmation-item:hover {
  border-color: #c6a900;
  background: #fffdf3;
}

.confirmation-item input[type="checkbox"] {
  width: 18px !important;
  min-width: 18px;
  height: 18px;
  margin: 2px 0 0 !important;
  padding: 0 !important;
  accent-color: #d0ad00;
}

.confirmation-item > span {
  min-width: 0;
  line-height: 1.48;
}

.confirmation-item a {
  display: inline;
  margin-left: 5px;
  font-weight: 700;
}

.legal-badge {
  display: inline-flex;
  margin-left: 7px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.67rem;
  font-weight: 800;
  line-height: 1.4;
  vertical-align: 1px;
}

.legal-badge--required {
  background: #fff0f2;
  color: #9b001d;
}

.legal-badge--optional {
  background: #eef4f8;
  color: #3d596a;
}

html[data-theme="dark"] .legal-intro {
  color: #c7cbd0;
}

html[data-theme="dark"] .legal-card {
  border-color: #806e16;
  background: linear-gradient(
    145deg,
    #302b10 0%,
    #22262b 72%
  );
}

html[data-theme="dark"] .legal-card--privacy {
  border-color: #397653;
  background: linear-gradient(
    145deg,
    #173322 0%,
    #22262b 72%
  );
}

html[data-theme="dark"] .legal-card h3,
html[data-theme="dark"] .legal-card p {
  color: #f0f2f4;
}

html[data-theme="dark"] .confirmation-item {
  border-color: #4c5158;
  background: #22262b;
  color: #f1f3f5;
}

html[data-theme="dark"] .confirmation-item:hover {
  border-color: #d0ad00;
  background: #2b2e20;
}

html[data-theme="dark"] .legal-badge--required {
  background: #4a1822;
  color: #ffb6c3;
}

html[data-theme="dark"] .legal-badge--optional {
  background: #263640;
  color: #c6dce9;
}

@media (max-width: 600px) {
  .legal-card {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .legal-card__icon {
    width: 44px;
    height: 44px;
  }
}


/* FixNow legal document links v1 */

.legal-document-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 13px;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.legal-document-link:hover {
  text-decoration: underline;
}

.confirmation-item__text {
  min-width: 0;
  line-height: 1.5;
}

.confirmation-item__text label {
  display: inline;
  margin: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.confirmation-item__text a {
  display: inline;
  margin-left: 6px;
  font-size: 0.88rem;
  font-weight: 800;
}

.confirmation-item__text .legal-badge {
  margin-left: 7px;
}

html[data-theme="dark"] .legal-document-link {
  color: #ffe06a;
}

html[data-theme="dark"]
.legal-card--privacy
.legal-document-link {
  color: #8cddb0;
}
