/* ============================================================
   CSS 09.03 — :focus — the box you are typing in
   ============================================================
   :focus          → the element that is "selected" right now (typing in it, or tabbed to it)
   :focus-visible  → focus that came from the KEYBOARD (Tab) — used for buttons and links

   NEVER just remove the focus style (outline: none) without adding
   a new one — keyboard users would not know where they are.
   ============================================================ */

.focus-form input:focus {
  border-color: #2D62EF;
  outline: 3px solid rgba(45, 98, 239, 0.25);   /* soft blue ring — replaces the default one */
}

/* Buttons and links: show the ring only for keyboard users */
.btn:focus-visible {
  outline: 3px solid #FFAF04;
  outline-offset: 2px;
}
/* Try it: click the button with the mouse → no amber ring.
   Press Tab until it is reached → amber ring. */


/* ------------------------------------------------------------
   Only to make the form look neat — not part of this lesson
   ------------------------------------------------------------ */
.focus-form label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
}

.focus-form input {
  display: block;
  width: 100%;
  max-width: 340px;
  margin-top: 4px;
  padding: 8px 12px;
  font: inherit;
  border: 2px solid #C9C9C9;
  border-radius: 8px;
}

.btn {
  font: inherit;                    /* buttons don't inherit fonts by default — this fixes it */
  font-weight: 600;
  padding: 10px 20px;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;                  /* the "hand" — tells people "you can click this" */
  margin-right: 8px;
}

.btn {
  background-color: #2D62EF;
  color: #FFFFFF;
}
