@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@400;500;700&family=Ubuntu:wght@400;500;700&display=swap');

body {
    background-color: #11151c;
    margin: 0;
    font-family: 'Kanit', sans-serif;
    color: white;
}

nav {
    background-color: #11151c;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #252b37;
}

a {
    color: white;
    text-decoration: none;
    padding: 15px;
    margin-right: 5px;
    font-size: 20px;
    font-family: 'Ubuntu', sans-serif;
}

img {
    width: 20px;
    object-fit: contain;
    max-width: 100%;
    max-height: 50px;
}

.logo {
    width: 150px;
}

.effect:hover {
    color: #d7101d;
    transition: ease-in-out 0.3s;
}

#contact-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 20px;
    box-sizing: border-box;
    width: 100%;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 20px; 
    max-width: 800px;
    width: 100%;
    background-color: #1e2633;
    padding: 40px; 
    border-radius: 10px;
    justify-content: center;
    box-sizing: border-box;
    border: 1px solid #2d3a4d;
}

.form h1 {
    color: white;
    text-align: center;
    margin-bottom: 20px;
    font-size: 28px;
}

.flex {
    display: flex;
    width: 100%;
    gap: 20px; 
}

.form label {
    position: relative;
    width: 100%;
}

.form label .input {
    width: 100%;
    padding: 15px; 
    outline: 0;
    border: 1px solid rgba(105, 105, 105, 0.397);
    border-radius: 5px;
    background-color: #2d3a4d;
    color: white;
    box-sizing: border-box;
    text-align: center; 
    line-height: 1.5; 
    font-size: 16px; 
}

.form label .input + span {
    position: absolute;
    left: 15px; 
    top: 15px;
    color: grey;
    font-size: 0.9em;
    cursor: text;
    transition: 0.3s ease;
}

.form label .input:placeholder-shown + span {
    top: 15px;
    font-size: 0.9em;
}

.form label .input:focus + span,
.form label .input:valid + span {
    top: -5px;
    font-size: 0.8em;
    font-weight: 600;
    color: #d7101d;
}

textarea {
    resize: none;
}

button.fancy {
    background-color: transparent;
    border: 2px solid #d7101d;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    padding: 15px 25px; 
    text-transform: uppercase;
    transition: all 0.3s ease-in-out;
    font-size: 16px; 
    font-weight: bold;
}

button.fancy:hover {
    background-color: #d7101d;
    color: white;
    border-color: #d7101d;
}

#form-title {
    text-align: center;
    margin: 30px 20px; 
    color: white;
}

#form-title h1 {
    font-size: 36px;
    margin-bottom: 10px; 
    font-family: 'Ubuntu', sans-serif;
}

#form-title p {
    font-size: 18px; 
    color: #ccc; 
    margin: 0;
}

footer {
    background-color: #121212;
    color: white;
    padding: 40px 20px;
    font-family: 'Ubuntu', sans-serif;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-container div {
    flex: 1 1 250px;
    min-width: 200px;
}

.footer-about,
.footer-links,
.footer-social,
.footer-contact {
    margin-bottom: 20px;
}

.footer-about h3,
.footer-links h3,
.footer-social h3,
.footer-contact h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.footer-about p,
.footer-contact p {
    font-size: 14px;
    line-height: 1.6;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin: 5px 0;
}

.footer-links ul li a {
    text-decoration: none;
    color: #ccc;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    border-top: 1px solid #444;
    padding-top: 10px;
    font-size: 14px;
    color: #ccc;
}

/* Responsive Styles */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 15px;
    }

    a {
        font-size: 16px;
        padding: 10px;
    }

    .logo {
        width: 120px;
    }

    #contact-container {
        padding: 30px 10px;
    }

    .form {
        padding: 20px;
        gap: 15px;
    }

    .form h1 {
        font-size: 24px;
    }

    .flex {
        flex-direction: column;
        gap: 15px;
    }

    .form label .input {
        padding: 10px;
        font-size: 14px;
    }

    button.fancy {
        padding: 10px 20px;
        font-size: 14px;
    }

    #form-title h1 {
        font-size: 28px;
    }

    #form-title p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    a {
        font-size: 14px;
        padding: 8px;
    }

    .logo {
        width: 100px;
    }

    .form {
        padding: 15px;
        gap: 10px;
    }

    .form h1 {
        font-size: 20px;
    }

    .form label .input {
        padding: 8px;
        font-size: 12px;
    }

    button.fancy {
        padding: 8px 15px;
        font-size: 12px;
    }

    #form-title h1 {
        font-size: 20px;
    }

    #form-title p {
        font-size: 14px;
    }
}
