/* contact.css */
:root {
  --yale-blue: #083763ff;         
  --antiflash-white: #E9EDF0ff;  
  --smoky-black: #0F0806ff;      
  --raisin-black: #151526ff;       
  --argentinian-blue: #72B0E1ff;   
  --bistre: #2E160Eff;           
  --success-green: #4CAF50;      
}

#contact {
  background-color: var(--argentinian-blue);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.Contact-Form {
  width: 100%;
  max-width: 1200px;
  justify-content: center;
  align-items: center;
  background-color: var(--argentinian-blue); 
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.Contact-Form::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  background: url("../images/MainPage/1.jpg") no-repeat center;
  background-size: cover;
  z-index: -1;
}

.contact-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  width: 100%;
  max-width: 1200px;
  background-color: rgba(8, 55, 99, 0.9); 
  box-shadow: 0px 0px 19px 5px rgba(8, 55, 99, 0.93);
  border-radius: 15px;
  overflow: hidden;
}

.left-Picture {
  background: url("../images/MainPage/1.jpg") no-repeat center;
  background-size: cover;
  height: 100%;
  position: relative; 
}

.center-content {
  display: flex;
  flex-direction: column;
  align-items: center; 
  justify-content: center; 
  position: absolute; 
  top: 40%;
  left: 50%; 
  transform: translate(-50%, -50%); 
  text-align: center;
  color: var(--antiflash-white); 
}

.overlay {
  background: rgba(0, 0, 0, 0.5); 
  padding: 10px; 
  border-radius: 8px; 
}

.contact-text {
  font-size: 2rem; 
  padding: 0; 
  color: var(--antiflash-white); 
  font-weight: bold; 
}

.logo {
  max-width: 450px; 
  margin-bottom: 10px; 
}

.contact-text {
  font-size: 2rem; 
  padding: 0 10px;
  font-weight: bold;
}

.right-Form {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.right-Form h2 {
  position: relative;
  padding: 0 0 10px;
  margin-bottom: 30px;
  color: var(--argentinian-blue); 
  text-align: center;
  font-size: 2rem;
  font-family: 'ICA Rubrik', sans-serif;
}

.right-Form h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  height: 4px;
  width: 60px;
  border-radius: 2px;
  background-color: var(--argentinian-blue);
}

.form-group {
  position: relative;
  margin-bottom: 20px;
}

.field {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  border: 2px solid var(--yale-blue); 
  border-radius: 8px;
  background-color: var(--antiflash-white); 
  transition: all 0.3s ease;
  color: var(--smoky-black); 
}

.field.success {
  border-color: var(--success-green); 
  background-color: #59c05c80; 
}

.form-group label {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  background-color: transparent;
  padding: 0 4px;
  color: var(--yale-blue); 
  pointer-events: none;
  transition: all 0.3s ease;
}

.field::placeholder {
  color: var(--bistre); 
  opacity: 0.8; 
}

.field:hover {
  background-color: rgba(255, 255, 255, 0.9); 
}

.field:focus + label,
.field:not(:placeholder-shown) + label {
  top: -10px;
  left: 12px;
  background-color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  color: var(--yale-blue); 
}

textarea.field {
  min-height: 150px;
  resize: vertical;
}

.btn {
  position: relative;
  overflow: hidden;
  padding: 12px 20px;
  background-color: var(--raisin-black); 
  color: var(--antiflash-white);
  font-size: 1.1rem;
  border: none;
  outline: none;
  cursor: pointer;
  font-weight: bold;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
  background-color: var(--argentinian-blue); 
  transform: translateY(-2px);
  color: var(--raisin-black);
  font-weight: bold;
}

.btn::after {
  content: "";
  position: absolute;
  width: 300%;
  height: 300%;
  background: rgba(255, 255, 255, 0.3);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.5s, opacity 1s;
  border-radius: 50%;
}

.btn:active::after {
  transform: translate(-50%, -50%) scale(1);
  opacity: 0;
  transition: 0s;
}

/* Responsive Adjustments */
@media screen and (max-width: 1024px) {
  .contact-box {
    grid-template-columns: 1fr;
  }
  .center-content {
    transform: none;
    padding: 20px 0;
    text-align: center;
    top: 40%;
    left: 0%;
    justify-content: center;
  }
  #contact {
    padding: 40px 15px;
}
  .contact-text {
    font-size: 1.5rem;
    padding: 0 10px;
    font-weight: bold;
    width: 100%;
}
#contact .logo {
  display: none;
}
.overlay{
  width: 100%;
  
}
  .left-Picture {
    height: 250px;
    border-radius: 15px 15px 0 0;
  }

  .right-Form {
    padding: 10px;
  }

  .right-Form h2 {
    font-size: 1.8rem;
  }

  .right-Form h2::after {
    width: 50px;
    height: 3px;
  }
}

/* Mobile Devices */
@media screen and (max-width: 768px) {
  #contact {
    padding: 40px 15px;
  }

  #contact .logo {
    display: none;
  }
  .Contact-Form {
    padding: 20px 10px;
  }

  .contact-box {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .left-Picture {
    height: 200px;
    border-radius: 15px 15px 0 0;
  }

  .center-content {
    transform: none;
    padding: 20px 0;
    text-align: center;
    top: 20%;
    left: 0%;
    justify-content: center;
  }


  .logo {
    max-width: 80%;
    margin-bottom: 15px;
  }

  .right-Form {
    padding: 20px;
  }

  .right-Form h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }

  .right-Form h2::after {
    width: 50px;
    height: 3px;
  }

  .field {
    font-size: 0.9rem;
    padding: 10px 14px;
  }

  .field:focus + label,
  .field:not(:placeholder-shown) + label {
    font-size: 0.8rem;
  }

  .btn {
    padding: 10px 18px;
    font-size: 1rem;
  }
}

/* Small Mobile Devices */
@media screen and (max-width: 480px) {
  .contact-box {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .center-content {
    transform: none;
    padding: 20px 0;
    text-align: center;
    top: 0%;
    left: 0%;
    justify-content: center;
  }
  .left-Picture {
    height: 150px;
    border-radius: 15px 15px 0 0;
  }

  .center-content {
    padding: 15px 0;
  }

  .contact-text {
    font-size: 1.2rem;
  }

  #contact .logo {
    display: none;
    max-width: 70%;
    margin-bottom: 10px;
  }

  .right-Form {
    padding: 15px;
  }

  .right-Form h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }

  .right-Form h2::after {
    width: 40px;
    height: 2px;
  }

  .field {
    font-size: 0.8rem;
    padding: 8px 12px;
  }

  .field:focus + label,
  .field:not(:placeholder-shown) + label {
    font-size: 0.7rem;
  }

  .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  .alert-container {
    top: 10px;
    width: 95%;
  }

  .alert {
    padding: 10px 15px;
    font-size: 14px;
  }

  .closebtn {
    font-size: 18px;
  }
}
