.contact-section {
  padding: 4rem 2rem;
  margin-top: 5rem;
  background-color: #2a323a;
  color: white;
  overflow: hidden;
  padding-bottom: 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  color: #ffffff;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #b0b0b0;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.contact-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 3rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: yellow;
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(128, 255, 54, 0.2);
  border-color: rgba(128, 255, 54, 0.3);
}

.contact-card:hover::before {
  transform: scaleX(1);
}

.form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.form-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  background: rgb(128, 255, 54);
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  transition: transform 0.3s ease;
}

.contact-card:hover .form-icon {
  transform: scale(1.1) rotate(5deg);
}

.form-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.form-description {
  color: #b0b0b0;
  font-size: 0.95rem;
  line-height: 1.5;
}

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

label {
  display: block;
  margin-bottom: 0.5rem;
  color: #e0e0e0;
  font-weight: 500;
  font-size: 0.95rem;
}

.required {
  color: rgb(128, 255, 54);
}

input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="tel"]::placeholder {
  color: #b0b0b0;
}

input:focus {
  outline: none;
  border-color: rgb(128, 255, 54);
  box-shadow: 0 0 0 2px rgba(128, 255, 54, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

input:valid {
  border-color: rgba(128, 255, 54, 0.5);
}

.success-message {
  display: none;
  background: rgba(128, 255, 54, 0.1);
  color: rgb(128, 255, 54);
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(128, 255, 54, 0.3);
  text-align: center;
}

.error-message {
  display: none;
  background: rgba(255, 82, 82, 0.1);
  color: #ff5252;
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 82, 82, 0.3);
  text-align: center;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
}

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

/* Ensure full-width single inputs match the grid width */
.form-group {
  width: 100%;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  box-sizing: border-box;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.contact-card .cta-button {
  width: 100%;
  background: yellow;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
  box-sizing: border-box;
}
textarea {
  width: 100%;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
  resize: vertical; /* Allow resizing vertically only */
  box-sizing: border-box;
}

textarea::placeholder {
  color: #b0b0b0;
}

textarea:focus {
  outline: none;
  border-color: rgb(128, 255, 54);
  box-shadow: 0 0 0 2px rgba(128, 255, 54, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {

  .contact-card {
    padding: 2rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-grid .form-group {
    margin-bottom: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }
}
