@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;500;600;700;800&family=Source+Serif+4:wght@400;600;700;800&display=swap');

:root {
    --accent: #005594;
    --accent-dark: #003f6e;
    --accent-light: #e6f0f8;
    --star: #f59e0b;
    --pro: #047857;
    --con: #b91c1c;
    --bg: #ffffff;
    --bg-alt: #f7f8fa;
    --text: #111111;
    --text-muted: #6b7280;
    --border: #e5e7eb;
}

body.article-page { font-family: 'Source Sans 3', system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--text); }
body.article-page h1, body.article-page h2, body.article-page h3 { font-family: 'Source Serif 4', Georgia, serif; }

.ap-advertorial { background: #fffbeb; color: #92400e; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; text-align: center; padding: 6px 0; border-bottom: 1px solid #fde68a; }

.ap-header { background: #fff; border-bottom: 1px solid var(--border); }
.ap-header-inner { max-width: 1200px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; }
.ap-logo { height: 32px; }
.ap-nav { display: flex; align-items: center; gap: 16px; }
.ap-nav-link { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; text-decoration: none; transition: color 0.2s; }
.ap-nav-link:hover { color: var(--text); }
.ap-btn-register { background: var(--accent); color: #fff; font-size: 0.8rem; font-weight: 600; padding: 7px 18px; border-radius: 4px; text-decoration: none; transition: background 0.2s; }
.ap-btn-register:hover { background: var(--accent-dark); }

.ap-category { max-width: 1200px; margin: 0 auto; padding: 20px 16px 0; }
.ap-category span { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); }
.ap-category .sep { color: #d1d5db; margin: 0 8px; }

.ap-main { max-width: 1200px; margin: 0 auto; padding: 16px; display: flex; gap: 32px; }
.ap-article { flex: 1; min-width: 0; }
.ap-sidebar { width: 340px; flex-shrink: 0; }
@media (max-width: 1023px) { .ap-sidebar { display: none; } .ap-main { flex-direction: column; } }

.ap-title { font-size: 1.8rem; font-weight: 800; line-height: 1.2; margin: 8px 0 14px; letter-spacing: -0.01em; color: #0a0a0a; }
@media (min-width: 768px) { .ap-title { font-size: 2.35rem; } }

.ap-subtitle { font-size: 1.05rem; color: #374151; line-height: 1.5; margin-bottom: 18px; font-family: 'Source Serif 4', Georgia, serif; font-weight: 400; }

.ap-meta { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; color: var(--text-muted); padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 22px; flex-wrap: wrap; }
.ap-meta .avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.ap-meta .author-block { display: flex; align-items: center; gap: 8px; }
.ap-meta strong { color: var(--text); font-weight: 600; }

.ap-hero { margin-bottom: 8px; border-radius: 6px; overflow: hidden; }
.ap-hero img { width: 100%; display: block; height: auto; }
.ap-figcaption { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; padding: 8px 2px 18px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }

.ap-body { font-family: 'Source Serif 4', Georgia, serif; }
.ap-body p { font-size: 1.05rem; line-height: 1.75; color: #1f2937; margin-bottom: 16px; }
.ap-body p.lead { font-size: 1.15rem; font-weight: 600; color: #111827; }
.ap-body h2 { font-size: 1.5rem; font-weight: 700; margin: 32px 0 12px; color: var(--text); }
.ap-body h3 { font-size: 1.15rem; font-weight: 700; margin: 24px 0 10px; color: var(--text); }
.ap-body a { color: var(--accent); text-decoration: underline; }
.ap-body a:hover { color: var(--accent-dark); }
.ap-body ul { margin: 10px 0 18px 0; padding-left: 22px; }
.ap-body li { font-size: 1.02rem; line-height: 1.7; color: #1f2937; margin-bottom: 6px; }

.ap-pullquote { border-left: 4px solid var(--accent); padding: 4px 0 4px 18px; margin: 22px 0; font-family: 'Source Serif 4', Georgia, serif; font-size: 1.25rem; line-height: 1.5; color: #111827; font-style: italic; font-weight: 600; }

.ap-inline-img { margin: 22px 0; border-radius: 6px; overflow: hidden; }
.ap-inline-img img { width: 100%; display: block; height: auto; }
.ap-inline-img .caption { font-size: 0.78rem; color: var(--text-muted); padding: 8px 2px 0; line-height: 1.5; font-family: 'Source Sans 3', sans-serif; }

.ap-highlight { background: var(--accent-light); border-left: 4px solid var(--accent); padding: 16px 18px; margin: 22px 0; border-radius: 0 6px 6px 0; font-family: 'Source Sans 3', sans-serif; }
.ap-highlight strong { color: var(--accent-dark); display: block; margin-bottom: 6px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; }
.ap-highlight p { font-size: 0.95rem; margin: 0; color: #111827; line-height: 1.6; font-family: 'Source Sans 3', sans-serif; }

.ap-table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 0.9rem; font-family: 'Source Sans 3', sans-serif; }
.ap-table th { background: var(--accent); color: #fff; padding: 10px 14px; text-align: left; font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
.ap-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.ap-table tr:nth-child(even) td { background: var(--bg-alt); }
.ap-table .profit { color: var(--pro); font-weight: 600; }

.ap-specs { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 16px; margin-bottom: 16px; }
.ap-specs h4 { font-size: 0.85rem; font-weight: 700; margin: 0 0 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent); }
.ap-specs-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #f3f4f6; font-size: 0.82rem; }
.ap-specs-row:last-child { border-bottom: none; }
.ap-specs-label { color: var(--text-muted); }
.ap-specs-value { font-weight: 600; color: var(--text); }

.ap-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 32px 16px; margin-top: 40px; }
.ap-footer-inner { max-width: 1000px; margin: 0 auto; text-align: center; }
.ap-footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-bottom: 20px; }
.ap-footer-nav a { font-size: 0.75rem; color: var(--text-muted); text-decoration: none; }
.ap-footer-nav a:hover { color: var(--text); }
.ap-footer p { font-size: 0.72rem; color: #9ca3af; line-height: 1.6; max-width: 700px; margin: 0 auto 10px; }

.ap-mobile-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; background: #fff; border-top: 1px solid var(--border); box-shadow: 0 -2px 10px rgba(0,0,0,0.06); transform: translateY(100%); transition: transform 0.3s; }
.ap-mobile-bar.visible { transform: translateY(0); }
.ap-mobile-bar-inner { padding: 8px 12px; display: flex; align-items: center; gap: 8px; }
.ap-mobile-bar-cta { flex: 1; background: var(--accent); color: #fff; text-align: center; font-weight: 700; font-size: 0.82rem; padding: 10px; border-radius: 4px; text-decoration: none; }

.ap-floating-cta { position: fixed; bottom: 16px; right: 16px; background: var(--accent); color: #fff; padding: 12px 20px; border-radius: 50px; font-weight: 600; font-size: 0.85rem; cursor: pointer; box-shadow: 0 4px 14px rgba(0,85,148,0.4); transition: background 0.2s, transform 0.1s; z-index: 30; }
.ap-floating-cta:hover { background: var(--accent-dark); transform: translateY(-2px); }

article img { max-width: 100%; height: auto; }

/* Form */
#form {
    margin: 26px 0 18px;
    padding: 24px;
    overflow: visible;
    border: 1px solid #d8e3ee;
    border-radius: 8px;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    box-shadow: 0 12px 28px rgba(15, 42, 68, 0.08);
}

#form-subtitle {
    margin: 0 0 18px;
    color: var(--text);
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
}

#form form {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

#step-one,
#step-two {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#step-one.hidden,
#step-two.hidden,
#form .hidden {
    display: none !important;
}

#form input {
    width: 100%;
    min-height: 48px;
    box-sizing: border-box;
    border: 1px solid #cbd8e6;
    border-radius: 6px;
    background: #fff;
    color: #111827;
    font-family: 'Source Sans 3', system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    line-height: 1.4;
    padding: 11px 13px;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

#form input::placeholder {
    color: #8a98a9;
}

#form input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 85, 148, 0.14);
}

#form .iti {
    display: block;
    width: 100%;
}

#form .iti input,
#form .iti input[type="tel"] {
    width: 100%;
    min-height: 48px;
}

#form .iti--separate-dial-code .iti__selected-flag {
    border-right: 1px solid #d8e3ee;
    border-radius: 6px 0 0 6px;
    background: #f3f7fb;
}

#form .text-red-500 {
    margin: -6px 0 2px;
    color: #b42318;
    font-family: 'Source Sans 3', system-ui, -apple-system, sans-serif;
    font-size: 0.86rem;
    line-height: 1.35;
}

#form #next-button,
#form #create-account-button {
    display: flex;
    width: 100%;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 6px;
    background: var(--accent);
    color: #fff;
    font-family: 'Source Sans 3', system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0, 85, 148, 0.18);
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

#form #next-button:hover,
#form #create-account-button:hover {
    background: var(--accent-dark);
    box-shadow: 0 10px 22px rgba(0, 63, 110, 0.22);
    transform: translateY(-1px);
}

#form #next-button:active,
#form #create-account-button:active {
    transform: translateY(0);
}

#form button svg {
    width: 20px;
    height: 20px;
    margin-left: 0;
    stroke-width: 2.4;
}

#form .form-success {
    max-width: 520px;
    margin: 0 auto;
    padding: 18px 0 10px;
    text-align: center;
}

#form .form-success__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    color: #059669;
}

#form .form-success h2 {
    margin: 0 0 10px;
    color: #111827;
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.25;
}

#form .form-success p {
    margin: 6px 0 0;
    color: #4b5563;
    font-family: 'Source Sans 3', system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
}

@media (max-width: 640px) {
    #form {
        padding: 18px;
    }

    #form-subtitle {
        font-size: 1.25rem;
        text-align: left;
    }
}
