

.text{
    font-weight: 300;
    opacity: 0.9;
}

h3{
    color: #c3372a;
}

.contact-info a {
    color: black; 
    text-decoration: none;
    font-weight: bolder;
  }
  
  a:hover {
    color:#c3372a ; 
  }
  
.contact-bg .text{
    margin: 1.6rem 0;
    text-decoration: none;
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-info > div {
  flex: 0 90%; /* This means that each div will take up roughly 48% of the row width. Adjust this value as needed. */
  margin: 0 10px; /* This adds a 10px space around each div. Adjust this value as needed. */
  margin-top: 30px;
}

@media (min-width: 600px) {
  .contact-info > div {
    flex: 0 35%; 
  }
}

  
  .formcontainer {
    position: relative;  /* Relative positioning */
    width: 100%;
    min-height: 100vh;
    padding: 2rem;
    background-color: #fafafa;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;  /* Ensure the form stays behind the nav */
}


  .form {
    width: 100%;
    max-width: 1100px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px 1px rgba(0, 0, 0, 0.1);
    z-index: 10;
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cont-form {
    background-color: #505050;
    position: relative;
  }
  
  .circle {
    border-radius: 50%;
    background: linear-gradient(135deg, transparent 20%, #c3372a);
    position: absolute;
  }
  
  .circle.one {
    width: 130px;
    height: 130px;
    top: 130px;
    right: -40px;
  }
  
  .circle.two {
    width: 80px;
    height: 80px;
    top: 10px;
    right: 30px;
  }
  
  .cont-form:before {
    content: "";
    position: absolute;
    width: 26px;
    height: 26px;
    background-color:#505050;
    transform: rotate(45deg);
    top: 50px;
    left: -13px;
  }
  
  form {
    padding: 2.3rem 2.2rem;
    z-index: 10;
    overflow: hidden;
    position: relative;
  }
  
  .title {
    color: #fff;
    font-weight: 500;
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 0.7rem;
  }
  
  .input-container {
    position: relative;
    margin: 1rem 0;
  }
  
  .input {
    width: 100%;
    outline: none;
    border: 2px solid #fafafa;
    background: none;
    padding: 0.6rem 1.2rem;
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    border-radius: 25px;
    transition: 0.3s;
  }
  
  .input-row {
    display: flex;
    justify-content: space-between;
  }
    
  textarea.input {
    padding: 0.8rem 1.2rem;
    min-height: 150px;
    border-radius: 22px;
    resize: none;
    overflow-y: auto;
  }
  
  .input-container label {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    padding: 0 0.4rem;
    color: #fafafa;
    font-size: 0.9rem;
    font-weight: 400;
    pointer-events: none;
    z-index: 1000;
    transition: 0.5s;
  }
  
  .input-container.textarea label {
    top: 1rem;
    transform: translateY(0);
  }
  
  .btn {
    padding: 0.6rem 1.3rem;
    background-color: #fff;
    border: 2px solid #fafafa;
    font-size: 0.95rem;
    color: #505050;
    line-height: 1;
    border-radius: 25px;
    outline: none;
    cursor: pointer;
    transition: 0.3s;
    margin: 0;
  }
  
  .btn:hover {
    background-color: transparent;
    color: #fff;
  }
  
  .input-container span {
    position: absolute;
    top: 0;
    left: 25px;
    transform: translateY(-50%);
    font-size: 0.8rem;
    padding: 0 0.4rem;
    color: transparent;
    pointer-events: none;
    z-index: 500;
  }
  
  .input-container span:before,
  .input-container span:after {
    content: "";
    position: absolute;
    width: 10%;
    opacity: 0;
    transition: 0.3s;
    height: 5px;
    background-color:#505050;
    top: 50%;
    transform: translateY(-50%);
  }
  
  .input-container span:before {
    left: 50%;
  }
  
  .input-container span:after {
    right: 50%;
  }
  
  .input-container.focus label {
    top: 0;
    transform: translateY(-50%);
    left: 25px;
    font-size: 0.8rem;
  }
  
  .input-container.focus span:before,
  .input-container.focus span:after {
    width: 50%;
    opacity: 1;
  }
  
  .contact-infoo {
    padding: 2.3rem 2.2rem;
    position: relative;
  }
  
  .contact-infoo .title {
    color: #505050;
  }
  
  .text {
    color: #333;
    margin: 1.5rem 0 2rem 0;
  }
  
  
  .social-media {
    padding: 2rem 0 0 0;
  }
  
  .social-media p {
    color: #333;
  }
  
  .social-icons {
    display: flex;
    margin-top: 0.5rem;
  }
  
  .contact-infoo:before {
    content: "";
    position: absolute;
    width: 100px;
    height: 300px;
    background-color: #505050;
    bottom: -77px;
    right: 50px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    opacity: 0.3;
  }

  .big-circle {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: linear-gradient(to bottom, #ff6d00, #ff6d00);
    bottom: 50%;
    right: 50%;
    transform: translate(-40%, 38%);
  }
  
  .big-circle:after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    background-color: #fafafa;
    border-radius: 50%;
    top: calc(50% - 180px);
    left: calc(50% - 180px);
  }
  

 

.contact-bg h1 {
font-size: 41px;
margin-bottom: 1.5rem;
text-align: center;

}

.contact-bg {
height: 80vh;
background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.8)), url(/images/contact.png);
background-position: center;
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover; /* Ensure the background covers the entire container */
text-align: center;
color: #fff;
display: flex;
flex-direction: column;
justify-content: center;
align-items: left;
padding-top: 60px;
}
@media (max-width: 480px) {
.contact-bg {
        background-attachment: scroll; /* Change background attachment to scroll */
        background-position: center center;
        background-size: cover; /* Ensure the background covers the entire container */
        height: 50vh; /* Adjust height for mobile view */
        display: flex;
        justify-content: center;
        align-items: left;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    
    .contact-bg h1{
      font-size: 30px;
      padding-left: 50px;
    }
    .contact-bg{
      padding-right:30px; /* Reduce padding on smaller screens */
      padding-left:25px;
    }
}

@media (max-width: 480px) {

    .contact-bg h1{
        font-size: 30px;
        padding-left: 17px;
        
    }
} 



  
  @media (max-width: 850px) {
    .form {
      grid-template-columns: 1fr;
    }
  
    .contact-infoo:before {
      bottom: initial;
      top: -75px;
      right: 65px;
      transform: scale(0.95);
    }
  
    .contact-form:before {
      top: -13px;
      left: initial;
      right: 70px;
    }
  
  
    .big-circle {
      bottom: 75%;
      transform: scale(0.9) translate(-40%, 30%);
      right: 50%;
    }
  
    .text {
      margin: 1rem 0 1.5rem 0;
    }
  
    .social-media {
      padding: 1.5rem 0 0 0;
    }
    
  }
  
  @media (max-width: 480px) {
    .formcontainer {
      padding: 1.5rem;
    }
  
    .formcontact-infoo:before {
      display: none;
    }
  
    .square,
    .big-circle {
      display: none;
    }
  
    form,
    .contact-infoo {
      padding: 1.7rem 1.6rem;
    }
  
    .text,
    .information,
    .social-media p {
      font-size: 0.8rem;
    }
  
    .title {
      font-size: 1.15rem;
    }

    .icon {
      width: 23px;
    }
  
    .input {
      padding: 0.45rem 1.2rem;
    }
  
    .btn {
      padding: 0.45rem 1.2rem;
    }
    .title{
      font-size: 25px;
    }
  }




@media screen and (min-width: 992px){
    
    .contact-form{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        align-items: center;
    }
}

@media screen and (min-width: 1200px){
    .contact-infoo{
        grid-template-columns: repeat(4, 1fr);
    }
    
}
