/* Profit/Loss color styling */
.profit {
    color: #1bb700 !important;
    font-weight: bold;
}
.loss {
    color: #d9534f !important;
    font-weight: bold;
}
/* Language switcher styles */
.lang-switcher {
    display: flex;
    justify-content: flex-end;
    gap: 0.5em;
    margin-bottom: 1em;
}
.lang-btn {
    background: #eaf1fb;
    color: #003366;
    border: 1px solid #bcd2ee;
    border-radius: 8px;
    padding: 0.5em 1.2em;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    outline: none;
    display: flex;
    align-items: center;
    gap: 0.5em;
}
.lang-btn.active {
    background: #0055a5;
    color: #fff;
    border-color: #0055a5;
}
@media (max-width: 600px) {
    .lang-switcher {
        justify-content: center;
        margin-bottom: 1em;
    }
    .lang-btn {
        font-size: 0.95em;
        padding: 0.5em 0.8em;
    }
}
.trust {
    display: block;
    font-size: 0.95em;
    color: #0077cc;
    margin-top: 0.5em;
}
.trust-signals {
    margin: 1.5em 0;
    background: #eaf1fb;
    border-radius: 8px;
    padding: 1em;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
/* Lot calculation form redesign */
.lot-form {
    max-width: 400px;
    margin: 2em auto 1em auto;
    background: #eaf1fb;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    padding: 2em 1.5em;
}
.form-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.2em;
}
.form-row label {
    font-weight: bold;
    margin-bottom: 0.3em;
    color: #0055a5;
}
.form-row input {
    padding: 0.6em;
    border-radius: 6px;
    border: 1px solid #bcd2ee;
    font-size: 1em;
}
.lot-result-box {
    text-align: center;
    font-size: 1.3em;
    margin: 1.5em 0 1em 0;
    color: #003366;
    font-weight: bold;
}
.lot-tips {
    background: #fffbe6;
    border-radius: 8px;
    padding: 1em;
    margin: 1em 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.lot-tips h4 {
    margin-top: 0;
    color: #d9534f;
}
/* Price card styles */
.price-cards {
    display: flex;
    justify-content: center;
    gap: 2em;
    margin: 2em 0;
    flex-wrap: wrap;
}
.price-card {
    background: #eaf1fb;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    padding: 2em 1.5em;
    min-width: 140px;
    text-align: center;
    font-size: 1.1em;
    font-weight: bold;
    color: #003366;
}
.cta-btn {
    background: #0055a5;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.8em 2em;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: background 0.2s;
}
.cta-btn:hover {
    background: #0077cc;
}

body {
    font-family: 'Sarabun', Arial, sans-serif;
    background: #f4f6fb;
    margin: 0;
    color: #222;
}
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #003366;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 800px;
    margin: 0 auto;
    padding: 1em 0.5em;
}
.header-content h1 {
    margin: 0;
    font-size: 1.3em;
}
nav {
    display: flex;
    gap: 0.5em;
}
nav a {
    color: #fff;
    background: #0055a5;
    padding: 0.5em 1em;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s;
}
nav a:hover {
    background: #0077cc;
}
main {
    max-width: 800px;
    margin: 2em auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    padding: 2em;
}
.stats-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
    margin-bottom: 1em;
}
.stats-summary div {
    background: #eaf1fb;
    border-radius: 8px;
    padding: 1em;
    flex: 1 1 120px;
    text-align: center;
}
.stat-label {
    font-weight: bold;
    color: #0055a5;
}
.stat-value {
    font-size: 1.5em;
    color: #003366;
}
.stats-period {
    margin-bottom: 1em;
}
.stats-period button {
    background: #0055a5;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 0.5em 1em;
    margin-right: 0.5em;
    cursor: pointer;
}
.stats-period button:hover {
    background: #0077cc;
}
footer {
    background: #003366;
    color: #fff;
    text-align: center;
    padding: 1em 0;
    margin-top: 2em;
    border-radius: 0 0 12px 12px;
}
/* Footer fixes for pages that don't include home.css */
.site-footer { background: #003366; color:#fff; border-radius: 12px; padding: 18px; }
.site-footer a { color: #cce0ff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.site-footer .row { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 18px; align-items: flex-start; }
@media (max-width: 800px) {
    .site-footer .row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    main {
        padding: 1em;
    }
    .header-content {
        flex-direction: column;
        gap: 0.5em;
        text-align: center;
    }
    nav {
        flex-direction: column;
        gap: 0.5em;
    }
    .stats-summary {
        flex-direction: column;
        gap: 1em;
    }
}
