/* --- Styles for the Contact Page --- */

.contact-hero {
  padding: 4rem 1rem;
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url('../images/learn-tamil-main-banner.jpg');
  background-size: cover;
  background-position: center;
  color: var(--text-light);
  text-align: center;
  border-radius: var(--border-radius);
  margin-bottom: 2.5rem;
}

.contact-hero h1 {
  margin: 0;
  font-size: 3rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.contact-hero p {
  margin-top: 0.5rem;
  font-size: 1.4rem;
  max-width: 600px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* --- Centered Form Layout --- */
.contact-container {
  display: flex;
  justify-content: center; /* This centers the form horizontally */
  align-items: center;
}

.contact-form {
  width: 100%;
  max-width: 600px; /* Constrain the form width */
  background-color: #fff;
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); /* Bolder shadow */
  border: 1px solid var(--border-color);
}

.form-intro {
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-top: 0;
  margin-bottom: 2rem; /* Increased margin to separate from the heading */
  color: #555;
}

.contact-form h2 {
  color: var(--primary-color);
  margin-top: 0;
  text-align: center;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700; /* Bolder labels */
  font-size: 1.1rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px; /* More padding */
  border: 2px solid var(--border-color); /* Thicker border */
  border-radius: var(--border-radius);
  font-family: var(--english-font);
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 8px rgba(192, 0, 0, 0.2);
}

.cta-button {
  width: 100%; /* Make button full-width */
  padding: 15px;
  font-size: 1.1rem;
}

.feedback {
  min-height: 24px;
  font-weight: bold;
  margin-top: 1rem;
  text-align: center;
}

.feedback.correct {
  color: #28a745;
}
.feedback.incorrect {
  color: #dc3545;
}
