/* Gnar Prototype Portal Styles */

:root {
  --gnar-gold: #fec62c;
  --gnar-coral: #e36752;
  --gnar-navy: #20232c;
  --gnar-navy-light: #2a2e38;
  --white: #ffffff;
  --gray-100: #f7f7f8;
  --gray-200: #e5e5e7;
  --gray-400: #9ca3af;
  --gray-600: #4b5563;
  --success: #4ade80;
  --error: #f87171;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--gray-100);
  color: var(--gnar-navy);
  line-height: 1.6;
  min-height: 100vh;
}

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

/* Header */
header {
  padding: 24px 0;
  border-bottom: 1px solid var(--gray-200);
  background: var(--white);
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 600;
  color: var(--gnar-navy);
}

/* Hero */
.hero {
  text-align: center;
  padding: 60px 20px;
}

.hero h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--gnar-navy);
}

.hero p {
  font-size: 18px;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

/* Form */
.form-section {
  background: var(--white);
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  margin-bottom: 60px;
}

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

label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--gnar-navy);
}

input[type="text"],
input[type="email"],
textarea,
select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--white);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--gnar-gold);
  box-shadow: 0 0 0 3px rgba(254, 198, 44, 0.2);
}

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

.hint {
  display: block;
  font-size: 13px;
  color: var(--gray-400);
  margin-top: 6px;
}

/* File Upload */
.file-upload {
  position: relative;
  border: 2px dashed var(--gray-200);
  border-radius: 8px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.file-upload:hover {
  border-color: var(--gnar-gold);
  background: rgba(254, 198, 44, 0.05);
}

.file-upload.dragover {
  border-color: var(--gnar-gold);
  background: rgba(254, 198, 44, 0.1);
}

.file-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-upload-content {
  pointer-events: none;
}

.file-upload-content svg {
  color: var(--gray-400);
  margin-bottom: 12px;
}

.file-upload-content p {
  font-weight: 500;
  color: var(--gnar-navy);
  margin-bottom: 4px;
}

.file-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--gray-100);
  border-radius: 6px;
  font-size: 14px;
}

.file-item-name {
  display: flex;
  align-items: center;
  gap: 8px;
}

.file-item-remove {
  background: none;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.file-item-remove:hover {
  color: var(--error);
  background: rgba(248, 113, 113, 0.1);
}

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--gnar-gold);
  color: var(--gnar-navy);
  width: 100%;
}

.btn-primary:hover {
  background: #e5b228;
  transform: translateY(-1px);
}

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

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Success State */
.success-section {
  background: var(--white);
  border-radius: 12px;
  padding: 60px 40px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  margin-bottom: 60px;
  text-align: center;
}

.success-content h2 {
  margin: 24px 0 12px;
  font-size: 28px;
}

.success-content p {
  color: var(--gray-600);
  font-size: 16px;
}

.success-content strong {
  color: var(--gnar-navy);
}

/* How It Works */
.how-it-works {
  padding: 60px 0;
}

.how-it-works h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 40px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.step {
  background: var(--white);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--gnar-gold);
  color: var(--gnar-navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  margin: 0 auto 16px;
}

.step h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  color: var(--gray-600);
}

/* Footer */
footer {
  text-align: center;
  padding: 40px 20px;
  color: var(--gray-600);
  font-size: 14px;
}

footer a {
  color: var(--gnar-coral);
  text-decoration: none;
  font-weight: 500;
}

footer a:hover {
  text-decoration: underline;
}

/* Utilities */
.hidden {
  display: none !important;
}

/* Loading State */
.btn.loading span {
  opacity: 0;
}

.btn.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid var(--gnar-navy);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Error State */
.form-group.error input,
.form-group.error textarea {
  border-color: var(--error);
}

.error-message {
  color: var(--error);
  font-size: 13px;
  margin-top: 6px;
}

/* Responsive */
@media (max-width: 600px) {
  .hero h1 {
    font-size: 28px;
  }
  
  .hero p {
    font-size: 16px;
  }
  
  .form-section {
    padding: 24px;
  }
  
  .success-section {
    padding: 40px 24px;
  }
}
