body {
  margin: 0;
  padding-top: 0px;
  background-color: white;
}

.info-cards {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 100px;
  align-items: center;
  margin-bottom: 50px;
}

.contacts, .address {
    background-color: var(--purple-darker);
    color:white;
    height: 400px;
    width: 450px;
    border-radius: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;        

    text-align: left;

}

.contact-text {
    margin-bottom: 10px;
    color: white;
}

.card-format {
    width: 420px;
    word-break: break-word;
    overflow-wrap: anywhere;
    justify-content: left;
}

.titles {
    color: white; 
    margin-bottom: 20px;
    text-align: center;
    vertical-align: top;
    margin-top: 33px;
}

.link {
    color: var(--purple-lighter);
}

.link:hover  {
    opacity: 0.7;

}

.newsletter-section {
    background-color: var(--purple-light);
    height: 300px;
    padding-top: 20px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    gap: 20px;   
    box-sizing: border-box;
}

.newsletter-text {
    color: var(--purple-darker);
    text-align: center;
}

.subscribe-items {
    display: grid;
    grid-template-columns: 1fr 100px;
    gap: 5px;
    width: 60%;   
}

.search-bar {
    height: 50px;
    border-radius: 20px;
    border-width: 1px;
    padding-left: 15px;
}

.contact-button {
    border: 2px solid black;
    border-radius: 26px;
    background-color: var(--purple-standard);
    font-weight: 600;
}

.contact-button:hover {
    background-color: var(--purple-darker);
    color: var(--text-secondary);
    border-color: white;
    cursor: pointer;
}

.submit-button {
    border: 2px solid black;
    border-radius: 26px;
    background-color: var(--purple-standard);
    font-weight: 600;
    padding-left: 40px;
    padding-right: 40px;
    padding-top: 15px;
    padding-bottom: 15px;

}

.submit-button:hover {
    background-color: var(--purple-darker);
    color: var(--text-secondary);
    border-color: white;
    cursor: pointer;
}

.contact-us-section {
    padding-top: 50px;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 800px;
    margin: 60px auto;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-sizing: border-box;
}

.contact-us-section h2 {
    text-align: center;
    font-size: 40px;
    font-weight: normal;
    color: var(--purple-darkest);
    margin-bottom: 10px;
}

.contact-us-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 500px;
}

.contact-us-row label {
    font-weight: 600;
    color: var(--purple-darkest);
    text-align: left;

}

.contact-input {
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

.contact-input:focus {
    outline: none;
    border-color: var(--purple-darker);
    box-shadow: 0 0 0 3px rgba(109, 53, 166, 0.2);
}

.contact-us-section textarea.contact-input {
    min-height: 120px;
    resize: vertical;
}

/* Responsive adjustments */
@media (max-width: 500px) {
    .contact-us-section {
        padding: 30px 20px;
        margin: 40px 10px;
    }
}

/* Tablet: 768px and below */
@media (max-width: 768px) {
  
  /* Info cards stack vertically */
  .info-cards {
    flex-direction: column;
    gap: 20px;
    margin-top: 50px;
    margin-bottom: 30px;
  }
  
  .contacts, .address {
    width: 80%;
    height: auto; /* let content define height */
    padding: 20px;
  }

  /* Newsletter input adapts */
  .subscribe-items {
    grid-template-columns: 1fr 80px;
    width: 80%;
  }

  /* Contact form adapts */
  .contact-us-section {
    max-width: 90%;
    margin: 40px auto;
    padding: 30px 15px;
  }

  .contact-us-row {
    width: 100%;
  }
}

/* Mobile: 500px and below */
@media (max-width: 500px) {

  /* Info cards smaller and stacked */
  .contacts, .address {
    width: 95%;
    padding: 15px;
    border-radius: 25px;
  }

  /* Newsletter */
  .subscribe-items {
    grid-template-columns: 1fr; /* stack input + button */
    width: 95%;
    gap: 10px;
  }

  /* Contact form text smaller */
  .contact-us-section h2 {
    font-size: 28px;
  }

  .contact-input {
    font-size: 14px;
    padding: 10px 12px;
  }

  .submit-button {
    padding: 12px 25px;
    font-size: 14px;
  }

  .info-cards {
    gap: 15px;
  }
}


