/* Basics  */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body{
  min-height: 100vh;
  display: flex;
  gap: 50px;
  justify-content: center;
  align-items: center;
  background: 
  linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
  url('https://preview.colorlib.com/theme/bootstrap/contact-form-10/images/bg_1.jpg.webp') no-repeat center center/cover;
}


img{
  width: 100%;
}


/* info section  */
.contact-info{
  width: 500px;
  color: white;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  min-height: 500px;
  height: 100%;
}



/* form section  */


.contact-container {
  max-width: 500px;
  padding:10px 30px 80px 30px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);

}


.contact-items{
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  list-style: none;
  gap: 25px;
  color: #ccc;
}



.double-field{
  display: flex;
  justify-content: space-between;
  gap:10px
}


.contact-container h2 {
  text-align: center;
  padding-block: 15px;
  margin-bottom: 20px;
  color: #0d013f;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-block: 9px;
  border: 1px solid #ccc;
  border-radius: 8px;
  transition: border 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #0d013f;
  outline: none;
}

/* Button */

.contact-form button {
  width: 100%;
  padding: 14px;
  margin-top: 10px;
  background: #0d013f;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s;
}

.contact-form button:hover {
  background: #130258;
}


/* error message  */
.errorMessage {
  color: red;
  font-size: 16px;
  display: none;
}

/* success-box */


/* Modal background */
.modal {
  display: none; 
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
}

/* Modal box */

.modal-content {

width: 500px;
height: 200px;
display: flex;
align-items: center;
justify-content: center;
background: #fff;
color: #0d013f;
font-weight: 500;
border-radius: 12px;
position: relative;
top: 50%;
left: 50%;
translate: -50% -50%;
animation: fadeIn 0.3s ease-in-out;
}

#closeModel{
  color: #0d013f;
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
}

/* small fade animation */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

/* .success-box {
 
  background: #4CAF50;
  color: white;
  padding: 15px 20px;
  border-radius: 8px;
  position: fixed;
  top: 20px;
  right: 20px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  z-index: 1000;
  font-size: 16px;
} */
