/* Import base styles */
@import url('styles.css');

/* Contribute Header */
.contribute-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  padding: 3rem 2rem;
  text-align: center;
}

.contribute-header h1 {
  margin: 0;
  font-size: 2.5rem;
}

.contribute-header .subtitle {
  font-size: 1.2rem;
  opacity: 0.95;
  margin-top: 0.5rem;
}

.contribute-header .description {
  font-size: 1rem;
  opacity: 0.85;
  margin-top: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.back-link {
  display: inline-block;
  margin-top: 1.5rem;
  color: #38bdf8;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.back-link:hover {
  color: #7dd3fc;
}

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

/* Contribute Section */
.contribute-section {
  margin: 3rem auto;
}

.contribute-card {
  background: #fff;
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.contribute-card h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #0f172a;
}

.instructions {
  color: #64748b;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Form Styles */
.contribution-form {
  margin-top: 2rem;
}

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

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #334155;
  font-size: 1rem;
}

.required {
  color: #ef4444;
  margin-left: 0.25rem;
}

.optional {
  font-weight: 400;
  color: #64748b;
  font-size: 0.9rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: #38bdf8;
}

.form-textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
  transition: border-color 0.2s;
}

.form-textarea:focus {
  outline: none;
  border-color: #38bdf8;
}

.field-hint {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #64748b;
  font-style: italic;
}

/* Direction Buttons */
.direction-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.direction-btn {
  flex: 1;
  min-width: 200px;
  padding: 1rem;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.direction-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.direction-btn.active {
  background: #38bdf8;
  border-color: #38bdf8;
  color: #fff;
}

.lang-flag {
  font-size: 1.5rem;
}

/* Domain Options */
.domain-options {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.domain-option {
  flex: 1;
  min-width: 150px;
  display: flex;
  align-items: center;
  padding: 1rem;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.domain-option:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.domain-option input[type="radio"] {
  margin-right: 0.75rem;
  cursor: pointer;
}

.domain-option input[type="radio"]:checked ~ .domain-label {
  font-weight: 600;
  color: #0f172a;
}

.domain-label {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.domain-icon {
  font-size: 1.2rem;
}

/* Submit Button */
.submit-btn {
  width: 100%;
  padding: 1rem;
  background: #38bdf8;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 1rem;
}

.submit-btn:hover {
  background: #0ea5e9;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(56, 189, 248, 0.3);
}

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

.submit-btn:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
  transform: none;
}

/* Success Message */
.success-message {
  margin-top: 2rem;
  padding: 2rem;
  background: #d1fae5;
  border-radius: 12px;
  text-align: center;
}

.success-icon {
  width: 60px;
  height: 60px;
  background: #10b981;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  margin: 0 auto 1rem;
}

.success-message h3 {
  color: #065f46;
  margin: 0 0 0.5rem 0;
}

.success-message p {
  color: #047857;
  margin: 0 0 1.5rem 0;
}

.add-another-btn {
  padding: 0.75rem 1.5rem;
  background: #10b981;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.add-another-btn:hover {
  background: #059669;
}

/* Error Message */
.error-message {
  margin-top: 1rem;
  padding: 1rem;
  background: #fee2e2;
  border-left: 4px solid #ef4444;
  border-radius: 4px;
  color: #991b1b;
}

/* Why Contribute Section */
.why-contribute {
  margin-top: 3rem;
  padding: 2rem;
  background: #f8fafc;
  border-radius: 12px;
}

.why-contribute h3 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: #0f172a;
  text-align: center;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.benefit-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
}

.benefit-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.benefit-card h4 {
  margin: 0 0 0.5rem 0;
  color: #0f172a;
}

.benefit-card p {
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Guidelines Section */
.guidelines-section {
  margin-top: 2rem;
  padding: 2rem;
  background: #fffbeb;
  border-radius: 12px;
  border-left: 4px solid #f59e0b;
}

.guidelines-section h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #92400e;
}

.guidelines-list {
  margin: 0;
  padding-left: 1.5rem;
  color: #78350f;
  line-height: 1.8;
}

.guidelines-list li {
  margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .contribute-header {
    padding: 2rem 1rem;
  }

  .contribute-header h1 {
    font-size: 2rem;
  }

  .contribute-card {
    padding: 1.5rem;
  }

  .direction-buttons,
  .domain-options {
    flex-direction: column;
  }

  .direction-btn,
  .domain-option {
    min-width: 100%;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }
}
