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

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #10b981;
  --accent: #f59e0b;
  --danger: #ef4444;
  --dark: #1e293b;
  --gray: #64748b;
  --light: #f8fafc;
  --white: #ffffff;
  --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: var(--light);
  padding-top: 80px;
}

nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
  animation: fadeInUp 0.6s ease;
}

.page-title-icon {
    -webkit-text-fill-color: initial;
}

@keyframes fadeInUp {
  0% { transform: translateY(20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.page-icon { font-size: 4rem; margin-bottom: 1rem; }

.page-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-subtitle { color: var(--gray); font-size: 1.1rem; }

.main-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  animation: fadeInUp 0.6s ease 0.2s both;
}

.form-section { margin-bottom: 2rem; }

.section-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-icon { font-size: 1.5rem; }

.form-group { margin-bottom: 1.5rem; }

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--dark);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--light);
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
  background: white;
}

.form-textarea { min-height: 170px; resize: vertical; }

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.char-counter {
  text-align: right;
  font-size: 0.85rem;
  color: var(--gray);
  margin-top: 0.25rem;
}

.hint {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--gray);
}

.info-box {
  background: #dbeafe;
  border-left: 4px solid var(--primary);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.info-box-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.info-box-text { font-size: 0.9rem; color: var(--dark); }

.btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.btn-secondary {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover { background: var(--primary); color: white; }

.form-actions { display: flex; gap: 1rem; margin-top: 2rem; }

@media (max-width: 768px) {
  .container { padding: 1rem; }
  .main-card { padding: 1.5rem; }
  .page-title { font-size: 1.8rem; }
  .form-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}

@supports (-webkit-touch-callout: none) {
  body { padding-bottom: max(2rem, env(safe-area-inset-bottom)); }
}
