/* ============================================
   เครดิตทรัสต์ - คู่มือการใช้งาน (guide.html)
   ============================================ */

:root {
    --color-bg-dark: #1a1a2e;
    --color-bg-mid: #16213e;
    --color-primary: #4a2c7a;
    --color-accent: #e6b800;
    --color-text: #ffffff;
    --color-text-muted: rgba(255, 255, 255, 0.85);
    --color-text-soft: rgba(255, 255, 255, 0.7);
    --font-thai: 'Sarabun', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    --transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-thai);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: linear-gradient(165deg, var(--color-bg-dark) 0%, var(--color-bg-mid) 45%, var(--color-primary) 100%);
    min-height: 100vh;
}
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* Header */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(26, 26, 46, 0.92); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--color-text); font-weight: 700; font-size: 1.2rem; }
.logo-img { width: 40px; height: 40px; object-fit: contain; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav-link { color: var(--color-text-muted); text-decoration: none; font-weight: 500; transition: color var(--transition); }
.nav-link:hover, .nav-link.active { color: var(--color-accent); }
.btn-mobile-menu { display: none; background: none; border: none; color: var(--color-text); font-size: 1.5rem; cursor: pointer; padding: 8px; }

/* Section */
.section { padding: 64px 0; }
.section-alt { background: rgba(255, 255, 255, 0.04); }
.section-title {
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    font-weight: 700;
    margin: 0 0 8px 0;
    text-align: center;
    color: var(--color-text);
}
.section-intro {
    text-align: center;
    color: var(--color-text-soft);
    font-size: 1rem;
    margin: 0 0 28px 0;
}

/* Page hero */
.page-hero { padding: 96px 0 40px; text-align: center; }
.page-hero-title { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; margin: 0 0 12px 0; color: var(--color-text); }
.page-hero-desc { color: var(--color-text-muted); font-size: 1.1rem; margin: 0; }

/* ===== คุณสมบัติผู้สมัคร ===== */
.requirements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.requirement-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: border-color var(--transition), transform var(--transition);
}

.requirement-card:hover {
    border-color: rgba(230, 184, 0, 0.25);
}

.requirement-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--color-accent);
    color: #1a1a2e;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50%;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.requirement-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: var(--color-text);
    line-height: 1.3;
}

.requirement-desc {
    margin: 0;
    color: var(--color-text-soft);
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
}

/* ===== ขั้นตอนการสมัคร - 左右双栏 ===== */
.guide-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    margin-top: 32px;
}

.guide-layout__content {
    min-width: 0;
}

.guide-layout__visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: sticky;
    top: 88px;
}

.guide-phone {
    max-width: 100%;
    width: 300px;
    height: auto;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

/* Steps list */
.steps-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.step-item {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 20px;
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.step-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.step-item__num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
    font-weight: 700;
    font-size: 1.2rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.step-item__body {
    min-width: 0;
}

.step-item__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 6px 0;
    color: var(--color-text);
}

.step-item__desc {
    margin: 0;
    color: var(--color-text-soft);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Footer */
.footer { background: rgba(0, 0, 0, 0.25); padding: 48px 0 24px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { width: 48px; height: 48px; object-fit: contain; margin-bottom: 8px; }
.footer-app-name { font-weight: 700; font-size: 1.1rem; margin: 0 0 4px 0; }
.footer-tagline { color: var(--color-text-soft); font-size: 0.9rem; margin: 0; }
.footer-block h4 { font-size: 0.9rem; font-weight: 600; color: var(--color-accent); margin: 0 0 12px 0; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-block p { margin: 0 0 6px 0; font-size: 0.9rem; color: var(--color-text-soft); }
.footer-link { color: var(--color-text-soft); text-decoration: none; }
.footer-link:hover { text-decoration: underline; }
.footer-bottom { padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.08); text-align: center; }
.footer-bottom p { margin: 0; font-size: 0.85rem; color: var(--color-text-soft); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .requirements-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }

    .guide-layout {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-top: 24px;
    }

    .guide-layout__visual {
        order: -1;
        position: static;
    }

    .guide-phone {
        width: 260px;
    }

    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-brand { display: flex; flex-direction: column; align-items: center; }
}

@media (max-width: 768px) {
    .nav { position: fixed; top: 64px; left: 0; right: 0; background: var(--color-bg-dark); flex-direction: column; padding: 24px; gap: 16px; transform: translateY(-120%); transition: transform 0.3s ease; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
    .nav.open { transform: translateY(0); }
    .btn-mobile-menu { display: block; }
    .section { padding: 48px 0; }
    .page-hero { padding: 88px 0 32px; }

    .step-item {
        grid-template-columns: 40px 1fr;
        gap: 16px;
        padding: 16px 0;
    }

    .step-item__num {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .guide-phone { width: 260px; }
}
