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

:root {
  /* Premium Light Mode Palette */
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;

  --primary: #0f172a;
  --primary-hover: #334155;
  --star-active: #fbbf24;
  --star-hover: #f59e0b;
  --star-inactive: #f1f5f9;

  /* Layout & Spacing - "Airiness" */
  --radius-lg: 24px;
  --radius-md: 12px;
  --shadow-subtle: 0 10px 40px -10px rgba(0, 0, 0, 0.05), 0 4px 10px -5px rgba(0,0,0,0.02);
  --shadow-hover: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --spacing-gap: 2rem;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* App Container for structural boundaries */
.app-container {
  width: 100%;
  max-width: 480px;
  perspective: 1000px; /* For subtle entrance animations */
}

/* Main Card Style */
.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-subtle);
  border: 1px solid rgba(255,255,255,0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition);
  animation: slideUpFade 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(20px);
}

.card:hover {
  box-shadow: var(--shadow-hover);
}

/* Typography */
h1, h2 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

h1 strong, h2 strong {
  font-weight: 600;
  color: var(--primary);
}

p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: var(--spacing-gap);
}

/* Client Logo */
.logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 2rem;
  border-radius: var(--radius-md);
  /* Fallback styling if no image */
  background: var(--bg-color);
  padding: 0.5rem;
}

/* Forms */
form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

input, textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-color);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-main);
  transition: var(--transition);
  outline: none;
}

input::placeholder, textarea::placeholder {
  color: #94a3b8;
}

input:focus, textarea:focus {
  border-color: var(--primary);
  background: var(--card-bg);
  box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.05);
}

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

/* Buttons */
button[type="submit"] {
  width: 100%;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: none;
  background: var(--primary);
  color: white;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 0.5rem;
}

button[type="submit"]:hover:not(:disabled) {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -10px rgba(15, 23, 42, 0.5);
}

button[type="submit"]:active:not(:disabled) {
  transform: translateY(0);
}

button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Stars Rating */
.stars {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  margin-top: 1.5rem;
}

.star-btn {
  background: var(--star-inactive);
  border: none;
  border-radius: var(--radius-md);
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  color: transparent;
  text-shadow: 0 0 0 #cbd5e1; /* Inactive star color */
}

.star-btn:hover {
  transform: translateY(-4px) scale(1.05);
  background: var(--bg-color);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  text-shadow: 0 0 0 var(--star-active);
}

.star-btn:active {
  transform: translateY(0) scale(0.95);
}

/* Animations */
@keyframes slideUpFade {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Custom Scrollbar for sleekness */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
