/* contact.css */
@import url('styles.css');

/* Main */
.site-main {
  min-height: 500px;
  padding: 2rem;
  height: auto;
}

/* Intro */
.intro-text {
  max-width: 500px;
  font-size: 1.1rem;
  line-height: 1.6;
  flex: 1 1 300px;
}

/* Headings */
h1{
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #1e1e1e;
}

/* Contact Layout */
.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  gap: 2rem;
  padding: 2rem;
}

/* Form Panel */
.form-panel {
  flex: 1 1 400px;
  background-color: #1e1e1e;
  padding: 2rem;
  border-radius: 5px;
  border: 1px solid #ddd;
}

/* Tabs */
.tab-buttons {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
}

.tab-button {
  padding: .75rem 1.5rem;
  margin-right: 0.5rem;
  border: 2px #1e1e1e solid;
  background-color: #f7f7f7;
  color: #1e1e1e;
  cursor: pointer;
  border-radius: 25px;
  font-weight: 600;
  font-family: 'PT Mono', monospace;
  box-shadow: 0 0 0 2px #f7f7f7 inset;
}

.tab-button:hover {
  background-color: #1A5A8C;
  color: #f7f7f7;
  box-shadow: 0 0 0 2px #f7f7f7 inset;
}

.tab-button.active {
  background-color: #1e1e1e;
  color: #f7f7f7;
  box-shadow: 0 0 0 2px #f7f7f7 inset;
  border: none;
}

.tab-panel {
  display: none;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 1.5rem;
  background-color: #fafafa;
  margin-top: 1rem;
}

.tab-panel.active {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  align-items: center;
  height: auto;
  padding: 1.5rem;
}

.tab-panel p{
  font-size: 1rem;
  line-height: 1.6;
  color: #1e1e1e; 
  margin: auto;
}

.tab-panel a{
  text-wrap: nowrap;
  text-decoration: none;
  background-color: #1A5A8C;
  border: 2px #1A5A8C solid;
  box-shadow: 0 0 0 2px #f7f7f7 inset;
  padding: 10px 20px;
  border-radius: 25px;
  margin-top: 20px;
  display: block;
  color:#F7F7F7;
  text-align: center;
}

/* Forms */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-right: 20px;
  max-width: 600px;
}

label {
  font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="file"],
input[type="url"],
input[type="date"],
textarea,
select {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 100%;
  max-width: 500px;
}

textarea {
  height: 120px;
  resize: vertical;
}

#footer-placeholder {
  position: fixed;
  bottom: 0;
  width: 100%;
}

form button[type="submit"] {
  padding: .5rem 2rem;
  border: none;
  background-color: #1a5a8c;
  color: #f7f7f7;
  cursor: pointer;
  border-radius: 25px;
  font-weight: 600;
  font-family: 'PT Mono', monospace;
}

form button[type="submit"]:hover {
  background-color: #f7f7f7;
  color: #1a5a8c;
  box-shadow: 0 0 0 2px #1a5a8c inset;
}

.confirmation-message {
  display: none;
  text-align: center;
  padding: 3rem;
  background-color: #f7f7f7;
  border: 2px solid #1e1e1e;
  border-radius: 25px;
  color: #1e1e1e;
  box-shadow: 0 0 2px #1e1e1e inset;
  margin: 10vh 0;
}

.confirmation-message h2 {
  color: #1e1e1e;
}

/* Responsive */
@media (max-width: 768px) {
  .site-main {
    padding: 1rem;
  }

  .intro-text {
    font-size: 1rem;
    margin: auto;
    width: 90%;
  }

  .contact-wrapper {
    flex-direction: column;
    padding: 1rem;
  }

  .form-panel {
    padding: 1rem;
    margin: auto;
  }
}