/* Create Offer Page Styles */

.main-content {
  padding-top: 6rem;
  min-height: 100vh;
  background: var(--gray-50);
}

.create-offer-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  padding: 2rem 0;
}

/* Form Section */
.form-section {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Progress Bar */
.progress-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 3rem;
  padding: 1.5rem;
  background: var(--gray-50);
  border-radius: 0.75rem;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.step-number {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--gray-300);
  color: var(--gray-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.progress-step.active .step-number {
  background: var(--emerald-500);
  color: white;
}

.progress-step.completed .step-number {
  background: var(--emerald-600);
  color: white;
}

.step-label {
  font-size: 0.75rem;
  color: var(--gray-600);
  font-weight: 500;
  text-align: center;
}

.progress-step.active .step-label {
  color: var(--emerald-600);
  font-weight: 600;
}

.progress-line {
  width: 3rem;
  height: 2px;
  background: var(--gray-300);
  margin: 0 1rem;
}

.progress-step.active ~ .progress-step .progress-line {
  background: var(--emerald-500);
}

/* Form Steps */
.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-header {
  text-align: center;
  margin-bottom: 2rem;
}

.step-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.step-subtitle {
  font-size: 1.125rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* Profile Type Cards */
.profile-types {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.profile-type-card {
  position: relative;
  cursor: pointer;
}

.profile-type-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.card-content {
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.profile-type-card:hover .card-content {
  border-color: var(--emerald-400);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.profile-type-card input:checked + .card-content {
  border-color: var(--emerald-500);
  background: rgba(16, 185, 129, 0.05);
}

.card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.card-icon.blue {
  background: rgba(59, 130, 246, 0.1);
  color: var(--blue-600);
}

.card-icon.red {
  background: rgba(239, 68, 68, 0.1);
  color: var(--red-600);
}

.card-icon.purple {
  background: rgba(168, 85, 247, 0.1);
  color: var(--purple-600);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.card-description {
  color: var(--gray-600);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Form Fields */
.form-fields {
  margin-bottom: 2rem;
}

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

.form-label {
  display: block;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  background: white;
}

.form-input:focus {
  outline: none;
  border-color: var(--emerald-500);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: 0.5rem;
  font-size: 1rem;
  min-height: 120px;
  resize: vertical;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-textarea:focus {
  outline: none;
  border-color: var(--emerald-500);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.character-count {
  text-align: right;
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-top: 0.25rem;
}

/* Deadline Options */
.deadline-options {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.deadline-option {
  position: relative;
  cursor: pointer;
}

.deadline-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-content {
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.deadline-option:hover .option-content {
  border-color: var(--emerald-400);
  transform: translateY(-1px);
}

.deadline-option input:checked + .option-content {
  border-color: var(--emerald-500);
  background: rgba(16, 185, 129, 0.05);
}

.option-icon {
  width: 3rem;
  height: 3rem;
  background: var(--emerald-100);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald-600);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.option-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
}

.option-description {
  color: var(--gray-600);
  font-size: 0.875rem;
  line-height: 1.4;
}

/* Budget Options */
.budget-options {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.budget-option {
  position: relative;
  cursor: pointer;
}

.budget-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.budget-option .option-content {
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.budget-option:hover .option-content {
  border-color: var(--emerald-400);
  transform: translateY(-1px);
}

.budget-option input:checked + .option-content {
  border-color: var(--emerald-500);
  background: rgba(16, 185, 129, 0.05);
}

.budget-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.budget-currency {
  position: absolute;
  right: 1rem;
  color: var(--gray-500);
  font-weight: 600;
  pointer-events: none;
}

.budget-input-group .form-input {
  padding-right: 2rem;
}

/* Checkbox */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--gray-700);
}

.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkmark {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--gray-300);
  border-radius: 0.25rem;
  position: relative;
  transition: all 0.3s ease;
}

.checkbox-label input:checked + .checkmark {
  background: var(--emerald-500);
  border-color: var(--emerald-500);
}

.checkbox-label input:checked + .checkmark::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
}

/* Tags Section */
.tags-section {
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.tags-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
}

.tag-option {
  position: relative;
  cursor: pointer;
}

.tag-option input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tag-label {
  display: block;
  padding: 0.5rem 1rem;
  background: var(--gray-100);
  border: 2px solid var(--gray-200);
  border-radius: 0.5rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: all 0.3s ease;
}

.tag-option:hover .tag-label {
  border-color: var(--emerald-400);
  background: var(--emerald-50);
}

.tag-option input:checked + .tag-label {
  background: var(--emerald-500);
  border-color: var(--emerald-500);
  color: white;
}

/* Review Summary */
.review-summary {
  margin-bottom: 2rem;
}

.review-item {
  background: var(--gray-50);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1rem;
}

.review-header {
  display: flex;
  justify-content: between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.review-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-900);
  flex: 1;
}

.edit-btn {
  background: none;
  border: none;
  color: var(--emerald-600);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  transition: background-color 0.3s ease;
}

.edit-btn:hover {
  background: var(--emerald-50);
}

.review-content {
  color: var(--gray-700);
  font-size: 0.875rem;
  line-height: 1.5;
  max-height: 3rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Step Actions */
.step-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-200);
}

.step-actions .btn {
  min-width: 150px;
}

/* Sidebar Section */
.sidebar-section {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  height: fit-content;
  position: sticky;
  top: 7rem;
}

.sidebar-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.recent-offers {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.offer-card {
  background: var(--gray-50);
  border-radius: 0.5rem;
  padding: 1rem;
  border: 1px solid var(--gray-200);
}

.offer-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.offer-budget {
  font-size: 0.75rem;
  color: var(--gray-600);
}

.offer-budget strong {
  color: var(--emerald-600);
  font-weight: 700;
}

/* Responsive */
@media (max-width: 1023px) {
  .create-offer-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .sidebar-section {
    position: static;
  }
  
  .progress-bar {
    overflow-x: auto;
    padding: 1rem;
  }
  
  .progress-step {
    min-width: 80px;
  }
  
  .progress-line {
    min-width: 2rem;
  }
}

@media (max-width: 767px) {
  .main-content {
    padding-top: 5rem;
  }
  
  .form-section {
    padding: 1.5rem;
  }
  
  .step-title {
    font-size: 1.5rem;
  }
  
  .step-subtitle {
    font-size: 1rem;
  }
  
  .step-actions {
    flex-direction: column;
  }
  
  .step-actions .btn {
    width: 100%;
  }
  
  .tags-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
