/* SiteBox · Φόρμες «Επίσημο Έντυπο» (2026-10-22o). Loaded after hig.css; only the form page (.fb) uses it.
   Petrol header with a curved edge, numbered sections, outlined fields, Ναι/Όχι pills, stamp on locked forms.
   The PDF (forms_pdf.py) uses the same colours and shapes, so what you see is what is sent. */

.fb {
  --fb-teal: #0f2f5c; --fb-teal-2: #0b2447; --fb-teal-50: #dceaff; --fb-teal-25: #eef4ff;   /* 22zd: ναυτικό μπλε του λογοτύπου (πριν πετρόλ) */
  --fb-ink: #142747; --fb-ink-2: #3c5271; --fb-muted: #5f7391; --fb-line: #dfe7f3; --fb-line-2: #edf1f8;
  --fb-amber: #b5651d; --fb-bg-row: #f4f7fc;
  color: var(--fb-ink);
}

/* ---------- header ---------- */
.fb-head { position: relative; background: var(--fb-teal); color: #fff; border-radius: 28px; padding: 18px 28px 54px; margin-bottom: 8px;
  overflow: hidden; }
.fb-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.fb-top .btn, .fb-top button { background: rgba(255, 255, 255, .16); color: #fff; border: 0; border-radius: 999px; min-height: 40px; box-shadow: none; }
.fb-top .btn:hover, .fb-top button:hover { background: rgba(255, 255, 255, .26); color: #fff; }
.fb-top .btn { width: 40px; flex: none; padding: 0; justify-content: center; }
.fb-top #fpdf { flex: none; }
.fb-top svg.ic { stroke: currentColor; }
.fb-st { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .16); border-radius: 999px; padding-left: 14px; }
.fb-st .dot { width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, .7); flex: none; }
.fb-st select { background-color: transparent; color: #fff; font-weight: 600; border: 0; border-radius: 999px; min-height: 40px; width: auto;
  padding-left: 2px; padding-right: 30px; box-shadow: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
.fb-st select:hover, .fb-st select:focus { background-color: transparent; }
.fb-st select option { color: var(--fb-ink); }
.fb-kicker { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.fb-head h1 { margin: 4px 0 2px; font-size: 30px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.fb-sub { font-size: 15px; opacity: .9; }
/* the curved lower edge is cut out of the card (mask), so whatever is behind it shows through */
.fb-head { --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 760 40' preserveAspectRatio='none'%3E%3Cpath d='M0 0H760V8C420 50 190-6 0 22Z'/%3E%3C/svg%3E");
  -webkit-mask: linear-gradient(#000, #000) top / 100% calc(100% - 39px) no-repeat, var(--wave) bottom / 100% 40px no-repeat;
  mask: linear-gradient(#000, #000) top / 100% calc(100% - 39px) no-repeat, var(--wave) bottom / 100% 40px no-repeat; }
.fb-wave { display: none; }

/* ---------- lock note, top cards ---------- */
.fb .lock-note { background: var(--fb-teal-25); color: var(--fb-teal-2); border-radius: 18px; }
.fb .lock-note svg.ic { stroke: var(--fb-teal); }
.fb .card { border-radius: 22px; padding: 18px 20px; }

/* ---------- numbered sections ---------- */
.fb-sec { display: flex; align-items: center; gap: 12px; margin: 26px 0 10px; }
.fb-sec h2 { margin: 0; font-size: 19px; font-weight: 600; color: var(--fb-ink); }
.fb-num { width: 30px; height: 30px; border-radius: 50%; background: var(--fb-teal-50); color: var(--fb-teal); font-size: 14px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; flex: none; }
.fb h2.fb-plain { margin: 30px 0 10px; font-size: 19px; }

/* fields as rows with hairlines */
.fb .fb-card { padding: 4px 20px; }
.fb .fb-card .ff { padding: 14px 0; margin: 0; }
.fb .fb-card .ff + .ff { border-top: 1px solid var(--fb-line-2); margin-top: 0; }
.fb label { color: var(--fb-ink-2); font-weight: 600; font-size: 13px; }

/* outlined inputs with a petrol focus ring */
.fb input:not([type=checkbox]):not([type=radio]):not([type=file]), .fb textarea, .fb .card select {
  background-color: #fff; box-shadow: inset 0 0 0 1.5px #d2d9d6; border-radius: 12px; color: var(--fb-ink); }
.fb input:not([type=checkbox]):not([type=radio]):hover, .fb textarea:hover, .fb .card select:hover { background-color: #fff; box-shadow: inset 0 0 0 1.5px #b9c4c0; }
.fb input:not([type=checkbox]):not([type=radio]):focus, .fb textarea:focus, .fb .card select:focus {
  background-color: #fff; box-shadow: inset 0 0 0 1.5px var(--fb-teal), 0 0 0 4px var(--fb-teal-50); }
.fb .card input:disabled:not([type=checkbox]), .fb .card textarea:disabled, .fb .card select:disabled,
.fb .card input:disabled:not([type=checkbox]):hover, .fb .card textarea:disabled:hover { background-color: var(--fb-bg-row); box-shadow: none; color: var(--fb-ink); opacity: 1; }

/* Ναι / Όχι: pills, then the note */
.fb .ff-yesno { display: grid; grid-template-columns: minmax(150px, 210px) 1fr; align-items: center; column-gap: 14px; }
.fb .ff-yesno > label { margin: 0; font-size: 15px; font-weight: 500; color: var(--fb-ink); }
.fb .yn { gap: 6px; align-items: center; }
.fb .yn button { min-width: 64px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px #cbd2ce; color: var(--fb-muted); font-weight: 600; border: 0; }
.fb .yn button:hover { background: var(--fb-bg-row); }
.fb .yn button[data-v=yes].on { background: var(--fb-amber); color: #fff; box-shadow: none; }
.fb .yn button[data-v=no].on { background: var(--fb-teal); color: #fff; box-shadow: none; }
.fb .yn input { margin-left: 6px; }
.fb .yn button:disabled { opacity: 1; cursor: default; }
.fb .yn button:disabled:not(.on) { opacity: .55; }
.fb .chip2 { box-shadow: inset 0 0 0 1.5px #cbd2ce; background: #fff; color: var(--fb-ink-2); border: 0; }
.fb .chip2.on { background: var(--fb-teal); color: #fff; box-shadow: none; }

/* tables: petrol header, soft stripes, rounded */
.fb .ftable, .fb table.wx { border-radius: 16px; box-shadow: inset 0 0 0 1px var(--fb-line); }
.fb .ftable { overflow-x: auto; }
.fb .ftable table, .fb table.wx { box-shadow: none; border-radius: 16px; overflow: hidden; width: 100%; }
.fb .ftable th, .fb table.wx th { background: var(--fb-teal); color: #fff; font-weight: 600; font-size: 13px; border: 0; }
.fb .ftable tbody tr:nth-child(even) td, .fb table.wx tbody tr:nth-child(even) td { background: var(--fb-bg-row); }
.fb .ftable td, .fb table.wx td { border-bottom: 0; }
.fb table.wx { font-variant-numeric: tabular-nums; }
.fb [data-addrow], .fb #wxbtn { margin-top: 8px; border-radius: 999px; color: var(--fb-teal); }

/* photos */
.fb .fph img { width: 150px; height: 112px; border-radius: 16px; border: 0; }

/* signature: dashed card, stamp when the form is locked */
.fb .sigs { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 16px; }
.fb .sig { flex: 1 1 360px; border: 1.5px dashed #9db4d6; border-radius: 18px; background: #f6f9fe; padding: 12px 18px; }
.fb .sig img { width: 220px; height: 74px; border-bottom: 0; background: transparent; }
.fb [data-sign] { border-radius: 999px; background: var(--fb-teal); color: #fff; }
.fb [data-sign] svg.ic { stroke: #fff; }
.fb-stamp { --c: #1e7a4a; width: 104px; height: 104px; border-radius: 50%; box-shadow: inset 0 0 0 2.5px var(--c), inset 0 0 0 5px #fff, inset 0 0 0 6px var(--c);
  color: var(--c); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; transform: rotate(-8deg);
  font-size: 10.5px; font-weight: 800; letter-spacing: .05em; line-height: 1.2; text-transform: uppercase; padding: 12px; box-sizing: border-box; flex: none; }
.fb-stamp span { font-weight: 600; letter-spacing: 0; margin-top: 3px; font-variant-numeric: tabular-nums; }

/* recipients and history keep the app look, with the form's colours */
.fb .tag { border-radius: 999px; }
.fb #recadd { border-radius: 999px; }
.fb .timeline li::before { background: var(--fb-teal); }

@media (max-width: 700px) {
  .fb-head { border-radius: 22px; padding: 14px 18px 46px; }
  .fb-top { gap: 6px; }
  .fb-st { padding-left: 10px; min-width: 0; flex: 0 1 auto; }
  .fb-st select { max-width: 150px; text-overflow: ellipsis; }
  .fb-top #fpdf { padding: 0 12px; }
  .fb-head h1 { font-size: 26px; }
  .fb .ff-yesno { grid-template-columns: 1fr; row-gap: 8px; }
  .fb .yn { flex-wrap: wrap; }
  .fb .yn input { margin-left: 0; flex-basis: 100%; }
  .fb .card, .fb .fb-card { border-radius: 18px; }
}
