/* ==========================================================================
   Customer accounts — sign in / register / password reset / my account
   Loaded by every template next to compare.css. Builds on the theme's
   .my-account-item-wrapper / .single-form-input / .btn-black rules and the
   theme-engine variables (--ts-header-link, --ts-font-body, ...).
   ========================================================================== */

/* --------------------------------------------------------------------------
   Header account link — sits in .header-right-area before the search box.
   Must never wrap, and must pick up the header's own link colour.
   -------------------------------------------------------------------------- */
#header-area .header-account-area {
  flex: 0 0 auto;
  margin-right: 16px;
  white-space: nowrap;
}
#header-area .header-account-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
  padding: 8px 4px;
  transition: color .2s ease, opacity .2s ease;
}
#header-area .header-account-link i { font-size: 19px; line-height: 1; }
#header-area .header-account-link span { display: inline-block; line-height: 1; }

/* Classic (template 002): white header, Poppins nav */
.header-v2 .header-account-link {
  color: var(--ts-header-link, #374151) !important;
  font-size: 14px;
  font-weight: 500;
}
.header-v2 .header-account-link:hover { color: var(--ts-header-link-hover, #d63434) !important; }

/* Trail & Tarmac (template 005): pine header, condensed uppercase nav */
.header-v5 .header-account-link {
  color: var(--ts-header-link, #F5F3EC) !important;
  font-family: 'Barlow Condensed', 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.header-v5 .header-account-link:hover { color: var(--ts-header-link-hover, #ffffff) !important; }
.header-v5 .header-account-link i { color: #E8611C; }

/* Other templates: inherit whatever the header text colour is */
.header-v3 .header-account-link,
.header-v4 .header-account-link { color: inherit; font-size: 14px; font-weight: 500; }

@media (max-width: 991px) {
  #header-area .header-account-link { font-size: 14px; }
}
@media (max-width: 767px) {
  #header-area .header-account-area { margin-right: 6px; }
  #header-area .header-account-link { padding: 6px; }
  #header-area .header-account-link i { font-size: 21px; }
}

/* --------------------------------------------------------------------------
   Flash messages
   -------------------------------------------------------------------------- */
.dsc-alert {
  border-radius: 4px;
  padding: 14px 18px;
  margin: 0 0 30px;
  font-size: 1.4rem;
  line-height: 1.55;
  border: 1px solid transparent;
}
.dsc-alert a { text-decoration: underline; color: inherit; font-weight: 600; }
.dsc-alert-error   { background: #fdecec; border-color: #f3b9b9; color: #8a1f1f; }
.dsc-alert-success { background: #e9f4ec; border-color: #b8dcc3; color: #1d5c42; }
.dsc-alert-info    { background: #eef2f7; border-color: #c9d5e3; color: #2a3f5a; }

/* --------------------------------------------------------------------------
   Form cards
   -------------------------------------------------------------------------- */
.dsc-account .my-account-item-wrapper {
  background: #fff;
  border: 1px solid #e6e4dc;
  border-radius: 6px;
  padding: 34px 36px 28px;
}
.dsc-account .my-account-item-wrapper + .my-account-item-wrapper { margin-top: 30px; }
.dsc-account .my-account-item-wrapper h3 {
  font-size: 2.2rem;
  line-height: 1.25;
  margin: 0 0 24px;
}
.dsc-account .my-account-item-wrapper h3 small {
  display: block;
  font-family: var(--ts-font-body, "Poppins"), sans-serif;
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: #6f6f6f;
  margin-top: 8px;
  line-height: 1.55;
}
.dsc-account .single-form-input { margin-bottom: 20px; }
.dsc-account .single-form-input label {
  font-size: 1.3rem;
  font-weight: 600;
  color: #262626;
  margin-bottom: 8px;
}
.dsc-account .single-form-input input,
.dsc-account .single-form-input select {
  width: 100%;
  padding: 14px 16px;
  font-size: 1.4rem;
  line-height: 1.4;
  border: 1px solid #d4d4d4;
  border-radius: 3px;
  background: #fff;
  color: #262626;
}
.dsc-account .single-form-input input:focus { border-color: #262626; }
.dsc-account .single-form-input input[readonly] { background: #f6f6f4; color: #666; }
.dsc-account .single-form-input .hint {
  display: block;
  font-size: 1.2rem;
  color: #8d8d8d;
  margin-top: 7px;
  line-height: 1.5;
}
.dsc-account .single-form-input .hint a { color: #262626; text-decoration: underline; }
.dsc-account .single-form-input .btn.btn-black { padding: 15px 34px; font-size: 1.3rem; }
.dsc-account .single-form-input.mb-14 { margin-bottom: 14px; }

/* Grouped sections inside a form ("About you", "Your address", ...) */
.dsc-account .form-section-title {
  font-size: 1.15rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #8d8d8d;
  margin: 30px 0 16px;
  padding-top: 22px;
  border-top: 1px solid #ececec;
}
.dsc-account .form-section-title span { text-transform: none; letter-spacing: 0; font-weight: 400; }
.dsc-account form > .form-section-title:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }

/* Side-by-side fields: keep the theme's 25px rhythm inside .row columns */
.dsc-account .my-account-form-wrap .row { margin-left: -10px; margin-right: -10px; }
.dsc-account .my-account-form-wrap .row > [class*="col-"] { padding-left: 10px; padding-right: 10px; }

.dsc-account .lost-pswd { margin-top: 4px; }
.dsc-account .form-foot { margin: 22px 0 0; font-size: 1.3rem; color: #666; line-height: 1.65; }
.dsc-account .form-foot a { color: #262626; text-decoration: underline; }

/* Checkbox rows */
.dsc-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 1.3rem;
  line-height: 1.55;
  color: #444;
  cursor: pointer;
  margin: 4px 0 24px;
  font-weight: 400;
}
.dsc-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex: 0 0 18px;
  accent-color: #262626;
}

/* --------------------------------------------------------------------------
   Side panel (benefits / help) — natural height, never stretched to the form
   -------------------------------------------------------------------------- */
.dsc-side-panel {
  background: #ecebe4;
  border-radius: 6px;
  padding: 34px 36px;
  height: auto;
  align-self: flex-start;
}
.dsc-side-panel h3 { font-size: 2rem; line-height: 1.25; margin: 0 0 14px; }
.dsc-side-panel p { font-size: 1.4rem; color: #555; line-height: 1.7; margin: 0 0 12px; }
.dsc-side-panel ul { list-style: none; padding: 0; margin: 18px 0 26px; }
.dsc-side-panel ul li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  font-size: 1.4rem;
  color: #333;
  line-height: 1.55;
}
.dsc-side-panel ul li:before {
  content: "\f00c";
  font-family: "FontAwesome";
  position: absolute;
  left: 0;
  top: 2px;
  color: #1d5c42;
  font-size: 1.3rem;
}
.dsc-side-panel .btn.btn-black { padding: 15px 34px; font-size: 1.3rem; margin: 0 0 22px; }
.dsc-side-panel .form-foot { margin-top: 0; }

/* --------------------------------------------------------------------------
   Account overview column
   -------------------------------------------------------------------------- */
.dsc-profile-card {
  background: #262626;
  color: #fff;
  border-radius: 6px;
  padding: 30px 30px 26px;
  margin-bottom: 24px;
}
.dsc-profile-card .eyebrow {
  font-size: 1.1rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .65;
  margin-bottom: 8px;
}
.dsc-profile-card h3 { color: #fff !important; font-size: 2.4rem; line-height: 1.2; margin: 0 0 8px; }
.dsc-profile-card .email { font-size: 1.4rem; opacity: .9; word-break: break-word; line-height: 1.6; }
.dsc-profile-card .meta {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.15);
  font-size: 1.3rem;
  opacity: .8;
}
.dsc-profile-card .meta a { color: #fff; text-decoration: underline; }
.dsc-badge {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 3px;
  vertical-align: middle;
  margin-left: 6px;
}
.dsc-badge-ok   { background: #1d5c42; color: #fff; }
.dsc-badge-warn { background: #e8611c; color: #fff; }
.dsc-verify-note {
  background: #fff6ee;
  border: 1px solid #f5d1b9;
  border-radius: 6px;
  padding: 18px 20px;
  font-size: 1.3rem;
  line-height: 1.6;
  color: #6b3a1b;
  margin-bottom: 24px;
}
.dsc-verify-note form { display: inline; }
.dsc-verify-note button {
  background: none;
  border: 0;
  padding: 0;
  color: #6b3a1b;
  text-decoration: underline;
  font: inherit;
  cursor: pointer;
}
.dsc-account-nav {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  border: 1px solid #e6e4dc;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}
.dsc-account-nav li a {
  display: block;
  padding: 14px 18px;
  font-size: 1.4rem;
  color: #262626;
  border-bottom: 1px solid #ececec;
  text-decoration: none;
}
.dsc-account-nav li:last-child a { border-bottom: 0; }
.dsc-account-nav li a:hover { background: #f6f6f4; }
.dsc-account-nav li a i { width: 22px; color: #888; }
.dsc-coming-soon {
  border: 1px dashed #cfcdc4;
  border-radius: 6px;
  padding: 22px 24px;
  font-size: 1.3rem;
  color: #666;
  line-height: 1.7;
}
.dsc-coming-soon strong { color: #262626; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .dsc-side-panel { margin-top: 30px; }
  .dsc-account .col-lg-8 > .my-account-item-wrapper:first-child { margin-top: 0; }
}
@media (max-width: 767px) {
  .dsc-account .my-account-item-wrapper { padding: 24px 20px 20px; }
  .dsc-account .my-account-item-wrapper h3 { font-size: 2rem; }
  .dsc-side-panel { padding: 26px 22px; }
  .dsc-profile-card { padding: 24px 22px; }
  .dsc-account .form-section-title { margin-top: 24px; padding-top: 18px; }
}

/* --------------------------------------------------------------------------
   Workshop job photos & uploads (Phase 7b)
   -------------------------------------------------------------------------- */
.dsc-job-files-row td { background: #fbfaf7; padding-top: 4px !important; border-top: none !important; }
.dsc-job-files { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 4px; }
.dsc-job-file { display: inline-block; }
.dsc-job-file img { width: 74px; height: 74px; object-fit: cover; border-radius: 4px; border: 1px solid #e2e0d8; display: block; }
.dsc-job-file-doc { display: inline-flex; align-items: center; gap: 6px; padding: 12px 14px; border: 1px solid #e2e0d8; border-radius: 4px; background: #fff; font-size: 1.2rem; color: #444; }
.dsc-job-file-del { display: inline-block; vertical-align: top; }
.dsc-job-file-del button { border: none; background: #ecebe6; color: #9b2020; border-radius: 50%; width: 20px; height: 20px; line-height: 1; font-size: 13px; cursor: pointer; margin: -4px 4px 0 -12px; padding: 0; }
.dsc-job-file-del button:hover { background: #9b2020; color: #fff; }
.dsc-job-upload { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 10px; font-size: 1.25rem; }
.dsc-job-upload label { margin: 0; font-weight: 600; }
.dsc-job-upload input[type="file"] { font-size: 1.2rem; max-width: 260px; }
.dsc-job-upload .btn { padding: 7px 18px; font-size: 1.2rem; }
