/* S&F Marine Construction — Email Capture Modal (see js/email-capture.js)
   Brand: ink #0e0f10 · amber #f6a623 · paper #fffdf9 · Saira / Barlow */

.sf-ec-overlay {
  position: fixed; inset: 0; z-index: 2147483640;
  display: flex; align-items: center; justify-content: center; padding: 1rem;
  background: rgb(14 15 16 / 0.7); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity .28s ease, visibility .28s ease;
}
.sf-ec-overlay.is-visible { opacity: 1; visibility: visible; }

.sf-ec-modal {
  position: relative;
  width: min(460px, 100%);
  background: #fffdf9;
  color: #0e0f10;
  border-radius: 6px;
  border-top: 6px solid #f6a623;
  box-shadow: 0 24px 60px -20px rgb(14 15 16 / 0.6);
  padding: 34px 30px 28px;
  text-align: center;
  transform: translateY(14px);
  transition: transform .28s ease;
  font-family: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.sf-ec-overlay.is-visible .sf-ec-modal { transform: translateY(0); }

.sf-ec-close {
  position: absolute; top: 10px; right: 10px;
  width: 40px; height: 40px; border: 0; border-radius: 4px;
  background: #f4efe6; color: #0e0f10;
  font-size: 1.5rem; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.sf-ec-close:hover { background: #e2dbcf; }
.sf-ec-close:focus-visible, .sf-ec-dismiss:focus-visible, .sf-ec-submit:focus-visible { outline: 3px solid #f6a623; outline-offset: 3px; }

.sf-ec-eyebrow {
  margin: 0 0 6px; color: #d9861a;
  font-family: 'Saira', 'Arial Narrow', sans-serif; font-style: italic;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.sf-ec-heading {
  margin: 0 0 10px; font-family: 'Saira', 'Arial Narrow', sans-serif; font-style: italic;
  font-size: 1.75rem; font-weight: 800; line-height: 1.05; letter-spacing: -0.01em; color: #0e0f10;
}
.sf-ec-subtext { margin: 0 auto 18px; max-width: 370px; color: #5b5f63; font-size: 1rem; line-height: 1.55; }

.sf-ec-form { display: block; }
.sf-ec-input {
  width: 100%; box-sizing: border-box;
  border: 1.5px solid #c9ced2; border-radius: 4px;
  padding: 13px 15px; font: inherit; font-size: 1.05rem; color: #0e0f10; background: #fff;
}
.sf-ec-input:focus { outline: none; border-color: #d9861a; box-shadow: 0 0 0 3px rgb(246 166 35 / 0.3); }
.sf-ec-error { margin: 8px 0 0; min-height: 1.1em; color: #b3261e; font-size: 0.88rem; font-weight: 600; text-align: left; }

.sf-ec-submit {
  width: 100%; margin-top: 10px;
  border: 0; border-radius: 4px;
  background: #f6a623; color: #0e0f10;
  padding: 14px 18px;
  font-family: 'Saira', 'Arial Narrow', sans-serif; font-size: 1rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase; cursor: pointer;
  transition: background .15s ease;
}
.sf-ec-submit:hover { background: #d9861a; }
.sf-ec-submit:disabled { opacity: .7; cursor: default; }

.sf-ec-dismiss {
  display: inline-block; margin-top: 12px; padding: 6px;
  border: 0; background: transparent; color: #5b5f63;
  font: inherit; font-size: 0.92rem; text-decoration: underline; cursor: pointer;
}
.sf-ec-dismiss:hover { color: #0e0f10; }

.sf-ec-fineprint { margin: 10px 0 0; color: #5b5f63; font-size: 0.8rem; line-height: 1.5; }
.sf-ec-fineprint a, .sf-ec-success-text a { color: #2f5d74; }

.sf-ec-success { padding: 8px 0; }
.sf-ec-success-heading { margin: 0 0 6px; font-family: 'Saira', 'Arial Narrow', sans-serif; font-size: 1.4rem; font-weight: 800; color: #0e0f10; }
.sf-ec-success-text { margin: 0; color: #5b5f63; font-size: 1rem; line-height: 1.55; }

@media (max-width: 480px) {
  .sf-ec-modal { padding: 32px 20px 22px; }
  .sf-ec-heading { font-size: 1.5rem; }
}
