/* ============================================================
   BoydNorth — Email capture modal styling
   ============================================================ */

.bn-paper-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  font-family: 'Source Sans 3', -apple-system, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.bn-paper-modal.open {
  display: flex;
  animation: bnFadeIn 0.25s ease-out;
}
@keyframes bnFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.bn-paper-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
}

.bn-paper-card {
  position: relative;
  background: #FDFBF7;
  border-left: 5px solid #8B1F2B;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.2);
  padding: 2.6rem 2.4rem 2.2rem;
  max-width: 540px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  animation: bnSlideUp 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes bnSlideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.bn-paper-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: transparent;
  border: 0;
  font-size: 28px;
  line-height: 1;
  color: #5A554D;
  cursor: pointer;
  padding: 6px 10px;
  transition: color 0.15s;
}
.bn-paper-close:hover { color: #8B1F2B; }

.bn-paper-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8B1F2B;
  margin-bottom: 0.9rem;
}

.bn-paper-title {
  font-family: 'EB Garamond', Garamond, Georgia, serif;
  font-size: 1.85rem;
  line-height: 1.12;
  color: #0A0A0A;
  font-weight: 500;
  margin: 0 0 0.9rem;
  letter-spacing: -0.005em;
}

.bn-paper-lede {
  font-family: 'EB Garamond', Garamond, Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.55;
  color: #5A554D;
  margin: 0 0 1.6rem;
}

.bn-paper-form {
  margin: 0 0 1.2rem;
}

.bn-paper-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #3A3530;
  margin-bottom: 0.5rem;
}
.bn-paper-label + .bn-paper-label {
  margin-top: 0.9rem;
}

.bn-paper-form input[type="email"],
.bn-paper-form input[type="text"] {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid #E0DCD3;
  background: #FFFFFF;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  color: #1A1A1A;
  border-radius: 0;
  transition: border-color 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.bn-paper-form input[type="email"]:focus,
.bn-paper-form input[type="text"]:focus {
  outline: none;
  border-color: #8B1F2B;
  box-shadow: 0 0 0 3px rgba(139, 31, 43, 0.12);
}

.bn-paper-submit {
  width: 100%;
  margin-top: 0.9rem;
  padding: 1rem 1.4rem;
  background: #8B1F2B;
  color: #FFFFFF;
  border: 0;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
.bn-paper-submit:hover:not(:disabled) { background: #A82834; }
.bn-paper-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.bn-paper-error {
  color: #8B1F2B;
  font-size: 0.88rem;
  margin-top: 0.7rem;
  min-height: 1.2em;
  font-weight: 500;
}

.bn-paper-fine {
  font-size: 0.78rem;
  line-height: 1.5;
  color: #5A554D;
  margin: 0;
  font-style: italic;
}
.bn-paper-fine a {
  color: #8B1F2B;
  text-decoration: underline;
  text-decoration-color: rgba(139, 31, 43, 0.35);
}
.bn-paper-fine a:hover {
  text-decoration-color: #8B1F2B;
}

.bn-paper-success {
  text-align: left;
}
.bn-paper-cta {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 1rem 1.6rem;
  background: #8B1F2B;
  color: #FFFFFF;
  text-decoration: none;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 0.2s;
}
.bn-paper-cta:hover {
  background: #A82834;
  color: #FFFFFF;
}

/* Mobile */
@media (max-width: 540px) {
  .bn-paper-modal { padding: 1rem; }
  .bn-paper-card {
    padding: 2rem 1.6rem 1.6rem;
  }
  .bn-paper-title { font-size: 1.55rem; }
  .bn-paper-lede { font-size: 1rem; }
}
