/* Styles for the features added with the backend (forms, account, blog, admin).
   Uses the colour variables of the existing site stylesheet, so everything follows the same theme. */

.fra-form { display: grid; gap: 1rem; text-align: left; }
.fra-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .fra-row2 { grid-template-columns: 1fr; } }
.fra-field label, .fra-label { display: block; font-size: .875rem; font-weight: 600; color: hsl(var(--muted-foreground)); margin-bottom: .4rem; }
.fra-input, .fra-textarea, .fra-select {
  width: 100%; border: 1px solid rgba(127,127,127,.3); border-radius: .55rem; padding: .6rem .75rem;
  background: hsl(var(--background)); color: hsl(var(--foreground)); font-size: .95rem; font-family: inherit;
}
.fra-textarea { min-height: 7rem; resize: vertical; }
.fra-input:focus, .fra-textarea:focus, .fra-select:focus { outline: 2px solid hsl(var(--primary)); outline-offset: 1px; }
.fra-input[aria-invalid="true"], .fra-textarea[aria-invalid="true"] { border-color: #dc2626; }
.fra-err { color: #dc2626; font-size: .8rem; margin-top: .3rem; min-height: 0; }
.fra-check { display: flex; align-items: flex-start; gap: .6rem; font-size: .875rem; color: hsl(var(--muted-foreground)); cursor: pointer; }
.fra-check input { margin-top: .2rem; width: 1rem; height: 1rem; flex-shrink: 0; }
.fra-check a, .fra-link { color: hsl(var(--primary)); text-decoration: underline; }
.fra-btn {
  display: inline-flex; align-items: center; justify-content: center; height: 2.75rem; padding: 0 1.5rem; border: 0;
  border-radius: .375rem; background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); font-weight: 500;
  font-size: .95rem; cursor: pointer; font-family: inherit; text-decoration: none;
}
.fra-btn:hover { opacity: .9; }
.fra-btn[disabled] { opacity: .55; cursor: default; }
.fra-btn--ghost { background: transparent; color: hsl(var(--foreground)); border: 1px solid rgba(127,127,127,.3); }
.fra-btn--danger { background: #dc2626; color: #fff; }
.fra-btn--sm { height: 2.1rem; padding: 0 .9rem; font-size: .85rem; }
.fra-msg { border-radius: .5rem; padding: .7rem .9rem; font-size: .9rem; }
.fra-msg--ok { background: rgba(22,163,74,.1); color: #15803d; border: 1px solid rgba(22,163,74,.3); }
.fra-msg--err { background: rgba(220,38,38,.08); color: #b91c1c; border: 1px solid rgba(220,38,38,.3); }
.fra-msg:empty { display: none; }
.fra-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.fra-hide { display: none !important; }

.fra-lead { border: 1px solid rgba(127,127,127,.2); border-radius: .5rem; background: hsl(var(--background)); padding: 1.5rem; }
.fra-lead h3 { font-weight: 600; font-size: 1.1rem; color: hsl(var(--foreground)); margin: 0 0 1rem; }

.fra-save { margin-top: .9rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .75rem; font-size: .875rem; }
.fra-save button { background: none; border: 0; padding: 0; color: hsl(var(--primary)); cursor: pointer; font: inherit; }
.fra-save button:hover { text-decoration: underline; }
.fra-save span { color: hsl(var(--muted-foreground)); }

.fra-notice { margin-bottom: 1rem; }

/* "Kabinet" button in the top menu */
.fra-nav-btn {
  display: inline-flex; align-items: center; justify-content: center; height: 2.5rem; padding: 0 1.1rem;
  margin: 0 .25rem 0 .5rem; border-radius: .375rem; background: #9B1B30; color: #fff;
  font-size: .875rem; font-weight: 500; white-space: nowrap; text-decoration: none; transition: opacity .15s;
}
.fra-nav-btn:hover { opacity: .9; }

/* ---- pages built on this stylesheet (account, blog, admin) ---- */
.fra-wrap { padding-top: 5rem; }
.fra-menu { position: absolute; right: 0; top: 110%; min-width: 150px; z-index: 60; }
.fra-card { border: 1px solid rgba(127,127,127,.2); border-radius: .5rem; background: hsl(var(--card)); padding: 1.5rem; }
.fra-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.fra-tab { border: 1px solid rgba(127,127,127,.3); border-radius: .5rem; height: 2.5rem; padding: 0 1rem; background: transparent; color: hsl(var(--foreground)); font: inherit; font-size: .875rem; font-weight: 500; cursor: pointer; }
.fra-tab[aria-selected="true"] { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); border-color: hsl(var(--primary)); }
.fra-list { display: grid; gap: .75rem; }
.fra-item { border: 1px solid rgba(127,127,127,.2); border-radius: .5rem; background: hsl(var(--background)); padding: 1rem; }
.fra-item-head { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; flex-wrap: wrap; }
.fra-muted { color: hsl(var(--muted-foreground)); font-size: .85rem; }
.fra-kv { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; font-size: .9rem; }
.fra-kv + .fra-kv { border-top: 1px solid rgba(127,127,127,.15); }
.fra-table-wrap, .fr-table-wrap { overflow-x: auto; }
.fra-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.fra-table th, .fra-table td { border: 1px solid rgba(127,127,127,.25); padding: .35rem .5rem; text-align: left; vertical-align: top; }
.fra-table th { background: rgba(127,127,127,.08); font-weight: 600; }
.fra-table input, .fra-table textarea { width: 100%; min-width: 4.5rem; border: 1px solid rgba(127,127,127,.3); border-radius: .35rem; padding: .3rem .4rem; background: hsl(var(--background)); color: hsl(var(--foreground)); font: inherit; }
.fra-table textarea { min-width: 14rem; min-height: 4.5rem; }

/* article text */
.fra-prose { color: hsl(var(--foreground)); line-height: 1.7; font-size: 1.02rem; }
.fra-prose h2 { font-size: 1.5rem; font-weight: 700; margin: 2rem 0 .75rem; }
.fra-prose h3 { font-size: 1.2rem; font-weight: 700; margin: 1.5rem 0 .5rem; }
.fra-prose h4 { font-size: 1.05rem; font-weight: 700; margin: 1.25rem 0 .5rem; }
.fra-prose p { margin: 0 0 1rem; }
.fra-prose ul, .fra-prose ol { margin: 0 0 1rem 1.4rem; }
.fra-prose ul { list-style: disc; }
.fra-prose ol { list-style: decimal; }
.fra-prose li { margin-bottom: .3rem; }
.fra-prose a { color: hsl(var(--primary)); text-decoration: underline; }
.fra-prose blockquote { border-left: 3px solid hsl(var(--primary)); padding: .25rem 0 .25rem 1rem; margin: 0 0 1rem; color: hsl(var(--muted-foreground)); }
.fra-prose table { border-collapse: collapse; margin: 0 0 1rem; font-size: .92rem; }
.fra-prose th, .fra-prose td { border: 1px solid rgba(127,127,127,.3); padding: .4rem .7rem; text-align: left; }
.fra-prose th { background: rgba(127,127,127,.08); }

/* phones: centred footer, links wrap as whole words */
@media (max-width: 767px) {
  footer.border-t .container>div{text-align:center}
  footer.border-t .container>div>div{flex-direction:column;gap:.9rem}
  footer.border-t nav{flex-wrap:wrap;justify-content:center;gap:.35rem 1.1rem;font-size:.875rem}
  footer.border-t nav a{white-space:nowrap}
}

/* contact card (e-mail, phone, WhatsApp): tighter on phones */
@media (max-width: 767px) {
  #contact [data-fr-grid4] { padding: 1.5rem 1.25rem; gap: 1.25rem; }
  #contact [data-fr-grid4] > * { padding-top: 1.25rem; }
  #contact [data-fr-grid4] > :first-child { padding-top: 0; }
}
