/* Locked fields on active licences */
.domain-section.is-locked {
  border-color: #d8e0e8;
  background: #f6f8fa;
}

.domain-section.is-locked .step-number {
  background: #e5e9ee;
  color: #667486;
}

.domain-section.is-locked .input-prefix {
  border-color: #d8dee5;
  background: #eceff3;
}

.domain-section.is-locked .input-prefix input:disabled {
  color: #657181;
  background: transparent;
  cursor: not-allowed;
  opacity: 1;
  -webkit-text-fill-color: #657181;
}

.locked-domain-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0 !important;
  padding: 10px 12px;
  border-radius: 9px;
  background: #e8edf3;
  color: #536274 !important;
  font-size: .78rem !important;
  font-weight: 700;
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 70px;
  max-width: 1040px;
}

.contact-details {
  position: sticky;
  top: 120px;
}

.contact-details h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.contact-details p {
  margin: 0 0 25px;
  color: var(--muted);
}

.contact-details a {
  display: block;
  color: var(--green);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.contact-details small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.contact-card {
  min-width: 0;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.contact-card .success-banner,
.contact-card .form-alert {
  margin-bottom: 22px;
}

.contact-identity {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 24px;
  padding: 15px;
  border-radius: 13px;
  background: var(--cream);
}

.contact-identity > span {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: var(--green);
  color: #fff;
  font-weight: 850;
}

.contact-identity div {
  min-width: 0;
}

.contact-identity small,
.contact-identity strong,
.contact-user-email {
  display: block;
  overflow-wrap: anywhere;
}

.contact-identity small,
.contact-user-email {
  color: var(--muted);
  font-size: .75rem;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.contact-form label:not(.check-field) {
  display: grid;
  gap: 7px;
  min-width: 0;
  font-size: .8rem;
  font-weight: 750;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #ced8d3;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  outline: none;
}

.contact-form textarea {
  min-height: 190px;
  resize: vertical;
  line-height: 1.55;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(23, 105, 224, .11);
}

.contact-privacy {
  gap: 10px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 500;
}

.contact-privacy a {
  color: var(--green);
  font-weight: 750;
  text-underline-offset: 3px;
}

.contact-form > .button {
  justify-self: start;
}

@media (max-width: 820px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .contact-details {
    position: static;
  }
}

@media (max-width: 680px) {
  .contact-section {
    padding-top: 48px;
  }

  .contact-card {
    padding: 24px 18px;
    border-radius: 17px;
  }

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

  .contact-form input[type="text"],
  .contact-form input[type="email"],
  .contact-form textarea {
    min-height: 56px;
    font-size: 16px;
  }

  .contact-form textarea {
    min-height: 180px;
  }

  .contact-form > .button {
    width: 100%;
  }

  .config-form select,
  .domain-selector select {
    width: 100%;
    min-height: 56px;
    padding: 0 44px 0 14px;
    font-size: 16px;
    line-height: 1.25;
  }

  .config-form input[type="color"] {
    min-height: 56px;
  }

  .orders-table {
    display: grid;
    gap: 12px;
    padding: 12px;
    overflow: visible;
    background: var(--cream);
  }

  .orders-table .table-head {
    display: none;
  }

  .orders-table > div:not(.table-head) {
    display: grid;
    min-width: 0;
    grid-template-columns: 1fr 1fr;
    gap: 14px 18px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fff;
  }

  .orders-table > div:not(.table-head) > span {
    display: grid;
    min-width: 0;
    align-content: start;
    overflow-wrap: anywhere;
  }

  .orders-table > div:not(.table-head) > span::before {
    margin-bottom: 2px;
    color: var(--muted);
    content: attr(data-label);
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
  }

  .orders-table .order-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }

  .domain-actions {
    gap: 10px;
  }

  .domain-list .domain-row {
    grid-template-columns: 18px minmax(0, 1fr);
  }

  .domain-list .domain-row > .status-pill,
  .domain-list .domain-row > .domain-actions {
    grid-column: 2;
  }
}

@media (max-width: 420px) {
  .orders-table > div:not(.table-head) {
    grid-template-columns: 1fr;
  }

  .orders-table .order-actions {
    grid-column: 1;
  }
}

/* Registration and profile */
.register-grid {
  align-items: start;
}

.register-grid .auth-aside {
  position: sticky;
  top: 145px;
  padding-top: 55px;
}

.register-card {
  padding: 40px;
}

.registration-fieldset {
  display: grid;
  min-width: 0;
  gap: 15px;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
}

.registration-fieldset[hidden] {
  display: none;
}

.registration-fieldset legend {
  padding: 0 8px;
  color: var(--green);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.customer-type-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.customer-type-options label {
  position: relative;
  display: block;
  cursor: pointer;
}

.customer-type-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.customer-type-options span {
  display: grid;
  min-height: 72px;
  align-content: center;
  padding: 13px 15px;
  border: 1px solid #ced8d3;
  border-radius: 11px;
  background: #fff;
}

.customer-type-options input:checked + span {
  border-color: var(--green);
  background: var(--mint);
  box-shadow: 0 0 0 2px rgba(23,107,87,.1);
}

.customer-type-options input:focus-visible + span {
  outline: 3px solid rgba(23,107,87,.22);
  outline-offset: 2px;
}

.customer-type-options strong,
.customer-type-options small {
  display: block;
}

.customer-type-options small,
.fieldset-help {
  margin: 0;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 500;
}

.address-row {
  grid-template-columns: .7fr 1.7fr .65fr;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: 20px;
}

.profile-layout .dashboard-card {
  margin: 0;
}

.profile-readonly-card {
  background: #f8faf9;
}

.locked-badge {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e5ebe8;
  color: #53625d;
  font-size: .7rem;
  font-weight: 800;
}

.profile-data-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.profile-data-list > div {
  display: grid;
  grid-template-columns: minmax(110px, .8fr) minmax(0, 1.2fr);
  gap: 15px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.profile-data-list dt {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 750;
}

.profile-data-list dd {
  min-width: 0;
  margin: 0;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.profile-form > .button {
  justify-self: start;
}

@media (max-width: 1050px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .register-grid .auth-aside {
    position: static;
    padding-top: 30px;
  }
}

@media (max-width: 680px) {
  .register-card {
    padding: 26px 18px;
  }

  .registration-fieldset {
    padding: 17px 14px;
  }

  .form-stack input,
  .form-stack select {
    min-height: 56px;
    font-size: 16px;
  }

  .address-row {
    grid-template-columns: 1fr;
  }

  .profile-data-list > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .profile-form > .button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .customer-type-options {
    grid-template-columns: 1fr;
  }
}
