* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f5f7fa;
  min-height: 100vh;
}

/* Header */
.header {
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.hidden {
  display: none;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2563eb;
  text-decoration: none;
}

.back-link {
  color: #64748b;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.back-link:hover {
  color: #2563eb;
}

/* Main Container */
.main-container {
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 2rem 3rem;
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.page-header h1 {
  font-size: 2.5rem;
  color: #1e293b;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.page-header p {
  font-size: 1.125rem;
  color: #64748b;
}

/* Form Card */
.form-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 3rem;
}

.form-section {
  margin-bottom: 3rem;
}

.form-section:last-child {
  margin-bottom: 0;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e2e8f0;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #334155;
  font-size: 0.95rem;
}

.required {
  color: #ef4444;
}

.form-input,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s;
  background: white;
  font-family: inherit;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

textarea.form-input {
  min-height: 100px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* Service Type Selection */
.service-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.service-type-card {
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s;
  background: white;
  position: relative;
}

.service-type-card:hover {
  border-color: #2563eb;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.service-type-card.selected {
  border-color: #2563eb;
  background: #eff6ff;
}

.service-type-card input[type="radio"] {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 18px;
  height: 18px;
  accent-color: #2563eb;
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.service-title {
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.25rem;
  font-size: 1.05rem;
}

.service-description {
  font-size: 0.875rem;
  color: #64748b;
}

/* Skills Section */
.skill-input-wrapper {
  position: relative;
}

.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
  min-height: 50px;
  padding: 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  background: #2563eb;
  color: white;
  padding: 0.5rem 0.875rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
}

.skill-tag .remove-skill {
  margin-left: 0.5rem;
  cursor: pointer;
  font-weight: bold;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.skill-tag .remove-skill:hover {
  opacity: 1;
}

.skills-hint {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #64748b;
}

/* Category Selection */
.category-grid {
  display: grid;
  gap: 1rem;
}

.category-card {
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.3s;
  background: white;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.category-card:hover {
  border-color: #2563eb;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.category-card.selected {
  border-color: #2563eb;
  background: #eff6ff;
}

.category-card input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: #2563eb;
  flex-shrink: 0;
}

.category-content {
  flex: 1;
}

.category-title {
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.25rem;
}

.category-description {
  font-size: 0.875rem;
  color: #64748b;
}

.category-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

/* Error Messages */
.error-message {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: none;
}

.success-message {
  background: #dcfce7;
  color: #166534;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  display: none;
  border: 1px solid #bbf7d0;
}

/* Submit Button */
.btn {
  width: 100%;
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}

.btn-primary {
  background: #2563eb;
  color: white;
}

.btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-primary a {
  color: white;
  text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-container {
    padding: 0 1rem;
  }

  .main-container {
    margin: 2rem auto;
    padding: 0 1rem 2rem;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .page-header p {
    font-size: 1rem;
  }

  .form-card {
    padding: 2rem 1.5rem;
  }

  .form-row,
  .service-type-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 1.125rem;
  }
}

@media (max-width: 480px) {
  .page-header h1 {
    font-size: 1.75rem;
  }

  .form-card {
    padding: 1.5rem 1rem;
  }

  .service-icon {
    font-size: 2rem;
  }

  .category-card {
    flex-direction: column;
    text-align: center;
  }
}
