
body {
    margin: 0;
    background: linear-gradient(to bottom, #f5f7fa 50%, white 50%);
      margin: 0;
  padding: 0;
  height: 100%
}


.contact-text-container {
    text-align: center;
}

.contact-text-container h1 {
    font-size: 42px;
    color: #1E3A8A;
    font-weight: 700;
    font-family: 'Quicksand', sans-serif;
    letter-spacing: 1px;
    padding: 0;
}

.contact-text-container p {
    padding: 0px;
    font-size: 20px;
    color: black;
    font-family: 'Comfortaa', cursive;
}

.contact-container {
    height: 100vh;
    display: flex;
    justify-content: center;
}

.contact-details-container {
    display: flex;
    width: 80%;
    height: 80%;
    background-color: #FAFAFA;
    border: 2px solid black;
    border-radius: 10px;
    justify-content: space-around;
    align-items: center;
    padding: 5px;
    align-items: stretch;
    /* updated */
    padding: 5px;
    overflow: hidden;
}

.contact-details {
    flex: 1;
    /* background-color: #f9d976; Light yellow/orange */
    background-color: #1E3A8A;
    height: 100%;
    max-width: 35%;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    border-right: solid 1px black;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.contact-details p,
h1 {
    font-size: 18px;
    color: #ffffff;
    text-align: center;
    line-height: 1.6;
    letter-spacing: 1px;
    font-family: 'Libre Franklin', sans-serif;
}

.contact-form {
    flex: 1;
    max-width: 65%;
    height: 100%;
    background-color: #E0ECFF;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    padding: 30px;
    /* Add internal spacing */
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 10px; 
    box-sizing: border-box;
  overflow-y: auto; 
}

.contact-form form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* Adds consistent spacing between elements */
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 15px;
    color: #1E3A8A;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #1E3A8A;
    border-radius: 8px;
    font-size: 12px;
    color: #1E3A8A;
    background-color: white;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    border-color: #0f52ba;
}

.contact-form textarea {
  width: 100%;
  padding: 12px;
  font-size: 14px;
  color: #1E3A8A;
  background-color: white;
  border: 2px solid #1E3A8A;
  border-radius: 8px;
  resize: vertical; /* allows resizing if needed */
  outline: none;
  transition: border-color 0.3s;
}

.contact-form textarea:focus {
  border-color: #0f52ba;
}

button {
    padding: 14px;
    background-color: #1E3A8A;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #15317E;
}


.fancy-social {
  text-align: center;
  padding-bottom: 20px;
}

.fancy-social h2 {
  font-size: 30px;
  margin-bottom: 40px;
  color: #1E3A8A;
}

.floating-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  color: white;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  transition: transform 0.2s, box-shadow 0.3s;
}

.pill:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

/* Platform colors */
.pill.phone     { background: #34A853; }
.pill.instagram { background: linear-gradient(135deg, #F58529, #DD2A7B, #8134AF); }
.pill.facebook  { background: #1877F2; }
.pill.threads   { background: #000; }
.pill.youtube   { background: #FF0000; }
.pill.linkedin  { background: #0077b5; }
.pill.telegram  { background: #229ED9; }

.pill i {
  font-size: 18px;
}


/* Tablet View: 768px to 1024px */
@media (max-width: 1024px) {
  .contact-details{
    max-height: fit-content;
  }
  .contact-text-container{
    width: 98%;
  }
  .contact-text-container h1 {
    font-size: 32px;
  }

  .contact-text-container p {
    font-size: 24px;
  }

  .contact-container {
    height: auto;
    padding: 20px 0;
  }

  .contact-details-container {
    flex-direction: column;
    width: 90%;
    height: auto;
  }

  .contact-details,
  .contact-form {
    max-width: 100%;
    width: 100%;
    border-radius: 0;
  }

  .contact-details {
    border-right: none;
    border-bottom: 1px solid black;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    padding: 20px;
  }

  .contact-form {
    border-top: none;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    width: 100%;
    overflow-x: hidden;
  }

  .form-group label {
    font-size: 14px;
  }

  .form-group input,
  .contact-form textarea {
    font-size: 14px;
    width: 98%;
  }

  button {
    font-size: 15px;
    padding: 12px;
  }

  .fancy-social h2 {
    font-size: 24px;
  }

  .pill {
    font-size: 14px;
    padding: 10px 16px;
  }
}


/* Mobile View: up to 768px */
@media only screen and (max-width: 600px){
  body{
      margin-left: 10px;
    margin-right:10px ;
  }
  .contact-details h1{
    font-size: 16px;
    color: white;

  }
    .contact-details p{
    font-size: 16px;
    padding: 0px
  }
  .contact-text-container h1 {
    font-size: 18px;
  }

  .contact-text-container p {
    font-size: 14px;
  }

  .contact-details {
    padding: 15px;
    max-width: 91%;
  }


  .form-group label {
    font-size: 13px;
  }

  .form-group input,
  .contact-form textarea {
    font-size: 13px;
    padding: 8px;
  }

  button {
    font-size: 14px;
    padding: 10px;
  }

  .fancy-social h2 {
    font-size: 20px;
  }

  .pill {
    font-size: 13px;
    padding: 8px 14px;
  }

  .pill i {
    font-size: 16px;
  }
}
