/* ══════════════════════════════════════════════════
   KNS Newsletter Styles v3
   Scoped by page-id — zero theme conflicts
   Pages: 16, 17, 19, 24
   ══════════════════════════════════════════════════ */

/* ── THEME OVERRIDES (page-id scoped) ── */

/* Hide page-header, reduce blog-page padding */
.page-id-16 .page-header,
.page-id-17 .page-header,
.page-id-19 .page-header,
.page-id-24 .page-header {
    display: none !important;
}

.page-id-16 .blog-page,
.page-id-17 .blog-page,
.page-id-19 .blog-page,
.page-id-24 .blog-page {
    padding: 0 !important;
}

/* Let content breathe — full width inside container */
.page-id-16 .post-content,
.page-id-17 .post-content,
.page-id-19 .post-content,
.page-id-24 .post-content {
    max-width: 100% !important;
}

/* ── BASE ── */
.kns-page {
    font-family: 'Araboto', 'Alexandria', sans-serif;
    color: #1a2332;
    line-height: 1.7;
}

/* ══ STEP 1: SUBSCRIBE ══ */

.kns-hero {
    padding: 30px 20px 40px;
    text-align: center;
}

.kns-hero-inner {
    max-width: 540px;
    margin: 0 auto;
}

.kns-slabel {
    font-size: 13px;
    font-weight: 600;
    color: #4DB37A;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.kns-slabel::before {
    content: '';
    width: 24px;
    height: 2px;
    background: #4DB37A;
}

.kns-h1 {
    font-size: 30px;
    font-weight: 800;
    color: #083434;
    line-height: 1.6;
    margin-bottom: 14px;
}

.kns-h1 em {
    font-style: normal;
    color: #4DB37A;
}

.kns-hdesc {
    font-size: 15px;
    color: #4a5e5e;
    line-height: 2;
    margin-bottom: 28px;
}

/* Form */
.kns-form-row {
    display: flex;
    gap: 10px;
    max-width: 420px;
    margin: 0 auto 10px;
}

.kns-form-row input[type="email"] {
    flex: 1;
    padding: 11px 14px;
    border: 1.5px solid #dde3e3;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    color: #083434;
    outline: none;
    background: #fafbfb;
    direction: ltr;
    text-align: right;
}

.kns-form-row input:focus {
    border-color: #4DB37A;
    background: #fff;
}

.kns-form-row input::placeholder {
    color: #b0b8b8;
    direction: rtl;
}

.kns-form-row button {
    padding: 11px 22px;
    background: #4DB37A;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.kns-form-row button:hover {
    background: #3d9c66;
}

.kns-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    max-width: 420px;
    margin: 8px auto 0;
    text-align: right;
}

.kns-consent input {
    width: 16px;
    height: 16px;
    min-width: 16px;
    accent-color: #4DB37A;
    margin-top: 3px;
}

.kns-consent span {
    font-size: 11px;
    color: #7a8a8a;
    line-height: 1.7;
}

.kns-consent a {
    color: #4DB37A;
    text-decoration: none;
}

.kns-error {
    display: none;
    color: #e53e3e;
    font-size: 12px;
    margin-top: 8px;
    text-align: center;
}

/* Features */
.kns-features {
    padding: 50px 20px;
    background: #f7f9f9;
}

.kns-features-inner {
    max-width: 880px;
    margin: 0 auto;
}

.kns-fheader {
    text-align: center;
    margin-bottom: 32px;
}

.kns-fheader h2 {
    font-size: 21px;
    font-weight: 700;
    color: #083434;
    margin-bottom: 6px;
}

.kns-gline {
    width: 40px;
    height: 3px;
    background: #4DB37A;
    border-radius: 2px;
    margin: 10px auto 0;
}

.kns-fgrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.kns-fcard {
    background: #fff;
    border: 1px solid #e8ecec;
    border-radius: 4px;
    padding: 24px 18px;
    text-align: center;
    transition: box-shadow 0.3s;
}

.kns-fcard:hover {
    box-shadow: 0 4px 16px rgba(8, 52, 52, 0.05);
}

.kns-ficon {
    width: 40px;
    height: 40px;
    background: rgba(77, 179, 122, 0.08);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.kns-ficon svg {
    width: 18px;
    height: 18px;
}

.kns-fcard h3 {
    font-size: 14px;
    font-weight: 700;
    color: #083434;
    margin-bottom: 6px;
}

.kns-fcard p {
    font-size: 13px;
    color: #5a6e6e;
    line-height: 1.8;
}

/* ══ STEP 2: PROFILE ══ */

.kns-progress {
    background: #fff;
    border-bottom: 1px solid #e8ecec;
    padding: 16px 20px;
}

.kns-progress-inner {
    max-width: 460px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.kns-progress-inner::before {
    content: '';
    position: absolute;
    top: 13px;
    left: 0;
    right: 0;
    height: 3px;
    background: #e8ecec;
    z-index: 0;
}

.kns-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    z-index: 2;
    background: #fff;
    padding: 0 12px;
}

.kns-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid #e8ecec;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #b0b8b8;
}

.kns-step.active .kns-dot { background: #083434; border-color: #083434; color: #fff; }
.kns-step.done .kns-dot { background: #4DB37A; border-color: #4DB37A; color: #fff; }
.kns-steplabel { font-size: 11px; font-weight: 600; color: #b0b8b8; }
.kns-step.active .kns-steplabel { color: #083434; font-weight: 700; }
.kns-step.done .kns-steplabel { color: #4DB37A; }
.kns-step2 .kns-progress-inner::after { content: ''; position: absolute; top: 13px; right: 0; width: 50%; height: 3px; background: #4DB37A; z-index: 1; }
.kns-step3 .kns-progress-inner::before { background: #4DB37A; }

/* Main */
.kns-main {
    padding: 30px 20px 50px;
}

.kns-main-inner {
    max-width: 560px;
    margin: 0 auto;
}

.kns-page-title {
    font-size: 22px;
    font-weight: 800;
    color: #083434;
    margin-bottom: 6px;
}

.kns-page-desc {
    font-size: 14px;
    color: #7a8a8a;
    margin-bottom: 28px;
}

/* Section headings */
.kns-section-head {
    font-size: 15px;
    font-weight: 700;
    color: #083434;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.kns-section-head svg { width: 18px; height: 18px; }

.kns-section-sub {
    font-size: 13px;
    color: #7a8a8a;
    margin-bottom: 16px;
}

.kns-divider {
    height: 1px;
    background: #e8ecec;
    margin: 24px 0;
}

/* Form fields */
.kns-fgrid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.kns-fg { display: flex; flex-direction: column; }

.kns-fg label {
    font-size: 13px;
    font-weight: 600;
    color: #083434;
    margin-bottom: 4px;
}

.kns-fg input,
.kns-fg select {
    font-family: inherit;
    font-size: 14px;
    color: #083434;
    background: #fafbfb;
    border: 1.5px solid #dde3e3;
    border-radius: 4px;
    padding: 10px 12px;
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
}

.kns-fg input:focus,
.kns-fg select:focus {
    border-color: #4DB37A;
    background: #fff;
}

.kns-fg input::placeholder { color: #b0b8b8; }

.kns-fg select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23b0b8b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 14px center;
    padding-left: 36px;
}

/* Newsletter options */
.kns-nl-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid #e8ecec;
    border-radius: 4px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.kns-nl-option:hover { border-color: #ccd4d4; }
.kns-nl-option.selected { border-color: #4DB37A; background: rgba(77, 179, 122, 0.02); }

.kns-nl-check {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 2px solid #ccd4d4;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.kns-nl-option.selected .kns-nl-check { background: #4DB37A; border-color: #4DB37A; }
.kns-nl-option.selected .kns-nl-check::after { content: ''; display: block; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); margin-top: -2px; }

.kns-nl-icon {
    width: 40px;
    height: 40px;
    background: #f3f5f5;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kns-nl-icon svg { width: 20px; height: 20px; }

.kns-nl-text { flex: 1; }
.kns-nl-text h4 { font-size: 15px; font-weight: 700; color: #083434; margin-bottom: 2px; }
.kns-nl-text p { font-size: 12px; color: #7a8a8a; line-height: 1.5; }

.kns-nl-freq {
    font-size: 11px;
    color: #7a8a8a;
    background: #f3f5f5;
    padding: 3px 10px;
    border-radius: 4px;
    white-space: nowrap;
}

/* Submit */
.kns-btn-submit {
    margin-top: 24px;
    width: 100%;
    padding: 13px;
    background: #4DB37A;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.kns-btn-submit:hover { background: #3d9c66; }

/* ══ STEP 3: CONFIRMATION ══ */

.kns-confirm {
    text-align: center;
    padding-top: 40px;
}

.kns-confirm-icon {
    width: 60px;
    height: 60px;
    background: rgba(77, 179, 122, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.kns-confirm-icon svg { width: 30px; height: 30px; }

.kns-confirm h1 {
    font-size: 24px;
    font-weight: 800;
    color: #083434;
    margin-bottom: 10px;
}

.kns-confirm p {
    font-size: 15px;
    color: #7a8a8a;
    line-height: 1.9;
    max-width: 440px;
    margin: 0 auto 18px;
}

.kns-check-inbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f7f9f9;
    border: 1px solid #e8ecec;
    padding: 10px 16px;
    border-radius: 4px;
    font-size: 13px;
    color: #083434;
    margin-bottom: 22px;
}

.kns-check-inbox svg { width: 16px; height: 16px; flex-shrink: 0; }

.kns-btn-explore {
    display: inline-block;
    padding: 10px 22px;
    background: #083434;
    color: #fff;
    border-radius: 4px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.kns-btn-explore:hover { background: #0a4a4a; }

/* ══ RESPONSIVE ══ */
@media (max-width: 768px) {
    .kns-h1 { font-size: 24px; }
    .kns-fgrid { grid-template-columns: 1fr; }
    .kns-fgrid2 { grid-template-columns: 1fr; }
    .kns-form-row { flex-direction: column; }
    .kns-form-row button { width: 100%; }
    .kns-hero { padding: 20px 16px 30px; }
    .kns-features { padding: 30px 16px; }
    .kns-main { padding: 20px 16px 40px; }
    .kns-steplabel { font-size: 10px; }
    .kns-step { padding: 0 8px; }
    .kns-nl-freq { display: none; }
    .kns-nl-option { padding: 12px; }
}

/* Header fix for newsletter pages */
.page-id-16 .header,
.page-id-17 .header,
.page-id-19 .header,
.page-id-24 .header {
    background: #083434 !important;
}

.page-id-16 .kns-hero,
.page-id-17 .kns-main,
.page-id-19 .kns-main,
.page-id-24 .post-content {
    padding-top: 120px;
}

.page-id-17 .kns-progress,
.page-id-19 .kns-progress {
    margin-top: 100px;
}

/* Fix boxed container on newsletter pages */
.page-id-16 .blog-page > .container,
.page-id-17 .blog-page > .container,
.page-id-19 .blog-page > .container,
.page-id-24 .blog-page > .container {
    max-width: 100% !important;
    padding: 0 !important;
}

/* More top spacing */
.page-id-16 .kns-hero {
    padding-top: 140px;
}

/* Force features section to break out of any container */
.page-id-16 .kns-features,
.page-id-17 .kns-progress {
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
}

/* Remove gap between features and footer */
.page-id-16 .blog-page,
.page-id-17 .blog-page,
.page-id-19 .blog-page,
.page-id-24 .blog-page {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.page-id-16 .post-content,
.page-id-17 .post-content,
.page-id-19 .post-content,
.page-id-24 .post-content {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.page-id-16 .kns-features {
    margin-bottom: 0 !important;
    padding-bottom: 50px;
}