@import url("https://fonts.googleapis.com/css2?family=Mada:wght@300..900&display=swap");

:root {
  --bg: #f6f8fb;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #eeeeee;
  --accent-ink: #0b5bd9;
  --row-hover: #f8fafc;
  --chip: #eef2ff;
  --accent: #4f46e5;
  --accent-hover: #3730a3;
  --accent-light: #f0f0ff;
  --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Mada", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

body {
  font-family: "Mada", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.contact-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 85vh;
  padding: 80px 20px;
}

.contact-card {
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 40px;
  max-width: 650px;
  width: 100%;
  animation: fadeIn 1s ease;
}

.contact-card h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
  background: var(--gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-align: center;
}

.contact-card p {
  color: var(--muted);
  margin-bottom: 30px;
  text-align: center;
  font-size: 16px;
}

form {
  display: grid;
  gap: 20px;
}

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

label {
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 14px;
}

input,
textarea {
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 15px;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
  outline: none;
}

textarea {
  resize: none;
  min-height: 120px;
}

.submit-btn {
  background: var(--gradient);
  color: #fff;
  border: none;
  padding: 16px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: bounceIn 1.2s ease;
}

.submit-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: var(--shadow);
}

.error-input {
  border-color: red !important;
}

.error-text {
  color: red;
  font-size: 13px;
  margin-top: 5px;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounceIn {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  60% {
    transform: scale(1.05);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .contact-card {
    padding: 24px;
  }

  .contact-card h1 {
    font-size: 26px;
  }
}

@media (max-width: 480px) {
  .contact-card {
    padding: 20px;
  }

  input,
  textarea {
    font-size: 14px;
  }

  .submit-btn {
    font-size: 15px;
  }
}
