@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&family=Prompt:wght@300;400;500;600&display=swap');
:root { --primary-color: #4070F4; --primary-hover: #265df2; --text-color: #333; --bg-color: #f2f2f2; --white: #fff; --nav-height: 70px; }
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Prompt', 'Poppins', sans-serif; }
body { background-color: var(--bg-color); min-height: 100vh; display: flex; flex-direction: column; }
nav { position: fixed; top: 0; left: 0; width: 100%; height: var(--nav-height); background-color: var(--primary-color); box-shadow: 0 2px 10px rgba(0,0,0,0.1); z-index: 1000; }
.nav-bar { position: relative; height: 100%; max-width: 1200px; width: 100%; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; }
.logo a { font-size: 24px; font-weight: 600; color: var(--white); text-decoration: none; }
.menu { display: flex; align-items: center; }
.nav-links { display: flex; align-items: center; list-style: none; }
.nav-links li { margin: 0 15px; }
.nav-links li a { position: relative; font-size: 16px; color: var(--white); text-decoration: none; opacity: 0.8; transition: 0.3s; }
.nav-links li a:hover, .nav-links li a.active-nav { opacity: 1; font-weight: 500; }
.nav-links li a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0%; height: 2px; background-color: var(--white); transition: 0.3s; }
.nav-links li a:hover::after, .nav-links li a.active-nav::after { width: 100%; }

/* Hamburger Menu: ซ่อนบน PC */
.sidebarOpen { color: var(--white); font-size: 28px; cursor: pointer; display: none; margin-left: 10px; }
.logo-toggle { display: none; }

.hero { height: 100vh; width: 100%; background: linear-gradient(135deg, #4070F4, #9c27b0); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: white; padding: 0 20px; }
.hero h1 { font-size: 3.5rem; margin-bottom: 15px; }
.hero-btn { padding: 12px 30px; background: white; color: var(--primary-color); text-decoration: none; border-radius: 50px; font-weight: 600; transition: 0.3s; }
.hero-btn:hover { transform: translateY(-3px); }

.main_container { flex: 1; display: flex; align-items: center; justify-content: center; padding: 100px 20px 40px; background-color: #eef2f9; }
.form_wrapper { background: var(--white); padding: 40px 30px; border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); width: 100%; max-width: 450px; }
.input_group { margin-bottom: 20px; }
.input_group label { display: block; margin-bottom: 8px; color: var(--text-color); }
.input_group input { width: 100%; padding: 12px 15px; border: 1px solid #ccc; border-radius: 8px; outline: none; }
.btn { width: 100%; padding: 14px; border: none; border-radius: 8px; cursor: pointer; font-size: 16px; color: white; background-color: var(--primary-color); transition: 0.3s; }
.btn:hover { background-color: var(--primary-hover); }
.btn-back { background-color: #e0e0e0; color: #333; }
.btn-box { display: flex; gap: 15px; margin-top: 10px; }
.hidden { display: none; }
.login_signup { margin-top: 25px; text-align: center; font-size: 14px; }

/* Service Box */
.service-box { text-align: center; padding: 30px; border: 1px solid #e0e0e0; border-radius: 12px; background: #fff; transition: 0.3s; margin-bottom: 20px; }
.service-box:hover { box-shadow: 0 10px 25px rgba(0,0,0,0.1); transform: translateY(-5px); border-color: var(--primary-color); }
.service-icon { font-size: 50px; color: var(--primary-color); margin-bottom: 15px; }

/* Mobile */
@media (max-width: 768px) {
    .sidebarOpen { display: block; }
    .menu { position: fixed; height: 100%; width: 300px; top: 0; right: -100%; background: var(--white); flex-direction: column; padding: 20px; transition: 0.4s; z-index: 2000; }
    nav.active .menu { right: 0; }
    .logo-toggle { display: flex; width: 100%; justify-content: space-between; margin-bottom: 30px; }
    .logo-toggle .logo a { color: var(--text-color); }
    .siderbarClose { font-size: 26px; cursor: pointer; color: var(--text-color); }
    .nav-links { flex-direction: column; width: 100%; align-items: flex-start; }
    .nav-links li { margin: 10px 0; width: 100%; }
    .nav-links li a { color: var(--text-color); display: block; padding: 10px 0; }
    .nav-links li a.active-nav { color: var(--primary-color); }
}