/* LancePlaza styles, shared by every page */

/* ---------- Brand colours (taken from the logo) ---------- */

:root {
  --brand-blue: #1f55ad;        /* "LANCEPLAZA" lettering */
  --brand-blue-light: #5079ce;  /* lighter part of the icon */
  --brand-blue-pale: #85a4d2;   /* line under the name */
  --brand-grey: #5d5d5d;        /* "FREELANCE PORTAL" */

  --text: #2b2b2b;
  --background: #f4f6fa;
  --white: #ffffff;
  --warning: #b5452b;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background-color: var(--background);
  color: var(--text);
  margin: 0;
  line-height: 1.6;
}

/* ---------- Navigation bar ---------- */

.site-header {
  background-color: var(--white);
  border-bottom: 3px solid var(--brand-blue-pale);
}

.navbar {
  max-width: 800px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo img {
  height: 56px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.nav-links a {
  color: var(--brand-grey);
}

.nav-links a:hover {
  color: var(--brand-blue);
}

.nav-user {
  color: var(--text);
  font-weight: 600;
}

/* The "Switch to ..." button has to be a form, but should look like a link */
.nav-form {
  margin: 0;
}

.link-button {
  width: auto;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  color: var(--brand-grey);
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  cursor: pointer;
}

.link-button:hover {
  background: none;
  color: var(--brand-blue);
  text-decoration: underline;
}

/* A menu link that looks like a button */
.nav-links a.nav-button {
  background-color: var(--brand-blue);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 6px;
}

.nav-links a.nav-button:hover {
  background-color: var(--brand-blue-light);
  color: var(--white);
  text-decoration: none;
}

/* ---------- Forms ---------- */

/* The two big "hire / work" options on the welcome page */
.choice-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #c9d2e3;
  border-radius: 8px;
  font-weight: normal;
  cursor: pointer;
}

.choice-card:hover {
  border-color: var(--brand-blue);
  background-color: #f7f9fe;
}

.choice-card:has(input:checked) {
  border-color: var(--brand-blue);
  background-color: #eef3fc;
}

.choice-card strong {
  display: block;
  color: var(--brand-blue);
}

/* An empty message leaves no gap */
.warning:empty {
  display: none;
}

.form-card {
  background-color: var(--white);
  max-width: 420px;
  margin: 0 auto;
  padding: 32px;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.form-card h1 {
  margin-top: 0;
  font-size: 28px;
}

.form-note {
  font-size: 14px;
  color: var(--brand-grey);
  margin-top: 20px;
}

/* Follows Google's button guidelines: white, grey border, the coloured "G" */
a.google-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  padding: 11px 12px;
  background-color: var(--white);
  border: 1px solid #747775;
  border-radius: 6px;
  color: #1f1f1f;
  font-size: 16px;
  font-weight: 600;
}

a.google-button:hover {
  background-color: #f2f6fc;
  color: #1f1f1f;
  text-decoration: none;
}

form label {
  display: block;
  font-weight: 600;
  margin-top: 16px;
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form textarea,
form select {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  margin-top: 6px;
  font-family: inherit;
  font-size: 16px;
  border: 1px solid #c9d2e3;
  border-radius: 6px;
  background-color: var(--white);
}

form input:focus,
form textarea:focus,
form select:focus {
  outline: 2px solid var(--brand-blue-pale);
  border-color: var(--brand-blue);
}

/* Lists of tick boxes, as used for Field and Skills */
.tick-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 8px;
}

.tick {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: normal;
}

/* Links to the profile pages, at the foot of the settings card */
.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e2e7f0;
  font-size: 16px;
}

form small {
  color: var(--brand-grey);
}

fieldset {
  border: none;
  padding: 0;
  margin: 20px 0 0;
}

legend {
  font-weight: 600;
}

form label.choice {
  font-weight: normal;
  margin-top: 8px;
}

button {
  width: 100%;
  margin-top: 24px;
  padding: 12px;
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
  background-color: var(--brand-blue);
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

button:hover {
  background-color: var(--brand-blue-light);
}

/* ---------- Page content ---------- */

main {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

h1 {
  color: var(--brand-blue);
  font-size: 36px;
  margin-bottom: 8px;
}

p {
  font-size: 18px;
}

a {
  color: var(--brand-blue);
  font-weight: 600;
  text-decoration: none;
}

a:hover {
  color: var(--brand-blue-light);
  text-decoration: underline;
}

.warning {
  color: var(--warning);
}
