/* ==========================================================================
   Azure Innovation Station - Work With Me
   Design tokens lifted from 0062_AzureInnovationStation/public/css/style.css
   so this page matches the main site when it comes back online.
   ========================================================================== */

:root {
  /*
    Brand gradient exactly as the main site defines it, style.css:113 and its
    reversed hover at style.css:161. DECORATION ONLY: section rules, focus
    rings, anything with no text sitting on top.
  */
  --ais-gradient:       linear-gradient(to right, #6372ff 0%, #5ca9fb 100%);
  --ais-gradient-hover: linear-gradient(to right, #5ca9fb 0%, #6372ff 100%);

  /*
    Deepened variant for anywhere white TEXT sits on brand colour. Measured
    against WCAG AA on the live page: white on the true gradient is 3.90:1 at
    the indigo end and 2.46:1 at the sky end, both short of the 4.5:1 needed
    for text this size. This ramp measures 5.35:1 to 4.75:1 and reads as the
    same indigo-into-blue move.
  */
  --ais-gradient-deep:       linear-gradient(to right, #4b5ae8 0%, #3374c2 100%);
  --ais-gradient-deep-hover: linear-gradient(to right, #3374c2 0%, #4b5ae8 100%);

  --ais-indigo:      #6372ff;
  --ais-indigo-deep: #4b5ae8;   /* 5.35:1 with white */
  --ais-sky:         #5ca9fb;
  --ais-link:        #608dfd;   /* style.css:48, focus rings and borders only */
  --ais-link-text:   #3d6fd0;   /* 4.79:1 on white, used for actual link text */
  --ais-navy:        #1f386e;   /* style.css:674 */

  --ais-page:    #e5e6e5;  /* style.css:340 */
  --ais-surface: #ffffff;
  --ais-muted:   #f6f6f6;
  --ais-border:  #e5e5e5;

  --ais-heading: #333333;
  /* #666 not #777: #777 on the #e5e6e5 page is 3.55:1 and fails WCAG AA.
     #666 is 5.74:1 on white and is already in the site palette.          */
  --ais-body:    #666666;
  /* #888 from the main site measures 3.54:1 on white and fails AA. #757575 is
     4.61:1, still a clear step lighter than --ais-body. Used for placeholders,
     counters and helper text, all of which are real content. */
  --ais-subtle:  #757575;

  --ais-danger:  #cc0033;  /* style.css:665 */
  --ais-success: #1e7a46;  /* style.css:71  */

  --font-heading: "Raleway", "Segoe UI", sans-serif;
  --font-body:    "Open Sans", "Segoe UI", sans-serif;
  --font-lead:    "Lato", "Segoe UI", sans-serif;

  --radius:      6px;
  --radius-pill: 25px;
  --shadow:      0 4px 18px rgba(0, 0, 0, 0.06);
  --shadow-lift: 0 8px 26px rgba(0, 0, 0, 0.1);

  --wrap: 940px;
}

/* --------------------------------------------------------------- reset */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ais-page);
  color: var(--ais-body);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
}

h1, h2, h3, legend {
  font-family: var(--font-heading);
  color: var(--ais-heading);
  margin: 0;
}

img { max-width: 100%; height: auto; display: block; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ais-surface);
  color: var(--ais-link);
  padding: 12px 20px;
  font-family: var(--font-heading);
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* -------------------------------------------------------------- header */

.site-header {
  background: var(--ais-surface);
  border-bottom: 1px solid var(--ais-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img { width: 52px; height: 52px; }

.brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.4px;
  color: var(--ais-heading);
}

.header-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--ais-link-text);
  text-decoration: none;
  white-space: nowrap;
}
.header-link:hover, .header-link:focus-visible { text-decoration: underline; }

/* ---------------------------------------------------------------- hero */

.hero {
  background: var(--ais-gradient-deep);
  color: #fff;
  padding: 62px 0 68px;
  text-align: center;
}

.hero h1 {
  color: #fff;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}

.hero .lead {
  font-family: var(--font-lead);
  font-size: 19px;
  font-weight: 300;
  line-height: 1.65;
  max-width: 660px;
  margin: 0 auto;
  color: #fff;
}

.hero .hero-note {
  font-family: var(--font-lead);
  font-size: 15px;
  font-weight: 300;
  max-width: 620px;
  margin: 20px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.32);
  color: rgba(255, 255, 255, 0.92);
}

/* ---------------------------------------------------------------- card */

.main-area { padding: 44px 20px 64px; }

.card {
  background: var(--ais-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
}

.form-intro {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--ais-subtle);
}

/* Section titles carry the gradient rule, the signature element of the
   main site's .section-title h2::after treatment. */
.section-title {
  margin: 34px 0 22px;
}
.section-title:first-of-type { margin-top: 12px; }

.section-title h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.section-title .rule {
  display: block;
  width: 60px;
  height: 4px;
  margin-top: 10px;
  border-radius: 2px;
  background: var(--ais-gradient);
}

/* --------------------------------------------------------------- form */

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}

.field { margin-bottom: 22px; }

.field > label,
.pill-field legend {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  color: var(--ais-heading);
  padding: 0;
}

.req-mark { color: var(--ais-danger); }

input[type="text"],
input[type="email"],
input[type="url"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ais-heading);
  background: var(--ais-surface);
  border: 1px solid var(--ais-border);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea { resize: vertical; min-height: 96px; }

select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3e%3cpath fill='%23666666' d='M1 1l5 5 5-5'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  padding-right: 38px;
  cursor: pointer;
}

/* Placeholder option reads as placeholder, chosen values read as content. */
select:invalid, select.is-placeholder { color: var(--ais-subtle); }

::placeholder { color: var(--ais-subtle); opacity: 1; }

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: var(--ais-link);
  box-shadow: 0 0 0 3px rgba(96, 141, 253, 0.22);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--ais-danger);
}

.err {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--ais-danger);
}

.field-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

/* margin-left:auto keeps the counter right-aligned whether or not the
   error message next to it is currently visible. */
.counter {
  margin: 6px 0 0 auto;
  font-size: 12px;
  color: var(--ais-subtle);
  white-space: nowrap;
}

/* ------------------------------------------------------- checkbox pills */

.pill-field {
  border: 0;
  padding: 0;
  margin: 0 0 22px;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.pill input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.pill span {
  display: inline-block;
  padding: 10px 20px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.3px;
  color: var(--ais-body);
  background: var(--ais-surface);
  border: 1px solid var(--ais-border);
  border-radius: var(--radius-pill);
  transition: all 0.15s ease;
  user-select: none;
}

.pill:hover span {
  border-color: var(--ais-link);
  color: var(--ais-link-text);
}

/* Solid deepened indigo rather than the gradient: white on the #5ca9fb end
   is 2.46:1, and even the #6372ff end is 3.90:1. This is 5.35:1. */
.pill input:checked + span {
  background: var(--ais-indigo-deep);
  border-color: var(--ais-indigo-deep);
  color: #fff;
}

.pill input:focus-visible + span {
  outline: none;
  box-shadow: 0 0 0 3px rgba(96, 141, 253, 0.32);
}

.pill-field.has-error .pill span { border-color: rgba(204, 0, 51, 0.45); }

/* ------------------------------------------------------------- buttons */

.btn-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 190px;
  margin-top: 8px;
  padding: 15px 34px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background-image: var(--ais-gradient-deep);
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-image 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

.btn-custom:hover:not(:disabled) {
  background-image: var(--ais-gradient-deep-hover);
  box-shadow: var(--shadow-lift);
}

.btn-custom:active:not(:disabled) { transform: translateY(1px); }

.btn-custom:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(96, 141, 253, 0.45);
}

.btn-custom:disabled { opacity: 0.65; cursor: not-allowed; }

.btn-secondary { margin-top: 18px; }

.spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.form-error {
  margin: 4px 0 16px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--ais-danger);
  background: rgba(204, 0, 51, 0.07);
  border-left: 3px solid var(--ais-danger);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.privacy-note {
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--ais-subtle);
}

/* Honeypot. Off-screen rather than display:none so naive bots still fill it. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ------------------------------------------------------------- success */

.success-card { text-align: center; }

.success-mark {
  width: 62px;
  height: 62px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: #fff;
  background-image: var(--ais-gradient-deep);
  border-radius: 50%;
}

.success-card h2 { font-size: 28px; margin-bottom: 12px; }

.success-card p {
  max-width: 520px;
  margin: 0 auto;
  font-size: 16px;
}

.success-card .success-sub {
  margin-top: 14px;
  font-size: 14px;
  color: var(--ais-subtle);
}

/* -------------------------------------------------------------- footer */

.site-footer {
  background: var(--ais-navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 26px 0;
  text-align: center;
  font-size: 13px;
}

.site-footer p { margin: 0; }

/* ---------------------------------------------------------- responsive */

@media (max-width: 720px) {
  .grid-2 { grid-template-columns: 1fr; }

  .hero { padding: 46px 0 50px; }
  .hero h1 { font-size: 31px; }
  .hero .lead { font-size: 17px; }

  .card { padding: 26px 20px; }

  .brand-name { font-size: 15px; }
  .brand img { width: 44px; height: 44px; }
  .header-link { font-size: 11px; }

  .btn-custom { width: 100%; }
}

@media (max-width: 380px) {
  .brand-name { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
