body {
    font-family: 'Noto Sans Thai', sans-serif;
    margin: 0;
    padding: 0;
    background: url('images/bg.jpg') no-repeat center center fixed; 
    background-size: cover; 
    color: #333;
}

/* Navigation Bar */
nav {
    background-color: #062146;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

nav .logo {
    display: flex;
    align-items: center;
    font-size: 26px;
    font-weight: bold;
}

nav .logo img {
    margin-right: 10px;
    width: 50px;
    height: 50px;
}

nav .menu {
    display: flex;
    gap: 15px;
}

/* Link Effects */
nav .menu a {
    position: relative;
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    overflow: hidden; 
    transition: color 0.3s ease;
}

nav .menu a::before {
    content: '';
    position: absolute;
    bottom: 0; 
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, rgba(255,0,150,1) 0%, rgba(0,204,255,1) 100%);
    transform: scaleX(0); 
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: 0;
}

nav .menu a:hover::before {
    transform: scaleX(1);
}

nav .menu a.active {
    color: #f0f0f0;
    font-weight: bold;
}

nav .menu a.active::before {
    transform: scaleX(1);
}

/* Container */
.container {
    display: flex;
    justify-content: center;
    align-items: flex-start; 
    padding: 20px;
}

/* White Box */
.white-box {
    display: flex;
    flex-direction: row; 
    background-color: rgba(255, 255, 255, 0.9); 
    border-radius: 20px; 
    width: 90%; 
    max-width: 900px; 
    overflow: hidden; 
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.8); 
    position: relative; 
}

/* Image Container */
.image-container {
    flex: 1;
    display: flex;
    justify-content: flex-start; 
    align-items: center; 
    position: relative; 
    overflow: hidden; 
}

.background-img {
    width: 70%; 
    height: 100%; 
    max-width: 400px; 
    object-fit: cover; 
}

/* Form Container */
.form-container {
    flex: 1;
    padding: 25px; 
    margin-left: -150px; 
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.9); 
    z-index: 2; 
}

/* Form Elements */
form {
    display: flex;
    flex-direction: column; 
    width: 100%; 
}

/* Form Labels */
form label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
    color: #062146; 
}

/* Form Inputs */
form input,
form textarea,
form select {
    width: 100%; 
    max-width: 600px; 
    padding: 12px;
    margin-bottom: 30px; 
    border: 1px solid #ccc;
    border-radius: 5px; 
    background-color: #f5f5f5;
    color: #322c2c;
    transition: border 0.3s;
    box-sizing: border-box; 
}

form input:focus,
form textarea:focus,
form select:focus {
    border: 1px solid #062146; 
    background-color: #ffffff; 
    outline: none; 
}

/* Button */
form button {
    width: auto; 
    padding: 14px 28px; 
    background-color: #062146;
    color: white;
    border: none;
    border-radius: 20px; 
    cursor: pointer;
    font-size: 18px; 
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s; 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    margin-left: auto; 
    text-align: center; 
}

form button:hover {
    background-color: #357ABD; 
    transform: scale(1.05); 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5); 
}

form button:active {
    transform: scale(0.95); 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); 
}

/* Additional Styling */
h1 {
    font-size: 24px;
    text-align: center;
    margin-bottom: 20px;
    color: #062146; 
}

.white-box p {
    text-align: center; 
    margin: 10px 0; 
    color: #555; 
}
