
*{
  box-sizing: border-box;
  margin: 0px;
  padding: 0px;
  font-size: 16px;
  letter-spacing: 1px;
}

html, body {
  height: 100vh;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  background-color: var(--background-color-2);
}




.contact-us{
    height: auto;
    background-color: var(--background-color-7);
    padding: 80px;

    position: relative;
}




.contact-us-content{
    display: flex;
    flex-direction: row;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;

    flex-wrap: wrap;

    width: 100%;
    height: 100%;
 
    line-height: 2;

} 


/* Make each child flexible */
.contact-us-form,
.contact-us-header {
  flex: 1 1 400px;   /* grow, shrink, and start width */
  min-width: 300px;  /* prevents squishing too small */
  box-sizing: border-box;
}


.contact-us-header{
    display: flex;
    flex-direction: column;
    align-content: flex-start;
    justify-content: flex-start;
    align-self: flex-end;
    height: 500px;

    padding: 30px;
    width: 50%;

    gap: 20px;
    color: white;
}

.contact-us-header h2{
    text-align: center;
    letter-spacing: 1px;

    font-family: var(--font-heading);
    font-weight: 400;
    font-size: var(--font-xl);
    color: var(--text-color-1);
 
}
.contact-us-header p{
    font-family: var(--font-body);
    font-size: var(--font-sm);
    font-weight: 100;
}

.icons-container{
    gap: 20px;
    display: flex;
    flex-direction: column;
}

.icons{
    height: auto;
    display: flex;
    gap: 10px;
    align-items: center;
}

.border{
    border: 1px solid hsl(0, 0%, 100%);
}

.map-container{
    height: 100%;
}

#imperial-grand-map{
    height: 100%;
    width: 100%;
}




.contact-us-form{
    display: flex;
    flex-direction: column;
    height: auto;

    gap: 20px;
    padding: 30px;
    width: 50%;
    max-width: 800px;
    border-radius: 20px;

}

.h3-font{
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: var(--font-lg);
    color: var(--text-color-1);
}

.font{
    font-family: var(--font-body);
    font-size: var(--font-sm);
    font-weight: 100;
}

.how-can-we-help{
    padding: 30px 0px;
    font-size: 3rem;
    font-weight: 100;
}

.contact-us-form input{
    width: 100%;
    padding: 10px;
    border-radius: 5px;
}

#subject-btn{
    width: 100%;
    text-align: start;
    padding: 10px;
    position: relative;
    background-color: var(--background-color-3);
    cursor: pointer;
    border-radius: 5px;
}

.dropdown-arrow{
    position: absolute;
    bottom: 2px;
    right: 5px;
    transition: transform 0.2s ease-in-out;
}

.dropdown-arrow.rotated{
    transform: rotate(-180deg);
}



.dropdown {
  position: relative; /* ✅ Makes .subject-options position relative to this */
}



.subject-options{
    display: block;
    position: absolute;
    z-index: 10;
    width: auto;
    height: auto;
    background-color: white;

    border-radius: 5px;
    top: 110%;
    right: 1px;
    padding: 5px;

    /* Transition setup */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.subject-options.open{
    max-height: 350px;
    opacity: 1;
    transform: translateY(0);
}


.subject-options li{
    list-style: none;
    padding: 20px;
    background-color: rgb(244, 243, 243);
}

.subject-options li:hover{
    background-color: var(--background-color-8);
    cursor: pointer;
}


#message-input{
    min-height: 150px;
    vertical-align: top;
    padding: 15px;
    resize: none;
    overflow: hidden;
    line-height: 1.9;
}




.reusable-btn{
    width: auto;
    letter-spacing: 1px;
    padding: 10px 15px;     /* same size for all */
    background-color: transparent;

    font-family: var(--font-body);
    color: var(--text-color-3);
    font-size: var(--font-xsm);
    font-weight: 100;
    text-align: center;

    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;           /* ✅ keeps width consistent even if text differs */

    gap: 5px;
    justify-content: center;
    border: none;
    background-color: var(--button-color-3);
}



.reusable-btn:hover{
    background-color: var( --button-color-hover);
    text-decoration: underline;
    color: var(--hover-bg-2);
}

.h-captcha{
    height: 100px;
}




@media (max-width: 768px) {
 
    .contact-us{
        padding: 40px;
        margin-top: 70px;
    }

    .contact-us-content{
        gap: 20px;
    }

    .contact-us-form{
        padding: 0px;
    }


    .contact-us-header{
        padding: 0px;
    }

    .h3-font{
        text-align: center;
    }

    .font{
        font-family: var(--font-body);
        font-size: var(--font-sm-mobile);
        font-weight: 100;
    }

    .subject-options li{
        font-size: var(--font-sm-mobile);
    }
}





/* Full viewport, blocks page */
.overlay{
    position: fixed;         /* <-- key change */
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 2000;           /* higher than navbar */
    display: grid;           /* easy centering */
    place-items: center;     /* center modal */
}

.modal{
    width: 40%;
    max-width: 400px;
    min-width: 350px;
    height: auto;
    border-radius: 20px;
    position: absolute;
    z-index: 1000;
    background-color: var(--background-color-3);
  
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    text-align: center;
}

.modal-container{
    height: auto;
    width: 100%;
    

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 40px 20px 40px 20px;

    position: relative;
}

.modal h3{
    font-family: var(--font-body);
    font-weight: 600;
    font-size: var(--font-lg);
    color: var(--text-color-2);
}


.modal p{
    font-family: var(--font-body);
    font-size: var(--font-sm);
    font-weight: 100;
}


#close-btn{
    position: absolute;
    height: 30px;
    right: 20px;
    top: 15px;
    cursor: pointer;
}



/* overlay already exists; keep it position:fixed; inset:0; z-index high; */

.loader-card{
  background: var(--background-color-3);
  padding: 20px 24px;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0,0,0,.35);
  display: grid;
  place-items: center;
  gap: 12px;
  min-width: 240px;
}

.loader-card.hidden{
    display: none;
}

/* simple gold ring spinner */
.spinner{
  width: 36px; height: 36px;
  border: 3px solid rgba(216,180,106,.35);
  border-top-color: var(--button-color-3);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.hidden{
    display: none;
}