/* -----------------------------------------------
   Gitmark Newsletter — signup widget
   Brand: #e02b20 (rød) / #2F3B43 (Robustblå)
----------------------------------------------- */

.gm-signup-wrap {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  width: 100%;
  box-sizing: border-box;
}

/* --- Inline variant (standard shortcode) --- */
.gm-signup-wrap.gm-style-inline {
  max-width: 560px;
}

.gm-signup-title {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 8px;
  color: #2F3B43;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.gm-signup-desc {
  font-size: 15px;
  color: #555;
  margin: 0 0 18px;
  line-height: 1.55;
}

.gm-signup-row {
  display: flex;
  gap: 0;
  border: 2px solid #d0d0d0;
  border-radius: 6px;
  overflow: hidden;
  transition: border-color .2s;
  background: #fff;
}

.gm-signup-row:focus-within {
  border-color: #2F3B43;
}

.gm-signup-email {
  flex: 1;
  min-width: 0;
  padding: 13px 16px;
  font-size: 15px;
  border: none;
  outline: none;
  background: transparent;
  color: #1a1a1a;
  font-family: inherit;
}

.gm-signup-email::placeholder {
  color: #aaa;
}

.gm-signup-btn {
  padding: 13px 22px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  background: #e02b20;
  color: #fff;
  border: none;
  border-left: 2px solid #e02b20;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  transition: background .18s;
  white-space: nowrap;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.gm-signup-btn:hover  { background: #c52419; }
.gm-signup-btn:active { background: #b01f14; }
.gm-signup-btn:disabled { opacity: .55; cursor: not-allowed; }

/* --- Success state --- */
.gm-signup-msg {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.45;
  min-height: 20px;
}

.gm-signup-msg.success {
  color: #1a7c47;
  display: flex;
  align-items: center;
  gap: 6px;
}

.gm-signup-msg.success::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%231a7c47'%3E%3Cpath fill-rule='evenodd' d='M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z' clip-rule='evenodd'/%3E%3C/svg%3E") no-repeat center / contain;
  flex-shrink: 0;
}

.gm-signup-msg.error {
  color: #c0392b;
}

/* --- Banner/dark variant: [gm_signup style="banner"] --- */
.gm-signup-wrap.gm-style-banner {
  background: #2F3B43;
  border-radius: 8px;
  padding: 32px 36px;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.gm-style-banner .gm-signup-title {
  color: #fff;
  font-size: 20px;
  margin-bottom: 4px;
}

.gm-style-banner .gm-signup-desc {
  color: rgba(255,255,255,.7);
  margin-bottom: 0;
  font-size: 14px;
}

.gm-style-banner .gm-signup-text {
  flex: 1;
  min-width: 200px;
}

.gm-style-banner .gm-signup-form-area {
  flex: 1;
  min-width: 260px;
}

.gm-style-banner .gm-signup-row {
  border-color: rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
}

.gm-style-banner .gm-signup-row:focus-within {
  border-color: rgba(255,255,255,.6);
}

.gm-style-banner .gm-signup-email {
  color: #fff;
}

.gm-style-banner .gm-signup-email::placeholder {
  color: rgba(255,255,255,.45);
}

.gm-style-banner .gm-signup-msg.success { color: #6edc9e; }
.gm-style-banner .gm-signup-msg.error   { color: #ffaaaa; }

/* --- Responsive --- */
@media (max-width: 520px) {
  .gm-signup-row {
    flex-direction: column;
    border-radius: 6px;
  }
  .gm-signup-btn {
    border-left: none;
    border-top: 2px solid rgba(0,0,0,.08);
    border-radius: 0 0 4px 4px;
    width: 100%;
    padding: 13px;
  }
  .gm-style-banner {
    padding: 24px 20px;
    gap: 20px;
  }
}
