:root {
  --primary: #671CE1;
  --primary-light: #8b5cf6;
  --primary-dark: #4c1d95;
  --accent: #f472b6;
  --bg: #0f172a;
  --card-bg: rgba(30, 41, 59, 0.7);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --white: #ffffff;
  --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  --border-radius: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Outfit', 'Inter', sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(at 0% 0%, hsla(260, 77%, 15%, 1) 0, transparent 50%),
    radial-gradient(at 50% 0%, hsla(260, 77%, 20%, 1) 0, transparent 50%),
    radial-gradient(at 100% 0%, hsla(260, 77%, 15%, 1) 0, transparent 50%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.container {
  max-width: 800px;
  margin: 0 auto;
}

header {
  text-align: center;
  margin-bottom: 40px;
  animation: fadeInDown 0.8s ease-out;
}

header .logo {
  max-width: 250px;
  margin-bottom: 10px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

header h1 {
  font-size: 2.8rem;
  color: var(--white);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 8px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

header p {
  color: var(--text-muted);
  font-size: 1.2rem;
  font-weight: 500;
  max-width: 500px;
  margin: 0 auto;
}

.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 40px;
  margin-bottom: 30px;
  transition: var(--transition);
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.2);
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.form-group {
  margin-bottom: 5px;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary-light);
}

textarea {
  width: 100%;
  padding: 18px;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.05);
  background: rgba(15, 23, 42, 0.6);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--white);
  transition: var(--transition);
  outline: none;
  resize: vertical;
  min-height: 180px;
  margin-bottom: 8px;
}

textarea:focus {
  border-color: var(--primary-light);
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 0 0 0 4px rgba(103, 28, 225, 0.2);
}

.char-counter {
  text-align: right;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 25px;
}

.btn-container {
  display: flex;
  gap: 15px;
}

.btn {
  flex: 1;
  padding: 18px;
  border-radius: 16px;
  border: none;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(103, 28, 225, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(103, 28, 225, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  background: #475569;
  cursor: not-allowed;
  opacity: 0.7;
}

.success-message {
  text-align: center;
  padding: 40px 20px;
  animation: scaleUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-icon {
  font-size: 4.5rem;
  margin-bottom: 25px;
  display: block;
}

.success-message h2 {
  justify-content: center;
  color: var(--white);
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.success-message p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s linear infinite;
  display: none;
}

.notification {
  position: fixed;
  top: 30px;
  right: 30px;
  padding: 16px 28px;
  border-radius: 16px;
  color: white;
  font-weight: 600;
  z-index: 1000;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  transform: translateX(150%);
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.notification.show {
  transform: translateX(0);
}

.notification.success {
  background: linear-gradient(135deg, #059669, #10b981);
}

.notification.error {
  background: linear-gradient(135deg, #dc2626, #ef4444);
}

footer {
  text-align: center;
  padding: 40px 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

footer a {
  color: var(--primary-light);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

footer a:hover {
  color: var(--accent);
  text-decoration: underline;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 600px) {
  header h1 {
    font-size: 2.2rem;
  }

  .glass-card {
    padding: 30px 20px;
  }

  .btn {
    padding: 16px;
  }
}