/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Modal Container */
.modal-container {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  max-width: 480px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
  transform: scale(1) translateY(0);
}

/* Close Button */
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #f5f5f5;
  border: 2px solid #e0e0e0;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  transition: all 0.2s ease;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  z-index: 1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.modal-close:hover {
  color: #e74c3c;
  background-color: #fff;
  border-color: #e74c3c;
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.2);
  transform: scale(1.1);
}

.modal-close:active {
  transform: scale(0.95);
}

/* Progress Indicator */
.modal-progress {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding-top: 0.5rem;
}

.progress-step {
  flex: 1;
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  transition: background-color 0.3s ease;
}

.progress-step.active {
  background: #3B9DD4;
}

/* Modal Content */
.modal-content-wrapper {
  text-align: center;
  padding: 1rem 0;
}

.modal-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #E3F2FD;
  border-radius: 50%;
}

.verify-icon {
  background: #E8F5E9;
}

.modal-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 0.5rem;
}

.modal-subtitle {
  font-size: 1rem;
  color: #666;
  margin-bottom: 2rem;
}

/* Mobile Input Form */
.mobile-form {
  margin-bottom: 1.5rem;
}

.mobile-input-wrapper {
  display: flex;
  align-items: center;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  transition: border-color 0.3s ease;
}

.mobile-input-wrapper:focus-within {
  border-color: #3B9DD4;
}

.country-code {
  padding: 1rem 1.25rem;
  background: #f5f5f5;
  color: #333;
  font-weight: 600;
  font-size: 1rem;
  border-right: 2px solid #e0e0e0;
}

.mobile-input {
  flex: 1;
  padding: 1rem 1.25rem;
  border: none;
  outline: none;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  color: #333;
}

.mobile-input::placeholder {
  color: #999;
}

/* OTP Input Form */
.otp-form {
  margin-bottom: 1.5rem;
}

.otp-input-container {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.otp-input {
  width: 50px;
  height: 50px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  font-family: 'Inter', sans-serif;
  color: #333;
}

.otp-input:focus {
  border-color: #3B9DD4;
  box-shadow: 0 0 0 3px rgba(59, 157, 212, 0.1);
}

.otp-input:invalid {
  border-color: #e0e0e0;
}

/* Primary Button */
.modal-btn-primary {
  width: 100%;
  padding: 1rem;
  background: #ffc349;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-family: 'Inter', sans-serif;
}

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

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

.modal-btn-primary:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

/* Modal Actions */
.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.modal-link-btn {
  background: none;
  border: none;
  color: #3B9DD4;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.5rem;
  font-family: 'Inter', sans-serif;
  transition: color 0.2s ease;
}

.modal-link-btn:hover:not(:disabled) {
  color: #2a8bc0;
  text-decoration: underline;
}

.modal-link-btn:disabled {
  color: #999;
  cursor: not-allowed;
}

/* Disclaimer */
.modal-disclaimer {
  font-size: 0.875rem;
  color: #999;
  margin-top: 1.5rem;
  line-height: 1.5;
}

.modal-link {
  color: #3B9DD4;
  text-decoration: none;
  transition: color 0.2s ease;
}

.modal-link:hover {
  color: #2a8bc0;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .modal-container {
    padding: 1.5rem;
    width: 95%;
    margin: 1rem;
  }

  .modal-title {
    font-size: 1.5rem;
  }

  .modal-subtitle {
    font-size: 0.9rem;
  }

  .otp-input {
    width: 45px;
    height: 45px;
    font-size: 1.25rem;
  }

  .otp-input-container {
    gap: 0.5rem;
  }

  .modal-icon {
    width: 64px;
    height: 64px;
  }

  .modal-icon svg {
    width: 48px;
    height: 48px;
  }
}

/* Profile Setup Modal Styles */
.profile-content-wrapper {
  text-align: left;
}

/* Registration Info */
.registration-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f9f9f9;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #666;
}

.registration-text {
  color: #666;
}

.registration-phone {
  font-weight: 600;
  color: #333;
}

.registration-edit-link {
  background: none;
  border: none;
  color: #3B9DD4;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  transition: color 0.2s ease;
  font-family: 'Inter', sans-serif;
}

.registration-edit-link:hover {
  color: #2a8bc0;
  text-decoration: underline;
}

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

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

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

.required {
  color: #e74c3c;
}

.optional {
  color: #999;
  font-weight: 400;
  font-size: 0.85rem;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 1rem;
  color: #999;
  pointer-events: none;
  z-index: 1;
}

.form-input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  color: #333;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
  border-color: #3B9DD4;
  box-shadow: 0 0 0 3px rgba(59, 157, 212, 0.1);
}

.form-input::placeholder {
  color: #999;
}

/* Selection Buttons */
.selection-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.5rem;
}

.selection-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  background: #f9f9f9;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.selection-btn:hover {
  border-color: #3B9DD4;
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.selection-btn.active {
  border-color: #3B9DD4;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(59, 157, 212, 0.1);
}

.selection-btn.active .selection-icon {
  color: #3B9DD4;
  stroke: #3B9DD4;
}

.selection-btn:not(.active) .selection-icon {
  color: #666;
  stroke: #666;
}

.selection-icon {
  width: 32px;
  height: 32px;
  transition: color 0.3s ease, stroke 0.3s ease;
}

.selection-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
}

.selection-btn.active .selection-text {
  color: #3B9DD4;
}

@media (max-width: 480px) {
  .modal-container {
    padding: 1.25rem;
  }

  .otp-input {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .country-code {
    padding: 0.875rem 1rem;
    font-size: 0.9rem;
  }

  .mobile-input {
    padding: 0.875rem 1rem;
    font-size: 0.9rem;
  }

  .selection-buttons {
    gap: 0.75rem;
  }

  .selection-btn {
    padding: 1.25rem 0.75rem;
  }

  .selection-icon {
    width: 28px;
    height: 28px;
  }

  .selection-text {
    font-size: 0.85rem;
  }
}

/* Post Requirement Modal Styles */
.form-select {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  color: #333;
  background: white;
  outline: none;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 3rem;
}

.form-select:focus {
  border-color: #3B9DD4;
  box-shadow: 0 0 0 3px rgba(59, 157, 212, 0.1);
}

/* Budget Input */
.budget-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.currency-symbol {
  position: absolute;
  left: 1rem;
  color: #333;
  font-size: 1rem;
  font-weight: 600;
  z-index: 1;
  pointer-events: none;
}

.budget-input {
  padding-left: 2.5rem;
}

/* Pill Buttons */
.pill-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.pill-btn {
  padding: 0.75rem 1.5rem;
  border: 2px solid #e0e0e0;
  border-radius: 24px;
  background: white;
  color: #333;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}

.pill-btn:hover {
  border-color: #3B9DD4;
  background: #f0f8ff;
  color: #3B9DD4;
}

.pill-btn.active {
  background: #3B9DD4;
  color: white;
  border-color: #3B9DD4;
  box-shadow: 0 2px 8px rgba(59, 157, 212, 0.3);
}

.pill-btn.active:hover {
  background: #2a8bc0;
  border-color: #2a8bc0;
}

/* Checkbox Field */
.checkbox-field {
  margin-bottom: 1rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.checkbox-input {
  width: 20px;
  height: 20px;
  margin-right: 0.75rem;
  cursor: pointer;
  accent-color: #3B9DD4;
  flex-shrink: 0;
}

.checkbox-text {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.5;
}

.checkbox-label:hover .checkbox-text {
  color: #3B9DD4;
}

@media (max-width: 480px) {
  .pill-buttons {
    gap: 0.5rem;
  }

  .pill-btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.85rem;
  }

  .form-select {
    padding: 0.875rem;
    padding-right: 2.5rem;
    font-size: 0.9rem;
  }

  .budget-input {
    padding-left: 2.25rem;
  }

  .currency-symbol {
    left: 0.875rem;
    font-size: 0.9rem;
  }

  .registration-info {
    font-size: 0.85rem;
    padding: 0.875rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .registration-phone {
    display: block;
    width: 100%;
  }
}

