* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  background-color: #030712;
  background-image: 
    radial-gradient(circle at 50% 10%, rgba(0, 162, 232, 0.12), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(0, 80, 238, 0.08), transparent 50%);
  color: #f1f5f9;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.home {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  padding: 32px 20px 48px;
}

.header {
  margin-bottom: 28px;
  text-align: center;
}

.logo {
  display: block;
  width: min(85vw, 360px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 25px rgba(0, 162, 232, 0.15));
}

.form-container {
  width: 100%;
  max-width: 520px;
}

.form-card {
  background: rgba(13, 20, 32, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(0, 162, 232, 0.2);
  border-radius: 18px;
  padding: 32px 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 162, 232, 0.05);
}

.form-header {
  margin-bottom: 24px;
  text-align: center;
}

.form-title {
  margin: 0 0 8px 0;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 30%, #90cdf4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.form-subtitle {
  margin: 0;
  font-size: 0.92rem;
  color: #94a3b8;
  line-height: 1.5;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 540px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #cbd5e1;
  letter-spacing: 0.01em;
}

input,
textarea {
  width: 100%;
  background: rgba(7, 11, 19, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #ffffff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

input::placeholder,
textarea::placeholder {
  color: #64748b;
  font-size: 0.88rem;
}

input:focus,
textarea:focus {
  border-color: #0099ff;
  background-color: rgba(10, 16, 28, 0.95);
  box-shadow: 0 0 0 3px rgba(0, 153, 255, 0.22);
}

textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}

.submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  margin-top: 6px;
  background: linear-gradient(135deg, #0099ff 0%, #0052cc 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 153, 255, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.submit-btn:hover:not(:disabled) {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(0, 153, 255, 0.45);
}

.submit-btn:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: 0 4px 14px rgba(0, 153, 255, 0.3);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 0.7s linear infinite;
}

.submit-btn.loading .btn-text {
  display: none;
}

.submit-btn.loading .btn-spinner {
  display: inline-block;
}

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

.form-feedback {
  display: none;
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.92rem;
  text-align: center;
  line-height: 1.4;
}

.form-feedback.success {
  display: block;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.form-feedback.error {
  display: block;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
}

@media (min-width: 768px) {
  .home {
    padding: 48px 24px 64px;
  }

  .logo {
    width: min(60vw, 380px);
  }

  .form-card {
    padding: 40px 36px;
  }
}
