/* Samtalshuset – QUE.css v9 (mobile-first) */

:root{
  --shs-red:#833332;
  --shs-gray:#f1f1f1;
  --shs-beige:#c1a271;
  --shs-dark:#333;
}

html,body{margin:0;padding:0}
body{font-family:"Segoe UI",Arial,sans-serif;color:#222;background:#fff}

/* Header title link styling */
.info-link {
  text-decoration: none;        /* inga underlines */
  color: inherit;               /* ärver textfärg */
  display: inline-block;
}

.info-link:hover,
.info-link:focus {
  text-decoration: none;        /* håll det rent även vid hover */
  color: #0077cc;               /* valfritt: gör hover-färg tydlig */
}

.info-title {
  font-size: 1.6em;
  font-weight: 600;
  margin-top: 0.3em;
  text-align: center;
}

/* Header: logga överst, rubrik under – centrerat */
.header-mobile{
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  padding:10px 0 12px 0; border-bottom:4px solid var(--shs-red);
}
.header-mobile img{ height:76px; width:auto; margin:4px 0; }
.header-mobile h1{ margin:0; color:var(--shs-red); font-size:1.6rem; font-weight:700 }

/* Wrapper och kort */
.mobile-wrap{
  display:flex; flex-direction:column; align-items:center; justify-content:flex-start;
  min-height:calc(100vh - 120px);
}

.card{
  background:#fff; border:1px solid #ddd; border-radius:12px;
  margin:22px auto; padding:16px 14px; width:100%; max-width:340px; /* SMALARE + CENTRERAD */
  box-shadow:0 2px 6px rgba(0,0,0,0.06);
}

/* Mobile & pinkod inmatning */
.queue-input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;
}

/* Rubrikrad (pilar + titel) */
.event-header{
  display:grid; grid-template-columns:48px 1fr 48px; align-items:center; gap:6px;
  margin-bottom:10px;
}
.event-title{ text-align:center; font-weight:700; color:var(--shs-red); }
.event-nav-btn{
  width:42px; height:36px; border:none; border-radius:8px; cursor:pointer;
  background:var(--shs-red); color:#fff; font-weight:700; font-size:1rem;
}
.event-nav-btn:disabled{ opacity:.5; }

/* Event-info */
.event-info{
  background:var(--shs-gray); border-radius:10px; padding:10px 12px; margin-bottom:12px;
  line-height:1.35;
}
.event-info .soft{ color:#666; font-style:italic; }

/* Kö-formulär */
.queue-form{
  display:flex; flex-direction:column; gap:8px; margin-top:4px;
}
.queue-form label.soft{ color:#444; font-size:.95rem; }
.queue-form input[type="tel"]{
  padding:10px; border:1px solid #ccc; border-radius:8px; font-size:1rem;
}
.queue-btn{
  margin-top:6px; padding:10px 14px; font-weight:700; color:#fff; background:var(--shs-red);
  border:none; border-radius:10px; cursor:pointer;
}
.queue-btn:hover{ background:var(--shs-beige); color:#000; }

/* --- Meddelanderutor --- */
.msg {
  margin: 12px auto;
  padding: 12px 16px;
  max-width: 90%;
  border-radius: 10px;
  font-size: 1.1em;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  background-color: #eef6ee;    /* standard: svagt grönt */
  border: 1px solid #b4d6b4;
  color: #225522;
}

/* Lyckade meddelanden */
.msg.success {
  background-color: #e9f7ef;
  border-color: #a8d5a0;
  color: #206030;
}

/* Felmeddelanden */
.msg.error {
  background-color: #fdecea;
  border-color: #f5b5b2;
  color: #a33a2b;
}


/* Footer */
.footnote{ color:#666; font-size:.85rem; margin:6px 0 24px 0; text-align:center; }

/* Småskärmsjustering */
@media (max-width:360px){
  .card{ margin:18px 10px; }
  .event-nav-btn{ width:38px; }
}

/* ======================================================================
   Modal för Swish-bekräftelse – mobiloptimerad (QUE.css v9.1)
   ====================================================================== */

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}
.modal-content {
  background-color: #fff;
  margin: 15% auto;
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 360px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.modal-content h3 {
  margin-top: 0;
  font-size: 1.2em;
  color: #444;
}
.modal-buttons {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
}
.queue-btn.confirm {
  background-color: #3aa73a;
  color: #fff;
}
.queue-btn.cancel {
  background-color: #ccc;
  color: #333;
}

/* ======================================================================
   Kompakt layout för formulär och knappar – mobilvy
   ====================================================================== */

/* Grundläggande formjustering */
.queue-form {
  display: flex;
  flex-direction: column;
  gap: 4px;            /* mindre vertikalt mellanrum */
  margin-top: 4px;
}

/* Inmatningsfält */
.queue-input {
  width: 100%;
  padding: 8px 10px;
  font-size: 0.95rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

/* Knappar */
.queue-btn {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 8px 10px;
  font-size: 0.95rem;
  background-color: #8b2c2c;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.queue-btn:hover {
  background-color: #a23333;
}
.queue-btn.danger {
  background-color: #a23333;
}
.queue-btn.danger:hover {
  background-color: #b03b3b;
}

/* Två knappar per rad vid smala skärmar */
.button-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.button-wrap .queue-btn {
  width: 100%;
  margin-top: 0;
}

/* Meddelanderuta */
.msg {
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.95rem;
  margin: 6px 0;
  text-align: center;
}
.msg.success { background: #e7f8e7; color: #226622; border: 1px solid #a6d3a6; }
.msg.error   { background: #fde8e8; color: #a11; border: 1px solid #f5c4c4; }
.msg.info    { background: #e8f3fd; color: #1155a1; border: 1px solid #bdd8f5; }

/* Extra finjustering för mycket smala mobiler */
@media (max-width:360px) {
  .card { margin: 16px 8px; }
  .queue-btn { font-size: 0.9rem; padding: 7px 9px; }
}
