:root {
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(255, 196, 0, 0.16), transparent 35%),
    #f7f7f5;
  color: #15171a;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

.mp-shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

.mp-card {
  max-width: 560px;
  margin: 0 auto;
  padding: 30px;
  border: 1px solid #e1e3e6;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.mp-card--wide {
  max-width: 980px;
}

.mp-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.mp-logo {
  display: inline-flex;
  align-items: center;
  color: #111;
  font-size: 1.5rem;
  font-weight: 950;
  text-decoration: none;
}

.mp-logo::before {
  content: "";
  width: 34px;
  height: 34px;
  margin-right: 10px;
  border-radius: 50%;
  background: #ffc400;
}

.mp-logout {
  color: #111;
  font-weight: 800;
  text-decoration: none;
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.mp-muted,
small {
  color: #606873;
}

.mp-alert {
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid #e4d18a;
  border-radius: 14px;
  background: #fff8db;
  color: #3d3211;
  font-weight: 700;
}

.mp-alert--success {
  border-color: #bfe5c8;
  background: #e9f8ed;
  color: #174f2a;
}

.mp-alert--error {
  border-color: #f0b6bd;
  background: #fdecee;
  color: #8e1627;
}

.mp-form {
  display: grid;
  gap: 20px;
}

label,
fieldset {
  display: grid;
  gap: 8px;
}

label span,
legend {
  font-weight: 900;
}

input,
textarea,
select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d8dce2;
  border-radius: 14px;
  padding: 13px 14px;
  background: #fff;
  color: #15171a;
  font: inherit;
}

textarea {
  resize: vertical;
}

fieldset {
  margin: 0;
  padding: 18px;
  border: 1px solid #d8dce2;
  border-radius: 18px;
}

.mp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.mp-services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.mp-check {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid #e0e3e8;
  border-radius: 14px;
  background: #fff;
}

.mp-check input {
  width: auto;
}

.mp-check--standalone {
  align-self: end;
  min-height: 48px;
}

.mp-submit {
  justify-self: start;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  background: #ffc400;
  color: #111;
  font-weight: 950;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(255, 196, 0, 0.28);
}

@media (max-width: 760px) {
  .mp-shell {
    width: min(100% - 22px, 1080px);
    padding: 24px 0;
  }

  .mp-card {
    padding: 22px;
    border-radius: 20px;
  }

  .mp-grid,
  .mp-services {
    grid-template-columns: 1fr;
  }
}

.mp-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.mp-photo {
  margin: 0;
  overflow: hidden;
  border: 1px solid #e0e3e8;
  border-radius: 16px;
  background: #f2f3f5;
  aspect-ratio: 4 / 3;
}

.mp-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 760px) {
  .mp-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* FixNow master admin toolbar + theme */
.mp-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.mp-lang-switch,
.mp-theme-toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d8dce2;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  overflow: hidden;
}

.mp-lang-switch a,
.mp-theme-toggle {
  min-height: 38px;
  padding: 0 12px;
  color: #15171a;
  text-decoration: none;
  font-weight: 950;
  font-size: 0.9rem;
}

.mp-lang-switch a {
  display: inline-flex;
  align-items: center;
}

.mp-lang-switch a.is-active {
  background: #ffc400;
  color: #111;
}

.mp-theme-toggle {
  gap: 7px;
  cursor: pointer;
}

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

html[data-theme="dark"] body {
  background:
    radial-gradient(circle at top right, rgba(255, 196, 0, 0.12), transparent 35%),
    #0f1115;
  color: #f4f6f8;
}

html[data-theme="dark"] .mp-card,
html[data-theme="dark"] fieldset {
  background: rgba(21, 24, 30, 0.96);
  border-color: #2c3340;
  color: #f4f6f8;
}

html[data-theme="dark"] .mp-logo,
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 {
  color: #f4f6f8;
}

html[data-theme="dark"] .mp-muted,
html[data-theme="dark"] .mp-help,
html[data-theme="dark"] small {
  color: #aeb7c4;
}

html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
  background: #11151c;
  border-color: #354050;
  color: #f4f6f8;
}

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

html[data-theme="dark"] .mp-lang-switch,
html[data-theme="dark"] .mp-theme-toggle {
  background: rgba(17, 21, 28, 0.9);
  border-color: #354050;
}

html[data-theme="dark"] .mp-lang-switch a,
html[data-theme="dark"] .mp-theme-toggle {
  color: #f4f6f8;
}

html[data-theme="dark"] .mp-lang-switch a.is-active {
  background: #ffc400;
  color: #111;
}

html[data-theme="dark"] .mp-alert {
  border-color: #665623;
  background: #2b2514;
  color: #ffe49a;
}

html[data-theme="dark"] .mp-alert--success {
  border-color: #2f6b43;
  background: #13291c;
  color: #bff0cb;
}

html[data-theme="dark"] .mp-alert--error {
  border-color: #80333d;
  background: #32161b;
  color: #ffc5cc;
}

@media (max-width: 560px) {
  .mp-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .mp-lang-switch,
  .mp-theme-toggle {
    justify-content: center;
  }
}
