/* ----------- CONTACT SECTION (твои стили) ----------- */

.contact {
  background: linear-gradient(135deg, #444, #2f2f2f);
  color: #fff;
  padding: 50px;
  margin: 60px auto;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.contact-form h2 {
  margin-bottom: 32px;
  font-size: 26px;
  font-weight: 600;
  text-align: center;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 40px;
  margin-bottom: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

label {
  font-size: 14px;
  color: #ddd;
}

input,
textarea {
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  background: #fff;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

textarea {
  resize: vertical;
}

button.submit-btn {
  display: block;
  width: 100%;
  max-width: 220px;
  margin: 20px auto 0;
  padding: 14px 20px;
  background: #ff7a1a;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

button.submit-btn:hover {
  background: #e96b0f;
  transform: translateY(-2px);
}

.contact-alt {
  text-align: center;
  margin-top: 30px;
  font-size: 16px;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 20px;
}

.contact-alt strong {
  font-weight: 700;
}

/* мобильная версия */
@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ----------- SUCCESS POPUP (новое) ----------- */

.success-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  animation: popupFade 0.25s ease forwards;
}

@keyframes popupFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.popup-content {
  background: #fff;
  color: #000;
  padding: 30px;
  border-radius: 12px;
  max-width: 360px;
  width: 90%;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  animation: popupSlide 0.35s ease forwards;
}

@keyframes popupSlide {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.popup-content h3 {
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 600;
}

.popup-content p {
  font-size: 16px;
  margin-bottom: 22px;
}

#closePopup {
  background: #ff7a1a;
  color: white;
  border: none;
  padding: 12px 26px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.25s ease;
}

#closePopup:hover {
  background: #e96b0f;
}
