#contact {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 5%;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2rem);
  padding: 1rem 0;
  text-align: center;
  color: #b74b4b;
  margin-bottom: 2rem;
}

.wrapper {
  color: #b74b4b;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  max-width: 600px;
  margin: 1.5rem auto;
}

.wrapper p {
  color: #74b4bb;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.wrapper:hover {
  color: #ff7f7f;
}

.wrapper:hover a {
  color: #ffcccc;
  text-decoration: underline;
}

.wrapper details {
  background-color: rgba(183, 75, 75, 0.05);
  border: 2px solid rgba(183, 75, 75, 0.2);
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.3s ease;
  text-align: center;
}

.wrapper details:hover {
  background-color: rgba(183, 75, 75, 0.1);
  border-color: rgba(183, 75, 75, 0.4);
  box-shadow: 0 5px 20px rgba(183, 75, 75, 0.2);
}

.wrapper details summary {
  cursor: pointer;
  padding: 0.75rem;
  font-weight: bold;
  color: #b74b4b;
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.wrapper details summary::-webkit-details-marker {
  display: none;
}

.wrapper details summary::before {
  content: '▶';
  margin-right: 12px;
  transition: transform 0.3s ease;
  display: inline-block;
  font-size: 0.9em;
}

.wrapper details[open] summary::before {
  transform: rotate(90deg);
}

.wrapper details summary:hover {
  color: #ff7f7f;
  text-shadow: 0 0 12px rgba(255, 127, 127, 0.5);
}

.wrapper details[open] summary {
  color: #74b4bb;
  margin-bottom: 1rem;
}

.wrapper details a {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.5rem 1rem;
  color: #74b4bb;
  border: 2px solid #74b4bb;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 600;
}

.wrapper details a:hover {
  background-color: rgba(116, 180, 187, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(116, 180, 187, 0.3);
}

/* Form Styles */
form {
  max-width: 500px;
  margin: 3rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 0 20px;
}

form label {
  text-align: left;
  color: #b74b4b;
  font-weight: 600;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  margin-bottom: -0.75rem;
}

input, 
textarea {
  padding: 14px 16px;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  border: 2px solid rgba(183, 75, 75, 0.3);
  border-radius: 10px;
  background-color: rgba(17, 17, 17, 0.8);
  color: #eee;
  resize: vertical;
  transition: all 0.3s ease;
  font-family: 'Roboto', sans-serif;
}

input:focus, 
textarea:focus {
  outline: none;
  border-color: #74b4bb;
  box-shadow: 0 0 20px rgba(116, 180, 187, 0.4);
  background-color: rgba(17, 17, 17, 1);
}

textarea {
  min-height: 120px;
}

button {
  padding: 14px 24px;
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  background: linear-gradient(135deg, #b74b4b, #9f3f3f);
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

button:hover {
  background: linear-gradient(135deg, #9f3f3f, #8a3535);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(183, 75, 75, 0.4);
}

button:active {
  transform: translateY(-1px);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  #contact {
    padding: 1.5rem 5%;
  }

  h2 {
    margin-bottom: 1.5rem;
  }

  .wrapper {
    margin: 1rem auto;
  }

  .wrapper details {
    padding: 1rem;
  }

  form {
    gap: 1rem;
    margin-top: 2rem;
  }
}

@media (max-width: 480px) {
  #contact {
    padding: 1rem 3%;
  }

  .wrapper details {
    padding: 0.75rem;
  }

  .wrapper details summary {
    padding: 0.5rem;
  }

  form {
    padding: 0 10px;
  }

  input, 
  textarea {
    padding: 12px 14px;
  }

  button {
    padding: 12px 20px;
  }
}
