/**
 * End screen of form 2513/2 (V15): a white card under the title of the page, in the design line of the site.
 * What: the box div#f2513-end that js/f2513/end/end_screen.js builds after the last step. The h1 of the page
 * (h1.f2513-page-title) stays above it and keeps its margin-top below the fixed header (base.css, the site rule of h1,
 * currenge.css.bck lines 1629 to 1740). The card is centred, as wide as the form card (768 pixels), with the font of the
 * form. The two buttons use the site classes btn-green and btn-white (style-main.css lines 1111 to 1145) and this file
 * only gives them size and spacing. Output: layout only, no script. Not checked in a browser: no certainty.
 */
#f2513-end {
  box-sizing: border-box;
  width: 100%;
  max-width: 768px;
  margin: 0 auto 60px;
  padding: 32px 24px 40px;
  background: #fff;
  direction: rtl;
  text-align: center;
  font-family: "F2513 Sans", "OpenSansHebrew", Arial, sans-serif;
  color: #4b5254;
}

@media (min-width: 769px) {
  #f2513-end {
    border-radius: 4px;
    box-shadow: 0 2px 18px rgba(0, 0, 0, 0.12);
  }
}

#f2513-end h2 {
  margin: 0 0 18px;
  font-size: 26px;
  line-height: 1.3;
  font-weight: bold;
  color: #00599a;
}

#f2513-end h2::before {
  content: "";
  display: block;
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  background: no-repeat center / 56px 56px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8' fill='%2360be7b'/%3E%3Cpolyline points='4,8.2 6.9,11 12,5.4' fill='none' stroke='%23fff' stroke-width='1.1'/%3E%3C/svg%3E");
}

#f2513-end p {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.6;
}

/* The condition of the bank is the last text line: smaller and apart from the lines above. */
#f2513-end p:last-of-type {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #e3e3e3;
  font-size: 15px;
  color: #4b5254; /* V16 (owner): the same colour as the mail line, easy to read */
}

#f2513-end .f2513-end-btn {
  display: inline-block;
  min-width: 190px;
  margin: 14px 8px 0;
  padding: 11px 26px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 18px;
  line-height: 1.3;
  cursor: pointer;
}

#f2513-end .btn-white.f2513-end-btn {
  border: 1px solid #008a00;
  color: #008a00;
}

#f2513-end .btn-white.f2513-end-btn:hover {
  color: #000;
}

@media (max-width: 480px) {
  #f2513-end {
    padding: 24px 16px 32px;
  }

  #f2513-end h2 {
    font-size: 22px;
  }

  #f2513-end .f2513-end-btn {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 12px 0 0;
  }
}

/* V16 (owner, 2026-12-03): all the text stays inside a narrower column (the rectangle the owner drew), the bank
   condition line included; the separator line is as wide as that column. The buttons stay centred by text-align. */
#f2513-end > :is(h2, p) {
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* The box takes the focus for a screen reader (end_screen.js); no frame is drawn around it. */
#f2513-end:focus {
  outline: none;
}
