/* General Body Styles */
body {
    font-family: 'Sukhumvit Set', sans-serif; /* แนะนำให้ใช้ font ที่เป็นภาษาไทยเช่น Sukhumvit Set */
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Header */
header {
    background-color: #007bff; /* สีน้ำเงินสไตล์ FWD */
    color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px; /* ปรับขนาดโลโก้ตามความเหมาะสม */
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #ffd700; /* สีทองเมื่อ hover */
}

/* Hero Section */
.hero-section {
    background: url('../images/hero-bg.jpg') no-repeat center center/cover; /* แนะนำให้เปลี่ยนรูปภาพ */
    color: #fff;
    text-align: center;
    padding: 100px 20px;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Overlay เพื่อให้อ่านข้อความง่ายขึ้น */
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 2.8em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.hero-section p {
    font-size: 1.3em;
    margin-bottom: 30px;
}

.button {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.button-small {
    background-color: #28a745; /* สีเขียว */
    padding: 8px 15px;
    font-size: 0.9em;
    border-radius: 4px;
    text-decoration: none;
    color: #fff;
    transition: background-color 0.3s ease;
}

.button-small:hover {
    background-color: #218838;
}

/* Content Sections */
.content-section {
    padding: 60px 0;
    text-align: center;
}

.content-section.bg-light {
    background-color: #e9ecef;
}

.content-section h2 {
    font-size: 2.2em;
    margin-bottom: 30px;
    color: #007bff;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}

.product-item h3 {
    color: #007bff;
    margin-top: 0;
    font-size: 1.5em;
}

.product-item ul {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.product-item ul li {
    margin-bottom: 8px;
    padding-left: 25px;
    position: relative;
}

.product-item ul li::before {
    content: '✓';
    color: #28a745;
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

/* Contact Form */
.contact-form {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    max-width: 700px;
    margin: 40px auto;
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: calc(100% - 22px);
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
}

.form-group textarea {
    resize: vertical;
}

.form-group small {
    color: #666;
    font-size: 0.85em;
    margin-top: 5px;
    display: block;
}

.checkbox-group label {
    font-weight: normal;
    display: inline-block;
    margin-left: 5px;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 5px;
}

.privacy-policy {
    font-size: 0.9em;
    margin-top: 25px;
    margin-bottom: 30px;
}

.privacy-policy a {
    color: #007bff;
    text-decoration: none;
}

.privacy-policy a:hover {
    text-decoration: underline;
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    display: none; /* ซ่อนไว้ก่อน */
    font-weight: bold;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}


/* Footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
    font-size: 0.9em;
}

footer .social-links img {
    height: 30px;
    margin: 0 10px;
    transition: transform 0.3s ease;
}

footer .social-links img:hover {
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }

    nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 5px 10px;
    }

    .hero-section h1 {
        font-size: 2em;
    }

    .hero-section p {
        font-size: 1.1em;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 80px 15px;
    }

    .hero-section h1 {
        font-size: 1.8em;
    }

    .button {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .content-section {
        padding: 40px 0;
    }

    .content-section h2 {
        font-size: 1.8em;
    }
}