.contact-card {
  width: min(980px, calc(100% - 2.2rem));
  margin: 2rem auto 3rem;
  padding: 2rem;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(65, 194, 68, 0.14), rgba(236, 72, 153, 0.16));
  border: 1px solid rgba(65, 194, 68, 0.45);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  text-align: left;
}

.contact-card h1 {
  margin: 0 0 0.6rem;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.08em;
  color: #7ef18a;
  font-size: 2.4rem;
  text-align: center;
}

.contact-card p {
  margin: 0;
  color: #e7e7e7;
  font-size: 1.05rem;
  line-height: 1.5;
  text-align: center;
}

.contact-grid-wrap {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.contact-grid-item {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.9rem;
  color: #f0f0f0;
}

.contact-grid-item strong {
  display: block;
  margin-bottom: 0.3rem;
  color: #7ef18a;
  letter-spacing: 0.04em;
}

.contact-social-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.contact-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 2.5px solid #41c244;
  background: rgba(20, 20, 20, 0.6);
  text-decoration: none;
  box-shadow: inset 0 0 16px rgba(65, 194, 68, 0.08), 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  padding: 0;
}

.contact-social-btn svg {
  width: 20px;
  height: 20px;
  fill: #7ef18a;
  transition: fill 0.25s ease;
}

.contact-social-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(65, 194, 68, 0.15), transparent);
  transition: left 0.4s ease;
}

.contact-social-btn:hover {
  border-color: #7ef18a;
  background: rgba(20, 20, 20, 0.4);
  box-shadow: inset 0 0 20px rgba(65, 194, 68, 0.15), 0 0 20px rgba(65, 194, 68, 0.25);
  transform: scale(1.08);
}

.contact-social-btn:hover::before {
  left: 100%;
}

.contact-social-btn:hover svg {
  fill: #41c244;
}

.contact-social-btn:focus-visible {
  outline: 2px solid #7ef18a;
  outline-offset: 3px;
}

.contact-form {
  margin-top: 1.4rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.35rem;
  color: #cafacf;
  font-size: 0.92rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 0.8rem;
  padding: 0.65rem 0.7rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.contact-form button {
  border: 1px solid rgba(65, 194, 68, 0.7);
  color: #0c120d;
  background: linear-gradient(180deg, #7ef18a, #41c244);
  font-weight: 700;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  opacity: 1;
}

@media (max-width: 900px) {
  .contact-card {
    width: min(980px, calc(100% - 1.2rem));
    padding: 1.2rem;
    margin: 1.2rem auto 2rem;
    border-radius: 12px;
  }

  .contact-card h1 {
    font-size: 2rem;
  }

  .contact-grid-wrap {
    grid-template-columns: 1fr;
  }

  .contact-form button {
    width: 100%;
  }
}
