/* Japan Travel Health */

/* Base */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
    background: #f5f5f5;
    margin: 0;
    padding: 0;
    color: #111;
}

header nav {
    padding: 1rem 1.5rem;
    background: #fff;
    border-bottom: 2px solid #e0e0e0;
    font-size: 1rem;
}

header nav a {
    text-decoration: none;
    color: #c0392b;
    font-weight: bold;
}

main {
    max-width: 600px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
}

/* Card-only view (shareable link / generated card) */
body.card-view .hero,
body.card-view .reassurance,
body.card-view .guide,
body.card-view .presets,
body.card-view .tool-label,
body.card-view .builder-intro {
    display: none;
}

body.card-view .tool-section {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
}

body.card-view .landing {
    max-width: 700px;
    padding-left: 0;
    padding-right: 0;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Landing page */
.landing {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 1rem 4rem;
}

.hero {
    padding: 2.5rem 0 2rem;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 1.8rem;
    line-height: 1.25;
    margin: 0 0 0.8rem;
    color: #111;
}

.hero-sub {
    font-size: 1.15rem;
    color: #444;
    margin: 0 0 1.5rem;
}

.cta-btn {
    display: inline-block;
    background: #c0392b;
    color: #fff;
    padding: 0.9rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
}

.cta-btn.secondary {
    background: #1a4a7a;
}

.reassurance {
    margin-bottom: 2.5rem;
}

.reassurance ul {
    padding-left: 1.2rem;
    margin: 0 0 1.2rem;
    color: #333;
    line-height: 2;
}

.tool-section {
    background: #eef4fb;
    border: 2px solid #b0cce8;
    border-radius: 12px;
    padding: 1.5rem 1.2rem;
    margin-bottom: 2.5rem;
}

.tool-label {
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #1a4a7a;
    margin-bottom: 1rem;
}

.tool-section .builder-intro h2 {
    margin: 0 0 0.3rem;
    font-size: 1.3rem;
}

.tool-section .builder-intro p {
    margin: 0 0 1.2rem;
    color: #555;
    font-size: 0.95rem;
}

.guide {
    color: #222;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.guide h2 {
    font-size: 1.3rem;
    margin: 2rem 0 0.6rem;
    color: #111;
}

.guide p, .guide ul, .guide ol {
    margin: 0 0 1rem;
}

.guide ul, .guide ol {
    padding-left: 1.4rem;
}

.guide li {
    margin-bottom: 0.4rem;
}

.inline-cta {
    background: #f9f9f9;
    border-left: 3px solid #c0392b;
    padding: 1rem 1.2rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.inline-cta p {
    margin: 0 0 0.7rem;
    font-weight: 600;
}

/* Builder */
.builder-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.builder-intro h1 {
    font-size: 1.6rem;
    margin-bottom: 0.4rem;
}

.builder-intro p {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

.step-back {
    background: none;
    border: none;
    color: #888;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0 0 1rem 0;
    display: block;
}

.step-question {
    margin-bottom: 1.2rem;
}

.step-q-en {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 0.2rem;
}

.step-q-ja {
    font-size: 1rem;
    color: #888;
}

.step-options {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.step-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.2rem;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
    transition: border-color 0.15s, background 0.15s;
}

.step-option:hover {
    border-color: #b0cce8;
}

.step-option.selected {
    border-color: #1a4a7a;
    background: #eef4fb;
}

.opt-en {
    font-weight: 600;
    color: #111;
}

.opt-ja {
    color: #888;
    font-size: 0.95rem;
}

.step-none .opt-en {
    color: #888;
    font-weight: normal;
}

.step-continue {
    display: block;
    width: 100%;
    margin-top: 1rem;
    padding: 1rem;
    background: #c0392b;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
}

/* Share bar */
.share-bar {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.share-btn {
    flex: 1;
    padding: 0.5rem 0.4rem;
    border-radius: 8px;
    border: none;
    font-size: 0.85rem;
    font-size: 0.95rem;
    cursor: pointer;
    font-weight: 600;
    background: #1a4a7a;
    color: #fff;
}

.share-btn.secondary {
    background: #e0e0e0;
    color: #333;
}

/* Presets */
.presets {
    margin-top: 3rem;
    border-top: 1px solid #e0e0e0;
    padding-top: 1.5rem;
}

.presets h2 {
    font-size: 1rem;
    color: #888;
    font-weight: normal;
    margin-bottom: 0.8rem;
}

.preset-links {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.preset-links a {
    color: #c0392b;
    text-decoration: none;
    font-size: 1rem;
    padding: 0.4rem 0;
}

.preset-links a:hover {
    text-decoration: underline;
}

footer {
    text-align: center;
    padding: 2rem;
    color: #aaa;
    font-size: 0.85rem;
}

/* Modal */
#intake-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

#intake-modal {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

#intake-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
}
