
*{
    font-family: Raleway, sans-serif;
    font-weight: 
}
body{
    background: white;
    font-family: Raleway, sans-serif;
}

.background{
    display: flex;
}

.fixed-header {
    display: flex;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    align-items: center;
    padding: 10px;
    box-sizing: border-box;
    z-index: 4; /* Ensure it stays on top */
    background: black; 
}

.fixed-header .logo img {
    height: 100px;
    margin-left: 20px;
    margin-right: auto;
    flex-shrink: 1;
}

.contact-us,
.menu-button {
    padding: 5px;
    margin-left: 10px; /* Adds space between the contact-us and menu */
}

.contact-us {
    position: fixed;
    font-family: Raleway, sans-serif;
}

.menu-toggle {
    width: 50px;
    margin-right: 60px;
    height: 50px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: none;
    cursor: pointer;
    position: absolute;
    right: 0px;
    top: 40px;
    z-index: 5; /* Ensure it stays on top */
    transition: transform 0.3s ease; /* Add transition for rotation */
}

.menu-toggle.active {
    transform: rotate(45deg); /* Rotate when active */
}

.menu-line {
    width: 30px;
    height: 4px;
    background-color: black;
    margin: 3px 0;
    transition: transform 0.3s ease, opacity 0.3s ease; /* Add transition for lines */
}

.menu-toggle.active .menu-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg); /* Transform top line */
}

.menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0; /* Hide middle line */
}

.menu-toggle.active .menu-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg); /* Transform bottom line */
}

.dropdown-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: black;
    z-index: 10; /* Ensure it stays on top */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s, visibility 0.5s;
    font-family: Raleway, sans-serif;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu a,
.dropdown-menu .back-button {
    color: white;
    text-decoration: none;
    padding: 10px; /* Reduced padding for smaller highlight boxes */
    font-size: 24px;
    text-align: center;
    display: table;
    font-family: kanit, sans-serif;
}

.dropdown-menu a:hover,
.dropdown-menu .back-button:hover {
    color: green; /* Change text color to green */
}

/*─────────────────────────────────────────────────────────────────────────────
  Move the back button to the right
─────────────────────────────────────────────────────────────────────────────*/
.back-button {
    position: absolute;
    top: 20px;
    right: 20px; /* Moved to the right side */
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/*─────────────────────────────────────────────────────────────────────────────
  Legacy / screen container (not used by contact section but kept intact)
─────────────────────────────────────────────────────────────────────────────*/
.f-container{
    flex: 0 1 75%; 
    margin-left: auto;
    margin-right: auto;
    padding: 30px;
    margin-top: 10%;
}

.screen{
    position: relative; 
    background: #222;
    border-radius: 15px;
    box-shadow: 0 0px 2px rgba(0, 0, 0, .493), 0 5px 5px rgba(0, 0, 0, .445);
    height: 650px;
}

screen::after{
    content: "";
    display: block;
    position: absolute;
    top:0; 
    left: 20px; 
    right:20px; 
    bottom: 0;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .4);
    z-index: -1;
}

.screen-body{
    display: flex; 
}

.screen-body-item{
    flex: 1; 
    padding: 50px;
}

.screen-body-item.Left{
    display:flex; 
    flex-direction: column;
}

.title{
    display: flex; 
    flex-direction: column;
    position: relative;
    color: green;
    font-size: 26px ;
    letter-spacing: 1px;
}

.title::after{
    content: ""; 
    display:block; 
    position: absolute;
    left: 0;
    bottom: -12px;
    width: 50px;
    height: 3px;
    background-color: green;
}

.contact{
    margin-top: auto;
    font-size: 22px;
    color: green;
    text-align: left;
    position: absolute; 
    bottom: 50px; 
}

.form-group{
    margin-bottom: 15px;
}

.form-group.message{
    margin-top: 40px;
}

.form-group.buttons{
    margin-bottom: 0;
}

.form-control{
    width: 100%; 
    padding: 20px 0;
    background: none;
    font-size: 15px; 
    outline: none; 
    transition: border-color .2s;
    color: white;
}

.form-control::placeholder{
    color: rgb(163, 163, 163); 
}

.form-control:focus{
    border-bottom-color: rgb(163,163,163);
}

.form-button{
    background: none; 
    border: 1px solid; 
    color: green;
    font-size: 14px; 
    cursor: pointer; 
    outline: none; 
    padding: 10px 20px; 
    margin-right: 15px;
    border-radius: 10px;
    margin-top: 15px;
}

.form-button:hover{
    color: orangered; 
}

/*─────────────────────────────────────────────────────────────────────────────
  Responsive rules for original header / screen / contact-us (unchanged)
─────────────────────────────────────────────────────────────────────────────*/
@media screen and (max-width: 520px){
    .screen-body{
        flex-direction: column;
    }
    .screen-body-item.Left{
        margin-bottom: 30px; 
    }
    .title{
        flex-direction: row;
    }
    .title span{
        margin-right: 12px;
    }
    .title::after{
        display: none;
    }
    .contact{
        padding: 15px
    }
}

@media screen and (max-width: 600px) {
    .screen-body{
        padding: 40px; 
    }
    .screen-body-item{
        padding: 0px; 
    }
}

@media (max-width: 480px) {
    .fixed-header .logo img {
        height: 2.813rem; /* Further adjust for even smaller screens */
    }

    .contact-us button {
        font-size: 12px; /* Adjust font size for smaller screens */
        padding: 7px 14px; /* Adjust padding for smaller screens */
        margin-top: 1.25rem;
    }

    .menu-toggle {
        width: 40px;
        height: 40px;
        margin-top: -1.5rem;
        margin-right: 35px; 
    }
    


    .menu-line {
        width: 20px;
        height: 3px;
    }
    .contact {
        margin-top: auto;
        font-size: 16px;
        color: green;
        text-align: center;
        position: inherit;
        bottom: 50px;
    }
    .title {
        position: relative;
        color: green;
        font-size: 26px;
        letter-spacing: 1px;
        text-align: center;
        flex-direction: column;
    }
}

#contact {
  margin-top: 250px;    /* leave space for .fixed-header (height ~100px) */
}

.contact-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.contact-wrapper {
  display: flex;
  gap: 40px;
  flex-wrap: wrap; /* allow wrapping on narrow screens */
}

.contact-info {
  flex: 1;
  min-width: 280px;
}

.contact-info h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: #111;
}

.contact-info .intro-text {
  font-size: 1.125rem;
  margin-bottom: 30px;
  color: #555;
}

/* Each line: Phone / Email / Address */
.contact-item {
  display: flex;
  align-items: center;
  font-size: 1rem;
  margin-bottom: 15px;
}

.contact-item .contact-label {
  font-weight: 600;
  margin-right: 10px;
  color: #222;
}

.contact-item .contact-text {
  color: #333;
}

.contact-form {
  flex: 1;
  min-width: 280px;
}

.contact-form .form {
  display: flex;
  flex-direction: column;
}

/* Give each input/textarea its own block (stacked) */
.form-group {
  margin-bottom: 20px;
}

/* Full-width input & textarea controls */
.form-control {
  width: 100%;
  padding: 15px 20px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  color: #333;
  background-color: #fafafa;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.form-control::placeholder {
  color: #999;
}

.form-control:focus {
  border-color: #666;
  outline: none;
}

/* Ensure textarea can expand vertically */
.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

/* Style the “Send” button as an orange pill */
.form-button {
  width: 200px;
  padding: 15px 0;
  background-color: #28a745;
  color: #fff;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  cursor: pointer;
  align-self: flex-start;
  transition: opacity 0.2s;
}

.form-button:hover {
  opacity: 0.9;
}

@media (max-width: 768px) {
  .contact-wrapper {
    flex-direction: column;
    gap: 20px;
    margin-top: -150px; 
  }
  /* On narrower screens, button should span full width */
  .form-button {
    width: 100%;
  }
}

