/* -------------------------------------------------------
   Account Page UX Polish
   - keeps existing HTML intact
   - improves spacing, form styling, and layout
-------------------------------------------------------- */

:root {
  --acc-radius: 14px;
  --acc-border: rgba(15, 23, 42, 0.12);
  --acc-muted: rgba(15, 23, 42, 0.65);
  --acc-bg: rgba(255, 255, 255, 0.92);
  --acc-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Give the account page more “product” framing */
main.section .container {
  max-width: 980px;
}

/* Headline spacing */
.page-title {
  margin-bottom: 0.35rem;
}

.section-intro {
  margin-bottom: 1.4rem;
}

/* Card polish */
.account-card {
  margin-bottom: 1.5rem;
  border-radius: var(--acc-radius);
  box-shadow: var(--acc-shadow);
  border: 1px solid var(--acc-border);
  background: var(--acc-bg);
}

/* Section headings inside cards */
.account-card h2 {
  margin: 0 0 0.85rem 0;
  font-size: 1.15rem;
  letter-spacing: 0.2px;
}

/* Labels / inputs as a clean stacked form */
.account-card label {
  display: block;
  margin: 0.85rem 0 0.35rem 0;
  font-weight: 600;
  font-size: 0.92rem;
  color: rgba(15, 23, 42, 0.92);
}

/* Normalize inputs on this page even if you didn’t add .input class */
.account-card input,
.account-card select {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  background: #fff;
  font: inherit;
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

/* Disabled / read-only field styling */
.account-card input:disabled {
  background: rgba(15, 23, 42, 0.04);
  color: rgba(15, 23, 42, 0.55);
  cursor: not-allowed;
}

/* Focus ring */
.account-card input:focus,
.account-card select:focus {
  border-color: rgba(16, 185, 129, 0.55);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

/* Buttons spacing inside sections */
.account-card .btn {
  margin-top: 1rem;
}

/* Improve the “skills” section layout */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 0.75rem;
}

/* On larger screens, allow 2 columns for skills */
@media (min-width: 820px) {
  .skills-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Make skill rows look like selectable chips */
.skill-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  user-select: none;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.skill-checkbox:hover {
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

/* Make checkbox align properly (fixes “floating” look) */
.skill-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  flex: 0 0 auto;
  transform: translateY(0.5px);
}

.skill-checkbox span {
  flex: 1 1 auto;
  line-height: 1.2;
  color: rgba(15, 23, 42, 0.9);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Retainer section readout */
#retainerSection p {
  margin: 0.55rem 0;
  color: rgba(15, 23, 42, 0.9);
}

#retainerSection p strong {
  color: rgba(15, 23, 42, 0.95);
}

/* Password section: keep it compact and clear */
#currentPassword,
#newPassword {
  letter-spacing: 0.2px;
}

/* Logout area: keep centered but not “floating” awkwardly */
#logoutBtn {
  min-width: 140px;
}

/* Small helper text */
.small-text {
  color: var(--acc-muted);
  margin-top: 0.35rem;
}
