/* assets/css/gate.css — adkonnekt lead magnet gate styles */

:root {
  --ak-bg:      #0D0D0D;
  --ak-bg-2:    #141414;
  --ak-bg-3:    #1C1C1C;
  --ak-teal:    #00D4C8;
  --ak-gold:    #F5C842;
  --ak-white:   #FFFFFF;
  --ak-text:    #F0F0F0;
  --ak-muted:   #888888;
  --ak-border:  rgba(255, 255, 255, 0.08);
  --ak-red:     #FF4D4D;
  --radius-lg:  16px;
  --radius-sm:  10px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  background: var(--ak-bg);
  color: var(--ak-text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── HEADER ──────────────────────────────────────────────────── */
.gate-header {
  background: var(--ak-bg-2);
  border-bottom: 1px solid var(--ak-border);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gate-logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--ak-teal);
  text-decoration: none;
}

.gate-logo:hover { opacity: 0.85; }

.gate-header-tagline {
  font-size: 12px;
  color: var(--ak-muted);
  letter-spacing: 0.5px;
}

/* ── LAYOUT ──────────────────────────────────────────────────── */
.gate-container {
  display: flex;
  gap: 48px;
  max-width: 1100px;
  margin: 48px auto;
  padding: 0 24px;
  align-items: flex-start;
}

.gate-left  { flex: 0 0 380px; }
.gate-right { flex: 1; min-width: 0; }

/* ── COVER IMAGE ─────────────────────────────────────────────── */
.gate-cover {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(0, 212, 200, 0.14);
  display: block;
}

/* ── BENEFITS LIST ───────────────────────────────────────────── */
.gate-bullets {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.gate-bullets li {
  padding: 10px 0 10px 28px;
  position: relative;
  color: var(--ak-text);
  font-size: 15px;
  line-height: 1.55;
  border-bottom: 1px solid var(--ak-border);
}

.gate-bullets li:last-child { border-bottom: none; }

.gate-bullets li::before {
  content: "✓";
  color: var(--ak-teal);
  position: absolute;
  left: 0;
  font-weight: 700;
  font-size: 15px;
}

/* ── FORM CARD ───────────────────────────────────────────────── */
.gate-card {
  background: var(--ak-bg-3);
  border: 1px solid var(--ak-border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
}

.gate-label {
  display: inline-block;
  background: var(--ak-gold);
  color: #0D0D0D;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.gate-card h1 {
  font-size: 26px;
  font-weight: 800;
  color: var(--ak-white);
  margin: 0 0 10px;
  line-height: 1.25;
}

.gate-sub {
  font-size: 15px;
  color: var(--ak-muted);
  margin: 0 0 28px;
  line-height: 1.65;
}

/* ── FORM FIELDS ─────────────────────────────────────────────── */
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field-wrap {
  margin-bottom: 16px;
}

.field-wrap label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ak-text);
  margin-bottom: 6px;
}

.field-wrap label span[aria-hidden] {
  color: var(--ak-teal);
  margin-left: 2px;
}

.field-wrap input,
.field-wrap select {
  width: 100%;
  padding: 12px 16px;
  background: var(--ak-bg-2);
  border: 1px solid var(--ak-border);
  border-radius: var(--radius-sm);
  color: var(--ak-text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.field-wrap input::placeholder { color: #555; }

.field-wrap input:focus,
.field-wrap select:focus {
  outline: none;
  border-color: var(--ak-teal);
  box-shadow: 0 0 0 3px rgba(0, 212, 200, 0.1);
}

.field-wrap input[aria-invalid="true"],
.field-wrap select[aria-invalid="true"] {
  border-color: var(--ak-red);
}

.field-wrap select { cursor: pointer; }

.field-wrap select option {
  background: var(--ak-bg-3);
  color: var(--ak-text);
}

.field-error {
  display: block;
  font-size: 12px;
  color: var(--ak-red);
  margin-top: 5px;
  min-height: 16px;
}

/* ── CONSENT ─────────────────────────────────────────────────── */
.consent-wrap {
  margin: 20px 0 24px;
  padding: 16px;
  background: rgba(0, 212, 200, 0.04);
  border: 1px solid rgba(0, 212, 200, 0.14);
  border-radius: var(--radius-sm);
}

.consent-label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  font-size: 13px;
  color: var(--ak-muted);
  line-height: 1.55;
}

.consent-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  accent-color: var(--ak-teal);
  cursor: pointer;
}

.consent-label a {
  color: var(--ak-teal);
  text-decoration: none;
}

.consent-label a:hover { text-decoration: underline; }

.consent-error {
  display: block;
  font-size: 12px;
  color: var(--ak-red);
  margin-top: 8px;
  min-height: 16px;
}

/* ── SUBMIT BUTTON ───────────────────────────────────────────── */
.btn-submit {
  width: 100%;
  padding: 16px;
  background: var(--ak-teal);
  color: #0D0D0D;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: opacity 0.2s, transform 0.1s;
}

.btn-submit:hover:not(:disabled) {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn-submit:active:not(:disabled) { transform: translateY(0); }

.btn-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ── GLOBAL ERROR ─────────────────────────────────────────────── */
.form-error-global {
  display: none;
  margin-top: 14px;
  padding: 12px 16px;
  background: rgba(255, 77, 77, 0.08);
  border: 1px solid rgba(255, 77, 77, 0.25);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--ak-red);
}

.form-error-global.visible { display: block; }

.form-error-global a { color: var(--ak-red); }

/* ── PRIVACY NOTE ─────────────────────────────────────────────── */
.gate-privacy {
  text-align: center;
  margin-top: 14px;
  font-size: 12px;
  color: var(--ak-muted);
}

.gate-privacy a {
  color: var(--ak-teal);
  text-decoration: none;
}

.gate-privacy a:hover { text-decoration: underline; }

/* ── FOOTER ──────────────────────────────────────────────────── */
.gate-footer {
  text-align: center;
  padding: 24px;
  border-top: 1px solid var(--ak-border);
  margin-top: 48px;
  font-size: 12px;
  color: var(--ak-muted);
}

.gate-footer a {
  color: var(--ak-muted);
  text-decoration: none;
}

.gate-footer a:hover { color: var(--ak-teal); }

/* ── THANK-YOU PAGE ──────────────────────────────────────────── */
.thankyou-page .gate-container {
  max-width: 560px;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 16px;
}

.thankyou-icon {
  width: 72px;
  height: 72px;
  background: rgba(0, 212, 200, 0.08);
  border: 2px solid var(--ak-teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: var(--ak-teal);
  margin: 0 auto 28px;
}

.thankyou-page h1 {
  font-size: 32px;
  font-weight: 800;
  color: var(--ak-white);
  margin: 0 0 12px;
  line-height: 1.2;
}

.thankyou-page .ty-msg {
  font-size: 16px;
  color: var(--ak-muted);
  margin: 0 0 32px;
  line-height: 1.65;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: var(--ak-teal);
  color: #0D0D0D;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.1s;
  margin-bottom: 20px;
}

.btn-download:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.ty-sub {
  font-size: 14px;
  color: var(--ak-muted);
  margin: 8px 0 24px;
  line-height: 1.6;
}

.ty-back {
  display: inline-block;
  color: var(--ak-teal);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.ty-back:hover { text-decoration: underline; }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 840px) {
  .gate-container {
    flex-direction: column;
    margin: 24px auto;
    gap: 28px;
  }

  .gate-left {
    flex: none;
    width: 100%;
  }

  .gate-cover {
    max-width: 260px;
    margin: 0 auto;
  }

  .gate-right { width: 100%; }

  .field-row { grid-template-columns: 1fr; gap: 0; }

  .gate-card { padding: 24px 20px; }

  .gate-card h1 { font-size: 22px; }

  .gate-header { padding: 14px 20px; }

  .gate-header-tagline { display: none; }

  .thankyou-page h1 { font-size: 26px; }
}

/* ── LEAD MAGNET CTA BLOCK (industry pages) ──────────────────── */
.magnet-cta {
  background: #1a2e2e;
  padding: 48px 24px;
}

.magnet-cta-inner {
  display: flex;
  gap: 32px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.magnet-cta-img {
  width: 180px;
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.magnet-cta-label {
  background: #C07000;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.magnet-cta-text h3 {
  color: #fff;
  font-size: 22px;
  margin: 0 0 8px;
  font-family: 'Inter', Arial, sans-serif;
}

.magnet-cta-text p {
  color: #aaa;
  font-size: 15px;
  margin: 0 0 16px;
  line-height: 1.6;
}

.magnet-cta-btn {
  display: inline-block;
  background: #006B6B;
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  font-family: 'Inter', Arial, sans-serif;
  transition: background 0.2s;
}

.magnet-cta-btn:hover { background: #004F4F; }

@media (max-width: 600px) {
  .magnet-cta-inner { flex-direction: column; }
  .magnet-cta-img { width: 100%; max-width: 280px; margin: 0 auto; display: block; }
}

/* ---- Compact hero-strip (post-hero, full-width one-row) ---- */
.magnet-strip {
  background: #1A2E2E;
  border-bottom: 1px solid rgba(0, 212, 200, 0.12);
}

.magnet-strip-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
}

.magnet-strip-img {
  width: 42px;
  height: auto;
  border-radius: 4px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.magnet-strip-text {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.magnet-strip-text strong {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Inter', Arial, sans-serif;
  white-space: nowrap;
}

.magnet-strip-text span {
  color: #8aaeae;
  font-size: 13px;
  font-family: 'Inter', Arial, sans-serif;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.magnet-strip-btn {
  display: inline-block;
  background: #006B6B;
  color: #fff;
  padding: 8px 18px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 13px;
  font-family: 'Inter', Arial, sans-serif;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
  transition: background 0.2s;
}

.magnet-strip-btn:hover {
  background: #004F4F;
}

@media (max-width: 700px) {
  .magnet-strip-text span { display: none; }
  .magnet-strip-inner { padding: 12px 16px; gap: 12px; }
}

@media (max-width: 400px) {
  .magnet-strip-text strong { font-size: 13px; }
  .magnet-strip-btn { padding: 7px 14px; font-size: 12px; }
}
