@import url('https://fonts.googleapis.com/css2?family=SF+Pro+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary-color: #1f2937;
  --secondary-color: #6366f1;
  --accent-color: #ec4899;
  --text-primary: #ffffff;
  --text-secondary: #d1d5db;
  --bg-card: rgba(31, 41, 55, 0.8);
  --border-color: rgba(255, 255, 255, 0.1);
}

.form-container {
  margin-top: 120px;
  margin-left: 40px;
  margin-right: 40px;
  display: flex;
  align-items: flex-start;
  gap: 50px;
  max-width: 100%;
  height: 100%;
}

.form-text {
  flex: 1;
  padding: 50px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  animation: slideInLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.form-text h2 {
  color: #ffffff;
  margin-bottom: 25px;
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.8px;
  background: linear-gradient(135deg, #ffffff, #d1d5db);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.form-text p {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 16px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

form {
  opacity: 1;
  transform: translateX(0);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(236, 72, 153, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  padding: 50px;
  border-radius: 16px;
  flex: 1;
  min-width: 500px;
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 25px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  animation: slideInRight 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.container-form.show {
  opacity: 0;
  transform: translateX(-100px);
}

form label {
  display: block;
  color: #ffffff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  margin-bottom: 8px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

form input[type="text"],
form input[type="email"],
form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  font-size: 14px;
  background: rgba(15, 23, 42, 0.5);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(10px);
}

form input[type="text"]::placeholder,
form input[type="email"]::placeholder,
form textarea::placeholder {
  color: rgba(209, 213, 219, 0.6);
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

form textarea#user-comment {
  margin-top: 0;
  height: 140px;
  resize: vertical;
}

form input[type="submit"] {
  margin-top: auto;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--secondary-color), #7c3aed);
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
  position: relative;
  overflow: hidden;
}

form input[type="submit"]::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

form input[type="submit"]:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.5);
}

form input[type="submit"]:hover::before {
  width: 300px;
  height: 300px;
}

form input[type="submit"]:active {
  transform: translateY(-1px);
}

.comments-section {
  position: relative;
  margin-left: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  width: 100%;
  max-height: none;
  margin-top: 60px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.05));
  backdrop-filter: blur(20px);
  padding: 50px;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

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

.comments-section h2 {
  font-size: 32px;
  color: #ffffff;
  margin-bottom: 30px;
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.8px;
  background: linear-gradient(135deg, #ffffff, var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .form-container {
    flex-direction: column;
    margin: 20px;
    gap: 30px;
  }

  .form-text {
    padding: 35px;
  }

  form {
    min-width: 100%;
    padding: 35px;
  }

  .comments-section {
    margin-left: 0;
    width: 100%;
    padding: 35px;
  }
}

@media (max-width: 768px) {
  .form-container {
    margin: 15px;
    gap: 25px;
  }

  .form-text {
    padding: 25px;
  }

  .form-text h2 {
    font-size: 26px;
    margin-bottom: 20px;
  }

  .form-text p {
    font-size: 14px;
    line-height: 1.7;
  }

  form {
    padding: 25px;
    gap: 20px;
  }

  form label {
    font-size: 13px;
    margin-bottom: 6px;
  }

  form input[type="text"],
  form input[type="email"],
  form textarea {
    padding: 12px 14px;
    font-size: 14px;
  }

  form input[type="submit"] {
    padding: 12px 24px;
    font-size: 15px;
  }

  .comments-section {
    padding: 25px;
    margin-top: 40px;
  }

  .comments-section h2 {
    font-size: 26px;
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .form-container {
    margin: 10px;
    gap: 20px;
  }

  .form-text {
    padding: 20px;
  }

  .form-text h2 {
    font-size: 22px;
    margin-bottom: 15px;
  }

  .form-text p {
    font-size: 13px;
  }

  form {
    padding: 20px;
    gap: 18px;
  }

  form input[type="submit"] {
    padding: 11px 20px;
    font-size: 14px;
  }

  form textarea#user-comment {
    height: 120px;
  }

  .comments-section {
    padding: 20px;
  }

  .comments-section h2 {
    font-size: 22px;
  }
}
