/* Accessibility: screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* =========================================
   Contact page styles
   (contact.css)
   ========================================= */

:root {
  --input-border: #ddd;
}

body {
  margin-top: 20px;
}

/* General section styling */
#contact-section {
  padding: 4rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--light-bg);
}

/* Header/Intro text */
.contact-header {
  text-align: center;
  margin-bottom: 2rem;
}

.contact-intro span:first-child {
  font-size: clamp(1.6rem, 2.2vw + 1rem, 2.2rem);
  color: var(--primary-color);
  font-weight: bold;
  line-height: 1.2;
}

.contact-intro span:last-child {
  font-size: clamp(1rem, 1.2vw + 0.5rem, 1.2rem);
  color: var(--text-color);
}

/* Form container */
.contact-form {
  width: 100%;
  max-width: 600px;
  background: var(--dark-bg);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
}

/* Input groups and labels */
.input-group {
  margin-bottom: 1rem;
}



.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.6rem 1rem;
  border: 1px solid var(--input-border);
  border-radius: 5px;
  font-size: 1rem;
  color: var(--text-color);
  background-color: var(--dark-bg);
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

/* Placeholder styling */
::placeholder {
  color: #999;
}

/* Button styling */
.contact-form button[type="submit"] {
  width: 100%;
  padding: 0.8rem;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border: none;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button[type="submit"]:hover {
  background-color: #E08C00;
}

#form-response {
  margin-top: 1rem;
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
}

#redirect-message {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #666;
  text-align: center;
}


.new-message-btn {
  display: none;
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.new-message-btn:hover {
  background-color: #555;
}

#response-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}

/* Responsive Styles */
@media (max-width: 768px) {


  .contact-form {
    padding: 1.5rem;
  }

  .contact-intro span:first-child {
    font-size: 1.8rem;
  }

  .contact-intro span:last-child {
    font-size: 1rem;
  }

  .input-group {
    margin-bottom: 0.8rem;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    padding: 0.5rem 0.95rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 425px) {




  .contact-form {
    padding: 1rem;
    border-radius: 8px;
  }

  .contact-intro span:first-child {
    font-size: 1.5rem;
  }

  .contact-intro span:last-child {
    font-size: 0.9rem;
  }

  .input-group {
    margin-bottom: 0.7rem;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    padding: 0.6rem 0.8rem;
  }

  .contact-form textarea {
    min-height: 80px;
  }

  .contact-form button[type="submit"] {
    font-size: 1rem;
    padding: 0.8rem;
  }
}