* {
  box-sizing: border-box;
}

:root {
  --black: #171717;
  --red: #bd2732;
  --gray: #777777;
  --line: #dedede;
  --soft: #f5f5f3;
  --white: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--black);
  font-family: "Manrope", Arial, sans-serif;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.account-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  padding: 0 max(5vw, 24px);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.account-logo {
  color: var(--black);
  font-size: 24px;
  letter-spacing: 5px;
  text-decoration: none;
}

.account-logo strong {
  color: var(--red);
  font-weight: 600;
}

.back-to-website {
  color: var(--gray);
  font-size: 14px;
  text-decoration: none;
}

.back-to-website:hover {
  color: var(--red);
}

.account-page {
  width: min(1380px, calc(100% - 48px));
  margin: 0 auto;
  padding: 80px 0;
}

#customer-auth-panel {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(360px, 500px);
  align-items: center;
  gap: 100px;
  min-height: calc(100vh - 246px);
}

.account-kicker {
  display: block;
  margin-bottom: 18px;
  color: var(--red);
  font-size: 12px;
  letter-spacing: 3px;
}

.account-intro h1,
.customer-dashboard-heading h1 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(46px, 5.5vw, 78px);
  font-weight: 500;
  line-height: 1.08;
}

.account-intro p {
  max-width: 550px;
  margin: 28px 0 0;
  color: var(--gray);
  font-size: 16px;
  line-height: 1.8;
}

.auth-box {
  padding: 38px;
  border: 1px solid var(--line);
  background: var(--white);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.auth-tabs button {
  padding: 0 10px 15px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--gray);
  cursor: pointer;
}

.auth-tabs button.active {
  border-bottom-color: var(--red);
  color: var(--black);
  font-weight: 600;
}

.auth-box form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-box form[hidden] {
  display: none;
}

.auth-box label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  color: #444444;
  font-size: 14px;
}

.auth-box input {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid #cccccc;
  border-radius: 0;
  background: var(--white);
  color: var(--black);
}

.auth-box input:focus {
  border-color: var(--black);
  outline: 1px solid var(--black);
}

.account-primary {
  min-height: 56px;
  margin-top: 5px;
  border: 1px solid var(--black);
  border-radius: 0;
  background: var(--black);
  color: var(--white);
  font-weight: 600;
  cursor: pointer;
}

.account-primary:hover {
  border-color: var(--red);
  background: var(--red);
}

#customer-auth-message,
#customer-dashboard-message {
  min-height: 22px;
  margin: 18px 0 0;
  color: var(--red);
  font-size: 14px;
  line-height: 1.6;
}

#customer-dashboard[hidden] {
  display: none;
}

.customer-dashboard-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.customer-dashboard-heading h1 {
  font-size: clamp(42px, 5vw, 66px);
}

#customer-account-name {
  margin: 18px 0 0;
  color: var(--gray);
}

.customer-account-actions {
  display: flex;
  gap: 12px;
}

.customer-account-actions a,
.customer-account-actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid var(--black);
  border-radius: 0;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.customer-account-actions a {
  background: var(--white);
  color: var(--black);
}

.customer-account-actions button {
  background: var(--black);
  color: var(--white);
}

.customer-account-actions a:hover,
.customer-account-actions button:hover {
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
}

.customer-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 55px;
}

.customer-summary article {
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--white);
}

.customer-summary span {
  display: block;
  color: var(--gray);
  font-size: 14px;
}

.customer-summary strong {
  display: block;
  margin-top: 12px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 42px;
  font-weight: 500;
}

.customer-history {
  margin-top: 30px;
  padding: 30px;
  border: 1px solid var(--line);
  background: var(--white);
}

.customer-history h2 {
  margin: 0 0 24px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 32px;
  font-weight: 500;
}

.customer-table-wrapper {
  overflow-x: auto;
}

.customer-history table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
}

.customer-history th,
.customer-history td {
  padding: 18px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
}

.customer-history th {
  background: #efefed;
  font-weight: 600;
}

.customer-status {
  display: inline-block;
  padding: 7px 10px;
  background: #eeeeee;
  font-size: 13px;
  white-space: nowrap;
}

.customer-status.new,
.customer-status.contacting,
.customer-status.inspection,
.customer-status.quoted {
  background: #fff2d7;
  color: #855600;
}

.customer-status.purchased {
  background: #e5f4ea;
  color: #176b36;
}

.customer-status.cancelled {
  background: #f4e6e7;
  color: #a4252f;
}

@media (max-width: 900px) {
  .account-page {
    padding: 55px 0;
  }

  #customer-auth-panel {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .customer-dashboard-heading {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 650px) {
  .account-header {
    min-height: 72px;
    padding: 0 18px;
  }

  .account-logo {
    font-size: 20px;
    letter-spacing: 4px;
  }

  .back-to-website {
    font-size: 13px;
  }

  .account-page {
    width: min(100% - 28px, 1380px);
    padding: 42px 0;
  }

  .account-intro h1 {
    font-size: 44px;
  }

  .auth-box {
    padding: 25px 20px;
  }

  .customer-account-actions {
    flex-direction: column;
  }

  .customer-summary {
    grid-template-columns: 1fr;
  }

  .customer-history {
    padding: 22px 16px;
  }
}
.auth-box form .forgot-password-button {
  display: block;
  width: auto;
  min-height: 0;
  margin: -4px 0 20px auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #c3262d;
  font-size: 14px;
  font-weight: 400;
  text-align: right;
  cursor: pointer;
  appearance: none;
}

.auth-box form .forgot-password-button:hover {
  background: transparent;
  color: #a91f26;
  text-decoration: underline;
}

.auth-box form .forgot-password-button:disabled {
  background: transparent;
  color: #999;
  cursor: not-allowed;
  text-decoration: none;
}

#customer-reset-form > p {
  margin: 0 0 24px;
  color: #777;
  line-height: 1.6;
}
[hidden] {
  display: none !important;
}
#customer-request-dialog {
  width: min(900px, calc(100% - 32px));
  max-height: 88vh;
  padding: 0;
  border: 0;
  background: #ffffff;
  color: #171717;
  overflow-y: auto;
}

#customer-request-dialog::backdrop {
  background: rgba(0, 0, 0, 0.7);
}

.customer-request-close {
  position: absolute;
  top: 18px;
  right: 22px;
  border: 0;
  background: transparent;
  color: #171717;
  font-size: 30px;
  cursor: pointer;
}

.customer-request-detail {
  padding: 50px;
}

.customer-request-detail > h2 {
  margin: 12px 0 8px;
  font: 500 42px/1.2 "Playfair Display", serif;
}

#detail-request-status {
  margin-bottom: 30px;
  color: #777777;
}

.customer-request-item {
  margin-top: 22px;
  padding: 25px;
  border: 1px solid #dddddd;
}

.customer-request-item h3 {
  margin: 0 0 18px;
  font: 500 27px/1.3 "Playfair Display", serif;
}

.customer-request-item-information {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
}

.customer-request-item-information p {
  margin: 0;
  color: #666666;
}

.customer-request-item-information strong {
  color: #171717;
}

.customer-request-images {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.customer-request-images img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #f1f1f1;
}

.customer-detail-button {
  padding: 9px 14px;
  border: 1px solid #171717;
  background: #ffffff;
  color: #171717;
  cursor: pointer;
}

.customer-detail-button:hover {
  background: #171717;
  color: #ffffff;
}

@media (max-width: 650px) {
  .customer-request-detail {
    padding: 42px 20px 25px;
  }

  .customer-request-item-information {
    grid-template-columns: 1fr;
  }

  .customer-request-images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}.customer-detail-button {
  padding: 10px 14px;
  border: 1px solid #171717;
  background: #ffffff;
  color: #171717;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}

.customer-detail-button:hover {
  background: #171717;
  color: #ffffff;
}

.customer-request-item-information {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 25px;
}

.customer-request-item-information p {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid #eeeeee;
}

.customer-request-item-information span {
  color: #777777;
}

.customer-request-item-information strong {
  text-align: right;
}

.customer-request-image-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.customer-request-image-gallery img {
  width: 100%;
  height: 230px;
  object-fit: contain;
  background: #f3f3f3;
}

@media (max-width: 650px) {
  .customer-request-detail {
    padding: 40px 20px 25px;
  }

  .customer-request-item-information,
  .customer-request-image-gallery {
    grid-template-columns: 1fr;
  }
}

.account-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  letter-spacing: 3px;
  white-space: nowrap;
}

.account-logo-mark {
  display: inline-block;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  background: url("logo/luxtime-mark.png") center / contain no-repeat;
}

@media (max-width: 520px) {
  .account-logo { font-size: 19px; gap: 5px; }
  .account-logo-mark { width: 40px; height: 42px; flex-basis: 40px; }
}
