/* BoostujCMS — public site announcements (header bar + popup modal) */

/* ===== HEADER BAR (non-dismissible) ===== */
.fe-announcement-bar {
  background: #000000;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.4;
  padding: 10px 16px;
  text-align: center;
  position: relative;
  /* Stays below sticky header (z:100) and mobile drawer (z:200);
     bar is not sticky, so it just scrolls out of view. */
  z-index: 90;
}
.fe-announcement-bar .fe-ann-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;       /* vertical centering — keeps icon in line with text */
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap;
}
.fe-announcement-bar .fe-ann-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}
.fe-announcement-bar .fe-ann-icon i {
  font-size: 16px;
  line-height: 1;
}
.fe-announcement-bar .fe-ann-link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
/* Underline only the text portion of the link, never the icon. */
.fe-announcement-bar .fe-ann-link .fe-ann-text {
  border-bottom: 1px dashed currentColor;
  padding-bottom: 1px;
}
.fe-announcement-bar .fe-ann-link:hover .fe-ann-text {
  border-bottom-style: solid;
}
.fe-announcement-bar .fe-ann-text {
  font-weight: 500;
  line-height: 1.4;          /* matches outer line-height for stable centering */
  display: inline-block;
}
@media (max-width: 600px) {
  .fe-announcement-bar      { font-size: 13px; padding: 9px 12px; }
  .fe-announcement-bar .fe-ann-inner { gap: 6px; }
  .fe-announcement-bar .fe-ann-icon i { font-size: 14px; }
  /* Allow text to wrap onto a second line on very narrow screens, but
     keep flex centering and icon vertically aligned with the first line. */
  .fe-announcement-bar .fe-ann-link { flex-wrap: wrap; justify-content: center; }
}

/* ===== POPUP MODAL ===== */
.fe-ann-modal[hidden] { display: none !important; }

.fe-ann-modal {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: feAnnFadeIn .22s ease-out;
}
.fe-ann-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 14, 0.55);
  backdrop-filter: blur(2px);
}
.fe-ann-dialog {
  position: relative;
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  background: #ffffff;
  color: #1a1611;
  border-radius: 12px;
  box-shadow: 0 22px 60px -20px rgba(0, 0, 0, .35), 0 6px 14px -8px rgba(0, 0, 0, .2);
  overflow: auto;
  padding: 28px 28px 24px;
  animation: feAnnSlideUp .26s ease-out;
}
.fe-ann-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  outline: none;
  background: transparent;
  color: #6b6557;
  font-size: 20px;
  cursor: pointer;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-appearance: none;
          appearance: none;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s, color .15s, box-shadow .15s;
}
.fe-ann-close:hover { background: #f4f1ea; color: #1a1611; }
.fe-ann-close:focus,
.fe-ann-close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(166, 124, 46, 0.18);
  background: #f4f1ea;
  color: #1a1611;
}
.fe-ann-close::-moz-focus-inner { border: 0; }

.fe-ann-header h3 {
  margin: 0 36px 14px 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  color: #1a1611;
}
.fe-ann-body {
  font-size: 15px;
  line-height: 1.55;
  color: #2a2620;
}
.fe-ann-body p { margin: 0 0 12px; }
.fe-ann-body p:last-child { margin-bottom: 0; }
.fe-ann-body a { color: #A67C2E; text-decoration: underline; }
.fe-ann-body img { max-width: 100%; height: auto; border-radius: 6px; }
.fe-ann-body ul,
.fe-ann-body ol { padding-left: 22px; margin: 0 0 12px; }

/* Contact form inside the modal */
.fe-ann-form {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #ECE6D7;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fe-ann-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fe-ann-form .fe-ann-label {
  font-size: 12px;
  color: #6b6557;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.fe-ann-form input,
.fe-ann-form textarea {
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  color: #1a1611;
  text-transform: none;
  letter-spacing: normal;
  border: 1px solid #DCD3BD;
  border-radius: 6px;
  padding: 10px 12px;
  background: #FAF7EE;
  outline: none;
  transition: border-color .15s, background .15s;
}
.fe-ann-form input:focus,
.fe-ann-form textarea:focus {
  border-color: #A67C2E;
  background: #ffffff;
}
.fe-ann-form textarea { resize: vertical; min-height: 90px; }

.fe-ann-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 480px) {
  .fe-ann-form-row { grid-template-columns: 1fr; }
}

/* Status alert — fade in / fade out, with permanently reserved height so the
   submit button never shifts when an alert appears or disappears. */
.fe-ann-form-status {
  font-size: 13px;
  min-height: 44px;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  background: transparent;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease-out, background-color .25s, border-color .25s;
}
.fe-ann-form-status.is-shown {
  opacity: 1;
  visibility: visible;
}
.fe-ann-form-status.is-success {
  color: #2f7d3a;
  background: rgba(47, 125, 58, 0.08);
  border-color: rgba(47, 125, 58, 0.25);
}
.fe-ann-form-status.is-error {
  color: #b3261e;
  background: rgba(179, 38, 30, 0.08);
  border-color: rgba(179, 38, 30, 0.25);
}
.fe-ann-form-status::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 14px;
}
.fe-ann-form-status.is-success::before { content: "\f00c"; /* check */ }
.fe-ann-form-status.is-error::before   { content: "\f071"; /* triangle-exclamation */ }

.fe-ann-form-actions {
  display: flex;
  justify-content: flex-end;
}

/* Required marker after labels */
.fe-ann-form .fe-ann-req { color: #b3261e; margin-left: 1px; }

.fe-ann-submit {
  background: #A67C2E;
  color: #ffffff;
  border: none;
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  position: relative;
  min-width: 160px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .15s, opacity .15s;
}
.fe-ann-submit:hover  { background: #8c6620; }
.fe-ann-submit:disabled,
.fe-ann-submit.is-loading {
  opacity: .85;
  cursor: progress;
}
/* Post-success "Odoslané" lock — visually inert, not clickable. */
.fe-ann-submit.is-done,
.fe-ann-submit.is-done:hover {
  background: #b8b3a8;
  color: #ffffff;
  opacity: 1;
  cursor: not-allowed;
  pointer-events: none;
}
.fe-ann-submit-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: feAnnSpin .8s linear infinite;
}
.fe-ann-submit.is-loading .fe-ann-submit-spinner {
  display: inline-block;
}
@keyframes feAnnSpin { to { transform: rotate(360deg); } }

/* Lock body scroll while popup is open */
body.fe-ann-locked { overflow: hidden; }

@keyframes feAnnFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes feAnnSlideUp {
  from { transform: translateY(12px); opacity: .85; }
  to   { transform: translateY(0);   opacity: 1; }
}
